CN104579752B - Remote automatic upgrading system and remote automatic upgrading method - Google Patents

Remote automatic upgrading system and remote automatic upgrading method Download PDF

Info

Publication number
CN104579752B
CN104579752B CN201410776067.4A CN201410776067A CN104579752B CN 104579752 B CN104579752 B CN 104579752B CN 201410776067 A CN201410776067 A CN 201410776067A CN 104579752 B CN104579752 B CN 104579752B
Authority
CN
China
Prior art keywords
upgrading
terminal device
servicing unit
end processor
module
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
CN201410776067.4A
Other languages
Chinese (zh)
Other versions
CN104579752A (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.)
Shenzhen Clou Electronics Co Ltd
Original Assignee
Ke Lu Intelligent Grid Science And Technology Ltd Of Nanchang City
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 Ke Lu Intelligent Grid Science And Technology Ltd Of Nanchang City filed Critical Ke Lu Intelligent Grid Science And Technology Ltd Of Nanchang City
Priority to CN201410776067.4A priority Critical patent/CN104579752B/en
Publication of CN104579752A publication Critical patent/CN104579752A/en
Application granted granted Critical
Publication of CN104579752B publication Critical patent/CN104579752B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of remote automatic upgrading system, it includes main website server, terminal device and upgrading servicing unit, main website server is used to carry out data transmission with terminal device, and for obtaining and judging the software version information of terminal device, and switch the COM1 of the terminal device, so that terminal device and upgrading servicing unit communication connection;Upgrade servicing unit to be used to carry out terminal device upgrading processing, and switching upgrades the COM1 for the terminal device completed, so that terminal device communicates to connect with main website server.The invention also discloses another remote automatic upgrading system and upgrade method.Terminal device to be upgraded is switched to upgrading servicing unit automatically and carries out upgrading processing by main website server, and upgrading servicing unit automatically carries out data transmission the terminal device switching main website server for upgrading completion.The present invention has reached the technique effect of upgrading improved efficiency and automatic switchover terminal device by the way that data transfer, upgrading processing is separated.

Description

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.

Claims (9)

1. a kind of remote automatic upgrading system, it is characterised in that it includes main website server, terminal device, front end processor and liter Level servicing unit, the main website server are connected with the terminal equipment in communication, and the front end processor aids in the upgrading respectively Device, terminal equipment in communication connection, the upgrading servicing unit are 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 end of preset number The COM1 of end equipment, 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 recent 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 risen Level processing.
2. remote automatic upgrading system according to claim 1, it is characterised in that the main website server is included at backstage Manage 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 send control command to the terminal and set It is standby.
3. remote automatic upgrading system according to claim 1, it is characterised in that the terminal device includes logging request Directive generation module, terminal communication module and terminal device processing module;
Terminal communication module, for receive main website server transmission control command, send logging request instruct to front end processor, with And receive upgrading data message and reset command that upgrading servicing unit is sent;
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 Reset operation is carried out according to the reset command that upgrading servicing unit is sent.
4. remote automatic upgrading system according to claim 1, it is characterised in that the front end processor communicates including front end processor 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 terminal The COM1 of equipment.
5. remote automatic upgrading system according to claim 1, it is characterised in that the upgrading servicing unit includes reading 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 after the completion of upgrading, 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.
6. a kind of remote automatic upgrading method, it is characterised in that it comprises the following steps:
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 described soft Whether part version information is recent software version;
If so, front end processor switches the COM1 of the terminal device, so that the terminal device communicates to connect with main website server;
If it is not, the terminal device address information is added in upgrading list by front end processor;
Upgrade servicing unit successively to carry out terminal device corresponding to the terminal device address information in the upgrading list Upgrading processing.
7. remote automatic upgrading method according to claim 6, it is characterised in that the upgrading servicing unit is successively to institute The step of terminal device corresponding to stating the terminal device address information in upgrading list carries out upgrading processing, 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.
8. remote automatic upgrading method according to claim 7, it is characterised in that the terminal device is according to the upgrading After data message carries out the step of updating operation, in addition to:
After the completion of updating terminal device, send upgrading and complete instruction to upgrading servicing unit;
Upgrading servicing unit completes instruction generation reset command according to upgrading, upgrades servicing unit by the reset command to terminal Equipment, 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.
9. remote automatic upgrading method according to claim 7, it is characterised in that the terminal device is according to the upgrading After data message carries out the step of updating operation, 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 is to this When terminal device carries out upgrading processing, continue to carry out upgrading processing to the terminal device according to the upgrading recording data information.
CN201410776067.4A 2014-12-15 2014-12-15 Remote automatic upgrading system and remote automatic upgrading method Active CN104579752B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410776067.4A CN104579752B (en) 2014-12-15 2014-12-15 Remote automatic upgrading system and remote automatic upgrading method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410776067.4A CN104579752B (en) 2014-12-15 2014-12-15 Remote automatic upgrading system and remote automatic upgrading method

Publications (2)

Publication Number Publication Date
CN104579752A CN104579752A (en) 2015-04-29
CN104579752B true CN104579752B (en) 2017-11-28

Family

ID=53095017

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410776067.4A Active CN104579752B (en) 2014-12-15 2014-12-15 Remote automatic upgrading system and remote automatic upgrading method

Country Status (1)

Country Link
CN (1) CN104579752B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105471873A (en) * 2015-11-27 2016-04-06 江苏省电力公司电力科学研究院 Universal secondary equipment constant value reading and writing system
CN105827461A (en) * 2016-05-13 2016-08-03 长沙威胜信息技术有限公司 Method for upgrading power line carrier communication module
CN107491294A (en) * 2017-04-21 2017-12-19 宝沃汽车(中国)有限公司 A kind of vehicle control device software version information control methods and system
US10261775B1 (en) * 2018-04-17 2019-04-16 Hewlett Packard Enterprise Development Lp Upgrade orchestrator
CN109104308B (en) * 2018-08-01 2021-11-09 宁波三星智能电气有限公司 Route management method and upgrading system based on electric power terminal upgrading
CN110633094B (en) * 2019-10-22 2023-06-27 宁波三星医疗电气股份有限公司 Remote upgrading method for power terminal, main station and power system
CN112083939A (en) * 2019-12-31 2020-12-15 蓝桥赛维科技(北京)有限公司 Batch upgrading method, device, system and medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100385855C (en) * 2006-03-31 2008-04-30 华为技术有限公司 System and its method for central remote automatic upgrading software
CN100461699C (en) * 2006-06-28 2009-02-11 华为技术有限公司 Method for automatic updating of equipment
CN101727338B (en) * 2008-08-15 2012-12-26 北京北大众志微系统科技有限责任公司 Parallel upgrade method and application system for network computer
CN101610604A (en) * 2009-06-18 2009-12-23 中兴通讯股份有限公司 A kind of method for upgrading software and system
CN102427466A (en) * 2011-08-24 2012-04-25 厦门雅迅网络股份有限公司 Long-distance updating system and long-distance software automatic updating method based on same
CN103207791B (en) * 2012-01-17 2016-03-02 深圳市宏电技术股份有限公司 Remote upgrade method, system and data terminal

Also Published As

Publication number Publication date
CN104579752A (en) 2015-04-29

Similar Documents

Publication Publication Date Title
CN104579752B (en) Remote automatic upgrading system and remote automatic upgrading method
JP6024288B2 (en) Information processing system and external device
CN101739287A (en) Device, system and method for managing virtual machines
US20110145620A1 (en) Method of using power supply to perform far-end monitoring of electronic system
CN101795205A (en) Method and system for upgrading terminal
CN107707405A (en) The method and its remote control that intelligent closestool firmware remotely updates are realized by remote control
CN105338707B (en) Method for controlling street lamps, apparatus and system
WO2004002063A1 (en) A network management centralization alarm box and alarm processing method
CN106534364A (en) Method for restoring factory settings of gateway and gateway
CN101751265A (en) Updating system of basic input/output system of server and method thereof
CN104243577A (en) Electronic device having automatic networking function and automatic networking method
CN104185966A (en) Network alarm method and device
CN109032673A (en) Automatically reply the method and computer system of basic input output system image shelves
CN207924482U (en) A kind of numerical control industrial personal computer net connection interaction systems
US20150263518A1 (en) Shutdown controlling method for power system
CN105722082A (en) Method for intelligent equipment to obtain operation network configuration by using access point function
CN105356592B (en) A kind of intelligent power supply and method of uninterrupted power system
CN103685553A (en) Method and system for establishing connection between mobile equipment
CN104698948B (en) The screen system of industry second and master control system of a kind of automation equipment
CN106982081B (en) Bluetooth equipment information configuration method and system
CN105783178A (en) Control method for air-conditioner integrated controller
CN110784365A (en) Standby device of station control layer and entity device of transformer substation and automatic online method thereof
CN114860317A (en) Core board control method and device, carrier board, core board, server and medium
JP2018191146A (en) Information processing unit, information processing method and program
CN104898463A (en) Multi-component program processing method and system for air conditioning system

Legal Events

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

Effective date of registration: 20240126

Address after: 518000 room 425, building 1, high tech park, guangqiao Road, Tianliao community, Yutang street, Guangming District, Shenzhen, Guangdong Province

Patentee after: SHENZHEN CLOU ELECTRONICS Co.,Ltd.

Country or region after: China

Address before: 330000 east of Chuangxin 2nd Road, south of aixihu 4th Road and west of Chuangxin 3rd road in Nanchang hi tech Industrial Development Zone, Jiangxi Province

Patentee before: NANCHANG KELU SMART GRID TECHNOLOGY CO.,LTD.

Country or region before: China