CN113590155B - Remote incremental updating method for self-grinding RTOS - Google Patents
Remote incremental updating method for self-grinding RTOS Download PDFInfo
- Publication number
- CN113590155B CN113590155B CN202110866091.7A CN202110866091A CN113590155B CN 113590155 B CN113590155 B CN 113590155B CN 202110866091 A CN202110866091 A CN 202110866091A CN 113590155 B CN113590155 B CN 113590155B
- Authority
- CN
- China
- Prior art keywords
- sub
- rtos
- self
- remote
- pos equipment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07G—REGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
- G07G1/00—Cash registers
- G07G1/12—Cash registers electronically operated
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention relates to the technical field of self-grinding RTOS, in particular to a method for remotely and incrementally updating the self-grinding RTOS, which comprises the following steps: step S1: dividing the original self-grinding RTOS of the POS equipment into a plurality of sub-executable files by the whole executable files according to the function module to form a new self-grinding RTOS; step S2: adding a backup storage file into the new self-research RTOS, wherein the storage space of the backup storage file is consistent with the storage space of the sub-executable file with the largest storage space; step S3: the remote upper computer establishes connection with the POS equipment through a network; step S4: the remote upper computer sends a down character string to inform the POS equipment of entering a downloading mode; step S5: the POS equipment receives the down character string and returns a confirmation to inform the remote upper computer; step S6: the remote upper computer transmits a new modx character string to the POS equipment to inform that an x-th sub-executable file in the plurality of sub-executable files needs to be updated; step S7: the POS device receives the modx string and returns an acknowledgement to inform the remote host.
Description
[ field of technology ]
The invention relates to the technical field of self-grinding RTOS, in particular to a method for remotely and incrementally updating the self-grinding RTOS.
[ background Art ]
Along with the increasing functions of embedded POS equipment and the increasing demands of software compatibility, the code quantity of the self-grinding RTOS is increased, and the corresponding generated self-grinding RTOS executable files are expanded, so that the longer and longer storage running space is required for storing the self-grinding RTOS executable files, the longer and longer time for remotely updating the self-grinding RTOS executable files and the longer and longer data flow required by remote communication are required, thereby reducing the updating success rate, increasing the cost of the generated communication data flow, and increasing the demand on the storage space of the POS equipment and increasing the hardware cost of the POS equipment.
Accordingly, the prior art has shortcomings and needs improvement.
[ invention ]
In order to overcome the technical problems, the invention provides a method for remote incremental updating of a self-grinding RTOS.
The technical problem is solved by the invention by providing a method for remote incremental updating of a self-grinding RTOS, which comprises the following steps:
step S1: dividing the original self-grinding RTOS of the POS equipment into a plurality of sub-executable files by the whole executable files according to the function module to form a new self-grinding RTOS;
step S2: adding a backup storage file into the new self-research RTOS, wherein the storage space of the backup storage file is consistent with the storage space of the sub-executable file with the largest storage space;
step S3: the remote upper computer establishes connection with the POS equipment through a network;
step S4: the remote upper computer sends a down character string to inform the POS equipment of entering a downloading mode;
step S5: the POS equipment receives the down character string and returns a confirmation to inform the remote upper computer;
step S6: the remote upper computer transmits a new modx character string to the POS equipment to inform that an x-th sub-executable file in the plurality of sub-executable files needs to be updated;
step S7: the POS equipment receives the mod x character string and returns an acknowledgement to inform the remote upper computer;
step S8: the remote upper computer transmits a modx sub executable file to be updated to the POS equipment;
step S9: the POS equipment receives the mod x sub-executable file and returns an acknowledgement to inform the remote upper computer;
step S10: the POS equipment stores the received mod x sub-executable file in a backup storage file and checks the backup storage file;
step S11: after verification is completed, the POS equipment erases the content in the original x sub-executable file and replaces the content by the updated content of the backup storage file to form an updated x sub-executable file;
step S12: the POS equipment erases the content in the backup storage file and returns a confirmation to inform the remote upper computer that the updating is completed;
step S13: the remote upper computer is disconnected with the POS equipment.
Preferably, the storage space of a plurality of the sub-executable files is 50kb.
Preferably, the storage space of the backup storage file is 50kb.
Preferably, the number of the sub-executable files is set to 5.
Preferably, the remote upper computer establishes connection with the POS device in a wireless mode or a wired mode.
Compared with the prior art, the method for remotely and incrementally updating the self-grinding RTOS has the following advantages:
by cutting the self-grinding RTOS into a plurality of sub-executable files from one whole, only a modified sub-executable file is updated during remote updating, and other executable files are kept unchanged, so that the load capacity of one remote updating is only the size of a sub-executable file, which is beneficial to improving the remote updating efficiency, reducing the possibility of updating failure, and the updating can be completed by needing less remote communication data flow, thereby being beneficial to reducing the communication cost, and meanwhile, the spare storage space of the POS equipment to be updated also only needs the size space of a certain executable file, without providing the spare storage space consistent with the memory of the whole self-grinding RTOS, thereby being beneficial to reducing the requirement on the spare storage space of a large memory and reducing the cost on hardware.
[ description of the drawings ]
FIG. 1 is a flow chart showing a method for remote incremental updating of a self-polishing RTOS according to the present invention.
[ detailed description ] of the invention
The present invention will be described in further detail with reference to the accompanying drawings and examples of implementation in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, the present invention provides a method for remote incremental update of a self-lapping RTOS, comprising the steps of:
step S1: the original self-grinding RTOS of the POS equipment is divided into a plurality of sub-executable files by the whole executable files according to the function modules so as to form a new self-grinding RTOS.
Specifically, by cutting the larger self-grinding RTOS into a plurality of sub-executable files, one sub-executable file can be updated without updating all the sub-executable files during updating, which is beneficial to improving the updating speed and reducing the time and telecommunication cost for updating.
Preferably, in the present invention, the number of sub-executable files is set to 5 and the storage space is 50kb.
Step S2: and adding a backup storage file into the new self-research RTOS, wherein the storage space of the backup storage file is consistent with the storage space of the sub-executable file with the largest storage space.
The backup storage file is set, so that the remote upper computer can not update the sub-executable file directly, and the possibility that the updated function cannot be realized due to direct update to the sub-executable file when the update content in the remote upper computer is problematic is reduced.
The storage space of the backup storage file is consistent with the storage space of the sub executable file with the largest storage space, so that the situation that the updating is stopped or failed because the memory occupied by the updated content is larger than the storage space of the backup storage file does not occur in the updating process, the smooth progress of the updating progress is ensured, and the possibility of increasing the hardware cost because the storage space of the backup storage file is overlarge is avoided.
Preferably, the storage space of the backup storage file is 50kb.
Step S3: the remote upper computer establishes connection with the POS equipment through a network.
Preferably, the remote upper computer and the POS device are connected in a wireless mode or a wired mode, and the connection can be specifically set according to actual practice.
Step S4: the remote upper computer sends a down character string to inform the POS equipment of entering a downloading mode;
step S5: the POS equipment receives the down character string and returns a confirmation to inform the remote upper computer;
step S6: the remote host computer issues a new modx string to the POS device to inform that the x-th sub-executable file in the plurality of sub-executable files needs to be updated.
It will be appreciated that the xth sub-executable may be the first, last or any one of the sub-executables, particularly according to
Step S7: the POS equipment receives the modx character string and returns a confirmation to inform the remote upper computer;
step S8: the remote upper computer transmits a modx sub executable file to be updated to the POS equipment;
step S9: the POS equipment receives the modx sub executable file and returns an acknowledgement to inform the remote upper computer;
step S10: the POS device stores the received modx sub executable file in the backup storage file and performs verification.
Step S11: after verification is completed, the POS equipment erases the content in the original x sub-executable file and replaces the content by the updated content of the backup storage file to form an updated x sub-executable file;
step S12: the POS equipment erases the content in the backup storage file and returns a confirmation to inform the remote upper computer that the updating is completed;
step S13: the remote upper computer is disconnected with the POS equipment.
Compared with the prior art, the method for remotely and incrementally updating the self-grinding RTOS has the following advantages:
by cutting the self-grinding RTOS into a plurality of sub-executable files from one whole, only a modified sub-executable file is updated during remote updating, and other executable files are kept unchanged, so that the load capacity of one remote updating is only the size of a sub-executable file, which is beneficial to improving the remote updating efficiency, reducing the possibility of updating failure, and the updating can be completed by needing less remote communication data flow, thereby being beneficial to reducing the communication cost, and meanwhile, the spare storage space of the POS equipment to be updated also only needs the size space of a certain executable file, without providing the spare storage space consistent with the memory of the whole self-grinding RTOS, thereby being beneficial to reducing the requirement on the spare storage space of a large memory and reducing the cost on hardware.
The foregoing description of the preferred embodiments of the invention is not intended to limit the scope of the invention, but is intended to cover any modifications, equivalents, and improvements within the spirit of the invention.
Claims (5)
1. A method for remote incremental updating self-grinding RTOS is characterized in that: the method for remote incremental updating of the self-lapping RTOS comprises the following steps:
step S1: dividing the original self-grinding RTOS of the POS equipment into a plurality of sub-executable files by the whole executable files according to the function module to form a new self-grinding RTOS;
step S2: adding a backup storage file into the new self-research RTOS, wherein the storage space of the backup storage file is consistent with the storage space of the sub-executable file with the largest storage space;
step S3: the remote upper computer establishes connection with the POS equipment through a network;
step S4: the remote upper computer sends a down character string to inform the POS equipment of entering a downloading mode;
step S5: the POS equipment receives the down character string and returns a confirmation to inform the remote upper computer;
step S6: the remote upper computer transmits a new modx character string to the POS equipment to inform that an x-th sub-executable file in the plurality of sub-executable files needs to be updated;
step S7: the POS equipment receives the modx character string and returns a confirmation to inform the remote upper computer;
step S8: the remote upper computer transmits a modx sub executable file to be updated to the POS equipment;
step S9: the POS equipment receives the modx sub executable file and returns an acknowledgement to inform the remote upper computer;
step S10: the POS equipment stores the received modx sub executable file in a backup storage file and checks the backup storage file;
step S11: after verification is completed, the POS equipment erases the content in the original x sub-executable file and replaces the content by the updated content of the backup storage file to form an updated x sub-executable file;
step S12: the POS equipment erases the content in the backup storage file and returns a confirmation to inform the remote upper computer that the updating is completed;
step S13: the remote upper computer is disconnected with the POS equipment.
2. The method for remote incremental update of a self-lapping RTOS of claim 1, wherein: the storage space of a plurality of the sub-executable files is 50kb.
3. The method for remote incremental update of a self-lapping RTOS of claim 1, wherein: the storage space of the backup storage file is 50kb.
4. The method for remote incremental update of a self-lapping RTOS of claim 1, wherein: the number of the sub-executable files is set to 5.
5. The method for remote incremental update of a self-lapping RTOS of claim 1, wherein: the remote upper computer establishes connection with the POS equipment in a wireless mode or a wired mode.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110866091.7A CN113590155B (en) | 2021-07-29 | 2021-07-29 | Remote incremental updating method for self-grinding RTOS |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110866091.7A CN113590155B (en) | 2021-07-29 | 2021-07-29 | Remote incremental updating method for self-grinding RTOS |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113590155A CN113590155A (en) | 2021-11-02 |
CN113590155B true CN113590155B (en) | 2023-06-20 |
Family
ID=78252048
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110866091.7A Active CN113590155B (en) | 2021-07-29 | 2021-07-29 | Remote incremental updating method for self-grinding RTOS |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113590155B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2005085997A2 (en) * | 2004-03-10 | 2005-09-15 | Sony Ericsson Mobile Communications Ab | Automatic backup store in firmware upgrades |
US7028304B1 (en) * | 1998-05-26 | 2006-04-11 | Rockwell Collins | Virtual line replaceable unit for a passenger entertainment system, method and article of manufacture |
US10146520B1 (en) * | 2010-12-14 | 2018-12-04 | Ivanti, Inc. | Updating a running application on a computing device |
WO2019071858A1 (en) * | 2017-10-09 | 2019-04-18 | 武汉斗鱼网络科技有限公司 | File update method, apparatus, and device |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4624829B2 (en) * | 2004-05-28 | 2011-02-02 | 富士通株式会社 | Data backup system and method |
TWI685786B (en) * | 2018-10-25 | 2020-02-21 | 神雲科技股份有限公司 | Firmware updating method for fpga |
-
2021
- 2021-07-29 CN CN202110866091.7A patent/CN113590155B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7028304B1 (en) * | 1998-05-26 | 2006-04-11 | Rockwell Collins | Virtual line replaceable unit for a passenger entertainment system, method and article of manufacture |
WO2005085997A2 (en) * | 2004-03-10 | 2005-09-15 | Sony Ericsson Mobile Communications Ab | Automatic backup store in firmware upgrades |
US10146520B1 (en) * | 2010-12-14 | 2018-12-04 | Ivanti, Inc. | Updating a running application on a computing device |
WO2019071858A1 (en) * | 2017-10-09 | 2019-04-18 | 武汉斗鱼网络科技有限公司 | File update method, apparatus, and device |
Also Published As
Publication number | Publication date |
---|---|
CN113590155A (en) | 2021-11-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102520948B (en) | Application maintenance update method and device | |
CN104461654A (en) | OBD equipment function unit and firmware classification optional upgrading method | |
CN100520735C (en) | Memory space management method and related system | |
CN104714811A (en) | Method and device for manufacturing difference upgrade package and system difference upgrade method and device | |
CN112152846B (en) | Metering instrument remote upgrading method based on Internet of things | |
CN101883139A (en) | Method for upgrading peripheral equipment software, computer and system | |
CN101957765A (en) | Method, system and equipment for updating equipment firmware | |
JP3864337B2 (en) | How to upgrade | |
CN106020837A (en) | Method and system for loading set top box drive | |
CN113590155B (en) | Remote incremental updating method for self-grinding RTOS | |
CN112732318A (en) | Singlechip firmware upgrading method | |
CN113778739B (en) | System repair method, system, equipment and storage medium of all-in-one machine | |
CN109582337A (en) | Firmware upgrading method and device and computer readable storage medium | |
CN115509591A (en) | Firmware differentiated hot upgrading method | |
CN111541562B (en) | Network driver layer-based airborne equipment firmware upgrading method and system | |
CN112988465A (en) | Method for automatically recovering operation of single chip microcomputer in upgrading failure | |
CN102609336A (en) | Data administration method and data administration system | |
CN101634957A (en) | Method and system for managing data of flash memory | |
EP1955140A2 (en) | Adaptive data dictionary language, extendable for a security system | |
CN110389780A (en) | Edition data processing method, system and equipment | |
CN1261893C (en) | Method of renewing operating system of embedded equipment | |
CN115664958A (en) | Method for upgrading terminal firmware in batches through CAN bus | |
CN112000352A (en) | Terminal device upgrading method and management platform | |
CN111813597A (en) | Air conditioner | |
CN112905112B (en) | Data processing method and system of embedded equipment |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |