Remote automatic upgrading system and remote automatic upgrading method
Technical field
The invention belongs to the communications field, more particularly to a kind of remote automatic upgrading system and remote automatic upgrading method.
Background technology
With constantly bringing forth new ideas for science and technology, the software of terminal device is also required to real-time update, so that more perfect full
The demand of sufficient people.
The main upgrade mode of existing terminal device software includes:Server module and client mode.It is but existing
Server mode exist after the completion of updating terminal device, it is necessary to which the new terminal device of manual switching carries out lacking for updating operation
Fall into, be not easy to terminal device and updating operation is carried out in the case of without staff.Main website clothes be present in existing client modules
Business device should be responsible for the updating operation of terminal device, be responsible for the data transfer of other terminal device again, so that updating speed
The defects of bad.
In summary, the updating speed of terminal device software how had both been ensured, had ensured again in the case of nobody, and can enter automatically
The switching of row terminal device, it is current technical problem urgently to be resolved hurrily.
The content of the invention
It is a primary object of the present invention to provide remote automatic upgrading system and remote automatic upgrading method, solve existing
Upgrade mode existing for can not both ensure the updating speed of terminal device software, ensure again in the case of nobody, can enter automatically
The technical problem of the switching of row terminal device.
To achieve the above object, the invention provides a kind of remote automatic upgrading system, the remote automatic upgrading system bag
Include main website server, terminal device and upgrading servicing unit, the main website server to be connected with terminal equipment in communication, the liter
Level servicing unit is connected with terminal equipment in communication.
The main website server is used to carry out data transmission with the terminal device, and for obtaining the soft of terminal device
Part version information, judge whether the software version information is recent software version, and switch the communication ends of the terminal device
Mouthful, so that the terminal device and upgrading servicing unit communication connection.
The upgrading servicing unit is used for after the completion of carrying out upgrading processing, and upgrading processing to the terminal device, cuts
The COM1 of the terminal device is changed, so that the terminal device communicates to connect with main website server.
In addition, to achieve the above object, present invention also offers a kind of remote automatic upgrading system, the remote automatic upgrading
System includes main website server, terminal device, front end processor and upgrading servicing unit, the main website server and set with the terminal
Standby communication connection, the front end processor are connected with the upgrading servicing unit, terminal equipment in communication respectively, the upgrading servicing unit
It is connected with terminal equipment in communication.
The main website server is used to carry out data transmission with the terminal device, and for switching the institute of preset number
The COM1 of terminal device is stated, so that the terminal device communicates to connect with the front end processor.
The terminal device is instructed to the front end processor for sending logging request.
The front end processor is used to read the software version information of the terminal device, judges whether software version information is newest
Software version, and the terminal device address information of the terminal device is added in upgrading list.
The upgrading servicing unit is used for a pair terminal device corresponding with the terminal device address information in upgrading list and entered
Row upgrading processing.
Preferably, the main website server includes background processing module and background communication module.
Background processing module, the COM1 of the terminal device for switching preset number, and generation control instruction.
Background communication module, for receiving the data message of the terminal device, and control command is sent to the end
End equipment.
Preferably, the terminal device is included at logging request directive generation module, terminal communication module and terminal device
Manage module.
Terminal communication module, instructed for receiving the control command of main website server transmission, sending logging request to preposition
Machine and the upgrading data message and reset command for receiving upgrading servicing unit transmission.
Logging request directive generation module, for generating logging request instruction according to the control command.
Terminal device processing module, the upgrading data message for being sent according to upgrading servicing unit carry out upgrading processing,
And the reset command sent according to upgrading servicing unit carries out reset operation.
Preferably, the front end processor includes front end processor communication module, version information read module, judge module and front end processor
Processing module.
Front end processor communication module, the logging request instruction sent for receiving terminal apparatus.
Version information read module, for obtaining the software version information of terminal device.
Judge module, for judging whether the software version information of terminal device is latest version information.
Front end processor processing module, for the address information of terminal device to be added in upgrading list, and for switching
The COM1 of terminal device.
Preferably, the upgrading servicing unit includes read module, upgrading servicing unit processing module, reset command generation
Module, logging modle and upgrading servicing unit communication module.
Read module, for reading the terminal device address information in the upgrading list in front end processor.
Upgrade servicing unit processing module, for being configured to the upgrade parameter of the terminal device, and upgraded
Cheng Hou, continue the upgrading processing of next terminal device.
Reset command generation module, after the completion of upgrading, generate reset command.
Logging modle, for recording the upgrading recording data information for the terminal device for occurring interrupting in escalation process.
Upgrade servicing unit communication module, for sending upgrading data message and reset command to terminal device.
In addition, to achieve the above object, present invention also offers a kind of remote automatic upgrading method, and it includes following step
Suddenly:
The COM1 of the terminal device of main website server switching preset number.
Terminal device sends logging request according to the COM1 and instructed to front end processor.
Front end processor obtains the software version information and terminal device address information of the terminal device.
The software version information is compared front end processor with the recent software version information that front end processor stores, and judges institute
State whether software version information is recent software version.
If so, front end processor switches the COM1 of the terminal device, so that the terminal device and main website server communication link
Connect.
If it is not, the terminal device address information is added in upgrading list by front end processor.
Upgrade servicing unit successively to terminal device corresponding to the terminal device address information in the upgrading list
Carry out upgrading processing.
Preferably, the upgrading servicing unit is corresponding to the terminal device address information in the upgrading list successively
Terminal device carry out upgrading processing the step of, including:
Upgrading servicing unit configures to the upgrade parameter of the terminal device.
Upgrading servicing unit sends the upgrading data message to the terminal device.
Terminal device carries out updating operation according to the upgrading data message.
Preferably, after the step of terminal device carries out updating operation according to the upgrading data message, in addition to:
After the completion of updating terminal device, send upgrading and complete instruction to upgrading servicing unit.
Upgrade servicing unit according to upgrading complete instruction generation reset command, upgrading servicing unit by the reset command extremely
Terminal device, and continue the upgrading processing of next terminal device.
After terminal device carries out reset operation according to the reset command, logging request is sent again and is instructed to front end processor.
Preferably, after the step of terminal device carries out updating operation according to the upgrading data message, in addition to:
Terminal device interrupts during carrying out updating operation according to the upgrading data message.
Upgrading servicing unit records the upgrading recording data information of the terminal device, so that the upgrading servicing unit next time
When carrying out upgrading processing to the terminal device, continue to carry out at upgrading the terminal device according to the upgrading recording data information
Reason.
The present invention main website server obtain terminal device software version information, judge the software version information whether be
Recent software version.
If recent software version, the terminal device carries out data transmission operating with main website server.
If not recent software version, switch the COM1 of the terminal device, so that the terminal device aids in upgrading
Device communicates to connect, meanwhile, main website server carries out the judgement of the software version information of next terminal device.
Upgrading servicing unit carries out upgrading processing to the terminal device being attached thereto, and after the completion of upgrading, upgrades servicing unit
Switch the COM1 of the terminal device, so that the terminal device carries out data transmission with main website server.
Because main website server of the invention is mainly responsible for the data transfer between terminal device, upgrading processing operation
Main website server is only needed to carry out the judgement of the software version information of terminal device, most of operation of upgrading processing operation is by rising
Level servicing unit is responsible for, so, the processing speed of main website server is on the one hand improved, on the other hand also improves upgrade-system
Upgrading efficiency.
Meanwhile main website server of the invention carries out the judgement of the software version information of next terminal device automatically, reaches
Arrived the technique effect of automatic switchover terminal device so that in the case of nobody, the present invention also can normal operation, further
The technique effect for saving human cost is reached.
Figure of description
Fig. 1 is the block diagram of remote automatic upgrading system embodiment 1 of the present invention;
Fig. 2 is the block diagram of remote automatic upgrading system embodiment 2 of the present invention;
Fig. 3 is the high-level schematic functional block diagram of main website server embodiment 3 in remote automatic upgrading system of the present invention;
Fig. 4 is the high-level schematic functional block diagram of terminal device embodiment 4 in remote automatic upgrading system of the present invention;
Fig. 5 is the high-level schematic functional block diagram of front end processor embodiment 5 in remote automatic upgrading system of the present invention;
Fig. 6 is the high-level schematic functional block diagram for upgrading servicing unit embodiment 6 in remote automatic upgrading system of the present invention;
Fig. 7 is the schematic flow sheet of remote automatic upgrading method embodiment 7 of the present invention;
Fig. 8 is the schematic flow sheet of remote automatic upgrading method embodiment 8 of the present invention;
Fig. 9 is the schematic flow sheet of remote automatic upgrading method embodiment 9 of the present invention;
Figure 10 is the schematic flow sheet of remote automatic upgrading method embodiment 10 of the present invention.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used to limit the present invention.
Embodiment 1
Referring to Fig. 1, Fig. 1 is the block diagram of remote automatic upgrading system embodiment 1 of the present invention.
In embodiment 1, the invention provides a kind of remote automatic upgrading system, it includes main website server 1, terminal is set
Standby 2 and upgrading servicing unit 3, the main website server 1 communicated to connect with terminal device 2, the upgrading servicing unit 3 with it is whole
End equipment 2 communicates to connect.
The main website server 1 is used to carry out data transmission with the terminal device 2, and for obtaining terminal device 2
Software version information, judge whether the software version information is recent software version, and switch the logical of the terminal device 2
Port is believed, so that the terminal device 2 communicates to connect with upgrading servicing unit 3.
The upgrading servicing unit 3 is used for after the completion of carrying out upgrading processing, and upgrading processing to the terminal device 2,
Switch the COM1 of the terminal device 2, so that the terminal device 2 communicates to connect with main website server 1.
Terminal device 2 in the present invention can be digital electric meter or intelligent electric meter, and upgrade-system of the invention can be used for
The software upgrading of digital electric meter or intelligent electric meter.
When terminal device 2 communicates with main website server 1, COM1 is the IP ports of main website server 1.
When terminal device 2 communicates with upgrading servicing unit 3, COM1 is the IP ports of upgrading servicing unit 3.
It should be noted that others can realize that terminal device 2 communicates with main website server 1 or upgrading servicing unit 3
The COM1 of switching, can also solve the technical problem of the present invention, also within protection scope of the present invention.
Data transfer between main website server and terminal device, it can support polytype file to transmit.For example:
The files such as TGZ, BIN, Date.Data message uses 376.1 data frame formats.
Moreover, transmission means also have it is a variety of.For example:Using SOCKET.Communication mode also have it is a variety of, for example:TCP IP association
View pattern.
The present invention main website server 1 use multi-thread concurrent technology, therefore, main website server 1 can simultaneously with it is multiple
Terminal device 2 is communicatively coupled, so as to which main website server 1 can carry out software version information to multiple terminal devices 2 simultaneously
Judgement, switch the communication interfaces of multiple terminal devices 2 to be upgraded, so that multiple terminal devices 2 to be upgraded and upgrading are auxiliary
Device 3 is helped to connect.
And the present invention can set multiple upgrading servicing units 3, while multiple terminal devices 2 to be upgraded are upgraded
Processing, further lift the upgrading efficiency of upgrade-system of the present invention.
The upgrading servicing unit 3 of the either present invention also uses multi-thread concurrent technology, while to multiple ends to be upgraded
End equipment 2 carries out upgrading processing, has on the one hand reached the technique effect of the upgrading effect of lifting upgrade-system of the present invention, Ling Yifa
Face, having reached reduces the cost for purchasing upgrading servicing unit 3.
The main website server 1 of the present invention obtains the software version information of terminal device 2, whether judges the software version information
For recent software version.
If recent software version, the terminal device 2 carries out data transmission operating with main website server 1.
If not recent software version, switch the COM1 of the terminal device 2, so that the terminal device 2 and upgrading are auxiliary
Device 3 is helped to communicate to connect, meanwhile, main website server 1 carries out the judgement of the software version information of next terminal device 2.
Upgrading servicing unit 3 carries out upgrading processing to the terminal device 2 being attached thereto, after the completion of upgrading, upgrading auxiliary dress
The COM1 of the 3 switchings terminal device 2 is put, so that the terminal device 2 carries out data transmission with main website server 1.
Because main website server 1 of the invention is mainly responsible for the data transfer between terminal device 2, upgrading processing behaviour
Main website server 1 is only needed to carry out the judgement of the software version information of terminal device 2, most of operation of upgrading processing operation
It is responsible for by upgrading servicing unit 3, so, the processing speed of main website server 1 is on the one hand improved, on the other hand also improves liter
The upgrading efficiency of level system.
Meanwhile main website server 1 of the invention carries out the judgement of the software version information of next terminal device 2 automatically,
Reached the technique effect of automatic switchover terminal device 2 so that in the case of nobody, the present invention also can normal operation, enter one
Step ground has reached the technique effect for saving human cost.
Embodiment 2
Referring to Fig. 2, Fig. 2 is the block diagram of remote automatic upgrading system embodiment 2 of the present invention.
To achieve the above object, the embodiment of the present invention 2 additionally provides a kind of remote automatic upgrading system, it is characterised in that
It includes main website server 1, terminal device 2, front end processor 4 and upgrading servicing unit 3, the main website server 1 and the end
End equipment 2 communicates to connect, and the front end processor 4 communicates to connect with the upgrading servicing unit 3, terminal device 2 respectively, the upgrading
Servicing unit 3 communicates to connect with terminal device 2.
The main website server 1 is used to carry out data transmission with the terminal device 2, and for switching preset number
The COM1 of the terminal device 2, so that the terminal device 2 communicates to connect with the front end processor 4.
The terminal device 2 is instructed to the front end processor 4 for sending logging request.
The front end processor 4 is used to read the software version information of the terminal device 2, judges whether software version information is most
New software version, and the terminal device address information of the terminal device 2 is added in upgrading list.
The upgrading servicing unit 3 is used for a pair terminal device 2 corresponding with the terminal device address information in upgrading list
Carry out upgrading processing.
Terminal device 2 in the present invention can be digital electric meter or intelligent electric meter, and upgrade-system of the invention can be used for
The software upgrading of digital electric meter or intelligent electric meter.
When terminal device 2 communicates with main website server 1, COM1 is the IP ports of main website server 1.
When terminal device 2 communicates with front end processor 4, COM1 is the IP ports of front end processor 4.
It should be noted that other can realize that terminal device 2 communicates what is switched with main website server 1 or front end processor 4
COM1, can also solve the technical problem of the present invention, also within protection scope of the present invention.
The main website server 1 of the present invention is mainly responsible for the data transfer between terminal device 2, and upgrading processing operation only needs
Main website server 1 is wanted to switch the COM1 of the terminal device 2 of preset number, so that terminal device 2 and the communication link of front end processor 4
Connect.
The software version information of the reading terminal equipment 2 of front end processor 4, and judge whether the software version information is recent software
Version.
If it is not, the terminal device address information is added in upgrading list.
If so, switch the COM1 of the terminal device 2, so that the terminal device 2 communicates to connect with main website server 1,
Carry out data transmission operating.
Upgrade servicing unit 3 read front end processor 4 upgrading list, pair with the terminal device address information in the upgrading list
Corresponding terminal device 2 carries out upgrading processing.
Main website server 1 only needs to switch the COM1 of the terminal device 2 of preset data in the upgrade-system of the present invention,
Further alleviate in the escalation process of terminal device 2, the burden of main website server 1, so as to improve the place of main website server 1
Efficiency is managed, meanwhile, also the significantly more efficient independent progress for having accomplished two operations of data transfer and upgrading processing, therefore, reaches
Updating speed faster technique effect.
Simultaneously as the main website server 1 of the present invention can automatically switch the communication ends of the terminal device 2 of preset number
Mouthful, therefore, reached in the case of nobody, upgrade-system of the invention also can normal operation, further reached saving
The technique effect of human cost.
Embodiment 3
Referring to Fig. 3, Fig. 3 is the functional module signal of main website server embodiment 3 in remote automatic upgrading system of the present invention
Figure.
In embodiment 3, essentially identical with the structure of above-described embodiment, difference is, the main website server 1 is wrapped
Include background processing module 11 and background communication module 12.
Background processing module 11, the COM1 of the terminal device for switching preset number, and generation control instruction.
Background communication module 12, for receiving the data message of the terminal device, and control command is sent to described
Terminal device.
The background processing module 11 of the main website server 1 of the present invention switches the COM1 of the terminal device of preset number.
While switching the COM1 of the terminal device of preset number, a control instruction is generated.
The background communication module 12 of main website server 1, which sends the control instruction to the terminal that have switched COM1, to be set
It is standby, to control terminal device device corresponding with new COM1 to be communicatively coupled.
Due to, also carry out data transmission operating between main website server 1 and the terminal device, so, main website server 1
Background communication module 12 be additionally operable to receive the data message of the terminal device.
Embodiment 4
Referring to Fig. 4, Fig. 4 is the high-level schematic functional block diagram of terminal device embodiment 4 in remote automatic upgrading system of the present invention.
In example 4, essentially identical with the structure of above-described embodiment, difference is, the terminal device 2 includes
Logging request directive generation module 21, terminal communication module 23 and terminal device processing module 22.
Terminal communication module 23, instructed for receiving the control command of main website server transmission, sending logging request to preceding
Put machine and receive upgrading data message and reset command that upgrading servicing unit is sent.
Logging request directive generation module 21, for generating logging request instruction according to the control command.
Terminal device processing module 22, the upgrading data message for being sent according to upgrading servicing unit are carried out at upgrading
Reason, and the reset command sent according to upgrading servicing unit carry out reset operation.
The terminal communication module 23 of terminal device 2 receives the control command of main website server transmission, and terminal device 2 is stepped on
Record request instruction generation module 21 and logging request instruction is generated according to the control command.
The terminal communication module 23 of terminal device 2 sends logging request and instructed to front end processor, and front end processor obtains the terminal and set
Standby software version information, judge whether the software version information is recent software version.
If so, front end processor switches the COM1 of the terminal device 2, so that the terminal device 2 is carried out with main website server
Communication.
If it is not, the terminal device address information of the terminal device 2 is added in upgrading list by front end processor.
Upgrade servicing unit read front end processor in upgrading list, pair with upgrade list in terminal device address information it is corresponding
Terminal device 2 carry out upgrading processing.
The terminal communication module 23 of terminal device, which receives, upgrades the upgrading data message that servicing unit is sent, at terminal device
Manage module 22 and updating operation is carried out according to the upgrading data message.
After the completion of upgrading, upgrading servicing unit sends reset command and gives the terminal device 2, so that the terminal device handles mould
Block 22 carries out reset operation according to the reset command.
After the completion of terminal device 2 resets, the terminal communication module 23 of terminal device 2 send again logging request instruct to
Front end processor, front end processor obtain the software version information of the terminal device 2 again, and judge the software version information whether be
Recent software version, repeat above-mentioned work.
Embodiment 5
Referring to Fig. 5, Fig. 5 is the high-level schematic functional block diagram of front end processor embodiment 5 in remote automatic upgrading system of the present invention.
In embodiment 5, essentially identical with the structure of above-described embodiment, difference is, before the front end processor 4 includes
Put machine communication module 44, version information read module 41, judge module 42 and front end processor processing module 43.
Front end processor communication module 44, the logging request instruction sent for receiving terminal apparatus.
Version information read module 41, for obtaining the software version information of terminal device.
Judge module 42, for judging whether the software version information of terminal device is latest version information.
Front end processor processing module 43, for the address information of terminal device to be added in upgrading list, and for cutting
Change the COM1 of terminal device.
After the front end processor communication module 44 of front end processor 4 receives the logging request instruction of terminal device transmission, front end processor 4
Version information read module 41 obtains the software version information of the terminal device, and the judge module 42 of front end processor 4 judges the terminal
Whether the software version information of equipment is recent software version.
If so, the front end processor processing module 43 of front end processor 4 is used for the COM1 for switching the terminal device, so that the terminal
Equipment communicates with main website server.
If it is not, the terminal device address information of the terminal device is added to liter by the front end processor processing module 43 of front end processor 4
In level list, it is easy to upgrade servicing unit reading.
Embodiment 6
Referring to Fig. 6, Fig. 6 is that the functional module for upgrading servicing unit embodiment 6 in remote automatic upgrading system of the present invention is shown
It is intended to.
In embodiment 6, essentially identical with the structure of above-described embodiment, difference is, the upgrading servicing unit 3
Including read module 31, upgrading servicing unit processing module 33, reset command generation module 32, logging modle 34 and upgrading auxiliary
Device communication module 35.
Read module 31, for reading the terminal device address information in the upgrading list in front end processor.
Upgrade servicing unit processing module 33, for being configured to the upgrade parameter of the terminal device, and upgrading
After the completion of, the upgrading processing of the next terminal device of continuation.
Reset command generation module 32, after the completion of upgrading, generate reset command.
Logging modle 34, the upgrading record data for recording the terminal device for occurring interrupting in escalation process are believed
Breath.
Upgrade servicing unit communication module 35, for sending upgrading data message and reset command to terminal device.
Upgrade the terminal device address information in the upgrading list in the reading front end processor of read module 31 of servicing unit.
Upgrade servicing unit 3 according to the terminal device address information, establish the communication for upgrading servicing unit 3 and terminal device
Connection.
Upgrade servicing unit 3 and the terminal device is established after communicating to connect, at the upgrading servicing unit for upgrading servicing unit 3
Reason module 33 configures to the upgrade parameter of the terminal device.
The configuration of the upgrade parameter of the present invention includes:When sending upgrading data message, the size of data frame, when waiting overtime
Between and the maximum terminal number that once upgrades etc..
After the completion of configuration, the upgrading servicing unit communication module 35 of upgrading servicing unit 3 sends upgrading data message to end
End equipment.
Terminal device carries out upgrading processing according to the upgrading data message, and after the completion of upgrading, it is auxiliary to feed back to upgrading
Help device.
The reset command generation module 32 for upgrading servicing unit 3 generates reset command according to the feedback information, and passes through liter
Level servicing unit communication module 35 is sent to terminal device.
Meanwhile upgrade the upgrading processing operation that servicing unit 3 continues next terminal device.
Terminal device carries out reset operation according to the reset command, after the completion of reset, sends logging request instruction again
To front end processor, front end processor obtains software version information and judges whether the software version information is recent software version again,
Follow-up job step is consistent with above-mentioned job step, will not be repeated here.
When terminal device in escalation process due to a variety of causes (for example:Power-off or time-out etc.) cause to interrupt, upgrading is auxiliary
Help the logging modle 34 of device 3 to record upgrading recording data information, after being easy to the restarting terminal device, send logging request again
To front end processor, front end processor obtains software version information and judges whether the software version information is recent software version again for instruction
This.
The terminal device address information of the terminal device is added in upgrading list by front end processor, upgrading servicing unit 3
Read module 31 reads the terminal device address information of the terminal device.
Upgrading servicing unit 3 continues to carry out upgrading processing to the terminal device according to the upgrading recording data information.
Embodiment 7
Referring to Fig. 7, Fig. 7 is the schematic flow sheet of remote automatic upgrading method embodiment 7 of the present invention.
To achieve the above object, the embodiment of the present invention 7 additionally provides a kind of remote automatic upgrading method, and it includes following step
Suddenly:
Step S10, the COM1 of the terminal device of main website server switching preset number.
Terminal device in the present invention can be digital electric meter or intelligent electric meter, and upgrade-system of the invention can be used for counting
The software upgrading of word ammeter or intelligent electric meter.
When terminal device communicates with main website server, COM1 is the IP ports of main website server.
When terminal device communicates with front end processor, COM1 is the IP ports of front end processor.
It should be noted that other can realize that terminal device communicates the communication switched with main website server or front end processor
Port, can also solve the technical problem of the present invention, also within protection scope of the present invention.
Main website server by preset number (for example:100) the IP ports of main website server of terminal device switch to
The IP ports of front end processor.
Step S11, terminal device send logging request according to the COM1 and instructed to front end processor.
Terminal device sends logging request and instructed to front end processor, so that front end processor is with being somebody's turn to do according to the COM1 after switching
Terminal device establishes communication connection.
Step S12, front end processor obtain the software version information and terminal device address information of the terminal device.
After front end processor establishes communication connection with terminal device, the software version information and terminal device of the terminal device are obtained
Address information.
Step S13, front end processor are compared the recent software version information that the software version information stores with front end processor
It is right, judge whether the software version information is recent software version.
Front end processor is stored with newest software version information, front end processor by the software version information obtained from terminal device with
Newest software version information is compared, and judges whether the software version information is recent software version according to comparison result.
Step S14, front end processor switch the COM1 of the terminal device, so that the terminal device communicates with main website server
Connection.
When the software version of terminal device is recent software version, front end processor switches the COM1 of the terminal device, made
The terminal device is obtained to be communicated with main website server.
The terminal device address information is added in upgrading list by step S15, front end processor.
When the software version of terminal device is not recent software version, front end processor is by the terminal device address of the terminal device
Information is added in upgrading list.
Step S16, upgrading servicing unit is successively to corresponding to the terminal device address information in the upgrading list
Terminal device carries out upgrading processing.
The terminal device address information upgraded in list corresponds with terminal device, and upgrading servicing unit pair arranges with upgrading
Terminal device corresponding to terminal device address information in table carries out upgrading processing.
Data transfer between main website server and terminal device, it can support polytype file to transmit.For example:
The files such as TGZ, BIN, Date.Data message uses 376.1 data frame formats.
Moreover, transmission means also have it is a variety of.For example:Using SOCKET.Communication mode also have it is a variety of, for example:TCP IP association
View pattern.
Main website server only needs to switch the COM1 of the terminal device of preset data in the upgrade-system of the present invention, enters
One step alleviate updating terminal device during, the burden of main website server, so as to improve the processing of main website server effect
Rate, meanwhile, also the significantly more efficient independent progress for having accomplished two operations of data transfer and upgrading processing, therefore, has reached liter
The faster technique effect of step velocity.
Simultaneously as the main website server of the present invention can automatically switch the communication ends of the terminal device of preset number
Mouthful, therefore, reached in the case of nobody, upgrade-system of the invention also can normal operation, further reached saving
The technique effect of human cost.
Embodiment 8
Referring to Fig. 8, Fig. 8 is the schematic flow sheet of remote automatic upgrading method embodiment 8 of the present invention.
In embodiment 8, essentially identical the step of with above-described embodiment, difference is, the step S16, including:
Step S20, upgrading servicing unit configure to the upgrade parameter of the terminal device.
The configuration of the upgrade parameter of the present invention includes:When sending upgrading data message, the size of data frame, when waiting overtime
Between and the maximum terminal number that once upgrades etc..
Step S21, upgrading servicing unit send the upgrading data message to the terminal device.
Upgrading servicing unit be stored with upgrading data it is new, after the completion of configuration, upgrading servicing unit by the ascending series it is believed that
Breath is sent to terminal device.
Step S22, terminal device carry out updating operation according to the upgrading data message.
Terminal device receives the upgrading data message that upgrading servicing unit is sent, and is risen using the upgrading data message
Level processing.
The present invention is by before terminal device carries out the operation of upgrading processing according to upgrading data message, being upgraded
The configuration of parameter, avoid after terminal device causes interruption due to a variety of causes, the updating operation of terminal device needs accent to enter
Capable situation occurs, and has reached the technique effect that the upgrading efficiency of the terminal device interrupted occurs in quickening.
Meanwhile by the configuration of upgrade parameter, the orderly progress of follow-up updating operation is also further ensure that, is carried
High upgrade-system stability of the present invention.
Embodiment 9
Referring to Fig. 9, Fig. 9 is the schematic flow sheet of remote automatic upgrading method embodiment 9 of the present invention.
In embodiment 9, essentially identical the step of with above-described embodiment, difference is, after the step S22,
Also include:
Step S30, after the completion of updating terminal device, send upgrading and complete instruction to upgrading servicing unit.
Terminal device carries out upgrading processing according to upgrading data message, and after the completion of upgrading, terminal device generation upgrading is completed
Instruction, and instruction is completed into the upgrading and sent to upgrading servicing unit.
Step S31, upgrading servicing unit complete instruction generation reset command according to upgrading, and upgrading servicing unit will be described multiple
Order of the bit continues the upgrading processing of next terminal device to terminal device.
The upgrading that upgrading servicing unit receives terminal device is completed after instructing, and generates reset command, and the reset is ordered
Order is sent to terminal device, meanwhile, upgrading servicing unit then continues the upgrading processing operation of next terminal device.
Step S32, after terminal device carries out reset operation according to the reset command, logging request is sent again and is instructed to preceding
Put machine.
After terminal device receives the reset command of upgrading servicing unit, reset operation is carried out according to the reset command.Eventually
After the completion of end equipment carries out reset operation, resend logging request and instruct to front end processor, follow-up job step with it is above-mentioned
Situation is consistent, will not be repeated here.
The present invention carries out reset operation by upgrading the terminal device that servicing unit control upgrading is completed, after being resetted
Terminal device is communicated with front end processor again, and front end processor is judged the software version of terminal device again, has been reached and ensure that
The terminal device to be communicated with main website server is handed over, is respectively provided with the technique effect of newest software version information.
Embodiment 10
Referring to Figure 10, Figure 10 is the schematic flow sheet of remote automatic upgrading method embodiment 10 of the present invention.
In embodiment 10, essentially identical the step of with above-described embodiment, difference is, after the step S22,
Also include:
Step S40, terminal device interrupt during carrying out updating operation according to the upgrading data message;
During terminal device carries out updating operation according to upgrading data message, due to a variety of causes (for example:Power-off or
Time-out etc.) cause to interrupt.
Step S41, upgrading servicing unit record the upgrading recording data information of the terminal device, so that the upgrading auxiliary
When device next time carries out upgrading processing to the terminal device, continue to enter the terminal device according to the upgrading recording data information
Row upgrading processing.
When interrupting, upgrading servicing unit records the upgrading recording data information of the terminal device.The upgrading records
Data message includes the information such as terminal device address information, upgrading progress.
When upgrading servicing unit flushes to the terminal device again, upgrading servicing unit is believed according to the upgrading record data
Breath carries out upgrading processing to the terminal device.
Upgrading recording data information when the present invention is interrupted by upgrading servicing unit record terminal device, is avoided
After terminal device causes interruption due to a variety of causes, the situation that the updating operation of terminal device needs accent to carry out occurs, and reaches
Accelerate to occur the technique effect of the upgrading efficiency of the terminal device interrupted.
The embodiment of invention is described in detail above, but it is only used as example, and the present invention is not intended to limit
With specific embodiments described above.For a person skilled in the art, any equivalent modifications carried out to the invention
Or substitute also all among scope of the invention, therefore, the equalization made in the case where not departing from the spirit and principles in the present invention scope
Conversion and modification, improvement etc., all should be contained within the scope of the invention.