SE525945C2 - Program code exchange method for computerized drilling rig, stores original code for possible use if new code is found to contain errors - Google Patents
Program code exchange method for computerized drilling rig, stores original code for possible use if new code is found to contain errorsInfo
- Publication number
- SE525945C2 SE525945C2 SE0200049A SE0200049A SE525945C2 SE 525945 C2 SE525945 C2 SE 525945C2 SE 0200049 A SE0200049 A SE 0200049A SE 0200049 A SE0200049 A SE 0200049A SE 525945 C2 SE525945 C2 SE 525945C2
- Authority
- SE
- Sweden
- Prior art keywords
- program code
- version
- storage location
- drilling rig
- new
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Quality & Reliability (AREA)
- Stored Programmes (AREA)
- Computer And Data Communications (AREA)
Abstract
Description
IUII I I 000 o Il: 0010 ut! 0:a ..a BJ U1 införs i en fillagringsplats i borriggen. En viss version av programkoden lagras i ett första lagringsställe, och vid ned- laddning av en ny version av programkoden lagras denna i ett andra lagringsställe. Därigenom erhålles fördelen att en an- vändare kan återgå till den första versionen om nedladdningen av den nya versionen misslyckas, eller om programkoden inne- håller något fel. IUII I I 000 o Il: 0010 ut! 0 .. a ..a BJ U1 is introduced in a file storage place in the drilling rig. A certain version of the program code is stored in a first storage location, and when a new version of the program code is downloaded, it is stored in a second storage location. This gives the advantage that a user can return to the first version if the download of the new version fails, or if the program code contains an error.
I enlighet med en föredragen utföringsform, införs tre lag- ringsställen i nämnda fillagringsplats i borriggen. Därigenom kan en användare lagra en ny version i ett första lagrings- stàlle, testköra den nya versionen och om den fungerar till- fredstâllande, lagra denna nya version i ett andra lagrings- ställe. Den tidigare versionen av programkoden lagras då i ett tredje lagringsställe, varvid det första lagringsstället är tillgängligt för nedladdning av ytterligare en ny version av programkoden. Således finns tidigare versioner och nya versio- ner tillgängliga samtidigt, vilket ger en extra hög driftssä- kerhet genom minimering av risken för driftsavbrott på grund av icke fungerande programkod.In accordance with a preferred embodiment, three storage locations are introduced in said file storage location in the drilling rig. This allows a user to store a new version in a first storage location, test run the new version and, if it works satisfactorily, store this new version in a second storage location. The previous version of the program code is then stored in a third storage location, the first storage location being available for downloading another new version of the program code. Thus, previous versions and new versions are available at the same time, which provides an extra high level of operational reliability by minimizing the risk of operational interruptions due to non-functioning program code.
I enlighet med en annan föredragen utföringsform av förelig- gande uppfinning sker nedladdningen trådlöst. Därigenom kan överföringen av den nya programkoden genomföras på ett bekvämt sätt och t. ex. till ett flertal borriggar väsentligen samti- digt.In accordance with another preferred embodiment of the present invention, the download is wireless. Thereby, the transmission of the new program code can be carried out in a convenient manner and e.g. to a number of drilling rigs substantially simultaneously.
Föreliggande uppfinning avser även ett dylikt system.The present invention also relates to such a system.
Ytterligare fördelar uppnås genom olika aspekter av uppfin- ningen och kommer att framgà av följande detaljerade beskriv- ning. 71135; 02-01-09 10 15 20 IQID Û 000 0000 III 0 unc BJ U1 Kort beskrivning av ritningarna Fig. 1 visar en borrigg i vilken föreliggande uppfinning kan utnyttjas.Additional advantages are achieved through various aspects of the invention and will be apparent from the following detailed description. 71135; IQID Û 000 0000 III 0 unc BJ U1 Brief Description of the Drawings Fig. 1 shows a drilling rig in which the present invention can be used.
Pig. 2 visar schematiskt de Olika lagringsställena enligt fö- religgande uppfinning.Pig. 2 schematically shows the various storage locations according to the present invention.
Fig. 3 visar ett flödesdiagram över de olika stegen i metoden enligt föreliggande uppfinning.Fig. 3 shows a flow chart of the various steps in the method according to the present invention.
Detaljerad beskrivning av föredragna utföringsformer Enligt föreliggande uppfinning införs en fillagringsplats i en datoriserad borrigg 1, visad i fig. 1. Denna fillagringsplats läggs in i en eller flera elektronikenheter 2 belägna i den datoriserade borriggen 1.Detailed Description of Preferred Embodiments According to the present invention, a file storage location is inserted into a computerized drilling rig 1, shown in Fig. 1. This file storage location is inserted into one or more electronic units 2 located in the computerized drilling rig 1.
Då en användare önskar byta programkod i den datoriserade bor- riggen 1 överskrivs eller raderas inte den tidigare programko- den, vilket görs i dagens metoder för programkodbyte. Istället lagras den nuvarande programkoden, den som för tillfället an- vänds i borriggen, i ett första lagringsställe i fillagrings- platsen i borriggen 1. Dà en ny version av programkod ska lad- das ner till borriggen 1, flyttas den nuvarande programkoden till ett andra lagringsställe, varvid den nya versionen av programkoden laddas ner i det nu tomma första lagringsstället.When a user wishes to change program code in the computerized drilling rig 1, the previous program code is not overwritten or deleted, as is done in current methods for program code change. Instead, the current program code, the one currently used in the drilling rig, is stored in a first storage location in the file storage location in drilling rig 1. Since a new version of program code is to be downloaded to drilling rig 1, the current program code is moved to a second storage location, whereby the new version of the program code is downloaded to the now empty first storage location.
Om det visar sig att den nya programkoden inte fungerar, t. ex. pà grund av att nedladdningen misslyckades eller på grund av att den nya programkoden är behäftad med fel, finns den ti- digare versionen av programkod kvar i fillagringsplatsen i borriggen 1. Därmed kan den tidigare versionen användas för drift av borriggen, varvid onödiga och dyra driftsavbrott und- viks. 71135; 02-01-09 10 15 20 con: Û n oo» BJ U1 0 0 000 00 0 0 s U) C) OO 0 0 0 o 00 0000 00 (fl r» J U? \.__¿ i) i I enlighet med en annan utföringsform innefattar fillagrings- platsen i borriggen 1 tre lagringsställen. Vid ett programbyte flyttas den nuvarande programkoden till det andra lagrings- stället och lagras där, och den tidigare programkoden flyttas från det andra lagringsstället till ett tredje lagringsställe.If it turns out that the new program code does not work, e.g. due to the download failure or due to the new program code being faulty, the earlier version of the program code remains in the file storage location in drilling rig 1. Thus, the previous version can be used for operation of the drilling rig, thereby unnecessary and expensive interruptions avoid. 71135; 02-01-09 10 15 20 con: Û n oo »BJ U1 0 0 000 00 0 0 s U) C) OO 0 0 0 o 00 0000 00 (fl r» JU? \ .__ ¿i) i In accordance with another embodiment, the file storage location in the drilling rig 1 comprises three storage locations. In the event of a program change, the current program code is moved to the second storage location and stored there, and the previous program code is moved from the second storage location to a third storage location.
Om man nu vill ladda ner ytterligare en ny version av program- kod är det första lagringsstället alltså tomt och har plats för denna ytterligare version. Detta kommer nu att beskrivas utförligare med hänvisning till fig. 2 och 3. Lagringsstället är i fig. 2 och 3, och motsvarande beskrivning, en katalog.If you now want to download another new version of the program code, the first storage location is empty and there is room for this additional version. This will now be described in more detail with reference to Figs. 2 and 3. The storage location is in Figs. 2 and 3, and the corresponding description, a catalog.
Detta lagringsställe kan givetvis vara nàgot annat slags lag- ringsställe.This storage location can of course be some other type of storage location.
I fig. 2 visas tre kataloger i fillagringsplatsen. Den första katalogen kallas här ”Ny”, den andra "Nuvarande" och den tred- je ”Gammal”, vilka namn syftar på vilken version av programkod som lagras i vilken katalog.Fig. 2 shows three catalogs in the file storage location. The first directory is called “New”, the second “Current” and the third “Old”, which names refer to which version of program code is stored in which directory.
Med hänvisning till fig. 3 beskrivs nu de olika stegen enligt föreliggande metod. När en ny programkod ska laddas ner, steg 301, lagras den i den första katalogen, katalog "Ny". Nu finns således två versioner lagrade i fillagringsplatsen i borriggen 1, dels den som för närvarande används och finns lagrad i ka- talogen ”Nuvarande”, och dels den nya lagrad i katalogen "Ny".Referring to Fig. 3, the various steps of the present method are now described. When a new program code is to be downloaded, step 301, it is stored in the first directory, directory "New". Thus, there are now two versions stored in the file storage location in drilling rig 1, partly the one that is currently used and is stored in the catalog "Current", and partly the new one stored in the catalog "New".
Om användaren nu vill genomföra ett programbyte, steg 302, gär metoden vidare till steg 303. Det ska noteras att programkod- bytet inte behöver ske direkt efter nedladdning av en ny ver- sion av programkod, utan kan ske vid en senare tidpunkt. I steg 303 flyttas den programkod, som för närvarande används, fràn den andra katalogen, katalog ”Nuvarande”, till den tredje katalogen, katalog "Gammal". Därefter flyttas, i steg 304, den nya programkoden från den första katalogen, katalog ”Ny”, till den andra katalogen, katalog "Nuvarande". Den första katalo- gen, katalog ”Ny”, är således nu tom. I den andra katalogen, 71135; 02-01-09 10 15 20 0000 0 0 000. kJ U1 I I 000 0000 00 0 nl katalog ”Nuvarande”, ligger den kod som är aktuell, och slut- ligen i den tredje katalogen, katalog ”Gammal” ligger den ti- digare programkoden. I steg 305 kontrolleras den nya program- koden. Om den fungerar, avslutas metoden i steg 306; Om pro- grambytet har misslyckats, eller om det konstateras att den nya programkoden innehåller allvarliga fel (om t. ex. vissa funktioner i borriggen inte fungerar), återgår man till den tidigare programkoden. Detta sker, i steg 307, genom att den tidigare programkoden, som nu finns lagrad i den tredje kata- logen, katalog "Gammal”, flyttas till den första katalogen, katalog "Ny". Metoden upprepar nu de beskrivna stegen 302-305.If the user now wants to perform a program change, step 302, the method proceeds to step 303. It should be noted that the program code change does not have to take place immediately after downloading a new version of program code, but can take place at a later time. In step 303, the program code currently in use is moved from the second directory, "Current" directory, to the third directory, "Old" directory. Then, in step 304, the new program code is moved from the first directory, directory "New", to the second directory, directory "Current". The first catalog, catalog “New”, is thus now empty. In the second catalog, 71135; 02-01-09 10 15 20 0000 0 0 000. kJ U1 II 000 0000 00 0 nl directory "Current", is the code that is current, and finally in the third directory, directory "Old" is the current digare program code. In step 305, the new program code is checked. If it works, the method ends in step 306; If the program change has failed, or if it is found that the new program code contains serious errors (if, for example, certain functions in the drilling rig do not work), you return to the previous program code. This is done, in step 307, by moving the previous program code, which is now stored in the third catalog, directory “Old”, to the first directory, directory “New.” The method now repeats the described steps 302-305.
Efter steg 305 kommer metoden den här gången att gå till steg 306, eftersom det är den fungerande, tidigare använda versio- nen av programkod som kontrolleras. Den icke-fungerande pro- gramkoden, som nu finns i den tredje katalogen, katalog "Gammal”, kan raderas. En ny nedladdning av en ny version av programkod kan göras.After step 305, the method will this time go to step 306, since it is the working, previously used version of program code that is checked. The non-functioning program code, which is now in the third directory, the "Old" directory, can be deleted, and a new download of a new program code can be made.
Alternativt, om programbytet inte fungerade, d.v.s. ett ”nej” erhölls i steg 305, behöver metoden inte upprepas, om program- kodbyten sker manuellt. Programkoden som användes tidigare finns tillgänglig i den tredje katalogen, katalog "Gammal”, och kan kopieras ut till borriggen därifrån. Att upprepa ste- gen 302-305 ger dock fördelen att en användare då pâ ett en- kelt sätt kan se vilken version som för närvarande används. På samma sätt behöver naturligtvis inte den icke-fungerande koden först flyttas till den tredje katalogen, katalog "Gammal”, in- nan den raderas, utan kan raderas direkt. Om metoden inte sker manuellt måste dock stegen upprepas enligt det ovan beskrivna.Alternatively, if the program switch did not work, i.e. a “no” was obtained in step 305, the method does not need to be repeated if program code changes are done manually. The program code used previously is available in the third directory, directory "Old", and can be copied to the drilling rig from there. In the same way, of course, the non-functioning code does not have to be moved to the third directory, the "Old" directory, before it is deleted, but can be deleted immediately. However, if the method is not done manually, the steps must be repeated as described above.
Genom att införa de ovan beskrivna katalogerna i fillagrings- platsen i borriggen och flytta programkoderna i enlighet där- med, erhàlles således även den fördelen att det för en använ- 71135; 02-01-09 v3 -fx G? O\ dare är enkelt att se vilken version av programkod som an- vänds.By inserting the catalogs described above in the file storage location in the drilling rig and moving the program codes accordingly, the advantage is thus also obtained that for a user 71135; 02-01-09 v3 -fx G? It is also easy to see which version of program code is being used.
Nedladdningen av en ny version av programkod kan ske via ett trådlöst gränssnitt, t. ex. Bluetooth, DECT eller GSM. Därige- nom kan ett flertal borriggar 1 väsentligen samtidigt erhålla den nya versionen av programkod. Den trådlösa nedladdningen innebär således att en användare pà en enkelt sätt kan byta programkod i samtliga borriggar, istället för som tidigare gà runt till varje borrigg 1 och byta programkoden genom att mata in ett PC-kort i den. Den nya versionen kan dock med fördel först kontrollköras i endast en borrigg 1, och om det konsta- teras att den är felaktig behöver således inte alla borriggar- na startas om med den tidigare versionen. Om den emellertid är felfri kan alla borriggarna 1 samtidigt börja använda den nya _versionen.The download of a new version of program code can be done via a wireless interface, e.g. Bluetooth, DECT or GSM. As a result, a number of drilling rigs 1 can obtain the new version of program code substantially simultaneously. The wireless download thus means that a user can easily change the program code in all drilling rigs, instead of as before going around to each drilling rig 1 and changing the program code by inserting a PC card in it. However, the new version can advantageously first be checked in only one drilling rig 1, and if it is found that it is incorrect, then not all drilling rigs need to be restarted with the previous version. However, if it is faultless, all drilling rigs 1 can start using the new version at the same time.
I 0 OQO IIII Oo 0 OO 0000 71135; 02-01«O9I 0 OQO IIII Oo 0 OO 0000 71135; 02-01 «O9
Claims (6)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| SE0200049A SE525945C2 (en) | 2002-01-09 | 2002-01-09 | Program code exchange method for computerized drilling rig, stores original code for possible use if new code is found to contain errors |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| SE0200049A SE525945C2 (en) | 2002-01-09 | 2002-01-09 | Program code exchange method for computerized drilling rig, stores original code for possible use if new code is found to contain errors |
Publications (3)
| Publication Number | Publication Date |
|---|---|
| SE0200049D0 SE0200049D0 (en) | 2002-01-09 |
| SE0200049L SE0200049L (en) | 2003-07-10 |
| SE525945C2 true SE525945C2 (en) | 2005-05-31 |
Family
ID=20286617
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| SE0200049A SE525945C2 (en) | 2002-01-09 | 2002-01-09 | Program code exchange method for computerized drilling rig, stores original code for possible use if new code is found to contain errors |
Country Status (1)
| Country | Link |
|---|---|
| SE (1) | SE525945C2 (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2013053976A1 (en) * | 2011-10-11 | 2013-04-18 | Sandvik Mining And Construction Oy | Arrangement for updating a control system |
| CN109284117A (en) * | 2018-09-26 | 2019-01-29 | 深圳市慧嘉智科技有限公司 | Firmware upgrade method and system and flash memory microcontroller based on flash memory microcontroller |
-
2002
- 2002-01-09 SE SE0200049A patent/SE525945C2/en unknown
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2013053976A1 (en) * | 2011-10-11 | 2013-04-18 | Sandvik Mining And Construction Oy | Arrangement for updating a control system |
| CN109284117A (en) * | 2018-09-26 | 2019-01-29 | 深圳市慧嘉智科技有限公司 | Firmware upgrade method and system and flash memory microcontroller based on flash memory microcontroller |
Also Published As
| Publication number | Publication date |
|---|---|
| SE0200049L (en) | 2003-07-10 |
| SE0200049D0 (en) | 2002-01-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR101438215B1 (en) | Method and system for updating versions of content stored in a storage device | |
| Reijers et al. | Efficient code distribution in wireless sensor networks | |
| CN100377120C (en) | Control method of nonvolatile memory device | |
| US5737621A (en) | Finite-state encoding system for hyphenation rules | |
| CN1658163A (en) | Method of data writing to and data reading from storage device and data storage system | |
| CN100456182C (en) | Peripheral device of programmable logic controller and program generating method thereof | |
| US7774382B2 (en) | Method and apparatus for configuring a control device, and corresponding control device | |
| KR101333417B1 (en) | Remotely repairing files by hierarchical and segmented cyclic redundancy checks | |
| CN105095006B (en) | Method and device for repairing software installation failure | |
| CN106201640A (en) | A kind of method and device of BootLoader program of upgrading | |
| SE525945C2 (en) | Program code exchange method for computerized drilling rig, stores original code for possible use if new code is found to contain errors | |
| DE102007061414A1 (en) | Electronic device, firmware download system and firmware update process | |
| CN113419897B (en) | File processing method and device, electronic equipment and storage medium thereof | |
| US20040186690A1 (en) | System and method for tracking engineering changes relating to a circuit card | |
| US20080123659A1 (en) | Arrangement and method for loading data into a memory | |
| US8578359B2 (en) | Method and apparatus for reliable in-place update | |
| KR100228717B1 (en) | Method of coping with power off in laser printer | |
| US20030187818A1 (en) | Method and apparatus for embedding configuration data | |
| CN100507927C (en) | Library test circuit and library test method | |
| CN103870392B (en) | A flash memory operation method and device based on an embedded system | |
| CN101488877B (en) | Method for on-line downloading monoboard programme | |
| CN103516561B (en) | A kind of adjustment method of network system | |
| US20070171737A1 (en) | Semiconductor storage device | |
| CN112650709A (en) | On-site programmable gate array, configuration method and system | |
| CN106407375A (en) | Method and device for upgrading database |