CN107832079A - Method and device for upgrading oil-gas well monitor and computer readable storage medium - Google Patents
Method and device for upgrading oil-gas well monitor and computer readable storage medium Download PDFInfo
- Publication number
- CN107832079A CN107832079A CN201711130387.2A CN201711130387A CN107832079A CN 107832079 A CN107832079 A CN 107832079A CN 201711130387 A CN201711130387 A CN 201711130387A CN 107832079 A CN107832079 A CN 107832079A
- Authority
- CN
- China
- Prior art keywords
- data packet
- upgrading data
- oil
- upgrading
- gas well
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 170
- 238000003860 storage Methods 0.000 title claims abstract description 23
- 238000012795 verification Methods 0.000 claims abstract description 43
- 238000012790 confirmation Methods 0.000 claims abstract description 12
- 230000005540 biological transmission Effects 0.000 claims description 36
- 238000012545 processing Methods 0.000 claims description 13
- 238000004590 computer program Methods 0.000 claims description 8
- 230000003362 replicative effect Effects 0.000 claims description 8
- 230000009191 jumping Effects 0.000 claims description 5
- 238000012360 testing method Methods 0.000 abstract description 4
- 239000002699 waste material Substances 0.000 abstract description 4
- 238000005516 engineering process Methods 0.000 description 8
- 238000004891 communication Methods 0.000 description 7
- 230000001174 ascending effect Effects 0.000 description 5
- 230000006870 function Effects 0.000 description 5
- 230000007812 deficiency Effects 0.000 description 3
- 238000012544 monitoring process Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000007689 inspection Methods 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 239000007787 solid Substances 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005194 fractionation Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000011020 pilot scale process Methods 0.000 description 1
- 230000010076 replication Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Landscapes
- Stored Programmes (AREA)
Abstract
The invention discloses an upgrading method and device of an oil-gas well monitor and a computer readable storage medium, and belongs to the technical field of oil-gas well automation. The method comprises the following steps: and when an upgrading command sent by the server is received, skipping from the currently running system application program to a system upgrading guide control program, and sending a confirmation upgrading command to the server through the system upgrading guide control program. And when an upgrading data packet sent by the server is received, carrying out validity verification on the upgrading data packet through a system upgrading guidance control program. When the validity of the upgrading data packet passes verification, the upgrading data packet is tried to be operated in the SRAM of the upgrading system through a system upgrading guide control program. When the upgrading data packet successfully runs in the SRAM in a pilot test mode, the system application program of the oil-gas well monitor is upgraded through the system upgrading guide control program based on the upgrading data packet, upgrading efficiency of the system application program is improved, and waste of human resources is avoided.
Description
Technical field
The present invention relates to Oil/gas Well technical field of automation, more particularly to a kind of upgrade method of Oil/gas Well monitor, dress
Put and computer-readable recording medium.
Background technology
In the production process of Oil/gas Well, for the ease of Automated condtrol and management, generally use Oil/gas Well monitor pair
The production status of Oil/gas Well is monitored.However, due to the self-defect of system application in Oil/gas Well monitor, Huo Zhe
, it is necessary to system application to Oil/gas Well monitor when needing to increase New function to meet other monitoring demands in later stage use
Upgraded.
Traditional upgrade method is to go to every mouthful of Oil/gas Well that needs upgrade by technical staff, is taking the electric of Oil/gas Well apart
After switch board, the system application packet after renewal is downloaded to by Oil/gas Well by special application program download tool and supervised
In MCU (Microcontroller Unit, the micro-control unit) chip for controlling device, realizing should to the system on Oil/gas Well monitor
With the upgrading of program.
However, because most of Oil/gas Well is in outlying district, and the distance between adjacent two mouthfuls of Oil/gas Wells are farther out, logical
When crossing traditional upgrade method the system application of Oil/gas Well monitor being upgraded, it is low to cause to upgrade efficiency, technology people
Member's workload is big, causes the waste of human resources.In addition, the system application of Oil/gas Well monitor is carried out in technical staff
During upgrading, operational error or rainy weather due to technical staff easily cause the damage of Oil/gas Well monitor, so as to cause through
Ji loss.
The content of the invention
In order to solve in the system application escalation process of Oil/gas Well monitor, upgrading efficiency is low, technical staff's work
Work amount is big, and the problems such as waste of human resource, the embodiments of the invention provide a kind of upgrade method and device of Oil/gas Well monitor.
The technical scheme is as follows:
First aspect, there is provided a kind of upgrade method of Oil/gas Well monitor, methods described include:
When receiving the upgrade command of server transmission, system is jumped to from the system application being currently running
Upgrade Boot control procedures, and sent by the system upgrade Boot control procedures to the server and confirm upgrade command;
When receiving the upgrading data packet that the server is sent, by the system upgrade Boot control procedures to institute
State upgrading data packet and carry out legitimate verification, the upgrading data packet is after the server receives the confirmation upgrade command
Send;
When the upgrading data packet legitimate verification by when, by the system upgrade Boot control procedures in oil gas
Test run in the SRAM (Static Random Access Memory, SRAM) that the MCU chip of well monitor carries
The row upgrading data packet;
When upgrading data packet trial operation success in the SRAM, pass through the system upgrade Boot control procedures
The system application of the Oil/gas Well monitor is upgraded based on the upgrading data packet.
Alternatively, the program storage area of the Oil/gas Well monitor includes application program boot section, and the application program is drawn
Area is led to be used to store the system upgrade Boot control procedures;
It is described to jump to system upgrade Boot control procedures from the system application being currently running, including:
Terminate the system application being currently running, and obtain and run described from the application program boot section
System upgrade Boot control procedures, the system upgrade Boot control procedures are jumped to from the system application to realize.
Alternatively, the program storage area of the Oil/gas Well monitor also includes the first application program memory block and the second application
Program storage area, the first application program memory block is used for the system application for storing the Oil/gas Well monitor, described
Second application program memory block is used to store the upgrading data packet;
It is described when receiving the upgrading data packet that the server is sent, pass through the system upgrade Boot control procedures
Legitimate verification is carried out to the upgrading data packet, including:
When receiving the upgrading data packet that the server is sent, by the system upgrade Boot control procedures by institute
Upgrading data packet is stated to store into the second application program memory block;
The ascending series in the second application program memory block are replicated by the system upgrade Boot control procedures
Legitimate verification is carried out according to bag, and to the upgrading data packet that duplication obtains;
Correspondingly, it is described to be based on the upgrading data packet to the Oil/gas Well by the system upgrade Boot control procedures
The system application of monitor is upgraded, including:
The system application that will be stored by the system upgrade Boot control procedures in the first application program memory block
Program replaces with the upgrading data packet for replicating and obtaining, to complete the liter of the system application of the Oil/gas Well monitor
Level.
Alternatively, it is described to be carried in the MCU chip of Oil/gas Well monitor by the system upgrade Boot control procedures
In SRAM after upgrading data packet described in trial operation, in addition to:
When trial operation fails the upgrading data packet in the SRAM, start timing;
When timing duration reaches preset duration, restarted, and rerun jumping to the system after restart
The system application run before upgrading Boot control procedures.
Alternatively, the upgrading data packet includes multiframe packet, and the multiframe packet is the server to described
Upgrading data packet is split what is obtained, and the multiframe packet is with TCP/IP (Transmission Control
Protocol/Internet Protocol, transmission control protocol/internet protocol) agreement transmission.
Second aspect, there is provided a kind of update device of Oil/gas Well monitor, described device include:
Jump module, for when receive server transmission upgrade command when, from the system application being currently running
Programming jump is sent to system upgrade Boot control procedures, and by the system upgrade Boot control procedures to the server
Confirm upgrade command;
Authentication module, for when receiving the upgrading data packet that the server is sent, being drawn by the system upgrade
Lead control program and legitimate verification is carried out to the upgrading data packet, the upgrading data packet is described in the server receives
Sent after confirmation upgrade command;
Commissioned module, for when the upgrading data packet legitimate verification by when, drawn by the system upgrade
Lead control program upgrading data packet described in trial operation in the SRAM that the MCU chip of Oil/gas Well monitor carries;
Upgraded module, for when upgrading data packet trial operation success in the SRAM, passing through the system liter
Level Boot control procedures are upgraded based on the upgrading data packet to the system application of the Oil/gas Well monitor.
Alternatively, the program storage area of the Oil/gas Well monitor includes application program boot section, and the application program is drawn
Area is led to be used to store the system upgrade Boot control procedures;
The jump module is mainly used in:
Terminate the system application being currently running, and obtain and run described from the application program boot section
System upgrade Boot control procedures, the system upgrade Boot control procedures are jumped to from the system application to realize.
Alternatively, the program storage area of the Oil/gas Well monitor also includes the first application program memory block and the second application
Program storage area, the first application program memory block is used for the system application for storing the Oil/gas Well monitor, described
Second application program memory block is used to store the upgrading data packet;
The authentication module includes:
Memory cell, for when receiving the upgrading data packet that the server is sent, being drawn by the system upgrade
Control program is led to store the upgrading data packet into the second application program memory block;
Authentication unit, for being replicated by the system upgrade Boot control procedures in the second application program memory block
The upgrading data packet, and legitimate verification is carried out to the obtained upgrading data packet of duplication;
Correspondingly, the upgraded module is mainly used in:
The system application that will be stored by the system upgrade Boot control procedures in the first application program memory block
Program replaces with the upgrading data packet for replicating and obtaining, to complete the liter of the system application of the Oil/gas Well monitor
Level.
Alternatively, described device also includes:
Timing module, for when trial operation fails the upgrading data packet in the SRAM, starting timing;
Module is restarted, for when timing duration reaches preset duration, being restarted, and rerun jumping after restart
The system application run is gone to before the system upgrade Boot control procedures.
Alternatively, the upgrading data packet includes multiframe packet, and the multiframe packet is the server to described
Upgrading data packet is split what is obtained, and the multiframe packet is transmitted with ICP/IP protocol.
The third aspect, there is provided a kind of computer-readable recording medium, the storage medium internal memory contain computer program,
The computer program realizes any described method that above-mentioned first aspect provides when being executed by processor.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:In the embodiment of the present invention, in order to realize pair
The remote upgrade of the system application of Oil/gas Well monitor, reduce the workload of technical staff, server can received
During the upgrade command of transmission, system upgrade Boot control procedures are jumped to from the system application being currently running, and lead to
Cross system upgrade Boot control procedures and sent to server and confirm upgrade command.When the upgrading data packet for receiving server transmission
When, the legitimacy of the upgrading data packet is verified by system upgrade Boot control procedures, to avoid packet imperfect
When, cause system application upgrading failure.When the upgrading data packet legitimate verification by when, guided by system upgrade
Control program trial operation upgrading data packet in the SRAM that the MCU chip of Oil/gas Well monitor carries, to detect the ascending series
According to the compatibility between bag and other operation programs, incompatible or conflict phenomenon is avoided the occurrence of, causes system application to upgrade
Failure.When upgrading data packet trial operation success in sram, the ascending series are based on by system upgrade Boot control procedures
The system application of Oil/gas Well monitor is upgraded according to bag, it is achieved thereby that the system application of Oil/gas Well monitor
Remote upgrade, improve the upgrading efficiency of the system application of Oil/gas Well monitor, reduce the workload of technical staff,
It also avoid because technical staff's maloperation or rainy weather damage caused by Oil/gas Well monitor.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, make required in being described below to embodiment
Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for
For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings
Accompanying drawing.
Fig. 1 is a kind of structural representation of the upgrade-system of Oil/gas Well monitor provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic flow sheet of the upgrade method of Oil/gas Well monitor provided in an embodiment of the present invention;
Fig. 3 A are the schematic flow sheets of the upgrade method of another Oil/gas Well monitor provided in an embodiment of the present invention;
Fig. 3 B are a kind of distributed architecture schematic diagrames of program storage area provided in an embodiment of the present invention;
Fig. 4 A are the structural representations of the update device of the first Oil/gas Well monitor provided in an embodiment of the present invention;
Fig. 4 B are the structural representations of the update device of second of Oil/gas Well monitor provided in an embodiment of the present invention;
Fig. 4 C are the structural representations of the update device of the third Oil/gas Well monitor provided in an embodiment of the present invention;
Fig. 5 is the structural representation of the update device of the 4th kind of Oil/gas Well monitor provided in an embodiment of the present invention.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention
Formula is described in further detail.
Before detailed explanation is carried out to the embodiment of the present invention, the first system to being related in the embodiment of the present invention
Framework is explained respectively.
Fig. 1 is a kind of structural representation of the upgrade-system of Oil/gas Well monitor provided in an embodiment of the present invention, referring to figure
1, the system includes server 1 and multiple Oil/gas Well monitors 2.Server 1 is respectively with multiple Oil/gas Well monitors 2 by wireless
Network or cable network are communicated.Server 1 is used for when receiving the upgrade command of Oil/gas Well monitor successively to each
Oil/gas Well monitor 2 sends upgrade command, and sends upgrading when receiving the confirmation upgrade command of the feedback of Oil/gas Well monitor 2
Packet is to Oil/gas Well monitor 2;Oil/gas Well monitor 2 is used for when receiving the upgrade command of the transmission of server 1, to oil gas
The system application of well monitor 2 is upgraded.
Wherein, server 1 can be an independent server or server cluster etc..Server 1 and oil
It can be communicated between gas well monitor 2 based on ICP/IP protocol by interchanger, naturally it is also possible to based on ICP/IP protocol
Communicated by router.
Fig. 2 is a kind of schematic flow sheet of the upgrade method of Oil/gas Well monitor provided in an embodiment of the present invention.Referring to figure
2, this method comprises the following steps.
Step 201:When receiving the upgrade command of server transmission, jumped from the system application being currently running
System upgrade Boot control procedures are gone to, and is sent by system upgrade Boot control procedures to server and confirms upgrade command.
Step 202:When receiving the upgrading data packet of server transmission, by system upgrade Boot control procedures to this
Upgrading data packet carries out legitimate verification, and the upgrading data packet is to be sent after server receives the confirmation upgrade command.
Step 203:When the upgrading data packet legitimate verification by when, by system upgrade Boot control procedures in oil
Trial operation upgrading data packet in the SRAM that the MCU chip of gas well monitor carries.
Step 204:When upgrading data packet trial operation success in sram, pass through system upgrade Boot control procedures base
The system application of Oil/gas Well monitor is upgraded in the upgrading data packet.
In the embodiment of the present invention, in order to realize the remote upgrade of the system application to Oil/gas Well monitor, reduce skill
The workload of art personnel, can be when receiving the upgrade command of server transmission, from the system application journey being currently running
Sequence jumps to system upgrade Boot control procedures, and is sent by system upgrade Boot control procedures to server and confirm upgrading life
Order.When receiving the upgrading data packet of server transmission, by system upgrade Boot control procedures to the upgrading data packet
Legitimacy verified, during avoiding packet imperfect, causes system application upgrading failure.When the upgrading data packet
Legitimate verification by when, by system upgrade Boot control procedures in the SRAM carried the trial operation upgrading data packet, with
The compatibility between the upgrading data packet and other operation programs is detected, incompatible or conflict phenomenon is avoided the occurrence of, causes system
Application program updating fails.When upgrading data packet trial operation success in sram, pass through system upgrade Boot control procedures
The system application of Oil/gas Well monitor is upgraded based on the upgrading data packet, it is achieved thereby that Oil/gas Well monitor
The remote upgrade of system application, the upgrading efficiency of the system application of Oil/gas Well monitor is improved, reduces technology
The workload of personnel, it is thus also avoided that because technical staff's maloperation or rainy weather damage caused by Oil/gas Well monitor.
Alternatively, the program storage area of Oil/gas Well monitor includes application program boot section, and application program boot section is used for
Storage system upgrades Boot control procedures;
System upgrade Boot control procedures are jumped to from the system application being currently running, including:
Terminate the system application being currently running, and simultaneously runtime upgrading is obtained from application program boot section
Boot control procedures, system upgrade Boot control procedures are jumped to from system application to realize.
Alternatively, the program storage area of Oil/gas Well monitor also includes the first application program memory block and the second application program
Memory block, the first application program memory block are used for the system application for storing Oil/gas Well monitor, the storage of the second application program
Area is used to store the upgrading data packet;
When receiving the upgrading data packet of server transmission, by system upgrade Boot control procedures to the upgrading data
Bag carries out legitimate verification, including:
When receiving the upgrading data packet of server transmission, by system upgrade Boot control procedures by the upgrading data
Bag is stored into the second application program memory block;
The upgrading data packet in the second application program memory block is replicated by system upgrade Boot control procedures, and to multiple
The upgrading data packet being made carries out legitimate verification;
Correspondingly, should to the system of Oil/gas Well monitor based on the upgrading data packet by system upgrade Boot control procedures
Upgraded with program, including:
The system application stored in the first application program memory block is replaced by system upgrade Boot control procedures
To replicate the obtained upgrading data packet, to complete the upgrading of the system application of Oil/gas Well monitor.
Alternatively, the SRAM pilot scales carried by system upgrade Boot control procedures in the MCU chip of Oil/gas Well monitor
After running the upgrading data packet, in addition to:
When trial operation fails the upgrading data packet in sram, start timing;
When timing duration reaches preset duration, restarted, and rerun jumping to system upgrade after restart
The system application run before Boot control procedures.
Alternatively, the upgrading data packet includes multiframe packet, and the multiframe packet is server to the upgrading data packet
Split what is obtained, and the multiframe packet is transmitted with ICP/IP protocol.
Above-mentioned all optional technical schemes, can form the alternative embodiment of the present invention according to any combination, and the present invention is real
Example is applied no longer to repeat this one by one.
Fig. 3 A are a kind of schematic flow sheets of the upgrade method of Oil/gas Well monitor provided in an embodiment of the present invention.Referring to figure
3A, for the upgrade method of each Oil/gas Well monitor, this method comprises the following steps.
Step 301:Server sends upgrade command to Oil/gas Well monitoring server.
During the use of Oil/gas Well monitor, when technical staff has found the system application of Oil/gas Well monitor not
It is sufficient for currently to the part monitoring function of Oil/gas Well, and exists in server relative to system application more recent version
During upgrading data packet, the upgrade command of system application can be triggered by predetermined registration operation.When server gets technology people
During the upgrade command of member's triggering, the upgrade command got is sent to Oil/gas Well monitor.
Certainly, server can also get upgrade command by other means, such as, server is receiving ascending series
After the version number of bag, the version number of the upgrading data packet can be sent to Oil/gas Well monitor, when Oil/gas Well monitor is true
When the version number of the fixed upgrading data packet is higher than the version number of system application, upgrade request can be sent to server, this
When, server can generate the upgrade command of system application based on the upgrade request, and the upgrade command of generation is sent
To Oil/gas Well monitor.
Wherein, the predetermined registration operation can be clicked, double-click or slide, in the escalation process of Oil/gas Well monitor, by
It is distant between Oil/gas Well, cause the upgrading efficiency of the system application of Oil/gas Well monitor low, waste of human resource,
Therefore the remote upgrade to Oil/gas Well monitor can be realized using ICP/IP protocol between server and Oil/gas Well monitor.
Wherein, based on ICP/IP protocol, server, which is sent to the frame format of the upgrade command of Oil/gas Well monitor, to be:Data frame head
(0x49 0x41 0x50)-start order (0x73 0x74 0x61)-tail frame (0x65 0x6e 0x64), such as, upgrade command
Can be:0x49 0x41 0x50 0x73 0x74 0x61 0x65 0x6e 0x64.
Step 302:When Oil/gas Well monitor receives the upgrade command of server transmission, it is from what is be currently running
System application program jumps to system upgrade Boot control procedures, and is sent really to server by system upgrade Boot control procedures
Recognize upgrade command.
When Oil/gas Well monitor receives the upgrade command of server transmission, in order to answer the system of Oil/gas Well monitor
Upgraded with program, system upgrade Boot control procedures can be jumped to from the system application being currently running, and
Sent by system upgrade Boot control procedures to server and confirm upgrade command, to be drawn by system upgrade Boot control procedures
Lead the upgrading completed to system application.
Wherein, based on ICP/IP protocol, system upgrade Boot control procedures are sent to the confirmation upgrade command of server
Frame format can be:Data frame head (0x49 0x41 0x50)-enter boot order (0x49 0x6e 0x74 0x6f 0x20
0x49 0x41 0x50)-tail frame (0x65 0x6e 0x64), such as, confirm that upgrade command can be: 0x49 0x41 0x50
0x49 0x6e 0x74 0x6f 0x20 0x49 0x41 0x50 0x65 0x6e 0x64。
The program storage area of Oil/gas Well monitor, that is to say the flash memory (FLASH) of Oil/gas Well monitor can include application
Program designation area, the first program storage area and the second program storage area, application program boot section are used for storage system upgrading guiding
Control program, the first application program memory block are used for the system application for storing Oil/gas Well monitor, and the second application program is deposited
Storage area is used to store the upgrading data packet.Because the distributed architecture of the program storage area of the MCU chip of Oil/gas Well monitor can be with
As shown in Figure 3 B, that is to say, the program storage area of the MCU chip of Oil/gas Well monitor, which includes to upgrade for storage system, to be guided
The application program boot section of control program.Therefore, can be with when Oil/gas Well monitor receives the upgrade command of server transmission
Terminate the system application being currently running, and simultaneously runtime upgrading guiding control is obtained from application program boot section
Program, system upgrade Boot control procedures are jumped to from system application to realize.
Step 303:After server receives the confirmation upgrade command, send and upgrade to system upgrade Boot control procedures
Packet.
Because the upgrading data packet can include multiframe packet, the multiframe packet is server to the upgrading data packet
Split what is obtained, and the multiframe packet is transmitted with ICP/IP protocol.Therefore, system upgrade is received in server
After the confirmation upgrade command that Boot control procedures are sent, every frame data bag in the multiframe packet can be assisted by TCP/IP
View is sent to system upgrade Boot control procedures.
Wherein, server can rise this according to the preset byte that every frame is sent before being sent to the upgrading data packet
DBMS bag splits into multiframe packet, if the last frame packet deficiency preset byte after splitting, the part of deficiency
It can have been mended with OxFF, the multiframe packet obtained for fractionation, the frame head and postamble of packet are added to every frame data bag, with
It is easy to the identification to the upgrading data packet.Wherein, preset byte can be pre-set, such as, the preset byte can be 1024
Byte etc., the embodiment of the present invention are limited this deficiency.
Wherein, based on ICP/IP protocol, server is sent to the frame of every frame data bag of system upgrade Boot control procedures
Form can be:Current which frame (accounting for 1 the byte-sized)-data totalframes of data frame head (0x49 0x41 0x50)-data
(accounting for 1 byte-sized)-data content (accounting for 1024 byte-sizeds)-tail frame (0x65 0x6e 0x64), such as, send the 3rd frame number
According to bag, 40 frame data bag altogether, the frame format for the 3rd frame data bag that server is sent can be 0x49 0x41 0x50 0x03
0x40 data contents (1024 byte) 0x65 0x6e 0x64.
Further, in the transmission process of every frame data bag, when server receives system upgrade in preset duration
During the reception success command that Boot control procedures are fed back based on the frame data bag, then server continues to send under the frame data bag
One frame data bag.Sent when server does not receive system upgrade Boot control procedures in preset duration based on the frame data bag
Reception success command when, then server continues to send the frame data bag, and the number that the frame data bag is sent when server reaches
During preset times, server stops sending a remaining at least frame data bag to system upgrade Boot control procedures.
Wherein, the preset duration and preset times can be configured in advance, such as, the preset duration can be 5 seconds, 10
Second or 15 seconds etc., the preset times can be that 5 times, 8 times or 10 are inferior, and the embodiment of the present invention is not limited this.Based on TCP/
IP agreement, when system upgrade Boot control procedures receive the frame data bag, the frame format of the reception success command of feedback can
Think:Current which frame (1 the byte)-data totalframes (1 byte) of data frame head (0x49 0x41 0x50)-data-correct life
Order mark (0x4F 0x4B)-option (0x01)-tail frame (0x65 0x6e 0x64), such as, respond the reception of the 3rd frame data bag
Success command can be: 0x49 0x41 0x50 0x03 0x40 0x4F 0x4B 0x01 0x65 0x6e 0x64;In system
When upgrading Boot control procedures do not receive the frame data bag, the frame format of the reception failure order of feedback can be:Data frame
Current which frame (1 byte) of head (0x49 0x41 0x50)-data-data totalframes (1 byte)-bad command mark
(0x4E 0x4F)-option (0x02)-tail frame (0x65 0x6e 0x64), such as, the reception for responding the 3rd frame data bag is successfully ordered
Making to be:0x49 0x41 0x50 0x03 0x40 0x4E 0x4F 0x02 0x65 0x6e 0x64.
When system upgrade Boot control procedures receive the upgrading data packet of server transmission, system upgrade can be passed through
Boot control procedures carry out legitimate verification to the upgrading data packet.Specifically, can be real with 304- steps 305 as follows
It is existing.
Step 304:, should by system upgrade Boot control procedures when receiving the upgrading data packet of server transmission
Upgrading data packet is stored into the second application program memory block.
Due to the program storage area of the MCU chip of Oil/gas Well monitor include for store upgrading data packet second should
With program storage area, therefore, the multiframe packet included for the upgrading data packet, received in system upgrade Boot control procedures
During to every frame data bag, the frame head and postamble of every frame data bag can be removed, and every frame data after frame head and postamble will be removed
Bag stores to the second application program memory block successively in order.
For the reception condition of every frame data bag, when system upgrade Boot control procedures receive the frame of server transmission
During packet, success command, and the next frame packet that the reception server is sent can be received to server feedback, is passed through simultaneously
The verification data bag that ICP/IP protocol carries verifies to the frame data bag, to verify the accuracy of frame data bag transmission;
When system upgrade Boot control procedures do not receive being somebody's turn to do for server transmission in the duration of preset times and preset duration product
During frame data bag, it can receive unsuccessfully to order to server feedback, and automatically from the system upgrade guiding control journey currently run
Sequence jumps to system application.
Step 305:The upgrading data in the second application program memory block are replicated by system upgrade Boot control procedures
Bag, and legitimate verification is carried out to the upgrading data packet that duplication obtains.
The frame number and data totalframes of currently transmitted data are carried in per frame data bag, when system upgrade guides control journey
Sequence receive the data of a frame data bag frame number it is identical with data totalframes when, then it is the upgrading data to confirm the frame data bag
The last frame packet of bag.In order to determine that it is whether complete that system upgrade Boot control procedures receive the upgrading data packet, it is
System upgrading Boot control procedures can replicate the upgrading data packet from the second application program memory block, calculate the upgrading data packet
Shared byte number, and the byte shared by the upgrading data packet that the byte number shared by the upgrading data packet and server are sent
Number is compared, to verify the legitimacy of the upgrading data packet stored in the second application program memory block.
When what the byte number shared by the upgrading data packet stored in the second application program memory block and server were sent is somebody's turn to do
When byte number shared by upgrading data packet is identical, determine that the legitimate verification of the upgrading data packet passes through;When the second application program
The byte number shared by the upgrading data packet that the byte number shared by the upgrading data packet stored in memory block is sent with server
When differing, determine that the legitimate verification of the upgrading data packet does not pass through.
It should be noted that in embodiments of the present invention, system upgrade Boot control procedures can receive server
The multiframe packet of transmission simultaneously stores the multiframe packet to the second application memory area, and this stored to the second memory block is more
Frame data bag carries out legitimate verification, that is to say and carries out legitimate verification to the upgrading data packet.Certainly, system upgrade guiding control
Processing procedure sequence can also carry out legitimate verification to the frame data bag when often receiving a frame data bag of server transmission, and
The frame data bag legitimate verification by rear, the frame data bag is stored to the second application memory area successively.When system liter
Level Boot control procedures are obstructed out-of-date to the legitimate verification of the frame data bag, can be to the hair of the server feedback frame data bag
Bad command is sent, the frame data bag is resend with request server.
Step 306:When the upgrading data packet legitimate verification by when, by system upgrade Boot control procedures in oil
Trial operation upgrading data packet in the SRAM that the MCU chip of gas well monitor carries.
When the upgrading data packet legitimate verification by when, it is complete packet to show the upgrading data packet, now,
In order to avoid the upgrading data packet conflicts with other application programs in Oil/gas Well monitor, so as to cause system application journey
The upgrading failure of sequence, therefore, before being upgraded based on the upgrading data packet to the system application of Oil/gas Well monitor,
The upgrading data packet for replicating to obtain from the second application program memory block can also be existed by system upgrade Boot control procedures
Trial operation is carried out in the SRAM that the MCU chip of Oil/gas Well monitor carries, to detect the upgrading data packet and oil gas by SRAM
The compatibility or other problemses of other applications in well monitor.
After the upgrading data packet in sram trial operation, if Oil/gas Well monitor can normally get the Oil/gas Well
Creation data or other data, then show the upgrading data packet in sram trial operation success;If Oil/gas Well monitor is not
The creation data or other data of the Oil/gas Well can be normally got, then shows that trial operation loses the upgrading data packet in sram
Lose.
In addition, the upgrading data packet legitimate verification by when, can to server send validity checking it is correct
Order.Wherein, correctly ordered to the validity checking that server is sent based on ICP/IP protocol, system upgrade Boot control procedures
Frame format can be:Data frame head (0x49 0x41 0x50)-procedural legality inspection mark (0x43 0x48)-correct life
Order mark (0x4F 0x4B)-option (0x03)-tail frame (0x65 0x6e 0x64), such as, validity checking bad command can be with
For:0x49 0x41 0x50 0x43 0x48 0x4F 0x4B 0x03 0x65 0x6e 0x64.
Further, when the upgrading data packet legitimate verification not by when, bootstrap is controlled by system upgrade
Validity checking bad command is sent to server, and stops the upgrading of system application in Oil/gas Well monitor, passes through and is
System upgrading control bootstrap guiding Oil/gas Well monitor runtime application program.Wherein, based on ICP/IP protocol, system liter
The frame format of validity checking bad command that level Boot control procedures are sent to server can be:Data frame head (0x49
0x41 0x50)-procedural legality inspection mark (0x43 0x48)-bad command mark (0x4E 0x4F)-option (0x04)-
Tail frame (0x65 0x6e 0x64), such as, validity checking bad command can be:0x49 0x41 0x50 0x43 0x48
0x4E 0x4F 0x04 0x65 0x6e 0x64。
It should be noted that when the upgrading data packet of the second application memory area storage is system upgrade Boot control procedures
To after every frame data bag progress legitimate verification of reception and when storing, it is complete data to show the upgrading data packet
Bag.At this point it is possible to ascending series that will directly be stored by system upgrade Boot control procedures from the second application program memory block
Trial operation is carried out in the SRAM carried according to packet replication to the MCU chip of Oil/gas Well monitor.
Step 307:When upgrading data packet trial operation success in sram, pass through system upgrade Boot control procedures base
The system application of Oil/gas Well monitor is upgraded in the upgrading data packet.
When upgrading data packet trial operation success in sram, show that the upgrading data packet can succeed and supervised in Oil/gas Well
Run in control device, now, Oil/gas Well monitor can jump to system upgrade guiding control journey from SRAM test run line program
Sequence, and the system application of Oil/gas Well monitor is carried out based on the upgrading data packet by system upgrade Boot control procedures
Upgrading.Answered because the program storage area of the MCU chip of Oil/gas Well monitor includes for the first of storage system applications program
With program storage area, therefore, the system application of Oil/gas Well monitor is being carried out by system upgrade Boot control procedures
During upgrading, specifically, the system stored in the first application program memory block can be answered by system upgrade Boot control procedures
The upgrading data packet for replicating and obtaining is replaced with program, to complete the upgrading of the system application of Oil/gas Well monitor.
In addition, after upgrading data packet trial operation success in sram, SRAM can also send trial operation to server
Success command.Wherein, the frame format of the trial operation success command sent based on ICP/IP protocol, SRAM to server can be:
Data frame head (0x49 0x41 0x50)-new application is in SRAM test runs line identifier (0x50 0x51)-correct order mark
Know (0x4E 0x4F)-option (0x05)-tail frame (0x65 0x6e 0x64), such as, trial operation success command can be:0x49
0x41 0x50 0x50 0x51 0x4F 0x4B 0x05 0x65 0x6e 0x64。
Further, when trial operation fails the upgrading data packet in sram, timing is started;When timing duration reaches pre-
If during duration, being restarted, and rerun what is run before system upgrade Boot control procedures are jumped to after restart
System application.
When the upgrading data packet is run unsuccessfully in sram, Oil/gas Well monitor is possibly can not be from SRAM trial operation
System upgrade Boot control procedures are jumped in failure program, and then can not the first application program of normal operation memory block storage
System application.Therefore, can be by Oil/gas Well monitor for the acquisition to the well data such as Oil/gas Well creation data
Timing module carries out timing, and when timing duration reaches preset duration, Oil/gas Well monitor is restarted.Supervised in Oil/gas Well
After control is thought highly of newly, Oil/gas Well monitor can give tacit consent to the system application stored in the first application memory area of operation and realize to oil
The acquisition of gas well data.
, can be with when needing to carry out remote upgrade to the system application of Oil/gas Well monitor in the embodiment of the present invention
Upgrade command is sent to Oil/gas Well monitor by server, the upgrade command of server transmission is received in Oil/gas Well monitor
When, system upgrade Boot control procedures are jumped to from the system application being currently running, and guide by system upgrade
Control program is sent to server confirms upgrade command.When server receives the confirmation of system upgrade Boot control procedures transmission
After upgrade command, the multiframe packet that the upgrading data packet includes is sent, the upgrading data packet received is stored to second
Application program memory block, and legitimate verification is carried out to the upgrading data packet of the second application memory area storage, to avoid data
When wrapping imperfect, cause system application upgrading failure.When the upgrading data packet legitimate verification by after, pass through system
Upgrade Boot control procedures trial operation upgrading data packet in the SRAM carried, avoid the upgrading data packet from being monitored with Oil/gas Well
In device other operation it is incompatible cause upgrading fail.When upgrading data packet trial operation success in sram, pass through system
Upgrading Boot control procedures are upgraded based on the upgrading data packet to the system application of Oil/gas Well monitor, realize oil
The remote upgrade of the system application of gas well monitor, improve the upgrading effect of the system application of Oil/gas Well monitor
Rate, reduce the workload of technical staff, it is thus also avoided that because technical staff's maloperation or rainy weather are made to Oil/gas Well monitor
Into damage.
Fig. 4 A are a kind of structural representations of the update device of Oil/gas Well monitor provided in an embodiment of the present invention.Referring to figure
4A, the device include:
Jump module 401:For when receiving the upgrade command of server transmission, being answered from the system being currently running
With programming jump to system upgrade Boot control procedures, and sent by system upgrade Boot control procedures to server and confirm to rise
Level order;
Authentication module 402, for when receiving the upgrading data packet of server transmission, being guided and being controlled by system upgrade
Program carries out legitimate verification to the upgrading data packet, and the upgrading data packet is to be sent out after server receives the confirmation upgrade command
Send;
Commissioned module 403, for when the upgrading data packet legitimate verification by when, pass through system upgrade guiding control
Processing procedure sequence trial operation upgrading data packet in the SRAM that the MCU chip of Oil/gas Well monitor carries;
Upgraded module 404, for when upgrading data packet trial operation success in sram, being guided and being controlled by system upgrade
Processing procedure sequence is upgraded based on the upgrading data packet to the system application of Oil/gas Well monitor.
Alternatively, the program storage area of Oil/gas Well monitor includes application program boot section, and application program boot section is used for
Storage system upgrades Boot control procedures;
Jump module 401 is mainly used in:
Terminate the system application being currently running, and simultaneously runtime upgrading is obtained from application program boot section
Boot control procedures, system upgrade Boot control procedures are jumped to from system application to realize.
Alternatively, the program storage area of Oil/gas Well monitor also includes the first application program memory block and the second application program
Memory block, the first application program memory block are used for the system application for storing Oil/gas Well monitor, the storage of the second application program
Area is used to store the upgrading data packet;
Referring to Fig. 4 B, authentication module 402 includes:
Memory cell 4021, for when receiving the upgrading data packet of server transmission, being guided and being controlled by system upgrade
Processing procedure sequence stores the upgrading data packet into the second application program memory block;
Authentication unit 4022, for replicating being somebody's turn to do in the second application program memory block by system upgrade Boot control procedures
Upgrading data packet, and legitimate verification is carried out to the upgrading data packet that duplication obtains;
Correspondingly, upgraded module 404 is mainly used in:
The system application stored in the first application program memory block is replaced by system upgrade Boot control procedures
To replicate the obtained upgrading data packet, to complete the upgrading of the system application of Oil/gas Well monitor.
Alternatively, also include referring to Fig. 4 C, device:
Timing module 405, for when trial operation fails the upgrading data packet in sram, starting timing;
Module 406 is restarted, for when timing duration reaches preset duration, being restarted, and rerun after restart
The system application run before system upgrade Boot control procedures are jumped to.
Alternatively, the upgrading data packet includes multiframe packet, and the multiframe packet is server to the upgrading data packet
Split what is obtained, and the multiframe packet is transmitted with ICP/IP protocol.
In the embodiment of the present invention, in order to realize the remote upgrade of the system application to Oil/gas Well monitor, reduce skill
The workload of art personnel, can be when receiving the upgrade command of server transmission, from the system application journey being currently running
Sequence jumps to system upgrade Boot control procedures, and is sent by system upgrade Boot control procedures to server and confirm upgrading life
Order.When receiving the upgrading data packet of server transmission, by system upgrade Boot control procedures to the upgrading data packet
Legitimacy verified, during avoiding packet imperfect, causes system application upgrading failure.When the upgrading data packet
Legitimate verification by when, by system upgrade Boot control procedures in the SRAM that the MCU chip of Oil/gas Well monitor carries
The trial operation upgrading data packet, to detect the compatibility between the upgrading data packet and other operation programs, avoid the occurrence of not simultaneous
Perhaps conflict phenomenon, cause system application upgrading failure.When upgrading data packet trial operation success in sram, pass through
System upgrade Boot control procedures are upgraded based on the upgrading data packet to the system application of Oil/gas Well monitor, so as to
The remote upgrade of the system application of Oil/gas Well monitor is realized, improves the system application of Oil/gas Well monitor
Upgrade efficiency, reduce the workload of technical staff, it is thus also avoided that because technical staff's maloperation or rainy weather are supervised to Oil/gas Well
Damage caused by controlling device.
It should be noted that:The update device for the Oil/gas Well monitor that above-described embodiment provides enters to Oil/gas Well monitor
, can as needed will be above-mentioned only with the division progress of above-mentioned each functional module for example, in practical application during row upgrading
Function distribution is completed by different functional module, i.e., the internal structure of equipment is divided into different functional modules, with complete with
The all or part of function of upper description.In addition, the update device and Oil/gas Well of the Oil/gas Well monitor that above-described embodiment provides
The upgrade method embodiment of monitor belongs to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
Fig. 5 is a kind of structural representation of the update device 500 of the Oil/gas Well monitor provided according to embodiments of the present invention.
Referring to Fig. 5, the device 500 in the embodiment of the present invention can include one or more such as lower component:Processor 510, memory
520th, communication component 530 and multimedia groupware 540 etc..
Processor 510
Processor 510 can include one or more processing core.Processor 510 can with it is each in device 500
Part interaction, by running or performing the instruction being stored in memory 520, program, code set or instruction set, and call and deposit
Store up the data in memory 520, the various functions and processing data of performs device 500.Alternatively, processor 510 can be adopted
With Digital Signal Processing (Digital Signal Processing, DSP), field programmable gate array (Field-
Programmable Gate Array, FPGA), in programmable logic array (Programmable Logic Array, PLA)
At least one example, in hardware realize.Processor 510 can integrating central processor (Central Processing Unit,
CPU), one or more of groups in image processor (Graphics Processing Unit, GPU) and modem etc.
Close.Wherein, CPU mainly handles operating system, user interface and application program etc..
Memory 520
Memory 520 can store various types of data to support the operation in device 500.The example bag of these data
Include instruction, program, code and the meeting instruction set of any application program or method for operating on device 500.Alternatively, deposit
Reservoir 520 can include random access memory (Random Access Memory, RAM), read-only storage (Read-Only
Memory), non-transient computer-readable medium (non-transitory computer-readable storage
Medium) etc..
Communication component 530
Communication component 530 can make to be communicated by wired or wireless way between device 500 and other equipment.Device
500 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary implementation
In example, communication component 530 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.
Alternatively, near-field communication (NFC) module can be included in communication component 530, the NFC module can be based on radio frequency identification (RFID) skill
Art, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, bluetooth (BT) technology and other technologies are realized.
Multimedia groupware 540
Multimedia groupware 540 is included in the display screen of one output interface of offer between device 500 and user.At some
In embodiment, display screen can include liquid crystal display (LCD) and touch panel (TP).Display screen can receive user and use hand
Touch operation of any suitable object such as finger, felt pen on or near it, to receive the input signal from user.It is optional
Ground, multimedia groupware 540 can also include a front camera and/or rear camera etc..
It should also be noted that, the it will be understood by those skilled in the art that structure of the device 500 shown by above-mentioned accompanying drawing
The not restriction of structure twin installation 500, device 500 can be included than illustrating more or less parts, or some portions of combination
Part, or different parts arrangement.For example radio circuit, all kinds of drive modules, sensor, sound can also be included in device 500
The parts such as frequency circuit, Wireless Fidelity (Wireless Fidelity, WiFi) module, power supply, bluetooth module, it is no longer superfluous herein
State.In the exemplary embodiment, device 500 can be by one or more application specific integrated circuits (ASIC), controller, micro-
Controller, microprocessor or other electronic components etc. are realized, for performing the side of above-mentioned Fig. 2 or Fig. 3 A illustrated embodiments offer
Method.
In the above-described embodiments, a kind of non-transitorycomputer readable storage medium including instructing is additionally provided, it is optional
Ground, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, magnetic medium
(such as:Floppy disk, hard disk, tape), optical data storage devices or semiconductor medium (such as:Solid state hard disc (Solid State
Disk, SSD)) etc..The storage medium internal memory contains computer program, can be with when the computer program is executed by processor
Realize that above-mentioned Fig. 2 or Fig. 3 A illustrated embodiments provide wholly or partly by software, hardware, firmware or its any combination
Method.When implemented in software, can realize in the form of a computer program product whole or in part.The computer
Program product includes one or more computer instructions.The computer instruction can be stored in computer-readable recording medium
In, or the transmission from a computer-readable recording medium to another computer-readable recording medium.
One of ordinary skill in the art will appreciate that hardware can be passed through by realizing all or part of step of above-described embodiment
To complete, by program the hardware of correlation can also be instructed to complete, described program can be stored in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and
Within principle, any modification, equivalent substitution and improvements made etc., it should be included in the scope of the protection.
Claims (10)
1. a kind of upgrade method of Oil/gas Well monitor, it is characterised in that methods described includes:
When receiving the upgrade command of server transmission, system upgrade is jumped to from the system application being currently running
Boot control procedures, and sent by the system upgrade Boot control procedures to the server and confirm upgrade command;
When receiving the upgrading data packet that the server is sent, by the system upgrade Boot control procedures to the liter
DBMS bag carries out legitimate verification, and the upgrading data packet is to be sent after the server receives the confirmation upgrade command
's;
When the upgrading data packet legitimate verification by when, by the system upgrade Boot control procedures Oil/gas Well supervise
Upgrading data packet described in trial operation in the SRAM SRAM that the micro-control unit MCU chip of control device carries;
When upgrading data packet trial operation success in the SRAM, it is based on by the system upgrade Boot control procedures
The upgrading data packet upgrades to the system application of the Oil/gas Well monitor.
2. the method as described in claim 1, it is characterised in that the program storage area of the Oil/gas Well monitor includes applying journey
Sequence boot section, the application program boot section are used to store the system upgrade Boot control procedures;
It is described to jump to system upgrade Boot control procedures from the system application being currently running, including:
Terminate the system application being currently running, and obtained from the application program boot section and run the system
Upgrade Boot control procedures, the system upgrade Boot control procedures are jumped to from the system application to realize.
3. method as claimed in claim 1 or 2, it is characterised in that the program storage area of the Oil/gas Well monitor also includes
First application program memory block and the second application program memory block, the first application program memory block are used to store the oil gas
The system application of well monitor, the second application program memory block are used to store the upgrading data packet;
It is described when receiving the upgrading data packet that the server is sent, by the system upgrade Boot control procedures to institute
State upgrading data packet and carry out legitimate verification, including:
When receiving the upgrading data packet that the server is sent, by the system upgrade Boot control procedures by the liter
DBMS bag is stored into the second application program memory block;
The upgrading data packet in the second application program memory block is replicated by the system upgrade Boot control procedures,
And legitimate verification is carried out to the upgrading data packet that duplication obtains;
Correspondingly, it is described that the Oil/gas Well is monitored based on the upgrading data packet by the system upgrade Boot control procedures
The system application of device is upgraded, including:
The system application that will be stored by the system upgrade Boot control procedures in the first application program memory block
The upgrading data packet for replicating and obtaining is replaced with, to complete the upgrading of the system application of the Oil/gas Well monitor.
4. the method as described in claim 1, it is characterised in that it is described by the system upgrade Boot control procedures in oil gas
In the SRAM SRAM that the MCU chip of well monitor carries after upgrading data packet described in trial operation, in addition to:
When trial operation fails the upgrading data packet in the SRAM, start timing;
When timing duration reaches preset duration, restarted, and rerun jumping to the system upgrade after restart
The system application run before Boot control procedures.
5. the method as described in claim 1, it is characterised in that the upgrading data packet includes multiframe packet, the multiframe
Packet is that the server is split to obtain to the upgrading data packet, and the multiframe packet is to transmit control
Agreement/Internet protocol ICP/IP protocol transmission.
6. a kind of update device of Oil/gas Well monitor, it is characterised in that described device includes:
Jump module, for when receive server transmission upgrade command when, from the system application being currently running
System upgrade Boot control procedures are jumped to, and is sent and confirmed to the server by the system upgrade Boot control procedures
Upgrade command;
Authentication module, for when receiving the upgrading data packet that the server is sent, being guided and being controlled by the system upgrade
Upgrading data packet described in processing procedure ordered pair carries out legitimate verification, and the upgrading data packet is that the server receives the confirmation
Sent after upgrade command;
Commissioned module, for when the upgrading data packet legitimate verification by when, pass through the system upgrade guiding control
Processing procedure sequence upgrading data packet described in trial operation in the SRAM SRAM that the MCU chip of Oil/gas Well monitor carries;
Upgraded module, for when upgrading data packet trial operation success in the SRAM, being drawn by the system upgrade
Control program is led to upgrade the system application of the Oil/gas Well monitor based on the upgrading data packet.
7. device as claimed in claim 6, it is characterised in that the program storage area of the Oil/gas Well monitor includes applying journey
Sequence boot section, the application program boot section are used to store the system upgrade Boot control procedures;
The jump module is mainly used in:
Terminate the system application being currently running, and obtained from the application program boot section and run the system
Upgrade Boot control procedures, the system upgrade Boot control procedures are jumped to from the system application to realize.
8. device as claimed in claims 6 or 7, it is characterised in that the program storage area of the Oil/gas Well monitor also includes
First application program memory block and the second application program memory block, the first application program memory block are used to store the oil gas
The system application of well monitor, the second application program memory block are used to store the upgrading data packet;
The authentication module includes:
Memory cell, for when receiving the upgrading data packet that the server is sent, being guided and being controlled by the system upgrade
Processing procedure sequence stores the upgrading data packet into the second application program memory block;
Authentication unit, for replicating the institute in the second application program memory block by the system upgrade Boot control procedures
Upgrading data packet is stated, and legitimate verification is carried out to the upgrading data packet that duplication obtains;
Correspondingly, the upgraded module is mainly used in:
The system application that will be stored by the system upgrade Boot control procedures in the first application program memory block
The upgrading data packet for replicating and obtaining is replaced with, to complete the upgrading of the system application of the Oil/gas Well monitor.
9. device as claimed in claim 6, it is characterised in that described device also includes:
Timing module, for when trial operation fails the upgrading data packet in the SRAM, starting timing;
Module is restarted, for when timing duration reaches preset duration, being restarted, and rerun jumping to after restart
The system application run before the system upgrade Boot control procedures.
10. a kind of computer-readable recording medium, it is characterised in that the storage medium internal memory contains computer program, described
Claim 1-5 any described methods are realized when computer program is executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711130387.2A CN107832079A (en) | 2017-11-15 | 2017-11-15 | Method and device for upgrading oil-gas well monitor and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711130387.2A CN107832079A (en) | 2017-11-15 | 2017-11-15 | Method and device for upgrading oil-gas well monitor and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107832079A true CN107832079A (en) | 2018-03-23 |
Family
ID=61654442
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711130387.2A Pending CN107832079A (en) | 2017-11-15 | 2017-11-15 | Method and device for upgrading oil-gas well monitor and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107832079A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114301888A (en) * | 2021-12-28 | 2022-04-08 | 复恒(重庆)科技有限公司 | Remote online autonomous upgrade diagnosis method |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101854393A (en) * | 2010-05-28 | 2010-10-06 | 积成电子股份有限公司 | Method for updating embedded system software |
CN103019788A (en) * | 2012-12-14 | 2013-04-03 | 上海邮政科学研究院 | Remote online upgrading method based on CAN (Controller Area Network) bus |
CN103324501A (en) * | 2013-05-28 | 2013-09-25 | 大连理工大学 | Efficient remote updating method for node software of wireless sensor network |
CN105117253A (en) * | 2015-08-27 | 2015-12-02 | 常州大学 | BootLoader based remote upgrade method for UV LED (Ultraviolet Light Emitting Diode) curing system |
CN106227572A (en) * | 2016-08-30 | 2016-12-14 | 深圳市蓝海华腾技术股份有限公司 | A kind of frequency converter control system programme upgrade method |
CN106569847A (en) * | 2016-10-14 | 2017-04-19 | 数源科技股份有限公司 | Method for realizing IAP remote upgrade through vehicle-mounted system based on mobile network |
-
2017
- 2017-11-15 CN CN201711130387.2A patent/CN107832079A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101854393A (en) * | 2010-05-28 | 2010-10-06 | 积成电子股份有限公司 | Method for updating embedded system software |
CN103019788A (en) * | 2012-12-14 | 2013-04-03 | 上海邮政科学研究院 | Remote online upgrading method based on CAN (Controller Area Network) bus |
CN103324501A (en) * | 2013-05-28 | 2013-09-25 | 大连理工大学 | Efficient remote updating method for node software of wireless sensor network |
CN105117253A (en) * | 2015-08-27 | 2015-12-02 | 常州大学 | BootLoader based remote upgrade method for UV LED (Ultraviolet Light Emitting Diode) curing system |
CN106227572A (en) * | 2016-08-30 | 2016-12-14 | 深圳市蓝海华腾技术股份有限公司 | A kind of frequency converter control system programme upgrade method |
CN106569847A (en) * | 2016-10-14 | 2017-04-19 | 数源科技股份有限公司 | Method for realizing IAP remote upgrade through vehicle-mounted system based on mobile network |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114301888A (en) * | 2021-12-28 | 2022-04-08 | 复恒(重庆)科技有限公司 | Remote online autonomous upgrade diagnosis method |
CN114301888B (en) * | 2021-12-28 | 2023-09-22 | 复恒(重庆)科技有限公司 | Remote online autonomous upgrade diagnosis method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105183515B (en) | The method and device of holder firmware upgrade | |
CN109445828A (en) | The upgrade method of vehicle-mounted terminal system | |
CN106302008A (en) | Data-updating method and device | |
CN101593119B (en) | Method and device for firmware over-the-air of exclusive flash memory combined equipment | |
CN106055373A (en) | Automatic batch upgrading device and method for unmanned aerial vehicle firmware | |
JP2018523434A (en) | Network service life cycle management method and device | |
CN101917567B (en) | Digital television terminal software upgrading method | |
US20140154648A1 (en) | Knowledge base in virtual mobile management | |
CN111796849A (en) | Firmware remote upgrading method and device | |
CN104125504B (en) | Deployment method, device and system based on continuous integration | |
CN105827428A (en) | Management method and device of asset information | |
CN110532009A (en) | A kind of smart machine upgrading management system and method | |
CN104615448A (en) | Software channel packet update method, management method and equipment | |
CN102624883A (en) | Interactive method for electronic digital signage terminal and management platform | |
CN109981360A (en) | Internet of things equipment website activating method, device, system and storage medium | |
CN105260082A (en) | Display method for test data and development terminal | |
CN108696475A (en) | A kind of distribution power automation terminal automatic registration method and device with safety certification | |
CN111400167A (en) | Redfish service compliance verification method, device, equipment and medium | |
CN110502261A (en) | The method and apparatus of program is controlled in a kind of update user equipment | |
CN104918280A (en) | Vehicle-mounted wireless equipment, train equipment wireless test system and method | |
CN105786636A (en) | System repairing method and device | |
CN107832079A (en) | Method and device for upgrading oil-gas well monitor and computer readable storage medium | |
CN104965747A (en) | Method and device for upgrading software | |
CN104506942B (en) | The upgrade method of set-top box and its cable modem system | |
CN103677845A (en) | Website application deployment method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180323 |