CN112905219A - Software updating method based on SD card, terminal and computer readable storage medium - Google Patents

Software updating method based on SD card, terminal and computer readable storage medium Download PDF

Info

Publication number
CN112905219A
CN112905219A CN202110177278.6A CN202110177278A CN112905219A CN 112905219 A CN112905219 A CN 112905219A CN 202110177278 A CN202110177278 A CN 202110177278A CN 112905219 A CN112905219 A CN 112905219A
Authority
CN
China
Prior art keywords
card
software
processing unit
central processing
updated
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110177278.6A
Other languages
Chinese (zh)
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.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN202110177278.6A priority Critical patent/CN112905219A/en
Publication of CN112905219A publication Critical patent/CN112905219A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/654Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories

Abstract

The invention provides a software updating method based on an SD card, a terminal and a computer readable storage medium, wherein the software updating method based on the SD card comprises the following steps: when the SD card has a software file to be updated, the central processing unit generates an SD card software updating instruction; controlling the SD card to be disconnected with the central processing unit according to the SD card software updating instruction, and controlling the SD card to be connected with the memory; and closing the central processing unit and the screen, and acquiring the software file to be updated in the SD card by the memory and updating the software. In the process that the SD card stores the software file to be updated into the memory of the terminal, the central processing unit and the screen which do not need to participate in operation are closed, and further additional energy consumption is effectively avoided.

Description

Software updating method based on SD card, terminal and computer readable storage medium
Technical Field
The invention relates to the technical field of terminal software updating, in particular to a software updating method based on an SD card, a terminal and a computer readable storage medium.
Background
At present, the technology of the mobile terminal is rapidly developed, particularly, in order to adapt to various new requirements of users and solve the original problems, the updating speed is very high, and the software needs to be updated frequently. For example, in order for a certain mobile terminal manufacturer to sell a product on the market early to occupy an advantageous position, small problems remain in the product, so that the product is sold on the market first with the small problems; the problems are further solved later, and the problems are updated by releasing a software package, so that the product is guaranteed to be on the market as soon as possible, the development time is reduced, and meanwhile, the problem can be solved by updating the problem-solving software to the product purchased by the user in subsequent development.
Based on the above-mentioned prior art, the user often needs to update the software version, there are the following problems: when software is updated, the mobile terminal needs to keep the screen lighted, and the central processing units are in working states, so that extra energy consumption is caused, and particularly, some devices such as a display screen and a touch screen are in working states when software is not updated actually.
Therefore, the prior art has defects and needs to be improved and developed.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a software updating method based on an SD card, a terminal and a computer readable storage medium, aiming at solving the problem of extra energy consumption caused by the fact that a screen and a central processing unit cannot be turned off when the terminal updates software in the prior art.
The technical scheme adopted by the invention for solving the technical problem is as follows: an SD card based software updating method, comprising:
when the SD card has a software file to be updated, the central processing unit generates an SD card software updating instruction;
controlling the SD card to be disconnected with the central processing unit according to the SD card software updating instruction, and controlling the SD card to be connected with the memory;
and closing the central processing unit and the screen, and acquiring the software file to be updated in the SD card by the memory and updating the software.
Further, when the software file in the SD card is to be updated, the central processing unit generates an SD card software update instruction, and the method includes:
and detecting whether the software file to be updated is stored in the SD card.
Further, when the software file in the SD card is to be updated, the central processing unit generates an SD card software update instruction, which specifically includes:
when the software file to be updated is in the SD card, acquiring the size of the software file to be updated;
and when the size of the software file to be updated is larger than a preset threshold value, the central processing unit generates an SD card software updating instruction.
Further, the controlling the SD card to be disconnected from the central processing unit according to the SD card software update instruction and controlling the SD card to be connected to the memory also includes the steps before;
and the central processing unit sends the address information of the software file to be updated stored in the memory to the SD card.
Further, the controlling the SD card to be disconnected from the central processing unit and the SD card to be connected to the memory according to the SD card software update instruction includes:
controlling the SD card to be disconnected with the central processing unit according to the SD card software updating instruction;
controlling the SD card to be connected to the address information of the memory.
Further, the closing the central processing unit and the screen, and the obtaining, by the memory, the software file to be updated in the SD card, and performing software update specifically include:
closing the central processor and the screen;
and the SD card stores the software file to be updated into the memory according to the address information to update the software.
Further, the closing the central processing unit and the screen, the memory obtaining the software file to be updated from the SD card according to the SD card software update software, and then further comprising:
and starting the central processing unit and the screen, and refreshing the state information of the software version update.
Further, the starting the central processing unit and the screen, and refreshing the state information of the software version update specifically includes:
when a screen lightening instruction is received, starting the central processing unit and the screen;
disconnecting the memory from the SD card and connecting the memory with a central processing unit;
and the central processing unit acquires the size of the updated software file in the memory and refreshes the version information of the software version update.
The technical scheme adopted by the invention for solving the technical problem is as follows: a terminal, comprising: the software updating method comprises the following steps of a memory, a processor and an SD card based software updating program which is stored on the memory and can run on the processor, wherein the SD card based software updating program realizes the steps of the SD card based software updating method when being executed by the processor.
The technical scheme adopted by the invention for solving the technical problem is as follows: a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program executable for implementing the steps of the SD card-based software updating method as described above.
The invention provides a software updating method based on an SD card, a terminal and a computer readable storage medium, wherein the software updating method based on the SD card comprises the following steps: when the SD card has a software file to be updated, the central processing unit generates an SD card software updating instruction; controlling the SD card to be disconnected with the central processing unit according to the SD card software updating instruction, and controlling the SD card to be connected with the memory; and closing the central processing unit and the screen, and acquiring the software file to be updated in the SD card by the memory and updating the software. It can be understood that the software updating method based on the SD card provided by the invention stores the software file to be updated into the SD card in advance; and then the software file to be updated is stored in a memory of the terminal through the SD card, so that a central processing unit and a screen which do not need to participate in operation can be closed, and further additional energy consumption is effectively avoided.
Drawings
FIG. 1 is a flow chart of a preferred embodiment of the SD card based software updating method of the present invention;
FIG. 2 is a flowchart illustrating a specific step of the SD card based software updating method of the present invention;
FIG. 3 is a flowchart illustrating another specific step of the SD card based software updating method of the present invention;
FIG. 4 is a flowchart illustrating another specific step of the SD card based software updating method of the present invention;
FIG. 5 is another functional block diagram of a preferred embodiment of the terminal of the present invention;
fig. 6 is another functional block diagram of a preferred embodiment of the terminal of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
At present, the technology of the mobile terminal is rapidly developed, particularly, in order to adapt to various new requirements of users and solve the original problems, the updating speed is very high, and the software needs to be updated frequently. For example, in order for a certain mobile terminal manufacturer to sell a product on the market early to occupy an advantageous position, small problems remain in the product, so that the product is sold on the market first with the small problems; the problems are further solved later, and the problems are updated by releasing a software package, so that the product is guaranteed to be on the market as soon as possible, the development time is reduced, and meanwhile, the problem can be solved by updating the problem-solving software to the product purchased by the user in subsequent development. Based on the above-mentioned prior art, the user often needs to update the software version, there are the following problems: when software is updated, the mobile terminal needs to keep the screen lighted, and the central processing units are in working states, so that extra energy consumption is caused, and particularly, some devices such as a display screen and a touch screen are in working states when software is not updated actually.
The invention provides a software updating method, a terminal and a computer readable storage medium based on an SD card, based on the problem that when a terminal updates software, a screen and a central processing unit cannot be closed, so that extra energy consumption is caused, and the problem that extra energy consumption is caused is provided.
Referring to fig. 1 to 4, a first embodiment of the present invention provides a software updating method based on an SD card, which includes:
and S200, when the software file to be updated exists in the SD card, the central processing unit generates an SD card software updating instruction.
It can be understood that the SD card-based software updating method provided in the present invention detects the SD card, and when detecting that a software file to be updated is in the SD card, the central processing unit becomes an SD card software updating instruction, and the SD card software updating instruction can control subsequent software updating operations between the SD card and the memory, and also provides a guarantee for closing the central processing unit in a subsequent software updating process, that is, the method reduces energy consumption when the terminal updates software through the SD card.
In some preferred embodiments, the step S200 further includes a step S100 before, and the step S100 includes:
and detecting whether the software file to be updated is stored in the SD card.
It can be understood that the software updating method based on the SD card provided in the present invention needs to store the software to be updated into the SD card in advance, and by detecting whether the software file to be updated is stored in the SD card, when the software file to be updated is stored in the SD card, a subsequent process of software updating based on the SD card is started, so as to ensure that the terminal can accurately identify the software updating performed in that manner, thereby providing a guarantee for executing the software updating method based on the SD card, effectively ensuring that the terminal can identify the execution of the software updating program based on the SD card, and further providing a guarantee for subsequently closing the central processing unit and the display, and reducing energy consumption.
Referring further to fig. 2, in some preferred embodiments, the step S200 specifically includes:
step S210, when the software file to be updated is in the SD card, acquiring the size of the software file to be updated;
step S220, when the size of the software file to be updated is larger than a preset threshold value, the central processing unit generates an SD card software updating instruction.
It can be understood that the updating speed of the software is inversely related to the size of the software file to be updated, the larger the size of the software to be updated is, the slower the updating speed of the software is, the longer the software is updated, and the larger the energy consumption amount in the period is; when the software updating process is carried out based on the SD card, the software file to be updated in the SD card needs to be transferred into the memory, and the software updating process is mainly carried out in the step, and the central processing unit is not needed to participate in the process of transferring the software file to be updated in the SD card into the memory, so that the central processing unit and the screen of the terminal can be temporarily closed in the process, and additional energy consumption is avoided.
Therefore, when the software file to be updated is smaller, the process of transferring the software file to be updated in the SD card to the memory is less, and in the process, the energy consumed by the terminal for running the software updating program based on the SD card is equivalent to the energy saved by turning off the central processing unit, so that the subsequent steps do not need to be continuously executed, and the central processing unit does not need to be temporarily turned off in the process; therefore, by acquiring the size of the software file to be updated and comparing the size of the software file to be updated with a preset threshold, the central processing unit generates an SD card software updating instruction only when the size of the software file to be updated is larger than the preset threshold; the preset threshold may be provided for a user to set by himself in a menu, or may be fixed when the mobile terminal leaves a factory, specifically, for example, 100M.
The step S200 is followed by: and S400, controlling the SD card to be disconnected from the central processing unit according to the SD card software updating instruction, and controlling the SD card to be connected with the memory.
It is understood that after the central processor generates the SD card software update instruction, the link between the central processor and the SD card is disconnected, and the SD card is connected to the memory; the method and the device ensure that the memory can acquire the software file to be updated from the SD card and disconnect the central processing unit, and provide guarantee for closing the central processing unit in the process of transferring the software file to be updated to the memory by the SD card.
In some preferred embodiments, the step S400 further includes a step S300 before, and the step S300 includes:
and the central processing unit sends the address information of the software file to be updated stored in the memory to the SD card.
It can be understood that after the central processing unit generates the SD card software update instruction, the central processing unit sends the address information of the software file to be updated stored in the memory to the SD card, thereby providing a guarantee for the SD card to be accurately connected with the memory when the central processing unit is subsequently turned off, and ensuring that the SD card transfers the software to be updated to a specified position in the memory.
Referring further to fig. 3, in some preferred embodiments, the step S400 specifically includes:
s410, controlling the SD card to be disconnected with the central processing unit according to the SD card software updating instruction;
and step S420, controlling the SD card to be connected to the address information of the memory.
It is understood that after the central processor generates the SD card software update instruction, the link between the central processor and the SD card is disconnected, and the SD card is connected to the memory; the method and the device ensure that the memory can acquire the software file to be updated from the SD card and disconnect the central processing unit, and provide guarantee for closing the central processing unit in the process of transferring the software file to be updated to the memory by the SD card.
Specifically, after receiving the SD card software update instruction, configuring the value of the mode register of the SD card chip as the power saving threshold; configuring the value of a mode register of the SD card chip as an energy-saving threshold value, so that the SD card is set to be in a low-consumption energy updating mode; similarly, the SD card can be adjusted to a normal operation mode by controlling the mode register of the SD card chip to be set to a corresponding value.
The step S400 is followed by: and S500, closing the central processing unit and the screen, and acquiring the software file to be updated in the SD card by the memory and updating the software.
It should be noted that, before the central processing unit and the screen are closed, the central processing unit is disconnected from the SD card, the SD card is also connected to the memory, and then the SD card transfers the software file to be updated to the memory, that is, the memory obtains the software file to be updated from the SD card to perform software update.
It is understood that the closing of the central processing unit and the screen is temporary, and both the central processing unit and the screen may be opened during the process of the memory obtaining the software file to be updated from the SD card or after the memory obtaining the software file to be updated from the SD card, for example, after the terminal turns off the screen, the central processing unit is in a closed state, but may still be triggered to start by a key (an on-off key, etc.).
After the step S500 is: and S600, starting the central processing unit and the screen, and refreshing the state information of the software version update.
It can be understood that after the memory obtains the software to be updated from the SD card, the software updating operation is basically completed, the updated software update file is stored in the memory, and finally, after the central processing unit is started, the information of the software update file in the memory is obtained, and then the state information of the software update is refreshed, so that the software update is completed.
Referring further to fig. 4, in some preferred embodiments, the step S600 specifically includes:
step S610, when a screen lightening instruction is received, starting the central processing unit and the screen;
step S620, disconnecting the memory from the SD card, and connecting the memory with a central processing unit;
step S630, the central processing unit obtains the size of the updated software file in the memory, and refreshes the version information of the software version update.
It can be understood that, in this embodiment, the opening of the central processing unit and the screen is triggered by a screen lighting instruction; meanwhile, the screen lighting instruction can be realized by pressing a key on the terminal, for example, pressing a switch key, and when the central processing unit is in a closed state, the central processing unit can still be triggered and started by corresponding interruption; therefore, when the screen lightening instruction is detected, the central processing unit and the screen are started, and further other operations of a user are not interfered; meanwhile, the memory is controlled to be disconnected from the SD card, and the memory is connected with a central processing unit; then the central processing unit obtains the size of the updated software file in the memory and refreshes the version information of the software version update; and the central processing unit refreshes the version information of the software version update according to the size of the updated software file in the memory, and completes the software updating operation based on the SD card.
Meanwhile, in consideration of the possibility that a user can light up the screen at any time, the central processing unit refreshes the state information of the software version update by acquiring the size of the updated file in the memory, namely the central processing unit updates the information of the file update by looking at the size of the updated file in the specified position (corresponding position of the address information) of the memory; for example, a 500M file is updated by 20M before the screen is turned off, the file is updated by 80M after the screen is turned off, and after the screen is turned on again, the central processing unit updates the display by checking the size (100M) of the updated file at the designated position of the memory, thereby providing guarantee for smooth execution of the software updating method based on the SD card.
Referring again to fig. 1, in some preferred embodiments, the method for updating software based on SD card includes:
s100, detecting whether a software file to be updated is stored in the SD card;
s200, when the software file to be updated exists in the SD card, a central processing unit generates an SD card software updating instruction;
step S300, the central processing unit sends the address information of the software file to be updated stored in the memory to the SD card;
s400, controlling the SD card to be disconnected from the central processing unit according to the SD card software updating instruction, and controlling the SD card to be connected with the memory;
step S500, the central processing unit and the screen are closed, and the memory acquires the software file to be updated in the SD card and updates the software;
and S600, starting the central processing unit and the screen, and refreshing the state information of the software version update.
It can be understood that, by generating the SD card software update software upon detecting that the SD card stores the software file to be updated (i.e. the installation package), connecting the SD card to the specified address information of the memory, and disconnecting the SD card from the central processor, the memory can then obtain the software file to be updated from the SD card, while the central processor and the screen that do not need to participate in the process are turned off, thereby effectively avoiding additional energy consumption caused by the central processor and the screen, and the central processor and the screen can be turned on again, and the state information of the software version update can be refreshed.
Referring to fig. 5 and fig. 6 in combination, in a second embodiment of the present invention, on the basis of the SD card-based software updating method, a terminal is further provided, which includes: a memory 20, a processor 10 and a software updating program 30 based on SD card stored in the memory 20 and capable of running on the processor 10, wherein the software updating program 30 based on SD card when executed by the processor 10 implements the steps of the software updating method based on SD card according to the first embodiment of the present invention, and please refer to the above embodiments specifically.
The memory 20 may be an internal storage unit of the terminal in some embodiments, for example, a hard disk or a memory of the terminal. The memory 20 may also be an external storage device of the terminal in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the terminal. Further, the memory 20 may also include both an internal storage unit and an external storage device of the terminal. The memory 20 is used for storing application software installed in the terminal and various types of data, such as program codes for installing the terminal. The memory 20 may also be used to temporarily store data that has been output or is to be output. In one embodiment, the memory 20 stores a software update control program 30, and the software update control program 30 can be executed by the processor 10 to implement the software update control method of the present application.
The processor 10 may be a Central Processing Unit (CPU), microprocessor or other data Processing chip in some embodiments, and is used for running program codes stored in the memory 20 or Processing data, such as executing the software update control method.
In one embodiment, the following steps are implemented when the processor 10 executes the SD card based software update program 30 in the memory 20:
when the SD card has a software file to be updated, the central processing unit generates an SD card software updating instruction;
controlling the SD card to be disconnected with the central processing unit according to the SD card software updating instruction, and controlling the SD card to be connected with the memory;
and closing the central processing unit and the screen, and acquiring the software file to be updated in the SD card by the memory and updating the software.
When the software file to be updated is in the SD card, the central processing unit generates an SD card software update instruction, and the method further includes:
and detecting whether the software file to be updated is stored in the SD card.
When the software file to be updated is in the SD card, the central processing unit generates an SD card software update instruction, which specifically includes:
when the software file to be updated is in the SD card, acquiring the size of the software file to be updated;
and when the size of the software file to be updated is larger than a preset threshold value, the central processing unit generates an SD card software updating instruction.
The SD card is controlled to be disconnected from the central processing unit according to the SD card software updating instruction, and the SD card is controlled to be connected with the memory, and the method also comprises the following steps;
and the central processing unit sends the address information of the software file to be updated stored in the memory to the SD card.
The controlling the SD card to be disconnected from the central processing unit according to the SD card software updating instruction and controlling the SD card to be connected with the memory comprises the following steps:
controlling the SD card to be disconnected with the central processing unit according to the SD card software updating instruction;
controlling the SD card to be connected to the address information of the memory.
The closing of the central processing unit and the screen, the acquisition of the software file to be updated in the SD card by the memory, and the software update specifically include:
closing the central processor and the screen;
and the SD card stores the software file to be updated into the memory according to the address information to update the software.
The closing of the central processing unit and the screen, the obtaining of the software file to be updated from the SD card by the memory according to the SD card software update software, and then further comprising:
and starting the central processing unit and the screen, and refreshing the state information of the software version update.
The starting the central processing unit and the screen, and refreshing the state information of the software version update specifically includes:
when a screen lightening instruction is received, starting the central processing unit and the screen;
disconnecting the memory from the SD card and connecting the memory with a central processing unit;
and the central processing unit acquires the size of the updated software file in the memory and refreshes the version information of the software version update.
It can be understood that, in the terminal provided by the invention, when software is updated through the SD card, the central processing unit and the screen can be closed by the terminal, so that when the software update based on the SD card is ensured, the additional unnecessary energy consumption of the central processing unit and the screen can be avoided; and when the central processing unit and the screen need to be started at any time, and the central processing unit is started, the updating progress of the software to be updated in the memory is updated, namely the normal operation of other programs of the terminal can be guaranteed when the low-energy-consumption software of the terminal is effectively guaranteed to be updated.
In some embodiments, the terminal includes: a central processor 210, an SD card 220, a memory 230, a first switch 240, a second switch 250, and a third switch 260; the central processor 210 is connected with the memory 230 through the first switch 240, the central processor 210 is connected with the SD card 220 through the second switch 250, the memory 230 is connected with the SD card through the third switch 260, and the on/off of the switches is controlled by the central processor 210.
In some embodiments, a central processing unit, comprising: the device comprises a file size judging module, an SD card configuration module, an update position sending module, a connection control module, an update information updating module, a screen lightening detection module and a screen extinguishing detection module;
the file size judging module is used for judging the size of a software file to be updated and a threshold value when updating is started; the SD card configuration module is used for configuring the SD card into a low-consumption energy updating mode; specifically, a mode register of an SD card chip is set; the updating position sending module is used for sending the position of the software file to be updated, which is stored in the memory after the software file is updated, to the SD card; the connection control module is used for controlling the connection or disconnection of the memory and the central processing unit or the SD card; the updating information updating module is used for acquiring the size of the updated software file in the memory and refreshing the state information of the software version update; the screen lightening detection module is used for receiving a screen lightening instruction; the screen extinguishing detection module is used for receiving an instruction of screen extinguishing.
It should be noted that, before the screen lighting detection module is used for receiving a screen lighting instruction, the screen lighting instruction is triggered by a key or the like, and the central processing unit is awakened synchronously; according to the terminal provided by the invention, when software is updated through the SD card, the central processing unit and the screen can be closed by the terminal, so that when software updating based on the SD card is ensured, additional unnecessary energy consumption of the central processing unit and the screen can be avoided; and when the central processing unit and the screen need to be started at any time, and the central processing unit is started, the updating progress of the software to be updated in the memory is updated, namely the normal operation of other programs of the terminal can be guaranteed when the low-energy-consumption software of the terminal is effectively guaranteed to be updated.
The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, the computer program can be executed to implement the steps of the SD card-based software updating method as described above, and the steps of the SD card-based software updating method have the following steps:
when the SD card has a software file to be updated, the central processing unit generates an SD card software updating instruction;
controlling the SD card to be disconnected with the central processing unit according to the SD card software updating instruction, and controlling the SD card to be connected with the memory;
and closing the central processing unit and the screen, and acquiring the software file to be updated in the SD card by the memory and updating the software.
When the software file to be updated is in the SD card, the central processing unit generates an SD card software update instruction, and the method further includes:
and detecting whether the software file to be updated is stored in the SD card.
When the software file to be updated is in the SD card, the central processing unit generates an SD card software update instruction, which specifically includes:
when the software file to be updated is in the SD card, acquiring the size of the software file to be updated;
and when the size of the software file to be updated is larger than a preset threshold value, the central processing unit generates an SD card software updating instruction.
The SD card is controlled to be disconnected from the central processing unit according to the SD card software updating instruction, and the SD card is controlled to be connected with the memory, and the method also comprises the following steps;
and the central processing unit sends the address information of the software file to be updated stored in the memory to the SD card.
The controlling the SD card to be disconnected from the central processing unit according to the SD card software updating instruction and controlling the SD card to be connected with the memory comprises the following steps:
controlling the SD card to be disconnected with the central processing unit according to the SD card software updating instruction;
controlling the SD card to be connected to the address information of the memory.
The closing of the central processing unit and the screen, the acquisition of the software file to be updated in the SD card by the memory, and the software update specifically include:
closing the central processor and the screen;
and the SD card stores the software file to be updated into the memory according to the address information to update the software.
The closing of the central processing unit and the screen, the obtaining of the software file to be updated from the SD card by the memory according to the SD card software update software, and then further comprising:
and starting the central processing unit and the screen, and refreshing the state information of the software version update.
The starting the central processing unit and the screen, and refreshing the state information of the software version update specifically includes:
when a screen lightening instruction is received, starting the central processing unit and the screen;
disconnecting the memory from the SD card and connecting the memory with a central processing unit;
and the central processing unit acquires the size of the updated software file in the memory and refreshes the version information of the software version update.
When the computer-readable storage medium provided by the invention is read by a computer, the terminal can close the central processing unit and the screen when software is updated through the SD card, so that the additional unnecessary energy consumption of the central processing unit and the screen can be avoided when the software updating based on the SD card is ensured; and when the central processing unit and the screen need to be started at any time, and the central processing unit is started, the updating progress of the software to be updated in the memory is updated, namely the normal operation of other programs of the terminal can be guaranteed when the low-energy-consumption software of the terminal is effectively guaranteed to be updated.
In summary, the SD card-based software updating method, the terminal and the computer-readable storage medium disclosed in the present invention include: when the SD card has a software file to be updated, the central processing unit generates an SD card software updating instruction; controlling the SD card to be disconnected with the central processing unit according to the SD card software updating instruction, and controlling the SD card to be connected with the memory; and closing the central processing unit and the screen, and acquiring the software file to be updated in the SD card by the memory and updating the software. The software updating method based on the SD card stores a software file to be updated into the SD card in advance; then storing the software file to be updated into the SD card in advance; and then the software file to be updated is stored in a memory of the terminal through the SD card, so that a central processing unit and a screen which do not need to participate in operation can be closed, and further additional energy consumption is effectively avoided.
Of course, it will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by a computer program instructing relevant hardware (such as a processor, a controller, etc.), and the program may be stored in a computer readable storage medium, and when executed, the program may include the processes of the above method embodiments. The storage medium may be a memory, a magnetic disk, an optical disk, etc.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.

Claims (10)

1. A software updating method based on an SD card is characterized by comprising the following steps:
when the SD card has a software file to be updated, the central processing unit generates an SD card software updating instruction;
controlling the SD card to be disconnected with the central processing unit according to the SD card software updating instruction, and controlling the SD card to be connected with the memory;
and closing the central processing unit and the screen, and acquiring the software file to be updated in the SD card by the memory and updating the software.
2. The SD card-based software updating method according to claim 1, wherein when the SD card has software files to be updated, the central processor generates SD card software updating instructions, and the method further comprises:
and detecting whether the software file to be updated is stored in the SD card.
3. The SD card-based software updating method according to claim 1, wherein when the SD card has a software file to be updated, the central processing unit generates an SD card software updating instruction, specifically comprising:
when the software file to be updated is in the SD card, acquiring the size of the software file to be updated;
and when the size of the software file to be updated is larger than a preset threshold value, the central processing unit generates an SD card software updating instruction.
4. The SD card based software updating method according to claim 1, wherein the SD card is controlled to be disconnected from the central processing unit according to the SD card software updating command, and the SD card is controlled to be connected with the memory, and the method further comprises the following steps;
and the central processing unit sends the address information of the software file to be updated stored in the memory to the SD card.
5. The SD card based software updating method according to claim 4, wherein the controlling the SD card to be disconnected from the central processing unit and to be connected with the memory according to the SD card software updating command comprises:
controlling the SD card to be disconnected with the central processing unit according to the SD card software updating instruction;
controlling the SD card to be connected to the address information of the memory.
6. The SD card-based software updating method according to claim 4, wherein the closing of the central processing unit and the screen and the acquisition of the software file to be updated in the SD card by the memory and the software updating specifically comprise:
closing the central processor and the screen;
and the SD card stores the software file to be updated into the memory according to the address information to update the software.
7. The SD card-based software updating method according to claim 6, wherein the closing of the central processor and the screen and the obtaining of the software file to be updated from the SD card by the memory according to the SD card software updating software further comprise:
and starting the central processing unit and the screen, and refreshing the state information of the software version update.
8. The SD card-based software updating method according to claim 7, wherein the starting the central processing unit and the screen and refreshing the state information of the software version update specifically comprises:
when a screen lightening instruction is received, starting the central processing unit and the screen;
disconnecting the memory from the SD card and connecting the memory with a central processing unit;
and the central processing unit acquires the size of the updated software file in the memory and refreshes the version information of the software version update.
9. A terminal, comprising: the software updating method comprises a memory, a processor and a software updating program based on the SD card, wherein the software updating program based on the SD card is stored on the memory and can run on the processor, and when being executed by the processor, the software updating program based on the SD card realizes the steps of the software updating method based on the SD card according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program executable for implementing the steps of the SD card-based software updating method according to any one of claims 1 to 8.
CN202110177278.6A 2021-02-07 2021-02-07 Software updating method based on SD card, terminal and computer readable storage medium Pending CN112905219A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110177278.6A CN112905219A (en) 2021-02-07 2021-02-07 Software updating method based on SD card, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110177278.6A CN112905219A (en) 2021-02-07 2021-02-07 Software updating method based on SD card, terminal and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN112905219A true CN112905219A (en) 2021-06-04

Family

ID=76123018

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110177278.6A Pending CN112905219A (en) 2021-02-07 2021-02-07 Software updating method based on SD card, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112905219A (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1331024A (en) * 2000-06-27 2002-01-16 段嘉禾 Vehicle-carried electronic traffic information system and work program
JP2005141522A (en) * 2003-11-07 2005-06-02 Naltec Inc Data processing apparatus
US20080201553A1 (en) * 2007-02-21 2008-08-21 Kabushiki Kaisha Toshiba Non-volatile memory system
US20090316796A1 (en) * 2006-05-30 2009-12-24 Nds Technologies France Digital Television Decoder
CN101694623A (en) * 2009-09-29 2010-04-14 上海夏新电子开发有限公司 Method for updating handheld device software
CN101809977A (en) * 2007-09-12 2010-08-18 设备保真度股份有限公司 Updating mobile devices with additional elements
US20110035739A1 (en) * 2009-08-05 2011-02-10 Ricoh Company, Ltd. Electronic apparatus, software update method, and storage medium
CN102662701A (en) * 2012-03-28 2012-09-12 中兴通讯股份有限公司 Online CPLD (Complex Programmable Logic Devices) upgrading method, device and business veneer
CN105912352A (en) * 2015-12-15 2016-08-31 乐视网信息技术(北京)股份有限公司 Method and terminal for upgrading in mobile terminal
CN109426510A (en) * 2017-08-16 2019-03-05 北京金山云网络技术有限公司 Software processing method, device, electronic equipment and computer readable storage medium
WO2020061023A1 (en) * 2018-09-18 2020-03-26 Iot And M2M Technologies, Llc Storage memory unit with a shared nonvolatile memory interface for a radio
CN111176701A (en) * 2019-12-13 2020-05-19 苏州浪潮智能科技有限公司 Firmware upgrading method and device based on external memory card

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1331024A (en) * 2000-06-27 2002-01-16 段嘉禾 Vehicle-carried electronic traffic information system and work program
JP2005141522A (en) * 2003-11-07 2005-06-02 Naltec Inc Data processing apparatus
US20090316796A1 (en) * 2006-05-30 2009-12-24 Nds Technologies France Digital Television Decoder
US20080201553A1 (en) * 2007-02-21 2008-08-21 Kabushiki Kaisha Toshiba Non-volatile memory system
CN101809977A (en) * 2007-09-12 2010-08-18 设备保真度股份有限公司 Updating mobile devices with additional elements
US20110035739A1 (en) * 2009-08-05 2011-02-10 Ricoh Company, Ltd. Electronic apparatus, software update method, and storage medium
CN101694623A (en) * 2009-09-29 2010-04-14 上海夏新电子开发有限公司 Method for updating handheld device software
CN102662701A (en) * 2012-03-28 2012-09-12 中兴通讯股份有限公司 Online CPLD (Complex Programmable Logic Devices) upgrading method, device and business veneer
CN105912352A (en) * 2015-12-15 2016-08-31 乐视网信息技术(北京)股份有限公司 Method and terminal for upgrading in mobile terminal
CN109426510A (en) * 2017-08-16 2019-03-05 北京金山云网络技术有限公司 Software processing method, device, electronic equipment and computer readable storage medium
WO2020061023A1 (en) * 2018-09-18 2020-03-26 Iot And M2M Technologies, Llc Storage memory unit with a shared nonvolatile memory interface for a radio
CN111176701A (en) * 2019-12-13 2020-05-19 苏州浪潮智能科技有限公司 Firmware upgrading method and device based on external memory card

Similar Documents

Publication Publication Date Title
CN100474247C (en) Method for updating firmware in computer server systems
JP6185896B2 (en) Information processing apparatus, information processing system, information processing method, and information processing program
CN105912365B (en) Mobile terminal system updating method and system
CN102646043B (en) Mobile terminal software upgrading method, update device and mobile terminal
CN110825563B (en) System recovery method and device and electronic equipment
KR20140064787A (en) Adaptive sensing for early booting of devices
JP2002123806A (en) Ic card, data update control method, data/message restoration control method, and storage medium with control program recorded thereon
CN101251813A (en) Device and method for mobile telephone system recovery
CN104765628A (en) Method and system for updating touch screen firmware of movable terminal
US20200393995A1 (en) Electronic device and method of utilizing storage space thereof
CN102609290B (en) The method for upgrading software of electronic product
US20040103172A1 (en) Method of updating an operation system
TW202009696A (en) A computer-implemented method, a computer system, and a computer-readable storage medium for updating the ROM code of a system
CN111225434B (en) Application response method, system, storage medium and communication module
CN106791124B (en) Mobile terminal flashing method and device
TWI515557B (en) Computer system and control method
CN114661368A (en) Chip and starting method thereof
CN111885420B (en) Standby protection method and device, smart television and readable storage medium
CN114153477A (en) Method, device, system, equipment and medium for upgrading firmware of PCIE (peripheral component interface express) driver card
CN112905219A (en) Software updating method based on SD card, terminal and computer readable storage medium
CN113641378A (en) Optical module program upgrading method, device, equipment and readable storage medium
CN112988246A (en) System switching method and device, electronic equipment and storage medium
CN112181502A (en) OPS computer control method and device of all-in-one machine equipment and storage medium
CN110908733A (en) Working mode determining method and device, and control method and device
CN114117562B (en) Intelligent network card management method and device, electronic equipment and computer 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