[go: up one dir, main page]

CN113157309A - Software design method for saving active file by NVRAM - Google Patents

Software design method for saving active file by NVRAM Download PDF

Info

Publication number
CN113157309A
CN113157309A CN202110101609.8A CN202110101609A CN113157309A CN 113157309 A CN113157309 A CN 113157309A CN 202110101609 A CN202110101609 A CN 202110101609A CN 113157309 A CN113157309 A CN 113157309A
Authority
CN
China
Prior art keywords
file
nvram
activation
software
saving
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
CN202110101609.8A
Other languages
Chinese (zh)
Other versions
CN113157309B (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.)
Shanghai Sunmi Technology Group Co Ltd
Shenzhen Michelangelo Technology Co Ltd
Original Assignee
Shanghai Sunmi Technology Group Co Ltd
Shenzhen Michelangelo Technology Co Ltd
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 Shanghai Sunmi Technology Group Co Ltd, Shenzhen Michelangelo Technology Co Ltd filed Critical Shanghai Sunmi Technology Group Co Ltd
Priority to CN202110101609.8A priority Critical patent/CN113157309B/en
Publication of CN113157309A publication Critical patent/CN113157309A/en
Application granted granted Critical
Publication of CN113157309B publication Critical patent/CN113157309B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a software design method for saving an active file by using an NVRAM (non-volatile random access memory), which comprises the following steps of: s1, initializing and storing the data in the production line version stage; s2, downloading the formal software version, and initially activating the file by a starting initialization method; and S3, after the formal software is started, judging whether the activation file is valid, if so, directly using the formal version, and if not, using the trial version. According to the invention, the data is saved in the NVRAM at the stage of the production line version, and when the downloading formal version is started, the software design data is initialized from the NVRAM and provided for the third party application to use, so that the effectiveness of different software versions of the data is ensured, and the stages of different software versions of the software are highlighted.

Description

Software design method for saving active file by NVRAM
Technical Field
The invention relates to the technical field of file saving and activation, in particular to a software design method for saving an activated file by using an NVRAM (non-volatile random access memory).
Background
With the widespread use of mobile devices, the development requirements of various software are also diversified, and the styles of software are also various. The problem that various files need to be stored is often encountered during software design, and the Android design mechanism specifies that all user caches are cleared except for storing default radio frequency or related coefficients after equipment is restored. Because the number of NVRAMs is limited and the size of each NVRAM partition is relatively small, this approach can only hold some data that is not large in amount. The data needs to be initialized by the matched software in the formal version and then can be used.
NVRAM: non-volatile random access memory cit (customer Interface test): user interface testing
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide a software design method for saving an activation file by using an NVRAM (non-volatile random access memory). data is saved into the NVRAM at the version stage of a production line, and when a downloading formal version is started, software design data is initialized from the NVRAM and provided for a third party application to use, so that the effectiveness of different software versions of the data is ensured, and the stages of different software versions of the software are highlighted. To achieve the above objects and other advantages in accordance with the present invention, there is provided a software designing method for saving an active file using an NVRAM, comprising the steps of:
s1, initializing and storing the data in the production line version stage;
s2, downloading the formal software version, and initially activating the file by a starting initialization method;
and S3, after the formal software is started, judging whether the activation file is valid, if so, directly using the formal version, and if not, using the trial version.
Further, step S1 includes the following steps:
s11, when in the CIT step, adding a network activation method;
s12, saving the activated data content into NVRAM;
further, the step S2 includes the following steps:
s21, the start service monitors the start broadcast;
s22, judging whether a local activation file exists after receiving the startup;
s23, when judging that the activation file exists, further judging whether the activation file is valid;
s24, when judging that the active file does not exist, judging whether the NVRAM where the active file is read is empty.
Further, the method also comprises the following steps:
s2411, starting activation service when the NVRAM of the read activation file is judged to be an empty file;
s2412, monitoring network connection and judging whether the file is successfully activated;
s2113, when the activation file is judged to be successful, writing the activation file into the NVRAM and generating the activation file;
s2114, when the file activation is judged to fail, returning to the step S2412.
Further, the method also comprises the following steps:
s2421, when the NVRAM of the read activation file is judged not to be an empty file, writing the NVRAM into the file;
s2422, return to step S23.
Further, the step S23 further includes:
s231, when the activation file is valid, ending the activation program;
s232, when the active file is invalid, returning to the step S2411.
Compared with the prior art, the invention has the beneficial effects that: and storing the data into the NVRAM at the version stage of production line, and initializing software design data from the NVRAM for a third-party application to use when downloading a formal version and starting up, so as to ensure the effectiveness of different software versions of the data. Different software version stages of software are highlighted, then corresponding application schemes are executed, the scheme of saving the activation files through the NVRAM meets some scenes that network updating cannot be used in stages, the security of the encrypted files is higher, when no network exists, the equipment can still generate effective activation files, when the activation strategy is adjusted, the effective activation files can be generated again, and high security and reproducibility are provided.
Drawings
FIG. 1 is a flow diagram of a formal version active file process of a software design method for saving an active file using NVRAM according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. a software design method for saving an active file using an NVRAM, comprising the steps of: s1, initializing and storing the data in the production line version stage;
s2, downloading the formal software version, and initially activating the file by a starting initialization method;
and S3, after the formal software is started, judging whether the activation file is valid, if so, directly using the formal version, and if not, using the trial version.
Further, step S1 includes the following steps:
s11, when in the CIT step, adding a network activation method;
s12, saving the activated data content into NVRAM;
further, the step S2 includes the following steps:
s21, the start service monitors the start broadcast;
s22, judging whether a local activation file exists after receiving the startup;
s23, when judging that the activation file exists, further judging whether the activation file is valid;
s24, when judging that the active file does not exist, judging whether the NVRAM where the active file is read is empty.
Further, the method also comprises the following steps:
s2411, starting activation service when the NVRAM of the read activation file is judged to be an empty file;
s2412, monitoring network connection and judging whether the file is successfully activated;
s2113, when the activation file is judged to be successful, writing the activation file into the NVRAM and generating the activation file;
s2114, when the file activation is judged to fail, returning to the step S2412.
Further, the method also comprises the following steps:
s2421, when the NVRAM of the read activation file is judged not to be an empty file, writing the NVRAM into the file;
s2422, return to step S23.
Further, the step S23 further includes:
s231, when the activation file is valid, ending the activation program;
s232, when the active file is invalid, returning to the step S2411.
The number of devices and the scale of the processes described herein are intended to simplify the description of the invention, and applications, modifications and variations of the invention will be apparent to those skilled in the art.
While embodiments of the invention have been described above, it is not limited to the applications set forth in the description and the embodiments, which are fully applicable in various fields of endeavor to which the invention pertains, and further modifications may readily be made by those skilled in the art, it being understood that the invention is not limited to the details shown and described herein without departing from the general concept defined by the appended claims and their equivalents.

Claims (6)

1. A software design method for saving an active file using NVRAM, comprising the steps of:
s1, initializing and storing the data in the production line version stage;
s2, downloading the formal software version, and initially activating the file by a starting initialization method;
and S3, after the formal software is started, judging whether the activation file is valid, if so, directly using the formal version, and if not, using the trial version.
2. The software design method for saving an active file using NVRAM as claimed in claim 1, wherein step S1 includes the steps of:
s11, when in the CIT step, adding a network activation method;
and S12, saving the activated data content into the NVRAM.
3. The software design method for saving an active file using NVRAM as claimed in claim 1, wherein said step S2 comprises the steps of:
s21, the start service monitors the start broadcast;
s22, judging whether a local activation file exists after receiving the startup;
s23, when judging that the activation file exists, further judging whether the activation file is valid;
s24, when judging that the active file does not exist, judging whether the NVRAM where the active file is read is empty.
4. The software design method for saving an active file using NVRAM as claimed in claim 3, further comprising:
s2411, starting activation service when the NVRAM of the read activation file is judged to be an empty file;
s2412, monitoring network connection and judging whether the file is successfully activated;
s2113, when the activation file is judged to be successful, writing the activation file into the NVRAM and generating the activation file;
s2114, when the file activation is judged to fail, returning to the step S2412.
5. The software design method for saving an active file using NVRAM as claimed in claim 3, further comprising:
s2421, when the NVRAM of the read activation file is judged not to be an empty file, writing the NVRAM into the file;
s2422, return to step S23.
6. The software design method for saving an active file using NVRAM as claimed in claim 3, wherein said step S23 further comprises:
s231, when the activation file is valid, ending the activation program;
s232, when the active file is invalid, returning to the step S2411.
CN202110101609.8A 2021-01-26 2021-01-26 Software design method for storing activation files by utilizing NVRAM Active CN113157309B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110101609.8A CN113157309B (en) 2021-01-26 2021-01-26 Software design method for storing activation files by utilizing NVRAM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110101609.8A CN113157309B (en) 2021-01-26 2021-01-26 Software design method for storing activation files by utilizing NVRAM

Publications (2)

Publication Number Publication Date
CN113157309A true CN113157309A (en) 2021-07-23
CN113157309B CN113157309B (en) 2024-02-13

Family

ID=76878762

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110101609.8A Active CN113157309B (en) 2021-01-26 2021-01-26 Software design method for storing activation files by utilizing NVRAM

Country Status (1)

Country Link
CN (1) CN113157309B (en)

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0749063A2 (en) * 1995-06-07 1996-12-18 International Business Machines Corporation Method and apparatus for suspend/resume operation in a computer
CN1202291A (en) * 1995-11-14 1998-12-16 国际商业机器公司 An information processing system that allows a general web browser to access multiple servers of different protocol types
CN1774764A (en) * 2002-04-29 2006-05-17 皇家飞利浦电子股份有限公司 Method and apparatus for recording and reproducing event signals
CN1842028A (en) * 2005-03-28 2006-10-04 佳能株式会社 Network device, network device control method and storage medium
CN1960452A (en) * 2005-10-31 2007-05-09 索尼株式会社 Separate-type signal processing apparatus and software version updating method thereof
CN101241735A (en) * 2003-07-07 2008-08-13 巨视股份有限公司 Reprogrammable security for controlling piracy and enabling interactive content
CN102547713A (en) * 2011-12-21 2012-07-04 成都三零瑞通移动通信有限公司 Anti-activating method aiming at X undercover software
CN103019892A (en) * 2012-12-29 2013-04-03 盛耀无线通讯科技(北京)有限公司 NV data backup and recovery method based on high-pass platform
US20130111105A1 (en) * 2011-10-31 2013-05-02 Antonio Lain Non-volatile data structure manager and methods of managing non-volatile data structures
CN104503798A (en) * 2014-12-29 2015-04-08 杭州华三通信技术有限公司 Method and device for configuring server
US9286047B1 (en) * 2013-02-13 2016-03-15 Cisco Technology, Inc. Deployment and upgrade of network devices in a network environment
CN106528140A (en) * 2016-10-28 2017-03-22 青岛海信移动通信技术股份有限公司 Specification adaptation method and device
CN106548062A (en) * 2015-09-18 2017-03-29 三星电子株式会社 Server and user terminal
CN106649096A (en) * 2016-10-31 2017-05-10 厦门美图移动科技有限公司 Method and device for changing equipment information based on automated test
US20180293061A1 (en) * 2017-04-05 2018-10-11 Dell Products, Lp System and method for automatically managing updated uefi variables
CN112214353A (en) * 2020-10-16 2021-01-12 深圳市广和通无线股份有限公司 Firmware recovery method, apparatus, computer device and storage medium

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0749063A2 (en) * 1995-06-07 1996-12-18 International Business Machines Corporation Method and apparatus for suspend/resume operation in a computer
CN1202291A (en) * 1995-11-14 1998-12-16 国际商业机器公司 An information processing system that allows a general web browser to access multiple servers of different protocol types
CN1774764A (en) * 2002-04-29 2006-05-17 皇家飞利浦电子股份有限公司 Method and apparatus for recording and reproducing event signals
CN101241735A (en) * 2003-07-07 2008-08-13 巨视股份有限公司 Reprogrammable security for controlling piracy and enabling interactive content
CN1842028A (en) * 2005-03-28 2006-10-04 佳能株式会社 Network device, network device control method and storage medium
CN1960452A (en) * 2005-10-31 2007-05-09 索尼株式会社 Separate-type signal processing apparatus and software version updating method thereof
US20130111105A1 (en) * 2011-10-31 2013-05-02 Antonio Lain Non-volatile data structure manager and methods of managing non-volatile data structures
CN102547713A (en) * 2011-12-21 2012-07-04 成都三零瑞通移动通信有限公司 Anti-activating method aiming at X undercover software
CN103019892A (en) * 2012-12-29 2013-04-03 盛耀无线通讯科技(北京)有限公司 NV data backup and recovery method based on high-pass platform
US9286047B1 (en) * 2013-02-13 2016-03-15 Cisco Technology, Inc. Deployment and upgrade of network devices in a network environment
CN104503798A (en) * 2014-12-29 2015-04-08 杭州华三通信技术有限公司 Method and device for configuring server
CN106548062A (en) * 2015-09-18 2017-03-29 三星电子株式会社 Server and user terminal
CN106528140A (en) * 2016-10-28 2017-03-22 青岛海信移动通信技术股份有限公司 Specification adaptation method and device
CN106649096A (en) * 2016-10-31 2017-05-10 厦门美图移动科技有限公司 Method and device for changing equipment information based on automated test
US20180293061A1 (en) * 2017-04-05 2018-10-11 Dell Products, Lp System and method for automatically managing updated uefi variables
CN112214353A (en) * 2020-10-16 2021-01-12 深圳市广和通无线股份有限公司 Firmware recovery method, apparatus, computer device and storage medium

Also Published As

Publication number Publication date
CN113157309B (en) 2024-02-13

Similar Documents

Publication Publication Date Title
EP3062234B1 (en) System, method and computer program product for content/context sensitive scanning utilizing a mobile communication device
US6970697B2 (en) Platform-independent scanning subsystem API for use in a mobile communication framework
EP1629360B1 (en) Update system and method for updating a scanning subsystem in a mobile communication framework
JP3955358B2 (en) Method and computer system for executing architecture specific code with reduced run-time memory space requirements
US8522004B2 (en) Method and system for power management for a handheld mobile electronic device executing-in-place an application kernel from execute-in-place non-volatile memory (XIP NVM)
CA2517485A1 (en) Api system, method and computer program product for accessing content/security analysis functionality in a mobile communication framework
CN113703813A (en) Kernel upgrading method, device, equipment and computer readable storage medium
CN106886422A (en) Method for upgrading software and device, electronic equipment
CN109710287A (en) A kind of hot update method, device and computer storage medium
CN105786636B (en) System repair method and device
CN111245814B (en) Data auditing method and device, electronic equipment and storage medium
CN113157309A (en) Software design method for saving active file by NVRAM
CN110321143A (en) Method for upgrading software, display panel and the readable storage medium storing program for executing of display panel
US7634258B2 (en) System and method for over-the-air update of wireless communication devices
CN114003295B (en) Method, system and device for setting memory parameters
WO2012034327A1 (en) Method and terminal for version update
CN112732276B (en) U shield control method and U shield device
CN109829291B (en) Authentication method for entering Android setting interface
CN117055919A (en) Function upgrading method and processing terminal under condition that CS client does not change file
WO2025054246A1 (en) Method and system for upgrading the firmware of a device
KR100545095B1 (en) Wireless terminal software upgrade method
CN119211903B (en) Profile download method and device based on eSIM card
JP5854349B2 (en) Removable memory unit and thin client system
US20020099755A1 (en) Digital device, task management method and program therefor
CN113867826B (en) Extension package access control method, device, Java smart card and storage medium

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