CN103902342A - System updating and upgrading method and system in enclosed environment - Google Patents

System updating and upgrading method and system in enclosed environment Download PDF

Info

Publication number
CN103902342A
CN103902342A CN201410151514.7A CN201410151514A CN103902342A CN 103902342 A CN103902342 A CN 103902342A CN 201410151514 A CN201410151514 A CN 201410151514A CN 103902342 A CN103902342 A CN 103902342A
Authority
CN
China
Prior art keywords
code
upgrade
color
data
upgrading
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.)
Granted
Application number
CN201410151514.7A
Other languages
Chinese (zh)
Other versions
CN103902342B (en
Inventor
张吉
奚加荣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NANJING RESEARCH INSTITUTE COLLEGE OF ENGINEERING OF PEKING UNIVERSITY
Original Assignee
NANJING RESEARCH INSTITUTE COLLEGE OF ENGINEERING OF PEKING UNIVERSITY
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NANJING RESEARCH INSTITUTE COLLEGE OF ENGINEERING OF PEKING UNIVERSITY filed Critical NANJING RESEARCH INSTITUTE COLLEGE OF ENGINEERING OF PEKING UNIVERSITY
Priority to CN201410151514.7A priority Critical patent/CN103902342B/en
Publication of CN103902342A publication Critical patent/CN103902342A/en
Application granted granted Critical
Publication of CN103902342B publication Critical patent/CN103902342B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a system updating and upgrading method in an enclosed environment. The method comprises the following steps that (1) a software maintenance worker encodes an upgrading file into a binary data stream through a precoding protocol algorithm, and generates a colorful two-dimension code through a colorful two-dimension code encoding tool; (2) the generated colorful two-dimension code is arranged on a carrier and displayed in front of a camera of a device to be upgraded; (3) a preset updating and upgrading service in the device to be upgraded reads the colorful two-dimension code, analyzes the colorful two-dimension code through a colorful two-dimension code decoding module and then analyzes and restores the analyzed binary data stream through the precoding protocol to obtain the original upgrading file; (4) the updating and upgrading service uses the restored upgrading file to update and upgrade an application program or a software system. According to the method, in the upgrading and updating process, colorful two-dimension code media do not need to make contact with the device to be upgraded, the upgrading process is intelligent and reliable, data encryption is supported, and updating and upgrading of the system in an enclosed environment are achieved.

Description

System update upgrade method and system under a kind of enclosed environment
Technical field
The present invention relates to a kind of upgrade method, relate in particular to system update upgrade method under enclosed environment, belong to computer internet technical field.
Background technology
Software upgrading, refers to that software developer is in writing software, because designer considers comprehensively or program function imperfection, after software publishing, by the modification to program or add after new function the mode of issuing with the form of patch.User upgrades these patches, has upgraded, and software upgrading is the demand in order to better meet user and prevents viral invasion, but the upgrading of software is at present all to carry out under open environment, generally need to be by network, or the external interfaces such as serial ports or use USB flash disk, the solid-state electronic installations such as SD card, but for some special environment, for example, under enclosed environment, above-mentioned by condition all in non-existent situation, system is difficult to upgrade, those skilled in the art has also carried out repeatedly attempting, but well do not solve this technical problem, in prior art, system upgrade has some limitations, in the situation that there is no network or there is no other electronic installations, be difficult to realize system upgrade, therefore, a kind of new technical scheme of exigence solves the problems of the technologies described above.
Summary of the invention
The present invention, just for the technical matters existing in prior art, provides system update upgrade method under a kind of enclosed environment, and the method is without by external device or interface in escalation process, and supported data encrypts, and escalation process intelligence is reliable.
To achieve these goals, technical scheme of the present invention is as follows, system update upgrade method under enclosed environment, and under a kind of enclosed environment, system update upgrade method, is characterized in that, said method comprising the steps of,
1) research and development of software personnel or maintainer use precoding protocol algorithm to be compiled into binary data stream upgrade file, and by color 2 D code coding tools, are generated color 2 D code;
2) color 2 D of generation is piled up and put on Quick Response Code carrier, be presented on before the camera of device to be upgraded;
3) in device to be upgraded, color 2 D code is read in preset renewal upgrade service, and resolves by color 2 D code decoder module, afterwards the binary data parsing is restored to original upgrade file by precoding protocol analysis;
4) upgrading upgrade service uses the upgrade file application programs or the software systems that restore to upgrade upgrading.
As a further improvement on the present invention, in described step 1), make the color 2 D code of upgrade file, concrete operations are as follows, 11) upgrade file is used to GZip compression algorithm, generate compressed package data file C1, and fill in AKU version, time, Back ground Information K, whether need to restart the information such as program; 12) compressed package files C1 is carried out to MD5 calculating, generate MD5 check code;
13) press the information capacity upper limit M of color 2 D code coded system, calculate the data block total number P that compressed file C1 need to cut into; As being limited to 10MB in color 2 D code information capacity, compressed file C1 is 100MB, needs to cut into 10 data blocks and processes respectively.
14) take M as stepping, read C1 file, obtain binary data blocks D1, and D1 data block is numbered, be numbered N, wherein N is the independent increment since 1;
15) judge whether to need to encrypt, need to encrypt if be provided with, need D1 data block to be encrypted, the data block after encryption is D2;
16) encode by precoding algorithm protocol, data block is numbered to N, data block total number P, AKU version, time, Back ground Information K, MD5 check code, data encryption mark, whether need to restart mark and be packaged into information header, in the non-encrypted D1 data block that uses at present as imformosome, in the time encrypting, use D2 data block as imformosome, the data block step-by-step of information header and imformosome composition is carried out to XOR and calculate check code, by information header, imformosome, the splicing of check code order, and before and after spliced data block, add flag, obtain binary data blocks D3, complete the coding being undertaken by precoding algorithm protocol,
17) D3 is submitted to color 2 D code encryption algorithm module, generate color 2 D code picture, and output and preservation;
18) complete the processing to compressed file C1 total data by above step, complete color 2 D code system and make flow process, in this process, generated 1 or multiple color 2 D codes.
As a further improvement on the present invention, the flow process concrete operations of reading color 2 D code in described step 3) are as follows, and 31) read, enter and read after flow process, upgrading update service first empties the All Files in particular category SF; Camera reads color 2 D code, and by color 2 D code decoder module, the picture reading is decoded, if can not carry out the decoding of color 2 D code in this process, reuses camera and reads color 2 D code; If can normal decoder, the binary data obtaining after the decoding of color 2 D code is kept in catalogue SF, name is called Tn, wherein n, since 1 from increasing, if also need to continue input Quick Response Code, repeats this step, if do not needed, enter next step operation, reduce flow process.
As a further improvement on the present invention, the flow process concrete operations of reducing in described step 3) are as follows,
The flow process concrete operations of reducing in described step 3) are as follows, 32) reduction, enter after reduction flow process, first from catalogue SF, read successively temporary file Tn, after file reading data, remove flag and check digit end to end according to precoding agreement, remaining data step-by-step is carried out to exclusive or check, calculate check code, judge that whether the check code of calculating generation is consistent with original check digit, if inconsistent, exit; According to precoding agreement, the file data of Tn is resolved, from information header, parse data block numbering N, data block total number P, AKU version, time, Back ground Information K, MD5 check code M1, data encryption mark, whether need to restart mark, from imformosome, parse data block D1; The encryption identification according to whether, judge whether to be decrypted D1, if do not need deciphering, data block D1 is directly placed in queue L successively by data block numbering N ascending order, deciphering if necessary, to after D1 deciphering, obtain data block D2, D2 is placed in queue L successively by data block numbering N ascending order; Repeat above step, until all temporary files are all processed complete; According to the data block in data block total number P and queue L, judge whether the situation of dropout of data block, if had, exit; Data block in queue L is spliced successively by data block numbering N ascending order, obtain binary data file DF; DF is carried out to MD5 calculating, obtain MD5 check code M2, judge that whether M1 is consistent with M2, if inconsistent, exit; DF is carried out to decompress(ion) by GZip algorithm, obtain initial upgrade file, enter subsequently upgrading flow process.
As a further improvement on the present invention, the flow process of upgrading in described step 3) concrete operations are as follows, and 33) upgrading, upgrade the local version number of upgrading for the last time of upgrade service judgement and the front and back of upgrade version this shop order, if upgrade version this shop is excessively old, stop upgrading,
Upgrade upgrade service and send upgrade notification instruction to application program, application program is received after instruction check current whether can upgrading, and update notifications upgrade service, upgrades upgrade service and judges whether to enter next step according to advise fate;
If application program can be upgraded, upgrade upgrade service and send the path of upgrade file and the information such as whether need to restart, application program is received rear loading upgrading file and refresh routine and data, and constantly sends renewal progress to upgrading upgrade service, and show by upgrading upgrade service
When application program completes after loading upgrading file, create upgrading and confirm notice mark, if do not need re-launching applications, confirm notice mark according to upgrading, directly send the acknowledge message of having upgraded to upgrading upgrade service, if need to restart, after having restarted, confirm notice mark according to upgrading, send the acknowledge message of having upgraded to upgrading upgrade service again, upgrade upgrade service and preserve the version number that new version number is last upgrading, and notice has been upgraded, and deletes the All Files in SF catalogue simultaneously.
As a further improvement on the present invention, described color 2 D code carrier is on the carrier of mobile phone or the paper printing or other carrying color 2 D codes.
As a further improvement on the present invention, described system comprises that upgrade file turns color 2 D code system and upgrading update service system, described upgrade file turns color 2 D code system and comprises GZip compression module, MD5 correction verification module, encrypting and decrypting module, data processing and precoding module, color 2 D code coding module and document processing module, described upgrading update service system comprises GZip decompression module, MD5 correction verification module, encrypting and decrypting module, data processing and precoding module, color 2 D code decoder module, document processing module and update service module;
Described GZip compression module and GZip decompression module are compressed and decompress(ion) by GZip algorithm data block respectively;
Described MD5 correction verification module calculates by MD5 algorithm data block, generates MD5 check code;
Described encrypting and decrypting module is encrypted and deciphers by irreversible cryptographic algorithm data block;
Described data processing and precoding module are queued up, are carried out code and decode according to precoding agreement for the treatment of intrasystem each data file; Described color 2 D code coding module is by certain color 2 D code code decode algorithm, binary data is carried out to color 2 D code coding, and described color 2 D code decoder module carries out the decoding of color 2 D code by certain color 2 D code code decode algorithm to image data; The read-write operation processing of described document processing module to picture and data file, comprises and reads picture file, generating pictures file, read data files, generated data file; Described update service module, upgrades upgrading by the upgrade file application programs or the software systems that restore; Described upgrade file turns in color 2 D code system, upgrade file is submitted to MD5 correction verification module and is calculated generation MD5 code after compressing by GZip compression module, press described flow process above, if need to encrypt time, by encrypting and decrypting module, data block is encrypted, data after encryption transfer to data processing and precoding module to encode by precoding agreement, data after coding transfer to color 2 D code coding module to encode, generate color 2 D code image data, image data finally generates color 2 D code by document processing module; In described upgrading update service system, read color 2 D code picture by document processing module and obtain image data; Data transfer to color 2 D code coding module to decode, after decoding, data transfer to data processing and precoding module to decode by precoding agreement, according to the condition mark of whether encrypting, by encrypting and decrypting module, data block is decrypted, data after deciphering are submitted to MD5 correction verification module and are calculated generation MD5 code, and carry out the comparison of MD5, confirm that the data of comparing by MD5 are after the decompress(ion) of GZip decompression module, restore final upgrade file, upgrade file is submitted to update service module and carry out system upgrade.
As a further improvement on the present invention, the precoding agreement of upgrade file is specific as follows,
(1) complete information data
Flag Information header Imformosome Check bit Flag
(2) information header
Data block numbering Order is from increasing sequence of blocks of data number, since 1
Data block number Total data block number
AKU version The version number of upgrade file
Time Upgrade file creation-time
MD5 check code Upgrade file MD5 check code
Back ground Information As founder
Whether restart Whether mark needs to restart after having upgraded
Data encryption mode Whether mark encrypts, and cipher mode
Imformosome length The length of identification information volume data piece
(3) check bit
Information header Imformosome
Above two parts are carried out to step-by-step XOR successively, finally generate an exclusive or check code.
With respect to prior art, beneficial effect of the present invention is as follows: 1) in the method upgrading renewal process Quick Response Code medium without contacting with device to be upgraded, device to be upgraded is also without there being external interface, the mounting medium of color 2 D code is abundant, can be mobile phone, paper material etc., and the transmission of electronics shelves be convenient; 2) escalation process intelligence is reliable, and supported data is encrypted; 3) support multiple Quick Response Code combinations, can support the renewal of large capacity program file; 4) the method has really realized the system upgrade under enclosed environment, has greatly extended the application space of software upgrading, and range of application is more extensive, for some particular surroundingss, provides more stable, more intelligent software update service.
Accompanying drawing explanation
Fig. 1: overall escalation process schematic diagram of the present invention;
Fig. 2: the present invention's entirety upgrade method process flow diagram;
Fig. 3: the color 2 D code stream journey of making upgrade file;
Fig. 4: use color 2 D code stream journey to upgrade to upgrade and read process flow diagram flow chart;
Fig. 5: use color 2 D code stream journey to upgrade and upgrade reduction process process flow diagram;
Fig. 6: use color 2 D code stream journey to upgrade and upgrade escalation process process flow diagram;
Fig. 7: upgrade file turns color 2 D code system module diagram;
Fig. 8: upgrading update service service system module diagram.
Embodiment
In order to deepen the understanding of the present invention and understanding, below in conjunction with the drawings and specific embodiments, the present invention is made further instructions and introduced.
embodiment 1:
Referring to Fig. 1, system update upgrade method under a kind of enclosed environment, this technical scheme turns color 2 D code system by upgrade file, upgrade file is converted into color 2 D code, use the camera scanning colour Quick Response Code in device to be upgraded, be reduced into upgrade file by upgrading update service system, and completed final upgrading renewal.
Referring to Fig. 2, Fig. 2 is overall upgrade method process flow diagram; System update upgrade method under a kind of enclosed environment, said method comprising the steps of,
1) research and development of software personnel or maintainer use precoding protocol algorithm to be compiled into binary data stream upgrade file, and by color 2 D code coding tools, are generated color 2 D code;
2) color 2 D of generation is piled up and put on Quick Response Code carrier, be presented on before the camera of device to be upgraded; Described color 2 D code carrier is on the carrier of mobile phone or the paper printing or other carrying color 2 D codes;
3) in device to be upgraded, color 2 D code is read in preset renewal upgrade service, and resolves by color 2 D code decoder module, afterwards the binary data parsing is restored to original upgrade file by precoding protocol analysis;
4) update service notification application or software systems are reloaded upgrade file, complete upgrading.
Referring to Fig. 3, as a further improvement on the present invention, in described step 1), make the color 2 D code of upgrade file, concrete operations are as follows, 11) upgrade file is used after GZip compression algorithm, generate compressed package data file C1, and fill in upgraded version, time, whether need to restart program and Back ground Information K; 12) compressed package files C1 is carried out to MD5 verification, generate MD5 check code;
13) press the information capacity upper limit M of color 2 D code coded system, calculate the data block total number P that compressed file C1 need to cut into; As being limited to 10MB in color 2 D code information capacity, compressed file C1 is 100MB, needs to cut into 10 data blocks and processes respectively;
14) take M as stepping, read C1 file, obtain binary data blocks D1, and D1 data block is numbered, be numbered N, wherein N is the independent increment since 1;
15) judge whether to need to encrypt, need to encrypt if be provided with, need D1 data block to be encrypted, the data block after encryption is D2;
16) encode by precoding algorithm protocol, data block is numbered to N, data block total number P, AKU version, time, Back ground Information K, MD5 check code, data encryption mark, whether need to restart mark and be packaged into information header, in the non-encrypted D1 data block that uses at present as imformosome, in the time encrypting, use D2 data block as imformosome, the data block step-by-step of information header and imformosome composition is carried out to XOR and calculate check code, by information header, imformosome, the splicing of check code order, and before and after spliced data block, add flag, obtain binary data blocks D3, complete the coding being undertaken by precoding algorithm protocol,
17) D3 is submitted to color 2 D code encryption algorithm module, generate color 2 D code picture, and output and preservation;
18) complete the processing to compressed file C1 total data by above step, complete color 2 D code system and make flow process, in this process, generated 1 or multiple color 2 D codes.
Referring to Fig. 4, as a further improvement on the present invention, the flow process concrete operations of reading color 2 D code in described step 3) are as follows, and 31) read, enter and read after flow process, upgrading update service first empties the All Files in particular category SF; Camera reads color 2 D code, and by color 2 D code decoder module, the picture reading is decoded, if can not carry out the decoding of color 2 D code in this process, reuses camera and reads color 2 D code; If can normal decoder, the binary data obtaining after the decoding of color 2 D code is kept in catalogue SF, name is called Tn, wherein n, since 1 from increasing, if also need to continue input Quick Response Code, repeats this step, if do not needed, enter next step operation, reduce flow process.
Referring to Fig. 5, as a further improvement on the present invention, the flow process concrete operations of reducing in described step 3) are as follows, 32) reduction, enter after reduction flow process, first from catalogue SF, read successively temporary file Tn, after file reading data, remove flag and check digit end to end according to precoding agreement, remaining data step-by-step is carried out to exclusive or check, calculate check code, judge that whether the check code of calculating generation is consistent with original check digit, if inconsistent, exit;
According to precoding agreement, the file data of Tn is resolved, from information header, parse data block numbering N, data block total number P, AKU version, time, Back ground Information K, MD5 check code M1, data encryption mark, whether need to restart mark, from imformosome, parse data block D1;
The encryption identification according to whether, judge whether to be decrypted D1, if do not need deciphering, data block D1 is directly placed in queue L successively by data block numbering N ascending order, deciphering if necessary, to after D1 deciphering, obtain data block D2, D2 is placed in queue L successively by data block numbering N ascending order;
Repeat above step, until all temporary files are all processed complete;
According to the data block in data block total number P and queue L, judge whether the situation of dropout of data block, if had, exit;
Data block in queue L is spliced successively by data block numbering N ascending order, obtain binary data file DF;
DF is carried out to MD5 calculating, obtain MD5 check code M2, judge that whether M1 is consistent with M2, if inconsistent, exit;
DF is carried out to decompress(ion) by GZip algorithm, obtain initial upgrade file, enter subsequently upgrading flow process.
Referring to Fig. 6, as a further improvement on the present invention, the flow process of upgrading in described step 3) concrete operations are as follows, 33) upgrading, upgrades the local version number of upgrading for the last time of upgrade service judgement and the front and back of upgrade version this shop order, if upgrade version this shop is excessively old, stop upgrading
Upgrade upgrade service and send upgrade notification instruction to application program, application program is received after instruction check current whether can upgrading, and update notifications upgrade service, upgrades upgrade service and judges whether to enter next ring step according to advise fate;
If application program can be upgraded, upgrade upgrade service and send the path of upgrade file and the information such as whether need to restart, application program is received rear loading upgrading file and refresh routine and data, and constantly sends renewal progress to upgrading upgrade service, and show by upgrading upgrade service
When application program completes after loading upgrading file, create upgrading and confirm notice mark, if need re-launching applications, restart, confirm notice mark according to upgrading, send the acknowledge message of having upgraded to upgrading upgrade service, if need to restart, after having restarted, send again, upgrade upgrade service and preserve the version number that new version number is last upgrading, and notice has been upgraded, and deletes the All Files in SF catalogue simultaneously.
In described step 1), the precoding agreement of upgrade file is specific as follows,
(1) complete information data
Flag Information header Imformosome Check bit Flag
(2) information header
Data block numbering Order is from increasing sequence of blocks of data number, since 1
Data block number Total data block number
AKU version The version number of upgrade file
Time Upgrade file creation-time
MD5 check code Upgrade file MD5 check code
Back ground Information As founder
Whether restart Whether mark needs to restart after having upgraded
Data encryption mode Whether mark encrypts, and cipher mode
Imformosome length The length of identification information volume data piece
(3) check bit
Information header Imformosome
Above two parts are carried out to step-by-step XOR successively, finally generate an exclusive or check code.
 
embodiment 2:
Referring to Fig. 7, Fig. 8, system update upgrade-system under a kind of enclosed environment, described system comprises that upgrade file turns color 2 D code system and upgrading update service system, described upgrade file turns color 2 D code system and comprises GZip compression module, MD5 correction verification module, encrypting and decrypting module, data processing and precoding module, color 2 D code coding module and document processing module, described upgrading update service system comprises GZip decompression module, MD5 correction verification module, encrypting and decrypting module, data processing and precoding module, color 2 D code decoder module, document processing module and update service module, described GZip compression module and GZip decompression module are compressed and decompress(ion) by GZip algorithm data block respectively, described MD5 correction verification module calculates by MD5 algorithm data block, generates MD5 check code, described encrypting and decrypting module is encrypted and deciphers by irreversible cryptographic algorithm data block, described data processing and precoding module: the each data file in disposal system is queued up, carried out code and decode according to precoding agreement,
Described color 2 D code coding module is by certain color 2 D code code decode algorithm, binary data is carried out to color 2 D code coding, described color 2 D code decoder module carries out the decoding of color 2 D code by certain color 2 D code code decode algorithm to image data, the read-write operation processing of described document processing module to picture and data file, comprise and read picture file, generating pictures file, read data files, generated data file; Described update service module, upgrades upgrading by the upgrade file restoring to application system.
Referring to Fig. 7, described upgrade file turns in color 2 D code system, upgrade file is submitted to MD5 correction verification module and is calculated generation MD5 code after compressing by GZip compression module, press described flow process above, if need to encrypt time, by encrypting and decrypting module, data block is encrypted, data after encryption transfer to data processing and precoding module to encode by precoding agreement, data after coding transfer to color 2 D code coding module to encode, generate color 2 D code image data, image data finally generates color 2 D code by document processing module;
Referring to Fig. 8, in described upgrading update service system, read color 2 D code picture by document processing module and obtain image data; Data transfer to color 2 D code coding module to decode, after decoding, data transfer to data processing and precoding module to decode by precoding agreement, according to the condition mark of whether encrypting, by encrypting and decrypting module, data block is decrypted, data after deciphering are submitted to MD5 correction verification module and are calculated generation MD5 code, and carry out the comparison of MD5, confirm that the data of comparing by MD5 are after the decompress(ion) of GZip decompression module, restore final upgrade file, upgrade file is submitted to update service module and carry out system upgrade.
It should be noted that above-described embodiment is only preferred embodiment of the present invention; be not used for limiting protection scope of the present invention; being equal to replacement or substituting of having done on the basis of the above all belongs to protection scope of the present invention, and protection scope of the present invention is as the criterion with claims.

Claims (7)

1. a system update upgrade method under enclosed environment, is characterized in that, said method comprising the steps of,
1) research and development of software personnel or maintainer use precoding protocol algorithm to be compiled into binary data stream upgrade file, and by color 2 D code coding tools, are generated color 2 D code;
2) color 2 D of generation is piled up and put on Quick Response Code carrier, be presented on before the camera of device to be upgraded;
3) in device to be upgraded, color 2 D code is read in preset renewal upgrade service, and resolves by color 2 D code decoder module, afterwards the binary data parsing is restored to original upgrade file by precoding protocol analysis;
4) upgrading upgrade service uses the upgrade file application programs or the software systems that restore to upgrade upgrading.
2. system update upgrade method under enclosed environment according to claim 1, is characterized in that, makes the color 2 D code of upgrade file in described step 1), and concrete operations are as follows,
11) upgrade file is used to GZip compression algorithm, generate compressed package data file C1, and fill in AKU version, time, Back ground Information K and whether need to restart program identification;
12) compressed package files C1 is carried out to MD5 calculating, generate MD5 check code;
13) press the information capacity upper limit M of color 2 D code coded system, calculate the data block total number P that compressed file C1 need to cut into;
14) take M as stepping, read C1 file, obtain binary data blocks D1, and D1 data block is numbered, be numbered N, wherein N is the independent increment since 1;
15) judge whether to need to encrypt, need to encrypt if be provided with, need D1 data block to be encrypted, the data block after encryption is D2;
16) encode by precoding algorithm protocol, data block is numbered to N, data block total number P, AKU version, time, Back ground Information K, MD5 check code, data encryption mark, whether need to restart mark and be packaged into information header, in the non-encrypted D1 data block that uses at present as imformosome, in the time encrypting, use D2 data block as imformosome, the data block step-by-step of information header and imformosome composition is carried out to XOR and calculate check code, by information header, imformosome, the splicing of check code order, and before and after spliced data block, add flag, obtain binary data blocks D3, complete the coding being undertaken by precoding algorithm protocol,
17) D3 is submitted to color 2 D code encryption algorithm module, generate color 2 D code picture, and output and preservation;
18) complete the processing to compressed file C1 total data by above step, complete color 2 D code system and make flow process, in this process, generated 1 or multiple color 2 D codes.
3. system update upgrade method under enclosed environment according to claim 1, it is characterized in that, the flow process concrete operations of reading color 2 D code in described step 3) are as follows, and 31) read, enter and read after flow process, upgrading update service first empties the All Files in particular category SF; Camera reads color 2 D code, and by color 2 D code decoder module, the picture reading is decoded, if can not carry out the decoding of color 2 D code in this process, reuses camera and reads color 2 D code; If can normal decoder, the binary data obtaining after the decoding of color 2 D code is kept in catalogue SF, name is called Tn, wherein n, since 1 from increasing, if also need to continue input Quick Response Code, repeats this step, if do not needed, enter next step operation, reduce flow process.
4. system update upgrade method under enclosed environment according to claim 3, it is characterized in that, the flow process concrete operations of reducing in described step 3) are as follows, 32) reduction, enter after reduction flow process, first from catalogue SF, read successively temporary file Tn, after file reading data, remove flag and check digit end to end according to precoding agreement, remaining data step-by-step is carried out to XOR calculating, calculate check code, judge that whether the check code of calculating generation is consistent with original check digit, if inconsistent, exit;
According to precoding agreement, the file data of Tn is resolved, from information header, parse data block numbering N, data block total number P, AKU version, time, Back ground Information K, MD5 check code M1, data encryption mark, whether need to restart mark, from imformosome, parse data block D1;
The encryption identification according to whether, judge whether to be decrypted D1, if do not need deciphering, data block D1 is directly placed in queue L successively by data block numbering N ascending order, deciphering if necessary, to after D1 deciphering, obtain data block D2, D2 is placed in queue L successively by data block numbering N ascending order;
Repeat above step, until all temporary files are all processed complete;
According to the data block in data block total number P and queue L, judge whether the situation of dropout of data block, if had, exit;
Data block in queue L is spliced successively by data block numbering N ascending order, obtain binary data file DF;
DF is carried out to MD5 calculating, obtain MD5 check code M2, judge that whether M1 is consistent with M2, if inconsistent, exit;
DF is carried out to decompress(ion) by GZip algorithm, obtain initial upgrade file, enter subsequently upgrading flow process.
5. system update upgrade method under enclosed environment according to claim 4, it is characterized in that, the flow process of upgrading in described step 3) concrete operations are as follows, 33) upgrading, upgrade the front and back order of version number and the upgrade version this shop of the local last upgrading of upgrade service judgement, if upgrade version this shop is excessively old, stop upgrading, upgrade upgrade service and send upgrade notification instruction to application program, application program is received after instruction, check current whether can upgrading, and update notifications upgrade service, upgrade upgrade service and judge whether to enter next step according to advise fate, if application program can be upgraded, upgrading upgrade service sends the path of upgrade file and the information such as whether needs to restart, application program is received rear loading upgrading file and refresh routine and data, and constantly send renewal progress to upgrading upgrade service, and show by upgrading upgrade service, when application program completes after loading upgrading file, create upgrading and confirm notice mark, if do not need re-launching applications, confirm notice mark according to upgrading, directly send the acknowledge message of having upgraded to upgrading upgrade service, if need to restart, after having restarted, confirm notice mark according to upgrading again, send the acknowledge message of having upgraded to upgrading upgrade service, upgrade upgrade service and preserve the version number that new version number is last upgrading, and notice has been upgraded, delete the All Files in SF catalogue simultaneously.
6. system update upgrade method under enclosed environment according to claim 4, is characterized in that, described color 2 D code carrier is on the carrier of mobile phone or the paper printing or other carrying color 2 D codes.
7. system update upgrade-system under an enclosed environment, it is characterized in that, described system comprises that upgrade file turns color 2 D code system and upgrading update service system, described upgrade file turns color 2 D code system and comprises GZip compression module, MD5 correction verification module, encrypting and decrypting module, data processing and precoding module, color 2 D code coding module and document processing module, described upgrading update service system comprises GZip decompression module, MD5 correction verification module, encrypting and decrypting module, data processing and precoding module, color 2 D code decoder module, document processing module and update service module,
Described GZip compression module and GZip decompression module are compressed and decompress(ion) by GZip algorithm data block respectively;
Described MD5 correction verification module calculates by MD5 algorithm data block, generates MD5 check code;
Described encrypting and decrypting module is encrypted and deciphers by irreversible cryptographic algorithm data block;
Described data processing and precoding module are queued up, are carried out code and decode according to precoding agreement for the treatment of intrasystem each data file; Described color 2 D code coding module is by certain color 2 D code code decode algorithm, binary data is carried out to color 2 D code coding, and described color 2 D code decoder module carries out the decoding of color 2 D code by certain color 2 D code code decode algorithm to image data; The read-write operation processing of described document processing module to picture and data file, comprises and reads picture file, generating pictures file, read data files, generated data file; Described update service module, upgrades upgrading by the upgrade file application programs or the software systems that restore; Described upgrade file turns in color 2 D code system, upgrade file is submitted to MD5 correction verification module and is calculated generation MD5 code after compressing by GZip compression module, press described flow process above, if need to encrypt time, by encrypting and decrypting module, data block is encrypted, data after encryption transfer to data processing and precoding module to encode by precoding agreement, data after coding transfer to color 2 D code coding module to encode, generate color 2 D code image data, image data finally generates color 2 D code by document processing module;
In described upgrading update service system, read color 2 D code picture by document processing module and obtain image data; Data transfer to color 2 D code coding module to decode, after decoding, data transfer to data processing and precoding module to decode by precoding agreement, according to the condition mark of whether encrypting, by encrypting and decrypting module, data block is decrypted, data after deciphering are submitted to MD5 correction verification module and are calculated generation MD5 code, and carry out the conforming comparison of MD5, confirm that the data of comparing by MD5 are after the decompress(ion) of GZip decompression module, restore final upgrade file, upgrade file is submitted to update service module and carry out system upgrade.
CN201410151514.7A 2014-04-16 2014-04-16 System update upgrade method and system under a kind of enclosed environment Expired - Fee Related CN103902342B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410151514.7A CN103902342B (en) 2014-04-16 2014-04-16 System update upgrade method and system under a kind of enclosed environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410151514.7A CN103902342B (en) 2014-04-16 2014-04-16 System update upgrade method and system under a kind of enclosed environment

Publications (2)

Publication Number Publication Date
CN103902342A true CN103902342A (en) 2014-07-02
CN103902342B CN103902342B (en) 2017-10-17

Family

ID=50993681

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410151514.7A Expired - Fee Related CN103902342B (en) 2014-04-16 2014-04-16 System update upgrade method and system under a kind of enclosed environment

Country Status (1)

Country Link
CN (1) CN103902342B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105808465A (en) * 2016-03-04 2016-07-27 浙江大华技术股份有限公司 Method and device for upgrading camera equipment
CN107247607A (en) * 2017-05-26 2017-10-13 河南职业技术学院 Computer based method for updating system and system updating device
CN105072398B (en) * 2015-08-06 2018-07-13 浙江宇视科技有限公司 A kind of device updating method and device
CN109218412A (en) * 2018-08-27 2019-01-15 河南辉煌科技股份有限公司 Remote upgrade method and system for STP system
CN109358875A (en) * 2018-09-27 2019-02-19 上海和数软件有限公司 Hardware wallet upgraded in offline device and method based on Ubuntu system
CN109408085A (en) * 2018-09-27 2019-03-01 上海和数软件有限公司 Upgrade method, device, system and the storage medium of hardware wallet
CN109670222A (en) * 2018-12-07 2019-04-23 广联达科技股份有限公司 A kind of model or the online contrast difference's methods, devices and systems of drawing
CN111131833A (en) * 2019-12-27 2020-05-08 宁波深寻信息科技有限公司 Narrow-band communication transmission method based on color graph coding and compression algorithm
CN111368345A (en) * 2020-03-09 2020-07-03 浙江众邦机电科技有限公司 Method, device, equipment and computer readable storage medium for decrypting encrypted program
CN111897563A (en) * 2020-08-11 2020-11-06 深圳牛图科技有限公司 Method for updating code scanning of two-dimensional code scanning module
CN112506554A (en) * 2020-11-10 2021-03-16 深圳市广和通无线股份有限公司 Internet of things module upgrading method and device, computer equipment and storage medium
CN114268454A (en) * 2021-11-18 2022-04-01 南京国电南自维美德自动化有限公司 Data ferrying method for physical isolation environment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060077184A1 (en) * 2004-03-17 2006-04-13 James Marggraff Methods and devices for retrieving and using information stored as a pattern on a surface
CN202795416U (en) * 2012-08-23 2013-03-13 晏华艳 False-proof identification system based on two-dimensional bar code
CN103246540A (en) * 2013-05-23 2013-08-14 福建伊时代信息科技股份有限公司 Update method and update device of application program
CN103530146A (en) * 2013-09-16 2014-01-22 成都交大光芒科技股份有限公司 Low-power-consumption embedded device remote wireless updating method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060077184A1 (en) * 2004-03-17 2006-04-13 James Marggraff Methods and devices for retrieving and using information stored as a pattern on a surface
CN202795416U (en) * 2012-08-23 2013-03-13 晏华艳 False-proof identification system based on two-dimensional bar code
CN103246540A (en) * 2013-05-23 2013-08-14 福建伊时代信息科技股份有限公司 Update method and update device of application program
CN103530146A (en) * 2013-09-16 2014-01-22 成都交大光芒科技股份有限公司 Low-power-consumption embedded device remote wireless updating method

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105072398B (en) * 2015-08-06 2018-07-13 浙江宇视科技有限公司 A kind of device updating method and device
CN105808465A (en) * 2016-03-04 2016-07-27 浙江大华技术股份有限公司 Method and device for upgrading camera equipment
CN105808465B (en) * 2016-03-04 2018-12-07 浙江大华技术股份有限公司 A kind of upgrade method and device of picture pick-up device
CN107247607A (en) * 2017-05-26 2017-10-13 河南职业技术学院 Computer based method for updating system and system updating device
CN109218412A (en) * 2018-08-27 2019-01-15 河南辉煌科技股份有限公司 Remote upgrade method and system for STP system
CN109358875B (en) * 2018-09-27 2022-02-11 上海和数软件有限公司 Ubuntu system-based hardware wallet offline upgrading device and method
CN109408085A (en) * 2018-09-27 2019-03-01 上海和数软件有限公司 Upgrade method, device, system and the storage medium of hardware wallet
CN109358875A (en) * 2018-09-27 2019-02-19 上海和数软件有限公司 Hardware wallet upgraded in offline device and method based on Ubuntu system
CN109670222A (en) * 2018-12-07 2019-04-23 广联达科技股份有限公司 A kind of model or the online contrast difference's methods, devices and systems of drawing
CN109670222B (en) * 2018-12-07 2023-05-09 广联达科技股份有限公司 Model or drawing online difference comparison method, device and system
CN111131833A (en) * 2019-12-27 2020-05-08 宁波深寻信息科技有限公司 Narrow-band communication transmission method based on color graph coding and compression algorithm
CN111131833B (en) * 2019-12-27 2022-04-19 宁波深寻信息科技有限公司 Narrow-band communication transmission method based on color graph coding and compression algorithm
CN111368345A (en) * 2020-03-09 2020-07-03 浙江众邦机电科技有限公司 Method, device, equipment and computer readable storage medium for decrypting encrypted program
CN111897563A (en) * 2020-08-11 2020-11-06 深圳牛图科技有限公司 Method for updating code scanning of two-dimensional code scanning module
CN112506554A (en) * 2020-11-10 2021-03-16 深圳市广和通无线股份有限公司 Internet of things module upgrading method and device, computer equipment and storage medium
CN114268454A (en) * 2021-11-18 2022-04-01 南京国电南自维美德自动化有限公司 Data ferrying method for physical isolation environment
CN114268454B (en) * 2021-11-18 2023-12-22 南京国电南自维美德自动化有限公司 Data ferrying method for physical isolation environment

Also Published As

Publication number Publication date
CN103902342B (en) 2017-10-17

Similar Documents

Publication Publication Date Title
CN103902342A (en) System updating and upgrading method and system in enclosed environment
JP2021513141A (en) Generation and identification of 2D barcodes
US10270468B2 (en) Method for file updating and version control for linear erasure coded and network coded storage
CN109688289B (en) Image encryption transmission method, image decryption method and device
CN108268658B (en) MySQL database-based large text field storage method and system
CN104244235A (en) Method and system for encryption and decryption of sensitive information of telecommunication call bill
US9231927B2 (en) Information processing apparatus, data generation method, information processing method, and information processing system for updating and verifying software programs
JP2022506633A (en) Wireless upgrade method and related equipment
CN112332975A (en) Internet of things equipment secure communication method and system
CN102779048A (en) Method and device for operating hypertext markup language5 (HTML5) application program at mobile terminal
CN101945089A (en) Publishing method and publishing system of digital film packet
CN108710804A (en) A kind of band hardware encryption Rapid Updating of computer UEFI firmwares
CN105159797A (en) Oracle database based backup and recovery method
CN110532290B (en) Information verification device, method and storage medium based on block chain
CN101141442B (en) System and method for implementing memory card function service
CN104243141A (en) Information segmented encryption communication method
CN101331768B (en) Method for transmitting conditional access content
CN104486441A (en) FTP-based remote control method
CN103226673A (en) Method and device for processing SWF (Shock Wave Flash) separation encryption in batches
CN105760202A (en) Server, computing equipment, software compression pack processing device and method
KR101590351B1 (en) Distributed network protocol based data transmission apparatus and data encryption method thereof
CN115756538A (en) Method for software online upgrade
CN104393988A (en) Reversible data encryption method and device
CN115935299A (en) Authorization control method, device, computer equipment and storage medium
CN113704206A (en) Metadata processing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20171017

Termination date: 20210416