WO2016062060A1 - Method and apparatus for updating/backing up operating system through t card, and storage medium - Google Patents

Method and apparatus for updating/backing up operating system through t card, and storage medium Download PDF

Info

Publication number
WO2016062060A1
WO2016062060A1 PCT/CN2015/078352 CN2015078352W WO2016062060A1 WO 2016062060 A1 WO2016062060 A1 WO 2016062060A1 CN 2015078352 W CN2015078352 W CN 2015078352W WO 2016062060 A1 WO2016062060 A1 WO 2016062060A1
Authority
WO
WIPO (PCT)
Prior art keywords
operating system
card
information
smart terminal
data
Prior art date
Application number
PCT/CN2015/078352
Other languages
French (fr)
Chinese (zh)
Inventor
万振华
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016062060A1 publication Critical patent/WO2016062060A1/en

Links

Images

Classifications

    • 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/445Program loading or initiating

Definitions

  • the present invention relates to the field of intelligent terminal technologies, and in particular, to a method and device for updating/backing up an operating system through a T card, and a storage medium.
  • Smart terminals such as mobile phones and tablets, are widely used in all aspects of social life, bringing great convenience to people's lives, work and entertainment.
  • Smart terminals have an operating system that allows the user to operate and allows users to install applications that meet operating system requirements as needed.
  • the open source operating system allows users to write specific applications directly to the original operating system or modify the original operating system, which greatly improves the stability of the specific application, compatibility with the operating system and operating system.
  • the user's pertinence makes it easy for users to use the application directly in an operating system environment with a specific application installed.
  • the smart terminal allows the user to update the operating system by himself.
  • the commonly used method of updating the operating system is to turn off the power of the smart terminal, connect the smart terminal to the computer through the data line, download the update control software and the operating system file that needs to be updated through the computer, and update the control software to update the operation.
  • the system file is written to the smart terminal.
  • USB Universal Serial Bus
  • the intelligent terminal is in the passive update state. Only when the update fails, an error message is sent, and the legality of the operating system file that needs to be updated cannot be detected before updating the operating system.
  • the USB power supply voltage is unstable and interferes with the update of the operating system.
  • the embodiment of the present invention is to provide a method and device for updating/backing up an operating system of a T card, and a storage medium, which can at least solve the problem of poor data transmission stability when updating the operating system of the smart terminal through the data line.
  • an embodiment of the present invention provides a method for updating an operating system by using a T card, which is applied to an intelligent terminal having a T card, and the method includes:
  • T card data information sent by the smart terminal and if the T card data information includes an operating system update file of the smart terminal, sending an operating system update command to the smart terminal;
  • the method comprises:
  • the receiving of the smart terminal fails due to the T card being unreadable, the image file and the system partition table are not matched, the image file is invalid, or the data storage space currently available to the smart terminal does not meet the operating system update requirements, the operating system update fails. Information, an alarm signal is issued and exits.
  • an embodiment of the present invention further provides a method for updating an operating system by using a T card.
  • the method includes:
  • An operating system update completion message is sent to the control device.
  • the reading the T card according to the T card reading instruction, and obtaining the T card data information includes:
  • the program counter is pointed to the data storage location of the T card corresponding to the T card read command, and the data of the T card is read to obtain the T card data information.
  • the writing, by the operating system update instruction, the operating system update file in the T card to the storage area of the operating system includes:
  • Reading the storage area data of the operating system is
  • the method comprises:
  • the operating system update failure information is sent to the control system, and the read Take the storage area of the operating system.
  • the embodiment of the present invention further provides a method for backing up an operating system by using a T card, which is applied to a smart device having a T card, and the method includes:
  • the method comprises:
  • the alarm signal is sent out and exits.
  • the embodiment of the present invention further provides a method for backing up an operating system by using a T card, which is applied to a smart device having a T card, and the method includes:
  • An operating system backup completion message is sent to the control device.
  • the writing the current operating system to the T card according to the operating system backup instruction includes:
  • the program counter is pointed to the T card read command. a data storage location of the T card, and reading data of the current operating system, generating an image file and a system partition table corresponding to the data of the current operating system according to the data of the current operating system; and the image file and the system Partition Table Write the T card.
  • the method comprises:
  • the operating system backup failure information is sent to the control system.
  • the embodiment of the present invention further provides an apparatus for updating an operating system by using a T card, where the apparatus includes:
  • the update query instruction sending unit is configured to receive a trigger signal for updating the operating system, and send a storage device information query instruction to the smart terminal according to the trigger signal for updating the operating system;
  • the first T card data query unit is configured to receive storage device information sent by the smart terminal, and find data storage location information of the T card from the storage device information;
  • the first T card reading instruction sending unit is configured to send a T card reading instruction to the smart terminal according to the data storage location information of the T card;
  • the operating system update control unit is configured to receive T card data information sent by the smart terminal, and if the T card data information includes an operating system update file of the smart terminal, send an operating system update instruction to the smart terminal;
  • the first monitoring unit is configured to receive operating system update completion information sent by the smart terminal.
  • the device comprises:
  • the first alarm unit is configured to receive the data storage space sent by the smart terminal due to the T card being unreadable, the image file and the system partition table are not matched, the image file is invalid, or the smart terminal is currently available.
  • an alarm signal is issued and exits.
  • the embodiment of the present invention further provides an apparatus for updating an operating system by using a T card, where the apparatus includes:
  • the first query information receiving unit is configured to receive the storage device information sent by the control device. Inquiring instructions, querying storage device information according to the storage device information query instruction, and transmitting the storage device information to the control device;
  • the T card data retrieval unit is configured to receive a T card read command sent by the control device, read the T card according to the T card read command, and obtain T card data information; and send the T card data information to The control device;
  • An operating system update unit configured to receive an operating system update command sent by the control device, and write an operating system update file in the T card to a storage area of the operating system according to the operating system update command;
  • the update completion information transmitting unit is configured to transmit operating system update completion information to the control device.
  • the T card data retrieval unit includes:
  • the T card data reading module is configured to point the program counter to the data storage location of the T card corresponding to the T card reading instruction, and read the data of the T card to obtain the T card data information.
  • the operating system update unit includes:
  • the T card data retrieval module is configured to find an image file and a system partition table corresponding to the operating system update file from the data of the T card;
  • Updating the control module configured to query the currently available data storage space; if the image file and the system partition table match, the image file is legal, and the currently available data storage space meets the operating system update requirement, the current operating system is formatted, and Writing the image file into a storage area of the operating system;
  • An operating system restart module configured to read storage area data of the operating system.
  • the device comprises:
  • a second alarm unit configured to send to the control system when the T card cannot be read, the image file and the system partition table do not match, the image file is invalid, or the currently available data storage space does not meet the operating system update requirement.
  • Operating system update failure information read operating system storage Storage area.
  • the embodiment of the present invention further provides an apparatus for backing up an operating system by using a T card, where the apparatus includes:
  • the backup query instruction sending unit is configured to receive a trigger signal of the backup operating system, and send a storage device information query instruction to the smart terminal according to the trigger signal of the backup operating system;
  • the second T-card data query unit is configured to receive storage device information sent by the smart terminal, and find data storage location information of the T-card from the storage device information;
  • the second T card reading instruction sending unit is configured to send an operating system backup instruction to the smart terminal according to the data storage location information of the T card;
  • the second monitoring unit is configured to receive operating system backup completion information sent by the smart terminal.
  • the device comprises:
  • the third alarm unit is configured to send, when receiving, the data storage space currently available by the smart terminal or the available data storage space of the T card does not meet the operating system backup failure requirement of the operating system backup requirement, The alarm signal is exited.
  • the embodiment of the present invention further provides an apparatus for backing up an operating system by using a T card, where the apparatus includes:
  • the second query information receiving unit is configured to receive a storage device information query instruction sent by the control device, query the storage device information according to the storage device information query instruction, and send the storage device information to the control device;
  • An operating system backup unit configured to receive an operating system backup command sent by the control device, and write the current operating system to the T card according to the operating system backup instruction;
  • the backup completion information transmitting unit is configured to send operating system backup completion information to the control device.
  • the operating system backup unit includes:
  • the operating system backup module is configured to query the currently available data storage space and the available data storage space of the T card. If the currently available data storage space and the available data storage space of the T card meet the operating system backup requirements, the program counter is pointed to Describe the data storage location of the T card corresponding to the T card reading instruction, and read the data of the current operating system, and generate an image file and a system partition table corresponding to the data of the current operating system according to the data of the current operating system; Write the image file and system partition table to the T card.
  • the device comprises:
  • the fourth alarm unit is configured to send an operating system backup failure information to the control system when the currently available data storage space or the available data storage space of the T card does not meet the operating system backup requirement.
  • an embodiment of the present invention provides a computer storage medium, where the computer storage medium stores computer executable instructions for executing any one of the first to fourth aspects of the present invention.
  • the method and device for updating/backing up the operating system of the T card provided by the embodiment of the present invention, and the storage medium, after receiving the trigger signal for updating the operating system, send a storage device information query instruction to the intelligent terminal; and the storage device information fed back according to the smart terminal
  • Finding data storage location information of the T card sending a T card reading instruction to the smart terminal according to the data storage location information of the T card; finding an operating system update file of the smart terminal from the T card data information, and
  • the intelligent terminal sends an operating system update command, and finally updates the operating system of the smart terminal through the T card, thereby improving the stability and security of the intelligent terminal in updating the operating system, and facilitating the maintenance of the intelligent terminal.
  • FIG. 1 is a schematic flowchart of an implementation method of updating an operating system by using a T card according to Embodiment 1 of the present invention
  • FIG. 2 is a schematic flow chart of a method for updating an operating system by using a T card according to Embodiment 2 of the present invention
  • FIG. 3 is a schematic flowchart of an implementation process of a method for backing up an operating system by using a T card according to Embodiment 3 of the present invention
  • FIG. 4 is a schematic flowchart of an implementation process of a method for backing up an operating system by using a T card according to Embodiment 4 of the present invention
  • FIG. 5 is a schematic structural diagram of a device for updating an operating system by using a T card according to Embodiment 5 of the present invention.
  • FIG. 6 is a schematic structural diagram of a device for updating an operating system by using a T card according to Embodiment 6 of the present invention.
  • FIG. 7 is a schematic structural diagram of a device for backing up an operating system by using a T card according to Embodiment 7 of the present invention.
  • FIG. 8 is a schematic structural diagram of a device for backing up an operating system by using a T card according to Embodiment 8 of the present invention.
  • FIG. 9 is a schematic diagram of an implementation process of a method for updating an operating system by using a T card according to Embodiment 9 of the present invention.
  • FIG. 10 is a schematic flowchart of an implementation process of a method for backing up an operating system by using a T card according to Embodiment 10 of the present invention
  • Figure 11 is a detailed structural view of Embodiment 11 of the present invention.
  • the embodiment provides a method for updating an operating system by using a T card (that is, a TF card, also called a microSD card), and is applied to an intelligent terminal having a T card.
  • a T card that is, a TF card, also called a microSD card
  • this embodiment Methods include:
  • the trigger signal for updating the operating system may be sent by the user through a specific key combination on the smart terminal, or may be sent by the user through a set trigger signal command before the smart terminal is restarted, and after the trigger command is obtained, the control device sends the smart terminal to the smart terminal.
  • Storage device information query instruction The intelligent terminal receives the storage device information query instruction and queries the storage device information.
  • S102 Receive storage device information sent by the smart terminal, and find data storage location information of the T card from the storage device information.
  • the information area corresponding to the T card can be found from the storage device information according to the identifier, type or name of the data information of the T card itself, and according to the data of the T card itself.
  • the storage location information of the identification, type or name of the information is the starting position and ending position of the T card data.
  • S103 Send a T card reading instruction to the smart terminal according to the data storage location information of the T card.
  • the T card read command includes data storage location information of the T card.
  • S104 Receive T-card data information sent by the smart terminal, and if the T-card data information includes an operating system update file of the smart terminal, send an operating system update command to the smart terminal;
  • an operating system update file When looking for an operating system update file for a smart terminal, because the operating system update file has a specific file type, a common method is to find an operating system update file based on the file type. When the operating system update file exists as a compressed file, it is allowed to view the files in the compressed package.
  • the operating system update file can also be a user-defined name.
  • S105 Receive operating system update completion information sent by the smart terminal, and complete an operating system update of the smart terminal.
  • the embodiment After receiving the trigger signal for updating the operating system, the embodiment sends a storage device information query instruction to the smart terminal; and finds the data storage location information of the T card according to the storage device information fed back by the smart terminal; and stores the data according to the T card.
  • the location information sends a T card reading instruction to the smart terminal; the operating system update file of the smart terminal is found from the T card data information, and an operating system update command is sent to the smart terminal, and finally the operating system of the smart terminal is implemented by the T card.
  • the update improves the stability and security of the intelligent terminal in updating the operating system, and is convenient for the maintenance of the intelligent terminal.
  • the control device receives the storage device information, the T card data information, and the operating system update completion information sent by the smart terminal, that is, the smart terminal is powered on during the update of the operating system, so that the smart device is enabled.
  • the terminal can detect the operating system update file.
  • the update process is powered by the battery of the smart terminal itself, which ensures the stability of the power supply, reduces the interference of external factors, and can avoid the system in the process of updating the operating system of the smart terminal to the utmost extent. Sexual errors, etc., ensure the stability and success rate of updating the operating system.
  • This embodiment and the embodiment 1 belong to the same inventive concept.
  • This embodiment provides a method for updating an operating system by using a T card, and is applied to an intelligent terminal having a T card. As shown in FIG. 2, the method in this embodiment includes:
  • S201 Receive a storage device information query instruction sent by the control device, query the storage device information according to the storage device information query instruction, and send the storage device information to the control device;
  • Storage device information includes data storage information of the device itself and additional data storage devices Data storage information (such as T card, etc.).
  • S202 Receive a T card read command sent by the control device, read a T card according to the T card read command, and obtain T card data information; and send the T card data information to the control device;
  • the T card read command contains data storage location information of the T card, and the data information included in the T card is read according to the data storage location information of the T card.
  • S203 Receive an operating system update command sent by the control device, and write an operating system update file in the T card to a storage area of the operating system according to the operating system update command.
  • the operating system update file Since the operating system update file has a specific file type, the operating system update file can be found from the data in the T card according to the file type.
  • S204 Send operating system update completion information to the control device to complete an operating system update.
  • step S202 the T card is read according to the T card reading instruction, and the obtained T card data information includes:
  • the program counter is used to store the address of the unit where the next instruction is located, point the program counter to the data storage location of the T card corresponding to the T card read command, and read the data of the T card to obtain the T card data information.
  • Writing the operating system update file in the T card to the storage area of the operating system according to the operating system update command in step S203 includes:
  • the image file and system partition table corresponding to the operating system update file from the data of the T card according to the file type or name of the operating system update file and the system partition table; according to the total storage space of the smart terminal and the space occupied by the existing file
  • the currently available data storage space is available;
  • the system partition table is used for reading or writing data. If the image file and the system partition table match, the image file can be read and written.
  • the image file legally indicates the image file and the current smart terminal model and the current operating system. Meet the update requirements; update the operating system needs to extract the image file and then write to the smart terminal.
  • the decompression process requires a certain data cache space.
  • the operating system may be updated. operating. Then formatting the current operating system, and writing the image file to the storage area of the operating system; reading the storage area data of the operating system to complete the operating system update.
  • the update request sends an operating system update failure message to the control system to read the storage area of the operating system.
  • the present application also proposes a scheme of backing up the operating system through the T card, so as to use and maintain the smart terminal.
  • This embodiment provides a method for backing up an operating system by using a T card, and is applied to a smart device having a T card. As shown in FIG. 3, the method in this embodiment includes:
  • the trigger signal of the backup operating system may be sent by the user through a specific key combination on the smart terminal, or may be issued by a set trigger signal command before the smart terminal restarts.
  • S302 Receive storage device information sent by the smart terminal, and obtain information from the storage device. Find the data storage location information of the T card;
  • the information area corresponding to the T card can be found from the storage device information according to the data information of the T card itself, thereby obtaining the starting position and the ending position of the T card data.
  • S303 Send an operating system backup instruction to the smart terminal according to the data storage location information of the T card.
  • the operating system backup instruction includes data storage location information of the T card. Since the T card does not belong to the smart device itself, the information area corresponding to the T card can be found from the storage device information according to the data information of the T card itself, thereby obtaining the starting position and the ending position of the T card data.
  • S304 Receive operating system backup completion information sent by the smart terminal, and complete an operating system backup of the smart terminal.
  • the embodiment After receiving the trigger signal of the backup operating system, the embodiment sends a storage device information query instruction to the smart terminal; and finds the data storage location information of the T card according to the storage device information fed back by the smart terminal, and sends an operation to the smart terminal.
  • the system backup instruction finally realizes the backup of the intelligent terminal operating system through the T card, improves the stability and security in the process of the intelligent terminal backup operating system, and is convenient for the maintenance of the intelligent terminal.
  • the backup process is powered by the battery of the smart terminal itself, which ensures the stability of the power supply, reduces the interference of external factors, and can avoid systematic errors in the operating system backup process of the smart terminal to the utmost extent. To ensure the stability and success rate of the backup operating system.
  • the alarm signal is sent out and exits.
  • the embodiment provides a method for backing up an operating system by using a T card, and is applied to a smart device having a T card. As shown in FIG. 4, the method in this embodiment includes:
  • S401 Receive a storage device information query instruction sent by the control device, query the storage device information according to the storage device information query instruction, and send the storage device information to the control device;
  • the storage device information includes data storage information of the device itself and data storage information of an additional data storage device (such as a T card, etc.).
  • S402 Receive an operating system backup instruction sent by the control device, and write the current operating system to the T card according to the operating system backup instruction.
  • T card Before writing the current operating system to the T card, you should check whether the T card is readable and writable. If it can be read or written, continue the subsequent operations; otherwise, send an alarm message.
  • S403 Send operating system backup completion information to the control device, and complete an operating system backup.
  • the writing the current operating system to the T card according to the operating system backup instruction in step S402 includes:
  • the program counter is pointed to the T card read command. a data storage location of the T card, and reading data of the current operating system, generating an image file and a system partition table corresponding to the data of the current operating system according to the data of the current operating system; and the image file and the system The partition table is written to the T card.
  • the method includes:
  • the operating system backup failure information is sent to the control system.
  • An apparatus for updating an operating system by using a T card as shown in FIG. 5, the apparatus of this embodiment includes:
  • the update query instruction sending unit 501 is configured to receive a trigger signal for updating the operating system, and send a storage device information query instruction to the smart terminal according to the trigger signal of the update operating system; wherein the trigger signal for updating the operating system may be that the user passes the smart The specific key combination on the terminal is sent, or it can be issued by the set trigger signal command before the smart terminal restarts.
  • the first T-card data query unit 502 is configured to receive storage device information sent by the smart terminal, and find data storage location information of the T-card from the storage device information; since the T-card does not belong to the smart device itself Therefore, the information area corresponding to the T card can be found from the storage device information according to the data information of the T card itself, thereby obtaining the starting position and the ending position of the T card data.
  • the first T card read command sending unit 503 is configured to send a T card read command to the smart terminal according to the data storage location information of the T card; wherein the T card read command includes data storage location information of the T card .
  • the operating system update control unit 504 is configured to receive T card data information sent by the smart terminal, and if the T card data information includes an operating system update file of the smart terminal, send an operating system update command to the smart terminal.
  • T card data information sent by the smart terminal
  • an operating system update file of the smart terminal sends an operating system update command to the smart terminal.
  • a common method is to find an operating system update file based on the file type.
  • the operating system update file exists as a compressed file, it is allowed to view the files in the compressed package.
  • the operating system update file can also be a user-defined name.
  • the first monitoring unit 505 is configured to receive operating system update completion information sent by the smart terminal, and complete an operating system update of the smart terminal.
  • the device comprises:
  • the first alarm unit 506 is configured to be unable to read the T card received by the smart terminal. If the fetch, mirror file, and system partition table do not match, the image file is invalid, or the data storage space currently available to the smart terminal does not meet the operating system update failure information required by the operating system update, an alarm signal is sent and exits.
  • implementation device may be placed on the smart terminal or may exist independently of the smart terminal.
  • An apparatus for updating an operating system by using a T card as shown in FIG. 6, the apparatus of this embodiment includes:
  • the first query information receiving unit 601 is configured to receive a storage device information query instruction sent by the control device, query the storage device information according to the storage device information query instruction, and send the storage device information to the control device;
  • the T card data retrieval unit 602 is configured to receive a T card read command sent by the control device, read the T card according to the T card read command, and obtain T card data information; send the T card data information Giving the control device;
  • the operating system update unit 603 is configured to receive an operating system update command sent by the control device, and write an operating system update file in the T card to a storage area of the operating system according to the operating system update command;
  • the update completion information transmitting unit 604 is configured to transmit operating system update completion information to the control device to complete an operating system update.
  • the T card data retrieval unit 602 includes a T card data reading module, and the T card data reading module is configured to point a program counter to a data storage location of the T card corresponding to the T card reading instruction, and Read the data of the T card to get the T card data information.
  • the operating system update unit 603 includes:
  • the T card data retrieval module is configured to find an image file and a system partition table corresponding to the operating system update file from the data of the T card;
  • Updating the control module configured to query the currently available data storage space;
  • the device matches the system partition table, the image file is legal, and the currently available data storage space meets the operating system update requirements, the current operating system is formatted, and the image file is written into the storage area of the operating system;
  • the operating system restart module is configured to read the storage area data of the operating system to complete an operating system update.
  • the device includes:
  • the second alarm unit 605 is configured to notify the control system when the T card cannot be read, the image file and the system partition table do not match, the image file is invalid, or the currently available data storage space does not meet the operating system update requirement. Send an operating system update failure message and read the operating system's storage area.
  • implementation device may be placed on the smart terminal or may exist independently of the smart terminal.
  • An apparatus for backing up an operating system by using a T card as shown in FIG. 7, the apparatus of this embodiment includes:
  • the backup query instruction sending unit 701 is configured to receive a trigger signal of the backup operating system, and send a storage device information query instruction to the smart terminal according to the trigger signal of the backup operating system;
  • the second T-card data query unit 702 is configured to receive storage device information sent by the smart terminal, and find data storage location information of the T-card from the storage device information;
  • the second T card reading instruction sending unit 703 is configured to send an operating system backup instruction to the smart terminal according to the data storage location information of the T card;
  • the second monitoring unit 704 is configured to receive operating system backup completion information sent by the smart terminal, and complete an operating system backup of the smart terminal.
  • the device comprises:
  • the third alarm unit 705 is configured to receive the smart terminal sent by the smart terminal.
  • an alarm signal is sent and exits.
  • implementation device may be placed on the smart terminal or may exist independently of the smart terminal.
  • An apparatus for backing up an operating system by using a T card as shown in FIG. 8, the apparatus of this embodiment includes:
  • the second query information receiving unit 801 is configured to receive a storage device information query command sent by the control device, query the storage device information according to the storage device information query instruction, and send the storage device information to the control device;
  • the operating system backup unit 802 is configured to receive an operating system backup instruction sent by the control device, and write the current operating system to the T card according to the operating system backup instruction;
  • the backup completion information sending unit 803 is configured to send the operating system backup completion information to the control device to complete the operating system backup.
  • the operating system backup unit 802 includes:
  • the operating system backup module is configured to query the currently available data storage space and the available data storage space of the T card. If the currently available data storage space and the available data storage space of the T card meet the operating system backup requirements, the program counter is pointed to Describe the data storage location of the T card corresponding to the T card reading instruction, and read the data of the current operating system, and generate an image file and a system partition table corresponding to the data of the current operating system according to the data of the current operating system; Write the image file and system partition table to the T card.
  • the device comprises:
  • the fourth alarm unit 804 is configured to send an operating system backup failure information to the control system when the currently available data storage space or the available data storage space of the T card does not meet the operating system backup requirement.
  • the implementation device can be placed on the smart terminal or can be independent of the smart device.
  • the terminal exists.
  • This embodiment provides a method for updating an operating system by using a T card, and is applied to a smart device having a T card. As shown in FIG. 9, the method includes:
  • control device After receiving the trigger signal for updating the operating system, the control device sends a storage device information query instruction to the smart terminal.
  • the smart terminal receives the storage device information query instruction sent by the control device, queries the storage device information according to the storage device information query instruction, and sends the storage device information to the control device.
  • the control device receives the storage device information sent by the smart terminal, and finds the data storage location information of the T card from the storage device information.
  • the smart terminal receives the T card reading instruction sent by the control device, reads the T card according to the T card reading instruction, and obtains T card data information; and sends the T card data information to the control device. ;
  • the control device sends a T card reading instruction to the smart terminal according to the data storage location information of the T card.
  • the smart terminal receives an operating system update command sent by the control device, and writes an operating system update file in the T card to a storage area of the operating system according to the operating system update command.
  • the control device receives the T card data information sent by the smart terminal, and if the T card data information includes an operating system update file of the smart terminal, sends an operating system update command to the smart terminal;
  • S908 The smart terminal sends operating system update completion information to the control device.
  • the control device receives the operating system update completion information sent by the smart terminal, and completes an operating system update of the smart terminal.
  • This embodiment provides a method for backing up an operating system by using a T card, and is applied to a smart device having a T card. As shown in FIG. 10, the method in this embodiment includes:
  • control device After receiving the trigger signal of the backup operating system, the control device sends a storage device information query instruction to the smart terminal.
  • the smart terminal receives the storage device information query instruction sent by the control device, queries the storage device information according to the storage device information query instruction, and sends the storage device information to the control device;
  • the control device receives the storage device information sent by the smart terminal, and finds the data storage location information of the T card from the storage device information.
  • S1004 The smart terminal receives an operating system backup command sent by the control device, and writes the current operating system to the T card according to the operating system backup command.
  • the control device sends an operating system backup instruction to the smart terminal according to the data storage location information of the T card.
  • S1006 The smart terminal sends operating system backup completion information to the control device.
  • the control device receives the operating system backup completion information sent by the smart terminal, and completes an operating system backup of the smart terminal.
  • FIG. 11 The structural diagram of this embodiment is shown in FIG. 11, and the specific implementation steps of the technical solution of the present invention are described in detail through FIG.
  • step 2 press the button that sets the combination (such as the power button, volume increase button and volume down button) to issue the trigger signal for updating/backing up the operating system. Then proceed to step 3;
  • the phone is turned on, and the program counter of the processor of the mobile phone points to the Mth byte in the storage space (the location of the current operating system of the mobile phone), and the system is normally started. If the system does not start properly, go to step 6.
  • the phone is turned on and enters the update/backup operating system state.
  • the related prompt information such as updating the operating system from the T card, backing up the operating system, or exiting may be displayed through the screen of the mobile phone.
  • step 4 If you choose to update the operating system from the T card, go to step 4; if you choose to back up the operating system, go to step 5; if you choose to exit, go to step 2.
  • the control device sends a storage device information query instruction to the mobile phone; the mobile phone queries the storage device information according to the storage device information query instruction, and sends the storage device information to the control device; the control device receives the storage device information sent by the mobile phone, Finding data storage location information of the T card from the storage device information, and sending a T card reading instruction to the mobile phone according to the data storage location information of the T card; and receiving, by the mobile phone, a T card reading instruction sent by the control device, Reading the T card according to the T card reading instruction to obtain T card data information; transmitting the T card data information to the control device; the control device receiving the T card data information sent by the mobile phone, if the T card
  • the data information includes an operating system update file of the mobile phone, and an operating system update command is sent to the mobile phone; the mobile phone receives an operating system update command sent by the control device, and uses an operating system in the T card according to the operating system update command.
  • the update file is written into the storage area of the operating system, and the operating system update completion information is sent to the control device to complete the operating system update.
  • the control device receives the operating system update completion information sent by the mobile phone, and confirms that the operating system update of the mobile phone is completed.
  • the processor of the mobile phone reads the system image file and the system partition table to be updated in the T card, checks the phone storage and the system partition table, and whether the image file matches the current mobile phone (if the total size exceeds the mobile phone storage upper limit, the partition table) If the image file is invalid, if the image file does not match or the image file is invalid, go to step 6. Otherwise, format the MN storage space (mobile phone operating system area) in the phone, and then according to the partition table. Will mirror The file is written to the phone. Then proceed to step 2.
  • MN storage space mobile phone operating system area
  • the control device sends a storage device information query instruction to the mobile phone; the mobile phone receives the storage device information query instruction sent by the control device, and queries the storage device information according to the storage device information query instruction, and sends the storage device information Giving the control device; the control device receives the storage device information sent by the mobile phone, and finds the data storage location information of the T card from the storage device information; and the data storage location information according to the T card to the mobile phone Sending an operating system backup command; the mobile phone receives an operating system backup command sent by the control device, writes a current operating system to the T card according to the operating system backup command; and sends an operating system backup completion information to the control device, and completes Operating system backup.
  • the control device receives the operating system backup completion information sent by the mobile phone, and completes the operating system backup of the mobile phone.
  • the mobile phone processor checks whether the T card satisfies the condition of writing the T card (such as whether the T card data size is smaller than the mobile phone storage, the T card cannot be written, or the T card cannot be formatted, etc.), if the T card condition is not satisfied, Then, the process proceeds to step 6. If the condition is met, the storage area of the mobile phone system is read, and the partition table and the image file of the mobile phone operating system are generated and written into the T card.
  • the condition of writing the T card such as whether the T card data size is smaller than the mobile phone storage, the T card cannot be written, or the T card cannot be formatted, etc.
  • the phone has an error prompt interface and prompts the cause of the error.
  • the mobile phone cannot start the system normally, prompting the user to “cannot start the system normally”, press the shutdown button to shut down;
  • the file matches incorrectly, and the prompt matches the cause of the error (such as whether the image file size exceeds the mobile phone storage limit, the partition table and the image file cannot correspond), and after 10 seconds, the process proceeds to step 2; or the process of writing to the phone storage error occurs.
  • the prompt "Cannot write to the system, the system is damaged", press the shutdown button to shut down.
  • Step 2 the T card does not meet the writing conditions, and the specific reason is prompted. After 10 seconds, the process proceeds to step 2; or, during the process of writing the T card, an error occurs, “Write T card error”, and enter after 10 seconds. Step 2.
  • Each unit in the device for updating/backing up an operating system by using a T card can be implemented by a processor located in the user terminal or a processor independent of the user terminal, for example, a backup query instruction sending unit in the device that backs up the operating system through the T card.
  • the second T card data query unit, the second T card read command sending unit, the second monitoring unit, and the third alarm unit can all be implemented by a processor in the user terminal;
  • the specific logic circuit is implemented; in the process of the specific embodiment, the processor may be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP), or a field programmable gate array (FPGA). .
  • the foregoing method for updating/backing up the operating system through the T card is implemented in the form of a software function module, and is sold or used as a standalone product, it may also be stored in a computer readable form. Take the storage medium.
  • the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions.
  • a computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk.
  • program codes such as a USB flash drive, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk.
  • the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions execute the method of the present invention for updating/backing up an operating system through a T card.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner such as: multiple units or components may be combined, or Can be integrated into another system, or some features can be ignored or not executed.
  • each shown or discussed The coupling, or direct coupling, or communication connection of the components to each other may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical, mechanical or other.
  • the units described above as separate components may or may not be physically separated, and the components displayed as the unit may or may not be physical units, that is, may be located in one place or distributed to multiple network units; Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing module, or each unit may be separately used as one unit, or two or more units may be integrated into one unit; the above integration
  • the unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
  • the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed.
  • the foregoing storage device includes the following steps:
  • the foregoing storage medium includes: a removable storage device, a read-only memory (ROM), a magnetic disk, or an optical disk, and the like, which can store program codes.
  • the device after receiving the trigger signal for updating the operating system, the device sends a storage device information query instruction to the smart terminal; receives the storage device information sent by the smart terminal, and finds the data of the T card from the storage device information. Storing location information; transmitting a T card reading instruction to the smart terminal according to the data storage location information of the T card; receiving the smart terminal Sending the T card data information, if the T card data information includes an operating system update file of the smart terminal, sending an operating system update command to the smart terminal; receiving the operating system update completion information sent by the smart terminal The operating system update of the smart terminal is completed; thus, the update of the smart terminal operating system is implemented by the T card, and the stability and security of the smart terminal in updating the operating system are improved, and the maintenance of the smart terminal is facilitated.

Abstract

A method for updating an operating system through a T card. The method comprises: after receiving a triggering signal for updating an operating system, sending a query instruction for storage device information to an intelligent terminal (S101); receiving the storage device information sent by the intelligent terminal, and finding data storage location information of a T card from the storage device information (S102); sending a T card reading instruction to the intelligent terminal according to the data storage location information of the T card (S103); receiving T card data information sent by the intelligent terminal, and if the T card data information contains an operating system updating file of the intelligent terminal, sending an operating system updating instruction to the intelligent terminal (S104); and receiving operating system updating completion information sent by the intelligent terminal, and completing the operating system updating of the intelligent terminal (S105). Also disclosed are a method for updating an operating system through a T card, an apparatus for updating an operating system through a T card, an apparatus for backing up an operating system through a T card, and a storage system.

Description

通过T卡更新/备份操作系统的方法及装置、存储介质Method and device for updating/backing up operating system by T card, storage medium 技术领域Technical field
本发明涉及智能终端技术领域,尤其涉及通过T卡更新/备份操作系统的方法及装置、存储介质。The present invention relates to the field of intelligent terminal technologies, and in particular, to a method and device for updating/backing up an operating system through a T card, and a storage medium.
背景技术Background technique
智能终端如手机和平板电脑等广泛存在于社会生活的各个方面,为人们的生活、工作和娱乐带来了极大的便利。Smart terminals, such as mobile phones and tablets, are widely used in all aspects of social life, bringing great convenience to people's lives, work and entertainment.
智能终端都有操作系统,操作系统允许用户进行操作,并允许用户根据需要安装符合操作系统要求的应用程序。特别的,开源操作系统允许用户直接将特定的应用程序写入原始操作系统或对原始操作系统进行修改,这就大大提高了该特定应用程序的工作稳定性、与操作系统的兼容性和操作系统用户的针对性,使得用户在安装有特定应用程序的操作系统环境下就能直接使用该应用程序,为用户提供了便利。Smart terminals have an operating system that allows the user to operate and allows users to install applications that meet operating system requirements as needed. In particular, the open source operating system allows users to write specific applications directly to the original operating system or modify the original operating system, which greatly improves the stability of the specific application, compatibility with the operating system and operating system. The user's pertinence makes it easy for users to use the application directly in an operating system environment with a specific application installed.
智能终端允许用户自行更新操作系统。常用的更新操作系统的方法是:将智能终端的电源关闭,通过数据线将智能终端与电脑连接;通过电脑下载更新控制软件和需要更新的操作系统文件,并通过更新控制软件将需要更新的操作系统文件写入到智能终端。The smart terminal allows the user to update the operating system by himself. The commonly used method of updating the operating system is to turn off the power of the smart terminal, connect the smart terminal to the computer through the data line, download the update control software and the operating system file that needs to be updated through the computer, and update the control software to update the operation. The system file is written to the smart terminal.
但该更新操作系统的方法存在以下缺陷:However, the method of updating the operating system has the following drawbacks:
1、使用数据线将智能终端和电脑连接。因数据线通常是连接在电脑的通用串行总线(Universal Serial Bus,USB)接口上,而USB接口能够提供的电压有限,数据线本身要消耗电能。这样就导致施加在智能终端上的电压较低,不利于智能终端的正常工作;尤其是在将需要更新的操作系统文件写入智能终端时,如果数据线被干扰,导致数据传输中断,则会导致操 作系统更新失败;严重的,会使得智能终端出现不可修复性错误,智能终端将无法使用。1. Connect the smart terminal to the computer using the data cable. Since the data line is usually connected to the computer's Universal Serial Bus (USB) interface, the USB interface can provide a limited voltage, and the data line itself consumes power. This results in a lower voltage applied to the smart terminal, which is not conducive to the normal operation of the smart terminal; especially when the operating system file that needs to be updated is written into the smart terminal, if the data line is disturbed, the data transmission is interrupted, Lead to exercise The system update failed; serious, the intelligent terminal will have an irreparable error, and the smart terminal will be unavailable.
2、智能终端处于被动更新状态,只有更新失败时才会发出错误信息,无法在更新操作系统前对需要更新的操作系统文件的合法性进行检测;2. The intelligent terminal is in the passive update state. Only when the update fails, an error message is sent, and the legality of the operating system file that needs to be updated cannot be detected before updating the operating system.
3、USB供电电压不稳,对更新操作系统产生干扰。3. The USB power supply voltage is unstable and interferes with the update of the operating system.
发明内容Summary of the invention
有鉴于此,本发明实施例期望提供T卡更新/备份操作系统的方法及装置、存储介质,至少能解决通过数据线更新智能终端操作系统时存在的数据传输稳定性差等不足。In view of this, the embodiment of the present invention is to provide a method and device for updating/backing up an operating system of a T card, and a storage medium, which can at least solve the problem of poor data transmission stability when updating the operating system of the smart terminal through the data line.
本发明实施例的技术方案是这样实现的:The technical solution of the embodiment of the present invention is implemented as follows:
第一方面,本发明实施例提供了一种通过T卡更新操作系统的方法,应用于具有T卡的智能终端,所述方法包括:In a first aspect, an embodiment of the present invention provides a method for updating an operating system by using a T card, which is applied to an intelligent terminal having a T card, and the method includes:
接收更新操作系统的触发信号后,向智能终端发送存储设备信息查询指令;After receiving the trigger signal for updating the operating system, sending a storage device information query instruction to the smart terminal;
接收所述智能终端发来的存储设备信息,从所述存储设备信息中找出T卡的数据存储位置信息;Receiving storage device information sent by the smart terminal, and finding data storage location information of the T card from the storage device information;
根据所述T卡的数据存储位置信息向所述智能终端发送T卡读取指令;Sending a T card read instruction to the smart terminal according to the data storage location information of the T card;
接收所述智能终端发来的T卡数据信息,若所述T卡数据信息中包含智能终端的操作系统更新文件,则向所述智能终端发送操作系统更新指令;Receiving T card data information sent by the smart terminal, and if the T card data information includes an operating system update file of the smart terminal, sending an operating system update command to the smart terminal;
接收所述智能终端发来的操作系统更新完成信息。Receiving operating system update completion information sent by the smart terminal.
在本发明的一种实施例中,所述方法包括:In an embodiment of the invention, the method comprises:
若接收到所述智能终端发来的因T卡无法读取、镜像文件和系统分区表不匹配、镜像文件不合法或智能终端当前可用的数据存储空间不满足操作系统更新要求的操作系统更新失败信息,则发出告警信号并退出。If the receiving of the smart terminal fails due to the T card being unreadable, the image file and the system partition table are not matched, the image file is invalid, or the data storage space currently available to the smart terminal does not meet the operating system update requirements, the operating system update fails. Information, an alarm signal is issued and exits.
第二方面,本发明实施例还提供了一种通过T卡更新操作系统的方法, 应用于具有T卡的智能终端,所述方法包括:In a second aspect, an embodiment of the present invention further provides a method for updating an operating system by using a T card. Applied to a smart terminal having a T card, the method includes:
接收控制装置发来的存储设备信息查询指令,根据所述存储设备信息查询指令查询存储设备信息,并将所述存储设备信息发送给所述控制装置;Receiving a storage device information query instruction sent by the control device, querying the storage device information according to the storage device information query instruction, and transmitting the storage device information to the control device;
接收所述控制装置发来的T卡读取指令,根据所述T卡读取指令读取T卡,得到T卡数据信息;将所述T卡数据信息发送给所述控制装置;Receiving a T card reading instruction sent by the control device, reading a T card according to the T card reading instruction, obtaining T card data information; and transmitting the T card data information to the control device;
接收所述控制装置发来的操作系统更新指令,根据所述操作系统更新指令将T卡内的操作系统更新文件写入操作系统的存储区;Receiving an operating system update command sent by the control device, and writing an operating system update file in the T card to a storage area of the operating system according to the operating system update command;
向所述控制装置发送操作系统更新完成信息。An operating system update completion message is sent to the control device.
在本发明的一种实施例中,所述根据所述T卡读取指令读取T卡,得到T卡数据信息包括:In an embodiment of the present invention, the reading the T card according to the T card reading instruction, and obtaining the T card data information includes:
将程序计数器指向所述T卡读取指令对应的T卡的数据存储位置,并读取T卡的数据,得到T卡数据信息。The program counter is pointed to the data storage location of the T card corresponding to the T card read command, and the data of the T card is read to obtain the T card data information.
在本发明的一种实施例中,所述根据所述操作系统更新指令将T卡内的操作系统更新文件写入操作系统的存储区包括:In an embodiment of the present invention, the writing, by the operating system update instruction, the operating system update file in the T card to the storage area of the operating system includes:
从T卡的数据中找出操作系统更新文件对应的镜像文件和系统分区表;Find the image file and system partition table corresponding to the operating system update file from the data of the T card;
查询当前可用的数据存储空间;若所述镜像文件和系统分区表匹配、镜像文件合法,且当前可用的数据存储空间满足操作系统更新要求,则格式化当前操作系统,并将所述镜像文件写入操作系统的存储区;Query the currently available data storage space; if the image file and the system partition table match, the image file is legal, and the currently available data storage space meets the operating system update requirement, format the current operating system, and write the image file Enter the storage area of the operating system;
读取所述操作系统的存储区数据。Reading the storage area data of the operating system.
在本发明的一种实施例中,所述方法包括:In an embodiment of the invention, the method comprises:
若所述T卡无法读取、镜像文件和系统分区表不匹配、镜像文件不合法或当前可用的数据存储空间不满足操作系统更新要求,则向所述控制系统发送操作系统更新失败信息,读取操作系统的存储区。If the T card cannot be read, the image file and the system partition table do not match, the image file is invalid, or the currently available data storage space does not meet the operating system update requirement, the operating system update failure information is sent to the control system, and the read Take the storage area of the operating system.
第三方面,本发明实施例还提供了一种通过T卡备份操作系统的方法,应用于具有T卡的智能设备,所述方法包括: In a third aspect, the embodiment of the present invention further provides a method for backing up an operating system by using a T card, which is applied to a smart device having a T card, and the method includes:
接收备份操作系统的触发信号后,向智能终端发送存储设备信息查询指令;After receiving the trigger signal of the backup operating system, sending a storage device information query instruction to the smart terminal;
接收所述智能终端发来的存储设备信息,从所述存储设备信息中找出T卡的数据存储位置信息;Receiving storage device information sent by the smart terminal, and finding data storage location information of the T card from the storage device information;
根据所述T卡的数据存储位置信息向所述智能终端发送操作系统备份指令;Sending an operating system backup instruction to the smart terminal according to the data storage location information of the T card;
接收所述智能终端发来的操作系统备份完成信息。Receiving operating system backup completion information sent by the smart terminal.
在本发明的一种实施例中,所述方法包括:In an embodiment of the invention, the method comprises:
若接收到所述智能终端发来的因智能终端当前可用的数据存储空间或T卡的可用数据存储空间不满足操作系统备份要求的操作系统备份失败信息,则发出告警信号并退出。If the data storage space currently received by the smart terminal or the available data storage space of the T card does not meet the operating system backup failure requirement of the operating system backup request, the alarm signal is sent out and exits.
第四方面,本发明实施例还提供了一种通过T卡备份操作系统的方法,应用于具有T卡的智能设备,所述方法包括:In a fourth aspect, the embodiment of the present invention further provides a method for backing up an operating system by using a T card, which is applied to a smart device having a T card, and the method includes:
接收控制装置发来的存储设备信息查询指令,根据所述存储设备信息查询指令查询存储设备信息,并将所述存储设备信息发送给所述控制装置;Receiving a storage device information query instruction sent by the control device, querying the storage device information according to the storage device information query instruction, and transmitting the storage device information to the control device;
接收所述控制装置发来的操作系统备份指令,根据所述操作系统备份指令将当前操作系统写入T卡;Receiving an operating system backup instruction sent by the control device, and writing the current operating system to the T card according to the operating system backup instruction;
向所述控制装置发送操作系统备份完成信息。An operating system backup completion message is sent to the control device.
在本发明的一种实施例中,所述根据所述操作系统备份指令将当前操作系统写入T卡包括:In an embodiment of the present invention, the writing the current operating system to the T card according to the operating system backup instruction includes:
查询当前可用的数据存储空间和T卡的可用数据存储空间,若当前可用的数据存储空间和T卡的可用数据存储空间满足操作系统备份要求,则将程序计数器指向所述T卡读取指令对应的T卡的数据存储位置,并读取当前操作系统的数据,根据所述当前操作系统的数据生成所述当前操作系统的数据对应的镜像文件和系统分区表;并将所述镜像文件和系统分区表 写入T卡。Query the currently available data storage space and the available data storage space of the T card. If the currently available data storage space and the available data storage space of the T card meet the operating system backup requirements, the program counter is pointed to the T card read command. a data storage location of the T card, and reading data of the current operating system, generating an image file and a system partition table corresponding to the data of the current operating system according to the data of the current operating system; and the image file and the system Partition Table Write the T card.
在本发明的一种实施例中,所述方法包括:In an embodiment of the invention, the method comprises:
若所述当前可用的数据存储空间或T卡的可用数据存储空间不满足操作系统备份要求,则向所述控制系统发送操作系统备份失败信息。If the currently available data storage space or the available data storage space of the T card does not meet the operating system backup requirement, the operating system backup failure information is sent to the control system.
第五方面,本发明实施例还提供了一种通过T卡更新操作系统的装置,所述装置包括:In a fifth aspect, the embodiment of the present invention further provides an apparatus for updating an operating system by using a T card, where the apparatus includes:
更新查询指令发送单元,配置为接收更新操作系统的触发信号,并根据所述更新操作系统的触发信号向智能终端发送存储设备信息查询指令;The update query instruction sending unit is configured to receive a trigger signal for updating the operating system, and send a storage device information query instruction to the smart terminal according to the trigger signal for updating the operating system;
第一T卡数据查询单元,配置为接收所述智能终端发来的存储设备信息,从所述存储设备信息中找出T卡的数据存储位置信息;The first T card data query unit is configured to receive storage device information sent by the smart terminal, and find data storage location information of the T card from the storage device information;
第一T卡读取指令发送单元,配置为根据所述T卡的数据存储位置信息向所述智能终端发送T卡读取指令;The first T card reading instruction sending unit is configured to send a T card reading instruction to the smart terminal according to the data storage location information of the T card;
操作系统更新控制单元,配置为接收所述智能终端发来的T卡数据信息,若所述T卡数据信息中包含智能终端的操作系统更新文件,则向所述智能终端发送操作系统更新指令;The operating system update control unit is configured to receive T card data information sent by the smart terminal, and if the T card data information includes an operating system update file of the smart terminal, send an operating system update instruction to the smart terminal;
第一监测单元,配置为接收所述智能终端发来的操作系统更新完成信息。The first monitoring unit is configured to receive operating system update completion information sent by the smart terminal.
在本发明的一种实施例中,所述装置包括:In an embodiment of the invention, the device comprises:
第一告警单元,配置为在接收到所述智能终端发来的因T卡无法读取、镜像文件和系统分区表不匹配、镜像文件不合法或智能终端当前可用的数据存储空间不满足操作系统更新要求的操作系统更新失败信息时,则发出告警信号并退出。The first alarm unit is configured to receive the data storage space sent by the smart terminal due to the T card being unreadable, the image file and the system partition table are not matched, the image file is invalid, or the smart terminal is currently available. When the required operating system update failure message is updated, an alarm signal is issued and exits.
第六方面,本发明实施例还提供了一种通过T卡更新操作系统的装置,所述装置包括:In a sixth aspect, the embodiment of the present invention further provides an apparatus for updating an operating system by using a T card, where the apparatus includes:
第一查询信息接收单元,配置为接收控制装置发来的存储设备信息查 询指令,根据所述存储设备信息查询指令查询存储设备信息,并将所述存储设备信息发送给所述控制装置;The first query information receiving unit is configured to receive the storage device information sent by the control device. Inquiring instructions, querying storage device information according to the storage device information query instruction, and transmitting the storage device information to the control device;
T卡数据检索单元,配置为接收所述控制装置发来的T卡读取指令,根据所述T卡读取指令读取T卡,得到T卡数据信息;将所述T卡数据信息发送给所述控制装置;The T card data retrieval unit is configured to receive a T card read command sent by the control device, read the T card according to the T card read command, and obtain T card data information; and send the T card data information to The control device;
操作系统更新单元,配置为接收所述控制装置发来的操作系统更新指令,根据所述操作系统更新指令将T卡内的操作系统更新文件写入操作系统的存储区;An operating system update unit configured to receive an operating system update command sent by the control device, and write an operating system update file in the T card to a storage area of the operating system according to the operating system update command;
更新完成信息发送单元,配置为向所述控制装置发送操作系统更新完成信息。The update completion information transmitting unit is configured to transmit operating system update completion information to the control device.
在本发明的一种实施例中,所述T卡数据检索单元包括:In an embodiment of the present invention, the T card data retrieval unit includes:
T卡数据读取模块,配置为将程序计数器指向所述T卡读取指令对应的T卡的数据存储位置,并读取T卡的数据,得到T卡数据信息。The T card data reading module is configured to point the program counter to the data storage location of the T card corresponding to the T card reading instruction, and read the data of the T card to obtain the T card data information.
在本发明的一种实施例中,所述操作系统更新单元包括:In an embodiment of the present invention, the operating system update unit includes:
T卡数据检索模块,配置为从T卡的数据中找出操作系统更新文件对应的镜像文件和系统分区表;The T card data retrieval module is configured to find an image file and a system partition table corresponding to the operating system update file from the data of the T card;
更新控制模块,配置为查询当前可用的数据存储空间;若所述镜像文件和系统分区表匹配、镜像文件合法,且当前可用的数据存储空间满足操作系统更新要求,则格式化当前操作系统,并将所述镜像文件写入操作系统的存储区;Updating the control module, configured to query the currently available data storage space; if the image file and the system partition table match, the image file is legal, and the currently available data storage space meets the operating system update requirement, the current operating system is formatted, and Writing the image file into a storage area of the operating system;
操作系统重启模块,配置为读取所述操作系统的存储区数据。An operating system restart module configured to read storage area data of the operating system.
在本发明的一种实施例中,所述装置包括:In an embodiment of the invention, the device comprises:
第二告警单元,配置为在所述T卡无法读取、镜像文件和系统分区表不匹配、镜像文件不合法或当前可用的数据存储空间不满足操作系统更新要求时,向所述控制系统发送操作系统更新失败信息,读取操作系统的存 储区。a second alarm unit configured to send to the control system when the T card cannot be read, the image file and the system partition table do not match, the image file is invalid, or the currently available data storage space does not meet the operating system update requirement. Operating system update failure information, read operating system storage Storage area.
第七方面,本发明实施例还提供了一种通过T卡备份操作系统的装置,所述装置包括:In a seventh aspect, the embodiment of the present invention further provides an apparatus for backing up an operating system by using a T card, where the apparatus includes:
备份查询指令发送单元,配置为接收备份操作系统的触发信号,并根据所述备份操作系统的触发信号向智能终端发送存储设备信息查询指令;The backup query instruction sending unit is configured to receive a trigger signal of the backup operating system, and send a storage device information query instruction to the smart terminal according to the trigger signal of the backup operating system;
第二T卡数据查询单元,配置为接收所述智能终端发来的存储设备信息,从所述存储设备信息中找出T卡的数据存储位置信息;The second T-card data query unit is configured to receive storage device information sent by the smart terminal, and find data storage location information of the T-card from the storage device information;
第二T卡读取指令发送单元,配置为根据所述T卡的数据存储位置信息向所述智能终端发送操作系统备份指令;The second T card reading instruction sending unit is configured to send an operating system backup instruction to the smart terminal according to the data storage location information of the T card;
第二监测单元,配置为接收所述智能终端发来的操作系统备份完成信息。The second monitoring unit is configured to receive operating system backup completion information sent by the smart terminal.
在本发明的一种实施例中,所述装置包括:In an embodiment of the invention, the device comprises:
第三告警单元,配置为在接收到所述智能终端发来的因智能终端当前可用的数据存储空间或T卡的可用数据存储空间不满足操作系统备份要求的操作系统备份失败信息时,则发出告警信号并退出。The third alarm unit is configured to send, when receiving, the data storage space currently available by the smart terminal or the available data storage space of the T card does not meet the operating system backup failure requirement of the operating system backup requirement, The alarm signal is exited.
第八方面,本发明实施例还提供了一种通过T卡备份操作系统的装置,所述装置包括:In an eighth aspect, the embodiment of the present invention further provides an apparatus for backing up an operating system by using a T card, where the apparatus includes:
第二查询信息接收单元,配置为接收控制装置发来的存储设备信息查询指令,根据所述存储设备信息查询指令查询存储设备信息,并将所述存储设备信息发送给所述控制装置;The second query information receiving unit is configured to receive a storage device information query instruction sent by the control device, query the storage device information according to the storage device information query instruction, and send the storage device information to the control device;
操作系统备份单元,配置为接收所述控制装置发来的操作系统备份指令,根据所述操作系统备份指令将当前操作系统写入T卡;An operating system backup unit configured to receive an operating system backup command sent by the control device, and write the current operating system to the T card according to the operating system backup instruction;
备份完成信息发送单元,配置为向所述控制装置发送操作系统备份完成信息。The backup completion information transmitting unit is configured to send operating system backup completion information to the control device.
在本发明的一种实施例中,所述操作系统备份单元包括: In an embodiment of the present invention, the operating system backup unit includes:
操作系统备份模块,配置为查询当前可用的数据存储空间和T卡的可用数据存储空间,若当前可用的数据存储空间和T卡的可用数据存储空间满足操作系统备份要求,则将程序计数器指向所述T卡读取指令对应的T卡的数据存储位置,并读取当前操作系统的数据,根据所述当前操作系统的数据生成所述当前操作系统的数据对应的镜像文件和系统分区表;并将所述镜像文件和系统分区表写入T卡。The operating system backup module is configured to query the currently available data storage space and the available data storage space of the T card. If the currently available data storage space and the available data storage space of the T card meet the operating system backup requirements, the program counter is pointed to Describe the data storage location of the T card corresponding to the T card reading instruction, and read the data of the current operating system, and generate an image file and a system partition table corresponding to the data of the current operating system according to the data of the current operating system; Write the image file and system partition table to the T card.
在本发明的一种实施例中,所述装置包括:In an embodiment of the invention, the device comprises:
第四告警单元,配置为在所述当前可用的数据存储空间或T卡的可用数据存储空间不满足操作系统备份要求时,则向所述控制系统发送操作系统备份失败信息。The fourth alarm unit is configured to send an operating system backup failure information to the control system when the currently available data storage space or the available data storage space of the T card does not meet the operating system backup requirement.
第九方面,本发明实施例提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令用于执行本发明第一方面至第四方面任一方面实施例提供卡更新/备份操作系统的方法。According to a ninth aspect, an embodiment of the present invention provides a computer storage medium, where the computer storage medium stores computer executable instructions for executing any one of the first to fourth aspects of the present invention. Provides a method for card update/backup of the operating system.
本发明实施例所提供的T卡更新/备份操作系统的方法及装置、存储介质,在接收更新操作系统的触发信号后向智能终端发送存储设备信息查询指令;根据智能终端反馈回来的存储设备信息中找出T卡的数据存储位置信息;根据所述T卡的数据存储位置信息向所述智能终端发送T卡读取指令;从T卡数据信息中找到智能终端的操作系统更新文件,并向智能终端发送操作系统更新指令,最终通过T卡实现对智能终端操作系统的更新,提高了智能终端更新操作系统过程中的稳定性和安全性,便于智能终端的维护。The method and device for updating/backing up the operating system of the T card provided by the embodiment of the present invention, and the storage medium, after receiving the trigger signal for updating the operating system, send a storage device information query instruction to the intelligent terminal; and the storage device information fed back according to the smart terminal Finding data storage location information of the T card; sending a T card reading instruction to the smart terminal according to the data storage location information of the T card; finding an operating system update file of the smart terminal from the T card data information, and The intelligent terminal sends an operating system update command, and finally updates the operating system of the smart terminal through the T card, thereby improving the stability and security of the intelligent terminal in updating the operating system, and facilitating the maintenance of the intelligent terminal.
附图说明DRAWINGS
图1为本发明实施例1通过T卡更新操作系统的方法的实现流程示意图;1 is a schematic flowchart of an implementation method of updating an operating system by using a T card according to Embodiment 1 of the present invention;
图2为本发明实施例2通过T卡更新操作系统的方法的实现流程示意 图;2 is a schematic flow chart of a method for updating an operating system by using a T card according to Embodiment 2 of the present invention; Figure
图3为本发明实施例3通过T卡备份操作系统的方法的实现流程示意图;3 is a schematic flowchart of an implementation process of a method for backing up an operating system by using a T card according to Embodiment 3 of the present invention;
图4为本发明实施例4通过T卡备份操作系统的方法的实现流程示意图;4 is a schematic flowchart of an implementation process of a method for backing up an operating system by using a T card according to Embodiment 4 of the present invention;
图5为本发明实施例5通过T卡更新操作系统的装置的组成结构示意图;5 is a schematic structural diagram of a device for updating an operating system by using a T card according to Embodiment 5 of the present invention;
图6为本发明实施例6通过T卡更新操作系统的装置的组成结构示意图;6 is a schematic structural diagram of a device for updating an operating system by using a T card according to Embodiment 6 of the present invention;
图7为本发明实施例7通过T卡备份操作系统的装置的组成结构示意图;7 is a schematic structural diagram of a device for backing up an operating system by using a T card according to Embodiment 7 of the present invention;
图8为本发明实施例8通过T卡备份操作系统的装置的组成结构示意图;FIG. 8 is a schematic structural diagram of a device for backing up an operating system by using a T card according to Embodiment 8 of the present invention; FIG.
图9为本发明实施例9通过T卡更新操作系统的方法的实现流程示意图;FIG. 9 is a schematic diagram of an implementation process of a method for updating an operating system by using a T card according to Embodiment 9 of the present invention; FIG.
图10为本发明实施例10通过T卡备份操作系统的方法的实现流程示意图;10 is a schematic flowchart of an implementation process of a method for backing up an operating system by using a T card according to Embodiment 10 of the present invention;
图11为本发明实施例11的一个具体结构图。Figure 11 is a detailed structural view of Embodiment 11 of the present invention.
具体实施方式detailed description
以下结合说明书附图及具体实施例对本发明的技术方案做进一步的详细阐述。The technical solutions of the present invention are further elaborated below in conjunction with the drawings and specific embodiments.
实施例1Example 1
为了解决通过数据线更新智能终端操作系统时存在的数据传输稳定性差等不足。本实施例提供了一种通过T卡(即TF卡,又称microSD卡)更新操作系统的方法,应用于具有T卡的智能终端,如图1所示,本实施例 方法包括:In order to solve the problem of poor data transmission stability when updating the smart terminal operating system through the data line. The embodiment provides a method for updating an operating system by using a T card (that is, a TF card, also called a microSD card), and is applied to an intelligent terminal having a T card. As shown in FIG. 1 , this embodiment Methods include:
S101:接收更新操作系统的触发信号后,向智能终端发送存储设备信息查询指令;S101: After receiving the trigger signal for updating the operating system, sending a storage device information query instruction to the smart terminal;
更新操作系统的触发信号可以是用户通过智能终端上特定的按键组合发出,也可以是在智能终端重新启动前,用户通过设定的触发信号指令发出,得到触发指令后,控制装置向智能终端发送存储设备信息查询指令。智能终端接收存储设备信息查询指令,对存储设备信息进行查询。The trigger signal for updating the operating system may be sent by the user through a specific key combination on the smart terminal, or may be sent by the user through a set trigger signal command before the smart terminal is restarted, and after the trigger command is obtained, the control device sends the smart terminal to the smart terminal. Storage device information query instruction. The intelligent terminal receives the storage device information query instruction and queries the storage device information.
S102:接收所述智能终端发来的存储设备信息,从所述存储设备信息中找出T卡的数据存储位置信息;S102: Receive storage device information sent by the smart terminal, and find data storage location information of the T card from the storage device information.
由于T卡不属于智能设备本身的部分,所以能够根据T卡自身的数据信息的标识、类型或名称等属性,从存储设备信息中找出T卡对应的信息区域,并根据T卡自身的数据信息的标识、类型或名称所在的存储位置信息得到T卡数据的起始位置和终止位置。Since the T card does not belong to the smart device itself, the information area corresponding to the T card can be found from the storage device information according to the identifier, type or name of the data information of the T card itself, and according to the data of the T card itself. The storage location information of the identification, type or name of the information is the starting position and ending position of the T card data.
S103:根据所述T卡的数据存储位置信息向所述智能终端发送T卡读取指令;S103: Send a T card reading instruction to the smart terminal according to the data storage location information of the T card.
其中,T卡读取指令包含T卡的数据存储位置信息。The T card read command includes data storage location information of the T card.
S104:接收所述智能终端发来的T卡数据信息,若所述T卡数据信息中包含智能终端的操作系统更新文件,则向所述智能终端发送操作系统更新指令;S104: Receive T-card data information sent by the smart terminal, and if the T-card data information includes an operating system update file of the smart terminal, send an operating system update command to the smart terminal;
查找智能终端的操作系统更新文件时,因为操作系统更新文件具有特定的文件类型,因此,常用的方法是根据文件类型查找操作系统更新文件。当操作系统更新文件以压缩文件的形式存在时,允许查看压缩包内的文件。操作系统更新文件也可以是用户自定义的名称。When looking for an operating system update file for a smart terminal, because the operating system update file has a specific file type, a common method is to find an operating system update file based on the file type. When the operating system update file exists as a compressed file, it is allowed to view the files in the compressed package. The operating system update file can also be a user-defined name.
S105:接收所述智能终端发来的操作系统更新完成信息,完成所述智能终端的操作系统更新。 S105: Receive operating system update completion information sent by the smart terminal, and complete an operating system update of the smart terminal.
本实施例在接收更新操作系统的触发信号后向智能终端发送存储设备信息查询指令;根据智能终端反馈回来的存储设备信息中找出T卡的数据存储位置信息;根据所述T卡的数据存储位置信息向所述智能终端发送T卡读取指令;从T卡数据信息中找到智能终端的操作系统更新文件,并向智能终端发送操作系统更新指令,最终通过T卡实现对智能终端操作系统的更新,提高了智能终端更新操作系统过程中的稳定性和安全性,便于智能终端的维护。After receiving the trigger signal for updating the operating system, the embodiment sends a storage device information query instruction to the smart terminal; and finds the data storage location information of the T card according to the storage device information fed back by the smart terminal; and stores the data according to the T card. The location information sends a T card reading instruction to the smart terminal; the operating system update file of the smart terminal is found from the T card data information, and an operating system update command is sent to the smart terminal, and finally the operating system of the smart terminal is implemented by the T card. The update improves the stability and security of the intelligent terminal in updating the operating system, and is convenient for the maintenance of the intelligent terminal.
由上述更新操作系统的过程可知,控制装置接收智能终端发来的存储设备信息、T卡数据信息和操作系统更新完成信息等,即智能终端在更新操作系统过程中处于开机状态,这样就使得智能终端能够对操作系统更新文件进行检测;同时,更新过程通过智能终端自身的电池供电,保证了供电稳定性,减小了外界因素的干扰,能够最大限度避免智能终端的操作系统更新过程中出现系统性错误等,保证了更新操作系统的稳定性和成功率。According to the process of updating the operating system, the control device receives the storage device information, the T card data information, and the operating system update completion information sent by the smart terminal, that is, the smart terminal is powered on during the update of the operating system, so that the smart device is enabled. The terminal can detect the operating system update file. At the same time, the update process is powered by the battery of the smart terminal itself, which ensures the stability of the power supply, reduces the interference of external factors, and can avoid the system in the process of updating the operating system of the smart terminal to the utmost extent. Sexual errors, etc., ensure the stability and success rate of updating the operating system.
此外,若接收到所述智能终端发来的因T卡无法读取、镜像文件和系统分区表不匹配、镜像文件不合法或智能终端当前可用的数据存储空间不满足操作系统更新要求的操作系统更新失败信息,则发出告警信号并退出。至此完成了对智能终端的更新操作。In addition, if the data storage space sent by the smart terminal due to the T card cannot be read, the image file and the system partition table are not matched, the image file is invalid, or the smart terminal is currently available, the operating system does not meet the operating system update requirement. When the failure information is updated, an alarm signal is issued and exits. This completes the update operation of the smart terminal.
实施例2Example 2
本实施例和实施例1属于同一发明构思。本实施例提供了一种通过T卡更新操作系统的方法,应用于具有T卡的智能终端。如图2所示,本实施例方法包括:This embodiment and the embodiment 1 belong to the same inventive concept. This embodiment provides a method for updating an operating system by using a T card, and is applied to an intelligent terminal having a T card. As shown in FIG. 2, the method in this embodiment includes:
S201:接收控制装置发来的存储设备信息查询指令,根据所述存储设备信息查询指令查询存储设备信息,并将所述存储设备信息发送给所述控制装置;S201: Receive a storage device information query instruction sent by the control device, query the storage device information according to the storage device information query instruction, and send the storage device information to the control device;
存储设备信息包括设备自身的数据存储信息和附加的数据存储设备 (如T卡等)的数据存储信息。Storage device information includes data storage information of the device itself and additional data storage devices Data storage information (such as T card, etc.).
S202:接收所述控制装置发来的T卡读取指令,根据所述T卡读取指令读取T卡,得到T卡数据信息;将所述T卡数据信息发送给所述控制装置;S202: Receive a T card read command sent by the control device, read a T card according to the T card read command, and obtain T card data information; and send the T card data information to the control device;
T卡读取指令含有T卡的数据存储位置信息,根据T卡的数据存储位置信息读取T卡包含的数据信息。The T card read command contains data storage location information of the T card, and the data information included in the T card is read according to the data storage location information of the T card.
S203:接收所述控制装置发来的操作系统更新指令,根据所述操作系统更新指令将T卡内的操作系统更新文件写入操作系统的存储区;S203: Receive an operating system update command sent by the control device, and write an operating system update file in the T card to a storage area of the operating system according to the operating system update command.
由于操作系统更新文件具有特定的文件类型,因此,根据文件类型就可以从T卡内的数据中找出操作系统更新文件。将T卡内的操作系统更新文件写入操作系统的存储区时,可以先将T卡内的操作系统更新文件拷贝到设备自身的数据存储,然后再写入操作系统的存储区;也可以直接从T卡内读取并写入操作系统的存储区。Since the operating system update file has a specific file type, the operating system update file can be found from the data in the T card according to the file type. When writing the operating system update file in the T card to the storage area of the operating system, you can copy the operating system update file in the T card to the data storage of the device itself, and then write it to the storage area of the operating system. Read from the T card and write to the memory area of the operating system.
S204:向所述控制装置发送操作系统更新完成信息,完成操作系统更新。S204: Send operating system update completion information to the control device to complete an operating system update.
具体的,步骤S202中根据所述T卡读取指令读取T卡,得到T卡数据信息包括:Specifically, in step S202, the T card is read according to the T card reading instruction, and the obtained T card data information includes:
程序计数器用于存放下一条指令所在单元的地址,将程序计数器指向所述T卡读取指令对应的T卡的数据存储位置,并读取T卡的数据,得到T卡数据信息。The program counter is used to store the address of the unit where the next instruction is located, point the program counter to the data storage location of the T card corresponding to the T card read command, and read the data of the T card to obtain the T card data information.
步骤S203中根据所述操作系统更新指令将T卡内的操作系统更新文件写入操作系统的存储区包括:Writing the operating system update file in the T card to the storage area of the operating system according to the operating system update command in step S203 includes:
根据操作系统更新文件和系统分区表的文件类型或名称从T卡的数据中找出操作系统更新文件对应的镜像文件和系统分区表;根据智能终端的总存储空间和现有文件所占用的空间就可得到当前可用的数据存储空间; 系统分区表用于使得数据的读取或写入等操作,若所述镜像文件和系统分区表匹配则说明镜像文件可读写;镜像文件合法说明镜像文件和当前智能终端的型号及当前操作系统符合更新要求;更新操作系统需要将镜像文件解压出来,然后再写入智能终端。其中,解压过程需要一定的数据缓存空间,当智能终端当前可用的数据存储空间大于解压过程需要的数据缓存空间时,即当前可用的数据存储空间满足操作系统更新要求,就可以进行操作系统的更新操作。则格式化当前操作系统,并将所述镜像文件写入操作系统的存储区;读取所述操作系统的存储区数据,完成操作系统更新。Find the image file and system partition table corresponding to the operating system update file from the data of the T card according to the file type or name of the operating system update file and the system partition table; according to the total storage space of the smart terminal and the space occupied by the existing file The currently available data storage space is available; The system partition table is used for reading or writing data. If the image file and the system partition table match, the image file can be read and written. The image file legally indicates the image file and the current smart terminal model and the current operating system. Meet the update requirements; update the operating system needs to extract the image file and then write to the smart terminal. The decompression process requires a certain data cache space. When the currently available data storage space of the smart terminal is larger than the data cache space required for the decompression process, that is, the currently available data storage space satisfies the operating system update requirement, the operating system may be updated. operating. Then formatting the current operating system, and writing the image file to the storage area of the operating system; reading the storage area data of the operating system to complete the operating system update.
此外,若所述T卡无法读取、镜像文件和系统分区表不匹配(主要是系统分区表出现问题导致镜像文件无法读取)、镜像文件不合法或当前可用的数据存储空间不满足操作系统更新要求,则向所述控制系统发送操作系统更新失败信息,读取操作系统的存储区。In addition, if the T card cannot be read, the image file and the system partition table do not match (mainly the system partition table has problems causing the image file to be unreadable), the image file is invalid, or the currently available data storage space does not satisfy the operating system. The update request sends an operating system update failure message to the control system to read the storage area of the operating system.
当用户需要备份智能终端的操作系统时,如,智能终端操作系统被病毒侵害后,需要将智能终端的操作系统恢复到被病毒侵害之前的某个状体。这时,就需要使用在被病毒侵害前备份的智能终端操作系统的备份文件,因此,本申请还提出通过T卡备份操作系统的方案,以便智能终端的使用和维护。When the user needs to back up the operating system of the smart terminal, for example, after the smart terminal operating system is infected by a virus, the operating system of the smart terminal needs to be restored to a certain state before being infected by the virus. At this time, it is necessary to use a backup file of the smart terminal operating system that is backed up before being infected by the virus. Therefore, the present application also proposes a scheme of backing up the operating system through the T card, so as to use and maintain the smart terminal.
实施例3Example 3
本实施例提供了一种通过T卡备份操作系统的方法,应用于具有T卡的智能设备。如图3所示,本实施例方法包括:This embodiment provides a method for backing up an operating system by using a T card, and is applied to a smart device having a T card. As shown in FIG. 3, the method in this embodiment includes:
S301:接收备份操作系统的触发信号后,向智能终端发送存储设备信息查询指令;S301: After receiving a trigger signal of the backup operating system, sending a storage device information query instruction to the smart terminal;
备份操作系统的触发信号可以是用户通过智能终端上特定的按键组合发出,也可以是在智能终端重新启动前,通过设定的触发信号指令发出。The trigger signal of the backup operating system may be sent by the user through a specific key combination on the smart terminal, or may be issued by a set trigger signal command before the smart terminal restarts.
S302:接收所述智能终端发来的存储设备信息,从所述存储设备信息 中找出T卡的数据存储位置信息;S302: Receive storage device information sent by the smart terminal, and obtain information from the storage device. Find the data storage location information of the T card;
由于T卡不属于智能设备本身的部分,所以能够根据T卡自身的数据信息从存储设备信息中找出T卡对应的信息区域,进而得到T卡数据的起始位置和终止位置。Since the T card does not belong to the smart device itself, the information area corresponding to the T card can be found from the storage device information according to the data information of the T card itself, thereby obtaining the starting position and the ending position of the T card data.
S303:根据所述T卡的数据存储位置信息向所述智能终端发送操作系统备份指令;S303: Send an operating system backup instruction to the smart terminal according to the data storage location information of the T card.
其中,操作系统备份指令包含T卡的数据存储位置信息。由于T卡不属于智能设备本身的部分,所以能够根据T卡自身的数据信息从存储设备信息中找出T卡对应的信息区域,进而得到T卡数据的起始位置和终止位置。The operating system backup instruction includes data storage location information of the T card. Since the T card does not belong to the smart device itself, the information area corresponding to the T card can be found from the storage device information according to the data information of the T card itself, thereby obtaining the starting position and the ending position of the T card data.
S304:接收所述智能终端发来的操作系统备份完成信息,完成所述智能终端的操作系统备份。S304: Receive operating system backup completion information sent by the smart terminal, and complete an operating system backup of the smart terminal.
本实施例在接收备份操作系统的触发信号后向智能终端发送存储设备信息查询指令;根据智能终端反馈回来的存储设备信息中找出T卡的数据存储位置信息,并向所述智能终端发送操作系统备份指令,最终通过T卡实现对智能终端操作系统的备份,提高了智能终端备份操作系统过程中的稳定性和安全性,便于智能终端的维护。After receiving the trigger signal of the backup operating system, the embodiment sends a storage device information query instruction to the smart terminal; and finds the data storage location information of the T card according to the storage device information fed back by the smart terminal, and sends an operation to the smart terminal. The system backup instruction finally realizes the backup of the intelligent terminal operating system through the T card, improves the stability and security in the process of the intelligent terminal backup operating system, and is convenient for the maintenance of the intelligent terminal.
由上述备份操作系统的过程可知,备份过程通过智能终端自身的电池供电,保证了供电稳定性,减小了外界因素的干扰,能够最大限度避免智能终端的操作系统备份过程中出现系统性错误等,保证了备份操作系统的稳定性和成功率。According to the process of the backup operating system described above, the backup process is powered by the battery of the smart terminal itself, which ensures the stability of the power supply, reduces the interference of external factors, and can avoid systematic errors in the operating system backup process of the smart terminal to the utmost extent. To ensure the stability and success rate of the backup operating system.
此外,若接收到所述智能终端发来的因智能终端当前可用的数据存储空间或T卡的可用数据存储空间不满足操作系统备份要求的操作系统备份失败信息,则发出告警信号并退出。In addition, if the data storage space currently received by the smart terminal or the available data storage space of the T card does not meet the operating system backup failure information required by the operating system backup request, the alarm signal is sent out and exits.
实施例4 Example 4
本实施例和实施例3属于同一发明构思,本实施例提供了一种通过T卡备份操作系统的方法,应用于具有T卡的智能设备。如图4所示,本实施例方法包括:This embodiment and the embodiment 3 belong to the same inventive concept. The embodiment provides a method for backing up an operating system by using a T card, and is applied to a smart device having a T card. As shown in FIG. 4, the method in this embodiment includes:
S401:接收控制装置发来的存储设备信息查询指令,根据所述存储设备信息查询指令查询存储设备信息,并将所述存储设备信息发送给所述控制装置;S401: Receive a storage device information query instruction sent by the control device, query the storage device information according to the storage device information query instruction, and send the storage device information to the control device;
存储设备信息包括设备自身的数据存储信息和附加的数据存储设备(如T卡等)的数据存储信息。The storage device information includes data storage information of the device itself and data storage information of an additional data storage device (such as a T card, etc.).
S402:接收所述控制装置发来的操作系统备份指令,根据所述操作系统备份指令将当前操作系统写入T卡;S402: Receive an operating system backup instruction sent by the control device, and write the current operating system to the T card according to the operating system backup instruction.
将当前操作系统写入T卡之前,应该对T卡是否可读写进行检查,若可读写,则继续后续操作;否则,发出告警信息。Before writing the current operating system to the T card, you should check whether the T card is readable and writable. If it can be read or written, continue the subsequent operations; otherwise, send an alarm message.
S403:向所述控制装置发送操作系统备份完成信息,完成操作系统备份。S403: Send operating system backup completion information to the control device, and complete an operating system backup.
具体的,步骤S402中所述根据所述操作系统备份指令将当前操作系统写入T卡包括:Specifically, the writing the current operating system to the T card according to the operating system backup instruction in step S402 includes:
查询当前可用的数据存储空间和T卡的可用数据存储空间,若当前可用的数据存储空间和T卡的可用数据存储空间满足操作系统备份要求,则将程序计数器指向所述T卡读取指令对应的T卡的数据存储位置,并读取当前操作系统的数据,根据所述当前操作系统的数据生成所述当前操作系统的数据对应的镜像文件和系统分区表;并将所述镜像文件和系统分区表写入T卡。Query the currently available data storage space and the available data storage space of the T card. If the currently available data storage space and the available data storage space of the T card meet the operating system backup requirements, the program counter is pointed to the T card read command. a data storage location of the T card, and reading data of the current operating system, generating an image file and a system partition table corresponding to the data of the current operating system according to the data of the current operating system; and the image file and the system The partition table is written to the T card.
此外,所述方法包括:Additionally, the method includes:
若所述当前可用的数据存储空间或T卡的可用数据存储空间不满足操作系统备份要求,则向所述控制系统发送操作系统备份失败信息。 If the currently available data storage space or the available data storage space of the T card does not meet the operating system backup requirement, the operating system backup failure information is sent to the control system.
实施例5Example 5
一种通过T卡更新操作系统的装置,如图5所示,本实施例装置包括:An apparatus for updating an operating system by using a T card, as shown in FIG. 5, the apparatus of this embodiment includes:
更新查询指令发送单元501,配置为接收更新操作系统的触发信号,并根据所述更新操作系统的触发信号向智能终端发送存储设备信息查询指令;其中,更新操作系统的触发信号可以是用户通过智能终端上特定的按键组合发出,也可以是在智能终端重新启动前,通过设定的触发信号指令发出。The update query instruction sending unit 501 is configured to receive a trigger signal for updating the operating system, and send a storage device information query instruction to the smart terminal according to the trigger signal of the update operating system; wherein the trigger signal for updating the operating system may be that the user passes the smart The specific key combination on the terminal is sent, or it can be issued by the set trigger signal command before the smart terminal restarts.
第一T卡数据查询单元502,配置为接收所述智能终端发来的存储设备信息,从所述存储设备信息中找出T卡的数据存储位置信息;由于T卡不属于智能设备本身的部分,所以能够根据T卡自身的数据信息从存储设备信息中找出T卡对应的信息区域,进而得到T卡数据的起始位置和终止位置。The first T-card data query unit 502 is configured to receive storage device information sent by the smart terminal, and find data storage location information of the T-card from the storage device information; since the T-card does not belong to the smart device itself Therefore, the information area corresponding to the T card can be found from the storage device information according to the data information of the T card itself, thereby obtaining the starting position and the ending position of the T card data.
第一T卡读取指令发送单元503,配置为根据所述T卡的数据存储位置信息向所述智能终端发送T卡读取指令;其中,T卡读取指令包含T卡的数据存储位置信息。The first T card read command sending unit 503 is configured to send a T card read command to the smart terminal according to the data storage location information of the T card; wherein the T card read command includes data storage location information of the T card .
操作系统更新控制单元504,配置为接收所述智能终端发来的T卡数据信息,若所述T卡数据信息中包含智能终端的操作系统更新文件,则向所述智能终端发送操作系统更新指令;查找智能终端的操作系统更新文件时,常用的方法是根据文件类型查找操作系统更新文件。当操作系统更新文件以压缩文件的形式存在时,允许查看压缩包内的文件。操作系统更新文件也可以是用户自定义的名称。The operating system update control unit 504 is configured to receive T card data information sent by the smart terminal, and if the T card data information includes an operating system update file of the smart terminal, send an operating system update command to the smart terminal. When looking for an operating system update file for a smart terminal, a common method is to find an operating system update file based on the file type. When the operating system update file exists as a compressed file, it is allowed to view the files in the compressed package. The operating system update file can also be a user-defined name.
第一监测单元505,配置为接收所述智能终端发来的操作系统更新完成信息,完成所述智能终端的操作系统更新。The first monitoring unit 505 is configured to receive operating system update completion information sent by the smart terminal, and complete an operating system update of the smart terminal.
此外,所述装置包括:Furthermore, the device comprises:
第一告警单元506,配置为在接收到所述智能终端发来的因T卡无法读 取、镜像文件和系统分区表不匹配、镜像文件不合法或智能终端当前可用的数据存储空间不满足操作系统更新要求的操作系统更新失败信息时,则发出告警信号并退出。The first alarm unit 506 is configured to be unable to read the T card received by the smart terminal. If the fetch, mirror file, and system partition table do not match, the image file is invalid, or the data storage space currently available to the smart terminal does not meet the operating system update failure information required by the operating system update, an alarm signal is sent and exits.
需要说明的是,本实施装置可以置于智能终端上,也可以独立于智能终端存在。It should be noted that the implementation device may be placed on the smart terminal or may exist independently of the smart terminal.
实施例6Example 6
一种通过T卡更新操作系统的装置,如图6所示,本实施例装置包括:An apparatus for updating an operating system by using a T card, as shown in FIG. 6, the apparatus of this embodiment includes:
第一查询信息接收单元601,配置为接收控制装置发来的存储设备信息查询指令,根据所述存储设备信息查询指令查询存储设备信息,并将所述存储设备信息发送给所述控制装置;The first query information receiving unit 601 is configured to receive a storage device information query instruction sent by the control device, query the storage device information according to the storage device information query instruction, and send the storage device information to the control device;
T卡数据检索单元602,配置为接收所述控制装置发来的T卡读取指令,根据所述T卡读取指令读取T卡,得到T卡数据信息;将所述T卡数据信息发送给所述控制装置;The T card data retrieval unit 602 is configured to receive a T card read command sent by the control device, read the T card according to the T card read command, and obtain T card data information; send the T card data information Giving the control device;
操作系统更新单元603,配置为接收所述控制装置发来的操作系统更新指令,根据所述操作系统更新指令将T卡内的操作系统更新文件写入操作系统的存储区;The operating system update unit 603 is configured to receive an operating system update command sent by the control device, and write an operating system update file in the T card to a storage area of the operating system according to the operating system update command;
更新完成信息发送单元604,配置为向所述控制装置发送操作系统更新完成信息,完成操作系统更新。The update completion information transmitting unit 604 is configured to transmit operating system update completion information to the control device to complete an operating system update.
具体地,所述T卡数据检索单元602包括T卡数据读取模块,所述T卡数据读取模块配置为将程序计数器指向所述T卡读取指令对应的T卡的数据存储位置,并读取T卡的数据,得到T卡数据信息。Specifically, the T card data retrieval unit 602 includes a T card data reading module, and the T card data reading module is configured to point a program counter to a data storage location of the T card corresponding to the T card reading instruction, and Read the data of the T card to get the T card data information.
所述操作系统更新单元603包括:The operating system update unit 603 includes:
T卡数据检索模块,配置为从T卡的数据中找出操作系统更新文件对应的镜像文件和系统分区表;The T card data retrieval module is configured to find an image file and a system partition table corresponding to the operating system update file from the data of the T card;
更新控制模块,配置为查询当前可用的数据存储空间;若所述镜像文 件和系统分区表匹配、镜像文件合法,且当前可用的数据存储空间满足操作系统更新要求,则格式化当前操作系统,并将所述镜像文件写入操作系统的存储区;Updating the control module, configured to query the currently available data storage space; The device matches the system partition table, the image file is legal, and the currently available data storage space meets the operating system update requirements, the current operating system is formatted, and the image file is written into the storage area of the operating system;
操作系统重启模块,配置为读取所述操作系统的存储区数据,完成操作系统更新。The operating system restart module is configured to read the storage area data of the operating system to complete an operating system update.
所述装置包括:The device includes:
第二告警单元605,配置为在所述T卡无法读取、镜像文件和系统分区表不匹配、镜像文件不合法或当前可用的数据存储空间不满足操作系统更新要求时,向所述控制系统发送操作系统更新失败信息,读取操作系统的存储区。The second alarm unit 605 is configured to notify the control system when the T card cannot be read, the image file and the system partition table do not match, the image file is invalid, or the currently available data storage space does not meet the operating system update requirement. Send an operating system update failure message and read the operating system's storage area.
需要说明的是,本实施装置可以置于智能终端上,也可以独立于智能终端存在。It should be noted that the implementation device may be placed on the smart terminal or may exist independently of the smart terminal.
实施例7Example 7
一种通过T卡备份操作系统的装置,如图7所示,本实施例装置包括:An apparatus for backing up an operating system by using a T card, as shown in FIG. 7, the apparatus of this embodiment includes:
备份查询指令发送单元701,配置为接收备份操作系统的触发信号,并根据所述备份操作系统的触发信号向智能终端发送存储设备信息查询指令;The backup query instruction sending unit 701 is configured to receive a trigger signal of the backup operating system, and send a storage device information query instruction to the smart terminal according to the trigger signal of the backup operating system;
第二T卡数据查询单元702,配置为接收所述智能终端发来的存储设备信息,从所述存储设备信息中找出T卡的数据存储位置信息;The second T-card data query unit 702 is configured to receive storage device information sent by the smart terminal, and find data storage location information of the T-card from the storage device information;
第二T卡读取指令发送单元703,配置为根据所述T卡的数据存储位置信息向所述智能终端发送操作系统备份指令;The second T card reading instruction sending unit 703 is configured to send an operating system backup instruction to the smart terminal according to the data storage location information of the T card;
第二监测单元704,配置为接收所述智能终端发来的操作系统备份完成信息,完成所述智能终端的操作系统备份。The second monitoring unit 704 is configured to receive operating system backup completion information sent by the smart terminal, and complete an operating system backup of the smart terminal.
此外,所述装置包括:Furthermore, the device comprises:
第三告警单元705,配置为在接收到所述智能终端发来的因智能终端当 前可用的数据存储空间或T卡的可用数据存储空间不满足操作系统备份要求的操作系统备份失败信息时,则发出告警信号并退出。The third alarm unit 705 is configured to receive the smart terminal sent by the smart terminal. When the available data storage space or the available data storage space of the T card does not meet the operating system backup failure information required by the operating system backup, an alarm signal is sent and exits.
需要说明的是,本实施装置可以置于智能终端上,也可以独立于智能终端存在。It should be noted that the implementation device may be placed on the smart terminal or may exist independently of the smart terminal.
实施例8Example 8
一种通过T卡备份操作系统的装置,如图8所示,本实施例装置包括:An apparatus for backing up an operating system by using a T card, as shown in FIG. 8, the apparatus of this embodiment includes:
第二查询信息接收单元801,配置为接收控制装置发来的存储设备信息查询指令,根据所述存储设备信息查询指令查询存储设备信息,并将所述存储设备信息发送给所述控制装置;The second query information receiving unit 801 is configured to receive a storage device information query command sent by the control device, query the storage device information according to the storage device information query instruction, and send the storage device information to the control device;
操作系统备份单元802,配置为接收所述控制装置发来的操作系统备份指令,根据所述操作系统备份指令将当前操作系统写入T卡;The operating system backup unit 802 is configured to receive an operating system backup instruction sent by the control device, and write the current operating system to the T card according to the operating system backup instruction;
备份完成信息发送单元803,配置为向所述控制装置发送操作系统备份完成信息,完成操作系统备份。The backup completion information sending unit 803 is configured to send the operating system backup completion information to the control device to complete the operating system backup.
具体的,所述操作系统备份单元802包括:Specifically, the operating system backup unit 802 includes:
操作系统备份模块,配置为查询当前可用的数据存储空间和T卡的可用数据存储空间,若当前可用的数据存储空间和T卡的可用数据存储空间满足操作系统备份要求,则将程序计数器指向所述T卡读取指令对应的T卡的数据存储位置,并读取当前操作系统的数据,根据所述当前操作系统的数据生成所述当前操作系统的数据对应的镜像文件和系统分区表;并将所述镜像文件和系统分区表写入T卡。The operating system backup module is configured to query the currently available data storage space and the available data storage space of the T card. If the currently available data storage space and the available data storage space of the T card meet the operating system backup requirements, the program counter is pointed to Describe the data storage location of the T card corresponding to the T card reading instruction, and read the data of the current operating system, and generate an image file and a system partition table corresponding to the data of the current operating system according to the data of the current operating system; Write the image file and system partition table to the T card.
此外,所述装置包括:Furthermore, the device comprises:
第四告警单元804,配置为在所述当前可用的数据存储空间或T卡的可用数据存储空间不满足操作系统备份要求时,则向所述控制系统发送操作系统备份失败信息。The fourth alarm unit 804 is configured to send an operating system backup failure information to the control system when the currently available data storage space or the available data storage space of the T card does not meet the operating system backup requirement.
需要说明的是,本实施装置可以置于智能终端上,也可以独立于智能 终端存在。It should be noted that the implementation device can be placed on the smart terminal or can be independent of the smart device. The terminal exists.
实施例9Example 9
本实施例提供了一种通过T卡更新操作系统的方法,应用于具有T卡的智能设备。如图9所示,该方法包括:This embodiment provides a method for updating an operating system by using a T card, and is applied to a smart device having a T card. As shown in FIG. 9, the method includes:
S901:控制装置接收更新操作系统的触发信号后,向智能终端发送存储设备信息查询指令;S901: After receiving the trigger signal for updating the operating system, the control device sends a storage device information query instruction to the smart terminal.
S902:智能终端接收控制装置发来的存储设备信息查询指令,根据所述存储设备信息查询指令查询存储设备信息,并将所述存储设备信息发送给所述控制装置;S902: The smart terminal receives the storage device information query instruction sent by the control device, queries the storage device information according to the storage device information query instruction, and sends the storage device information to the control device.
S903:控制装置接收所述智能终端发来的存储设备信息,从所述存储设备信息中找出T卡的数据存储位置信息;S903: The control device receives the storage device information sent by the smart terminal, and finds the data storage location information of the T card from the storage device information.
S904:智能终端接收所述控制装置发来的T卡读取指令,根据所述T卡读取指令读取T卡,得到T卡数据信息;将所述T卡数据信息发送给所述控制装置;S904: The smart terminal receives the T card reading instruction sent by the control device, reads the T card according to the T card reading instruction, and obtains T card data information; and sends the T card data information to the control device. ;
S905:控制装置根据所述T卡的数据存储位置信息向所述智能终端发送T卡读取指令;S905: The control device sends a T card reading instruction to the smart terminal according to the data storage location information of the T card.
S906:智能终端接收所述控制装置发来的操作系统更新指令,根据所述操作系统更新指令将T卡内的操作系统更新文件写入操作系统的存储区;S906: The smart terminal receives an operating system update command sent by the control device, and writes an operating system update file in the T card to a storage area of the operating system according to the operating system update command.
S907:控制装置接收所述智能终端发来的T卡数据信息,若所述T卡数据信息中包含智能终端的操作系统更新文件,则向所述智能终端发送操作系统更新指令;S907: The control device receives the T card data information sent by the smart terminal, and if the T card data information includes an operating system update file of the smart terminal, sends an operating system update command to the smart terminal;
S908:智能终端向所述控制装置发送操作系统更新完成信息;S908: The smart terminal sends operating system update completion information to the control device.
S909:控制装置接收所述智能终端发来的操作系统更新完成信息,完成所述智能终端的操作系统更新。S909: The control device receives the operating system update completion information sent by the smart terminal, and completes an operating system update of the smart terminal.
上述步骤的具体内容和实施例1和2中的内容相同,此处不再赘述。 The specific content of the above steps is the same as that in Embodiments 1 and 2, and details are not described herein again.
实施例10Example 10
本实施例提供了一种通过T卡备份操作系统的方法,应用于具有T卡的智能设备。如图10所示,本实施例方法包括:This embodiment provides a method for backing up an operating system by using a T card, and is applied to a smart device having a T card. As shown in FIG. 10, the method in this embodiment includes:
S1001:控制装置接收备份操作系统的触发信号后,向智能终端发送存储设备信息查询指令;S1001: After receiving the trigger signal of the backup operating system, the control device sends a storage device information query instruction to the smart terminal.
S1002:智能终端接收控制装置发来的存储设备信息查询指令,根据所述存储设备信息查询指令查询存储设备信息,并将所述存储设备信息发送给所述控制装置;S1002: The smart terminal receives the storage device information query instruction sent by the control device, queries the storage device information according to the storage device information query instruction, and sends the storage device information to the control device;
S1003:控制装置接收所述智能终端发来的存储设备信息,从所述存储设备信息中找出T卡的数据存储位置信息;S1003: The control device receives the storage device information sent by the smart terminal, and finds the data storage location information of the T card from the storage device information.
S1004:智能终端接收所述控制装置发来的操作系统备份指令,根据所述操作系统备份指令将当前操作系统写入T卡;S1004: The smart terminal receives an operating system backup command sent by the control device, and writes the current operating system to the T card according to the operating system backup command.
S1005:控制装置根据所述T卡的数据存储位置信息向所述智能终端发送操作系统备份指令;S1005: The control device sends an operating system backup instruction to the smart terminal according to the data storage location information of the T card.
S1006:智能终端向所述控制装置发送操作系统备份完成信息;S1006: The smart terminal sends operating system backup completion information to the control device.
S1007:控制装置接收所述智能终端发来的操作系统备份完成信息,完成所述智能终端的操作系统备份。S1007: The control device receives the operating system backup completion information sent by the smart terminal, and completes an operating system backup of the smart terminal.
上述步骤的具体内容和实施例3和4中的内容相同,此处不再赘述。The specific content of the above steps is the same as that in Embodiments 3 and 4, and details are not described herein again.
实施例11Example 11
本实施例通过置于手机上的控制装置对手机操作系统的更新和备份来对本发明的技术方案进行详细说明。In this embodiment, the technical solution of the present invention is described in detail by updating and backing up the mobile phone operating system by the control device placed on the mobile phone.
本实施例的结构图如图11所示,通过图11对本发明技术方案的具体实施步骤进行详细描述:The structural diagram of this embodiment is shown in FIG. 11, and the specific implementation steps of the technical solution of the present invention are described in detail through FIG.
1.手机关机状态下,按开机键,则进入步骤2;按设定组合的按键(如开机键、音量增加键和音量减小键等)发出更新/备份操作系统的触发信号, 则进入步骤3;1. When the phone is turned off, press the power button, then go to step 2; press the button that sets the combination (such as the power button, volume increase button and volume down button) to issue the trigger signal for updating/backing up the operating system. Then proceed to step 3;
2.手机开机,手机的处理器的程序计数器指向存储空间中第M字节(手机当前操作系统所在位置),正常启动系统。如果无法正常启动系统,进入步骤6。2. The phone is turned on, and the program counter of the processor of the mobile phone points to the Mth byte in the storage space (the location of the current operating system of the mobile phone), and the system is normally started. If the system does not start properly, go to step 6.
3.手机开机,进入更新/备份操作系统状态。此时,可通过手机的屏幕显示相关的提示信息如从T卡更新操作系统、备份操作系统或退出等选项。3. The phone is turned on and enters the update/backup operating system state. At this time, the related prompt information such as updating the operating system from the T card, backing up the operating system, or exiting may be displayed through the screen of the mobile phone.
若选择从T卡更新操作系统,则进入步骤4;若选择备份操作系统则进入步骤5;若选择退出,则进入步骤2。If you choose to update the operating system from the T card, go to step 4; if you choose to back up the operating system, go to step 5; if you choose to exit, go to step 2.
4.控制装置向手机发送存储设备信息查询指令;手机根据存储设备信息查询指令查询存储设备信息,并将所述存储设备信息发送给所述控制装置;控制装置接收手机发来的存储设备信息,从所述存储设备信息中找出T卡的数据存储位置信息,并根据T卡的数据存储位置信息向所述手机发送T卡读取指令;手机接收控制装置发来的T卡读取指令,根据所述T卡读取指令读取T卡,得到T卡数据信息;将所述T卡数据信息发送给所述控制装置;控制装置接收手机发来的T卡数据信息,若所述T卡数据信息中包含手机的操作系统更新文件,则向所述手机发送操作系统更新指令;手机接收所述控制装置发来的操作系统更新指令,根据所述操作系统更新指令将T卡内的操作系统更新文件写入操作系统的存储区,并向所述控制装置发送操作系统更新完成信息,完成操作系统更新;控制装置接收所述手机发来的操作系统更新完成信息,确认完成所述手机的操作系统更新。4. The control device sends a storage device information query instruction to the mobile phone; the mobile phone queries the storage device information according to the storage device information query instruction, and sends the storage device information to the control device; the control device receives the storage device information sent by the mobile phone, Finding data storage location information of the T card from the storage device information, and sending a T card reading instruction to the mobile phone according to the data storage location information of the T card; and receiving, by the mobile phone, a T card reading instruction sent by the control device, Reading the T card according to the T card reading instruction to obtain T card data information; transmitting the T card data information to the control device; the control device receiving the T card data information sent by the mobile phone, if the T card The data information includes an operating system update file of the mobile phone, and an operating system update command is sent to the mobile phone; the mobile phone receives an operating system update command sent by the control device, and uses an operating system in the T card according to the operating system update command. The update file is written into the storage area of the operating system, and the operating system update completion information is sent to the control device to complete the operating system update. The control device receives the operating system update completion information sent by the mobile phone, and confirms that the operating system update of the mobile phone is completed.
具体的,手机的处理器读取T卡中所要更新的系统镜像文件和系统分区表,检查手机存储和系统分区表,镜像文件是否与当前手机匹配(如总大小是否超过手机存储上限、分区表和镜像文件无法对应等),镜像文件是否合法,如镜像文件不匹配或镜像文件不合法,则进入步骤6;否则,格式化手机中M-N存储空间(手机操作系统区域),并根据分区表依次将镜像 文件写入到手机中。然后进入步骤2。Specifically, the processor of the mobile phone reads the system image file and the system partition table to be updated in the T card, checks the phone storage and the system partition table, and whether the image file matches the current mobile phone (if the total size exceeds the mobile phone storage upper limit, the partition table) If the image file is invalid, if the image file does not match or the image file is invalid, go to step 6. Otherwise, format the MN storage space (mobile phone operating system area) in the phone, and then according to the partition table. Will mirror The file is written to the phone. Then proceed to step 2.
5.备份系统,控制装置向手机发送存储设备信息查询指令;手机接收控制装置发来的存储设备信息查询指令,并根据所述存储设备信息查询指令查询存储设备信息,将所述存储设备信息发送给所述控制装置;控制装置接收所述手机发来的存储设备信息,从所述存储设备信息中找出T卡的数据存储位置信息;根据所述T卡的数据存储位置信息向所述手机发送操作系统备份指令;手机接收所述控制装置发来的操作系统备份指令,根据所述操作系统备份指令将当前操作系统写入T卡;并向所述控制装置发送操作系统备份完成信息,完成操作系统备份。控制装置接收所述手机发来的操作系统备份完成信息,完成所述手机的操作系统备份。5. The backup system, the control device sends a storage device information query instruction to the mobile phone; the mobile phone receives the storage device information query instruction sent by the control device, and queries the storage device information according to the storage device information query instruction, and sends the storage device information Giving the control device; the control device receives the storage device information sent by the mobile phone, and finds the data storage location information of the T card from the storage device information; and the data storage location information according to the T card to the mobile phone Sending an operating system backup command; the mobile phone receives an operating system backup command sent by the control device, writes a current operating system to the T card according to the operating system backup command; and sends an operating system backup completion information to the control device, and completes Operating system backup. The control device receives the operating system backup completion information sent by the mobile phone, and completes the operating system backup of the mobile phone.
具体的,手机处理器检查T卡是否满足写入T卡条件(如T卡数据大小是否小于手机存储、T卡无法写入或T卡无法格式化等),如果不满足写入T卡条件,则进入步骤6;如果满足条件,则读取手机系统存储区域,生成手机操作系统的分区表和镜像文件,并写入T卡中。Specifically, the mobile phone processor checks whether the T card satisfies the condition of writing the T card (such as whether the T card data size is smaller than the mobile phone storage, the T card cannot be written, or the T card cannot be formatted, etc.), if the T card condition is not satisfied, Then, the process proceeds to step 6. If the condition is met, the storage area of the mobile phone system is read, and the partition table and the image file of the mobile phone operating system are generated and written into the T card.
6.手机出现出错提示界面,并提示出错原因。6. The phone has an error prompt interface and prompts the cause of the error.
a.手机无法正常启动系统,提示用户“无法正常启动系统”,按关机键关机;a. The mobile phone cannot start the system normally, prompting the user to “cannot start the system normally”, press the shutdown button to shut down;
b.下载系统过程中,文件匹配出错,提示匹配出错原因(如镜像文件大小是否超过手机存储上限、分区表和镜像文件无法对应),10秒后进入步骤2;或写入手机存储的过程出错,提示“无法写入系统,系统已损坏”,按关机键关机。b. During the process of downloading the system, the file matches incorrectly, and the prompt matches the cause of the error (such as whether the image file size exceeds the mobile phone storage limit, the partition table and the image file cannot correspond), and after 10 seconds, the process proceeds to step 2; or the process of writing to the phone storage error occurs. , the prompt "Cannot write to the system, the system is damaged", press the shutdown button to shut down.
c.备份系统过程中,T卡不满足写入条件,提示具体原因,10秒后进入步骤2;或,T卡写入的过程中出错,提示“写入T卡出错”,10秒后进入步骤2。c. During the backup system, the T card does not meet the writing conditions, and the specific reason is prompted. After 10 seconds, the process proceeds to step 2; or, during the process of writing the T card, an error occurs, “Write T card error”, and enter after 10 seconds. Step 2.
本发明实施例提供的通过T卡更新/备份操作系统的装置中的各单元 等,以及各单元各自所包括的模块都可以通过位于用户终端中的处理器或者独立于用户终端之外的处理器来实现,例如,通过T卡备份操作系统的装置中的备份查询指令发送单元、第二T卡数据查询单元、第二T卡读取指令发送单元、第二监测单元和第三告警单元,都可以通过用户终端中的处理器来实现;当然上述处理器完成的功能也可通过具体的逻辑电路实现;在具体实施例的过程中,处理器可以为中央处理器(CPU)、微处理器(MPU)、数字信号处理器(DSP)或现场可编程门阵列(FPGA)等。Each unit in the device for updating/backing up an operating system by using a T card according to an embodiment of the present invention And the modules included in each unit can be implemented by a processor located in the user terminal or a processor independent of the user terminal, for example, a backup query instruction sending unit in the device that backs up the operating system through the T card. The second T card data query unit, the second T card read command sending unit, the second monitoring unit, and the third alarm unit can all be implemented by a processor in the user terminal; The specific logic circuit is implemented; in the process of the specific embodiment, the processor may be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP), or a field programmable gate array (FPGA). .
需要说明的是,本发明实施例中,如果以软件功能模块的形式实现上述的通过T卡更新/备份操作系统的方法,并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read Only Memory)、磁碟或者光盘等各种可以存储程序代码的介质。这样,本发明实施例不限制于任何特定的硬件和软件结合。It should be noted that, in the embodiment of the present invention, if the foregoing method for updating/backing up the operating system through the T card is implemented in the form of a software function module, and is sold or used as a standalone product, it may also be stored in a computer readable form. Take the storage medium. Based on such understanding, the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions. A computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention. The foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.
相应地,本发明实施例再提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令执行本发明通过T卡更新/备份操作系统的方法。Correspondingly, the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions execute the method of the present invention for updating/backing up an operating system through a T card.
在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各 组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, such as: multiple units or components may be combined, or Can be integrated into another system, or some features can be ignored or not executed. In addition, each shown or discussed The coupling, or direct coupling, or communication connection of the components to each other may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical, mechanical or other.
上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元,即可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and the components displayed as the unit may or may not be physical units, that is, may be located in one place or distributed to multiple network units; Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各实施例中的各功能单元可以全部集成在一个处理模块中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing module, or each unit may be separately used as one unit, or two or more units may be integrated into one unit; the above integration The unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、只读存储器(Read-Only Memory,ROM)、磁碟或者光盘等各种可以存储程序代码的介质。A person skilled in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by using hardware related to the program instructions. The foregoing program may be stored in a computer readable storage medium, and the program is executed when executed. The foregoing storage device includes the following steps: The foregoing storage medium includes: a removable storage device, a read-only memory (ROM), a magnetic disk, or an optical disk, and the like, which can store program codes.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the appended claims.
工业实用性Industrial applicability
本发明实施例中,接收更新操作系统的触发信号后,向智能终端发送存储设备信息查询指令;接收所述智能终端发来的存储设备信息,从所述存储设备信息中找出T卡的数据存储位置信息;根据所述T卡的数据存储位置信息向所述智能终端发送T卡读取指令;接收所述智能终端 发来的T卡数据信息,若所述T卡数据信息中包含智能终端的操作系统更新文件,则向所述智能终端发送操作系统更新指令;接收所述智能终端发来的操作系统更新完成信息,完成所述智能终端的操作系统更新;如此,最终通过T卡实现对智能终端操作系统的更新,提高了智能终端更新操作系统过程中的稳定性和安全性,便于智能终端的维护。 In the embodiment of the present invention, after receiving the trigger signal for updating the operating system, the device sends a storage device information query instruction to the smart terminal; receives the storage device information sent by the smart terminal, and finds the data of the T card from the storage device information. Storing location information; transmitting a T card reading instruction to the smart terminal according to the data storage location information of the T card; receiving the smart terminal Sending the T card data information, if the T card data information includes an operating system update file of the smart terminal, sending an operating system update command to the smart terminal; receiving the operating system update completion information sent by the smart terminal The operating system update of the smart terminal is completed; thus, the update of the smart terminal operating system is implemented by the T card, and the stability and security of the smart terminal in updating the operating system are improved, and the maintenance of the smart terminal is facilitated.

Claims (23)

  1. 一种通过T卡更新操作系统的方法,所述方法包括:A method for updating an operating system by using a T card, the method comprising:
    接收更新操作系统的触发信号后,向智能终端发送存储设备信息查询指令;After receiving the trigger signal for updating the operating system, sending a storage device information query instruction to the smart terminal;
    接收所述智能终端发来的存储设备信息,从所述存储设备信息中找出T卡的数据存储位置信息;Receiving storage device information sent by the smart terminal, and finding data storage location information of the T card from the storage device information;
    根据所述T卡的数据存储位置信息向所述智能终端发送T卡读取指令;Sending a T card read instruction to the smart terminal according to the data storage location information of the T card;
    接收所述智能终端发来的T卡数据信息,若所述T卡数据信息中包含智能终端的操作系统更新文件,则向所述智能终端发送操作系统更新指令;Receiving T card data information sent by the smart terminal, and if the T card data information includes an operating system update file of the smart terminal, sending an operating system update command to the smart terminal;
    接收所述智能终端发来的操作系统更新完成信息。Receiving operating system update completion information sent by the smart terminal.
  2. 根据权利要求1所述的方法,其中,所述方法包括:The method of claim 1 wherein said method comprises:
    若接收到所述智能终端发来的因T卡无法读取、镜像文件和系统分区表不匹配、镜像文件不合法或智能终端当前可用的数据存储空间不满足操作系统更新要求的操作系统更新失败信息,则发出告警信号并退出。If the receiving of the smart terminal fails due to the T card being unreadable, the image file and the system partition table are not matched, the image file is invalid, or the data storage space currently available to the smart terminal does not meet the operating system update requirements, the operating system update fails. Information, an alarm signal is issued and exits.
  3. 一种通过T卡更新操作系统的方法,所述方法包括:A method for updating an operating system by using a T card, the method comprising:
    接收控制装置发来的存储设备信息查询指令,根据所述存储设备信息查询指令查询存储设备信息,并将所述存储设备信息发送给所述控制装置;Receiving a storage device information query instruction sent by the control device, querying the storage device information according to the storage device information query instruction, and transmitting the storage device information to the control device;
    接收所述控制装置发来的T卡读取指令,根据所述T卡读取指令读取T卡,得到T卡数据信息;将所述T卡数据信息发送给所述控制装置;Receiving a T card reading instruction sent by the control device, reading a T card according to the T card reading instruction, obtaining T card data information; and transmitting the T card data information to the control device;
    接收所述控制装置发来的操作系统更新指令,根据所述操作系统更新指令将T卡内的操作系统更新文件写入操作系统的存储区;Receiving an operating system update command sent by the control device, and writing an operating system update file in the T card to a storage area of the operating system according to the operating system update command;
    向所述控制装置发送操作系统更新完成信息。An operating system update completion message is sent to the control device.
  4. 根据权利要求3所述的方法,其中,所述根据所述T卡读取指令读取T卡,得到T卡数据信息包括: The method according to claim 3, wherein the reading the T card according to the T card reading instruction to obtain the T card data information comprises:
    将程序计数器指向所述T卡读取指令对应的T卡的数据存储位置,并读取T卡的数据,得到T卡数据信息。The program counter is pointed to the data storage location of the T card corresponding to the T card read command, and the data of the T card is read to obtain the T card data information.
  5. 根据权利要求3所述的方法,其中,所述根据所述操作系统更新指令将T卡内的操作系统更新文件写入操作系统的存储区包括:The method of claim 3, wherein the writing the operating system update file in the T card to the storage area of the operating system according to the operating system update instruction comprises:
    从T卡的数据中找出操作系统更新文件对应的镜像文件和系统分区表;Find the image file and system partition table corresponding to the operating system update file from the data of the T card;
    查询当前可用的数据存储空间;若所述镜像文件和系统分区表匹配、镜像文件合法,且当前可用的数据存储空间满足操作系统更新要求,则格式化当前操作系统,并将所述镜像文件写入操作系统的存储区;Query the currently available data storage space; if the image file and the system partition table match, the image file is legal, and the currently available data storage space meets the operating system update requirement, format the current operating system, and write the image file Enter the storage area of the operating system;
    读取所述操作系统的存储区数据。Reading the storage area data of the operating system.
  6. 根据权利要求3至5任一项所述的方法,其中,所述方法包括:A method according to any one of claims 3 to 5, wherein the method comprises:
    若所述T卡无法读取、镜像文件和系统分区表不匹配、镜像文件不合法或当前可用的数据存储空间不满足操作系统更新要求,则向所述控制系统发送操作系统更新失败信息,读取操作系统的存储区。If the T card cannot be read, the image file and the system partition table do not match, the image file is invalid, or the currently available data storage space does not meet the operating system update requirement, the operating system update failure information is sent to the control system, and the read Take the storage area of the operating system.
  7. 一种通过T卡备份操作系统的方法,所述方法包括:A method for backing up an operating system by using a T card, the method comprising:
    接收备份操作系统的触发信号后,向智能终端发送存储设备信息查询指令;After receiving the trigger signal of the backup operating system, sending a storage device information query instruction to the smart terminal;
    接收所述智能终端发来的存储设备信息,从所述存储设备信息中找出T卡的数据存储位置信息;Receiving storage device information sent by the smart terminal, and finding data storage location information of the T card from the storage device information;
    根据所述T卡的数据存储位置信息向所述智能终端发送操作系统备份指令;Sending an operating system backup instruction to the smart terminal according to the data storage location information of the T card;
    接收所述智能终端发来的操作系统备份完成信息。Receiving operating system backup completion information sent by the smart terminal.
  8. 根据权利要求7所述的方法,其中,所述方法包括:The method of claim 7 wherein said method comprises:
    若接收到所述智能终端发来的因智能终端当前可用的数据存储空间或T卡的可用数据存储空间不满足操作系统备份要求的操作系统备份失败信息,则发出告警信号并退出。 If the data storage space currently received by the smart terminal or the available data storage space of the T card does not meet the operating system backup failure requirement of the operating system backup request, the alarm signal is sent out and exits.
  9. 一种通过T卡备份操作系统的方法,所述方法包括:A method for backing up an operating system by using a T card, the method comprising:
    接收控制装置发来的存储设备信息查询指令,根据所述存储设备信息查询指令查询存储设备信息,并将所述存储设备信息发送给所述控制装置;Receiving a storage device information query instruction sent by the control device, querying the storage device information according to the storage device information query instruction, and transmitting the storage device information to the control device;
    接收所述控制装置发来的操作系统备份指令,根据所述操作系统备份指令将当前操作系统写入T卡;Receiving an operating system backup instruction sent by the control device, and writing the current operating system to the T card according to the operating system backup instruction;
    向所述控制装置发送操作系统备份完成信息。An operating system backup completion message is sent to the control device.
  10. 根据权利要求9所述的方法,其中,所述根据所述操作系统备份指令将当前操作系统写入T卡包括:The method of claim 9, wherein the writing the current operating system to the T card according to the operating system backup instruction comprises:
    查询当前可用的数据存储空间和T卡的可用数据存储空间,若当前可用的数据存储空间和T卡的可用数据存储空间满足操作系统备份要求,则将程序计数器指向所述T卡读取指令对应的T卡的数据存储位置,并读取当前操作系统的数据,根据所述当前操作系统的数据生成所述当前操作系统的数据对应的镜像文件和系统分区表;并将所述镜像文件和系统分区表写入T卡。Query the currently available data storage space and the available data storage space of the T card. If the currently available data storage space and the available data storage space of the T card meet the operating system backup requirements, the program counter is pointed to the T card read command. a data storage location of the T card, and reading data of the current operating system, generating an image file and a system partition table corresponding to the data of the current operating system according to the data of the current operating system; and the image file and the system The partition table is written to the T card.
  11. 根据权利要求9或10所述的方法,其中,所述方法包括:The method of claim 9 or 10, wherein the method comprises:
    若所述当前可用的数据存储空间或T卡的可用数据存储空间不满足操作系统备份要求,则向所述控制系统发送操作系统备份失败信息。If the currently available data storage space or the available data storage space of the T card does not meet the operating system backup requirement, the operating system backup failure information is sent to the control system.
  12. 一种通过T卡更新操作系统的装置,所述装置包括:An apparatus for updating an operating system by using a T card, the apparatus comprising:
    更新查询指令发送单元,配置为接收更新操作系统的触发信号,并根据所述更新操作系统的触发信号向智能终端发送存储设备信息查询指令;The update query instruction sending unit is configured to receive a trigger signal for updating the operating system, and send a storage device information query instruction to the smart terminal according to the trigger signal for updating the operating system;
    第一T卡数据查询单元,配置为接收所述智能终端发来的存储设备信息,从所述存储设备信息中找出T卡的数据存储位置信息;The first T card data query unit is configured to receive storage device information sent by the smart terminal, and find data storage location information of the T card from the storage device information;
    第一T卡读取指令发送单元,配置为根据所述T卡的数据存储位置信息向所述智能终端发送T卡读取指令;The first T card reading instruction sending unit is configured to send a T card reading instruction to the smart terminal according to the data storage location information of the T card;
    操作系统更新控制单元,配置为接收所述智能终端发来的T卡数据信 息,若所述T卡数据信息中包含智能终端的操作系统更新文件,则向所述智能终端发送操作系统更新指令;An operating system update control unit configured to receive a T-card data letter sent by the smart terminal And if the T card data information includes an operating system update file of the smart terminal, sending an operating system update command to the smart terminal;
    第一监测单元,配置为接收所述智能终端发来的操作系统更新完成信息。The first monitoring unit is configured to receive operating system update completion information sent by the smart terminal.
  13. 根据权利要求12所述的装置,其中,所述装置包括:The device of claim 12 wherein said device comprises:
    第一告警单元,配置为在接收到所述智能终端发来的因T卡无法读取、镜像文件和系统分区表不匹配、镜像文件不合法或智能终端当前可用的数据存储空间不满足操作系统更新要求的操作系统更新失败信息时,则发出告警信号并退出。The first alarm unit is configured to receive the data storage space sent by the smart terminal due to the T card being unreadable, the image file and the system partition table are not matched, the image file is invalid, or the smart terminal is currently available. When the required operating system update failure message is updated, an alarm signal is issued and exits.
  14. 一种通过T卡更新操作系统的装置,所述装置包括:An apparatus for updating an operating system by using a T card, the apparatus comprising:
    第一查询信息接收单元,配置为接收控制装置发来的存储设备信息查询指令,根据所述存储设备信息查询指令查询存储设备信息,并将所述存储设备信息发送给所述控制装置;The first query information receiving unit is configured to receive a storage device information query instruction sent by the control device, query the storage device information according to the storage device information query instruction, and send the storage device information to the control device;
    T卡数据检索单元,配置为接收所述控制装置发来的T卡读取指令,根据所述T卡读取指令读取T卡,得到T卡数据信息;将所述T卡数据信息发送给所述控制装置;The T card data retrieval unit is configured to receive a T card read command sent by the control device, read the T card according to the T card read command, and obtain T card data information; and send the T card data information to The control device;
    操作系统更新单元,配置为接收所述控制装置发来的操作系统更新指令,根据所述操作系统更新指令将T卡内的操作系统更新文件写入操作系统的存储区;An operating system update unit configured to receive an operating system update command sent by the control device, and write an operating system update file in the T card to a storage area of the operating system according to the operating system update command;
    更新完成信息发送单元,配置为向所述控制装置发送操作系统更新完成信息。The update completion information transmitting unit is configured to transmit operating system update completion information to the control device.
  15. 根据权利要求14所述的装置,其中,所述T卡数据检索单元包括:The apparatus of claim 14, wherein the T card data retrieval unit comprises:
    T卡数据读取模块,配置为将程序计数器指向所述T卡读取指令对应的T卡的数据存储位置,并读取T卡的数据,得到T卡数据信息。The T card data reading module is configured to point the program counter to the data storage location of the T card corresponding to the T card reading instruction, and read the data of the T card to obtain the T card data information.
  16. 根据权利要求14所述的装置,其中,所述操作系统更新单元包括: The apparatus of claim 14, wherein the operating system update unit comprises:
    T卡数据检索模块,配置为从T卡的数据中找出操作系统更新文件对应的镜像文件和系统分区表;The T card data retrieval module is configured to find an image file and a system partition table corresponding to the operating system update file from the data of the T card;
    更新控制模块,配置为查询当前可用的数据存储空间;若所述镜像文件和系统分区表匹配、镜像文件合法,且当前可用的数据存储空间满足操作系统更新要求,则格式化当前操作系统,并将所述镜像文件写入操作系统的存储区;Updating the control module, configured to query the currently available data storage space; if the image file and the system partition table match, the image file is legal, and the currently available data storage space meets the operating system update requirement, the current operating system is formatted, and Writing the image file into a storage area of the operating system;
    操作系统重启模块,配置为读取所述操作系统的存储区数据。An operating system restart module configured to read storage area data of the operating system.
  17. 根据权利要求14至16任一项所述的装置,其中,所述装置包括:A device according to any one of claims 14 to 16, wherein the device comprises:
    第二告警单元,配置为在所述T卡无法读取、镜像文件和系统分区表不匹配、镜像文件不合法或当前可用的数据存储空间不满足操作系统更新要求时,向所述控制系统发送操作系统更新失败信息,读取操作系统的存储区。a second alarm unit configured to send to the control system when the T card cannot be read, the image file and the system partition table do not match, the image file is invalid, or the currently available data storage space does not meet the operating system update requirement. The operating system updates the failure information and reads the operating system's storage area.
  18. 一种通过T卡备份操作系统的装置,所述装置包括:An apparatus for backing up an operating system by using a T card, the apparatus comprising:
    备份查询指令发送单元,配置为接收备份操作系统的触发信号,并根据所述备份操作系统的触发信号向智能终端发送存储设备信息查询指令;The backup query instruction sending unit is configured to receive a trigger signal of the backup operating system, and send a storage device information query instruction to the smart terminal according to the trigger signal of the backup operating system;
    第二T卡数据查询单元,配置为接收所述智能终端发来的存储设备信息,从所述存储设备信息中找出T卡的数据存储位置信息;The second T-card data query unit is configured to receive storage device information sent by the smart terminal, and find data storage location information of the T-card from the storage device information;
    第二T卡读取指令发送单元,配置为根据所述T卡的数据存储位置信息向所述智能终端发送操作系统备份指令;The second T card reading instruction sending unit is configured to send an operating system backup instruction to the smart terminal according to the data storage location information of the T card;
    第二监测单元,配置为接收所述智能终端发来的操作系统备份完成信息。The second monitoring unit is configured to receive operating system backup completion information sent by the smart terminal.
  19. 根据权利要求18所述的装置,其中,所述装置包括:The device of claim 18, wherein the device comprises:
    第三告警单元,配置为在接收到所述智能终端发来的因智能终端当前可用的数据存储空间或T卡的可用数据存储空间不满足操作系统备份要求的操作系统备份失败信息时,则发出告警信号并退出。 The third alarm unit is configured to send, when receiving, the data storage space currently available by the smart terminal or the available data storage space of the T card does not meet the operating system backup failure requirement of the operating system backup requirement, The alarm signal is exited.
  20. 一种通过T卡备份操作系统的装置,所述装置包括:An apparatus for backing up an operating system by using a T card, the apparatus comprising:
    第二查询信息接收单元,配置为接收控制装置发来的存储设备信息查询指令,根据所述存储设备信息查询指令查询存储设备信息,并将所述存储设备信息发送给所述控制装置;The second query information receiving unit is configured to receive a storage device information query instruction sent by the control device, query the storage device information according to the storage device information query instruction, and send the storage device information to the control device;
    操作系统备份单元,配置为接收所述控制装置发来的操作系统备份指令,根据所述操作系统备份指令将当前操作系统写入T卡;An operating system backup unit configured to receive an operating system backup command sent by the control device, and write the current operating system to the T card according to the operating system backup instruction;
    备份完成信息发送单元,配置为向所述控制装置发送操作系统备份完成信息。The backup completion information transmitting unit is configured to send operating system backup completion information to the control device.
  21. 根据权利要求20所述的装置,其中,所述操作系统备份单元包括:The device of claim 20, wherein the operating system backup unit comprises:
    操作系统备份模块,配置为查询当前可用的数据存储空间和T卡的可用数据存储空间,若当前可用的数据存储空间和T卡的可用数据存储空间满足操作系统备份要求,则将程序计数器指向所述T卡读取指令对应的T卡的数据存储位置,并读取当前操作系统的数据,根据所述当前操作系统的数据生成所述当前操作系统的数据对应的镜像文件和系统分区表;并将所述镜像文件和系统分区表写入T卡。The operating system backup module is configured to query the currently available data storage space and the available data storage space of the T card. If the currently available data storage space and the available data storage space of the T card meet the operating system backup requirements, the program counter is pointed to Describe the data storage location of the T card corresponding to the T card reading instruction, and read the data of the current operating system, and generate an image file and a system partition table corresponding to the data of the current operating system according to the data of the current operating system; Write the image file and system partition table to the T card.
  22. 根据权利要求20或21所述的装置,其中,所述装置包括:The device according to claim 20 or 21, wherein the device comprises:
    第四告警单元,配置为在所述当前可用的数据存储空间或T卡的可用数据存储空间不满足操作系统备份要求时,则向所述控制系统发送操作系统备份失败信息。The fourth alarm unit is configured to send an operating system backup failure information to the control system when the currently available data storage space or the available data storage space of the T card does not meet the operating system backup requirement.
  23. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令用于执行权利要求1或2所述的通过T卡更新操作系统的方法,或者,A computer storage medium storing computer executable instructions for executing the method for updating an operating system by using a T card according to claim 1 or 2, or
    该计算机可执行指令用于执行权利要求3至6任一项所述的通过T卡更新操作系统的方法;或者,The computer executable instructions for performing the method of updating an operating system by a T card according to any one of claims 3 to 6; or
    该计算机可执行指令用于执行权利要求7或8所述的通过T卡备份 操作系统的方法;或者,The computer executable instructions for performing the T card backup as claimed in claim 7 or 8. The method of the operating system; or,
    该计算机可执行指令用于执行权利要求9至11任一项所述的通过T卡备份操作系统的方法。 The computer executable instructions are for performing the method of backing up an operating system by a T card according to any one of claims 9 to 11.
PCT/CN2015/078352 2014-10-21 2015-05-06 Method and apparatus for updating/backing up operating system through t card, and storage medium WO2016062060A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410563903.0A CN105589702A (en) 2014-10-21 2014-10-21 Method and device for updating/backing up operating system through T card
CN201410563903.0 2014-10-21

Publications (1)

Publication Number Publication Date
WO2016062060A1 true WO2016062060A1 (en) 2016-04-28

Family

ID=55760203

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/078352 WO2016062060A1 (en) 2014-10-21 2015-05-06 Method and apparatus for updating/backing up operating system through t card, and storage medium

Country Status (2)

Country Link
CN (1) CN105589702A (en)
WO (1) WO2016062060A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110554931A (en) * 2019-07-29 2019-12-10 南京兆伏电力科技有限公司 Relay protection device and data backup and recovery method thereof
CN114138343A (en) * 2020-09-04 2022-03-04 青岛海信移动通信技术股份有限公司 Terminal and terminal starting method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101146285A (en) * 2007-08-30 2008-03-19 Tcl天一移动通信(深圳)有限公司 A data backup method for mobile terminal
CN101426052A (en) * 2008-12-05 2009-05-06 上海闻泰电子科技有限公司 Backup and importing method for address book and short message of mobile terminal
CN102520778A (en) * 2011-12-09 2012-06-27 山东大学 One-key reset method suitable for embedded Linux operating system
CN102841802A (en) * 2012-07-27 2012-12-26 锐迪科科技有限公司 Software upgrading method for mobile terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101694623A (en) * 2009-09-29 2010-04-14 上海夏新电子开发有限公司 Method for updating handheld device software
CN102681857B (en) * 2011-03-07 2016-08-31 北京博创理想科技有限公司 A kind of realize vehicle-mounted software system reparation or the method for upgrading, device
JP5934977B2 (en) * 2012-04-06 2016-06-15 株式会社ユピテル Electronic device, storage medium and program
CN103559054B (en) * 2013-10-30 2017-10-10 华为终端有限公司 Realization, delet method and the device of intelligent terminal multi-operation system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101146285A (en) * 2007-08-30 2008-03-19 Tcl天一移动通信(深圳)有限公司 A data backup method for mobile terminal
CN101426052A (en) * 2008-12-05 2009-05-06 上海闻泰电子科技有限公司 Backup and importing method for address book and short message of mobile terminal
CN102520778A (en) * 2011-12-09 2012-06-27 山东大学 One-key reset method suitable for embedded Linux operating system
CN102841802A (en) * 2012-07-27 2012-12-26 锐迪科科技有限公司 Software upgrading method for mobile terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110554931A (en) * 2019-07-29 2019-12-10 南京兆伏电力科技有限公司 Relay protection device and data backup and recovery method thereof
CN114138343A (en) * 2020-09-04 2022-03-04 青岛海信移动通信技术股份有限公司 Terminal and terminal starting method

Also Published As

Publication number Publication date
CN105589702A (en) 2016-05-18

Similar Documents

Publication Publication Date Title
US8539471B2 (en) Updating firmware of an electronic device
US10114655B2 (en) Rapid start up method for electronic equipment
EP3109762B1 (en) Electronic device having external memory and method for operating the same
JP5431111B2 (en) Information processing apparatus and system setting method
CN106155915B (en) Data storage processing method and device
WO2015010394A1 (en) Data sending method, data receiving method and storage device
WO2019062635A1 (en) Update method and device
JP5560373B2 (en) Self-relief method and self-relief device for damaged file system
WO2014194865A1 (en) Firmware upgrade method and apparatus, and communication device
CN104216793A (en) Application program backing up and restoring method and device
CN102521289B (en) File synchronization method, device and system
GB2532299A (en) Over-the-air updates for BLE devices
CN106775610A (en) A kind of electronic equipment starts method and a kind of electronic equipment
US9218249B2 (en) Electronic apparatus, method of restoring guid partition table (GPT) and computer-readable recording medium
WO2017080225A1 (en) Data partition recovery method and apparatus and terminal
JP2018025925A (en) Start method of electronic circuit system and control device
KR20200055512A (en) Electronic device and method for transceiving control signal
CN102279757A (en) Method and device for starting system program
CN102880530B (en) Terminal and terminal backup and restoration methods
TW200937288A (en) Update method of basic input output system and update module thereof and computer system
WO2016062060A1 (en) Method and apparatus for updating/backing up operating system through t card, and storage medium
CN116266467A (en) Memory device with secure boot update and auto-restore
WO2015117356A1 (en) Start-up method and communication terminal
WO2019119912A1 (en) Terminal booting method and device, storage medium and electronic device
WO2013167010A2 (en) Mobile terminal and startup method therefor

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15853351

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15853351

Country of ref document: EP

Kind code of ref document: A1