CN116820508A - User data storage method, device, system, electronic device and storage medium - Google Patents

User data storage method, device, system, electronic device and storage medium Download PDF

Info

Publication number
CN116820508A
CN116820508A CN202310602413.6A CN202310602413A CN116820508A CN 116820508 A CN116820508 A CN 116820508A CN 202310602413 A CN202310602413 A CN 202310602413A CN 116820508 A CN116820508 A CN 116820508A
Authority
CN
China
Prior art keywords
storage device
user data
upgrading
preset storage
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310602413.6A
Other languages
Chinese (zh)
Inventor
任鹏冲
杨国全
俞鸣园
曹亚曦
王克彦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Huachuang Video Signal Technology Co Ltd
Original Assignee
Zhejiang Huachuang Video Signal Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Huachuang Video Signal Technology Co Ltd filed Critical Zhejiang Huachuang Video Signal Technology Co Ltd
Priority to CN202310602413.6A priority Critical patent/CN116820508A/en
Publication of CN116820508A publication Critical patent/CN116820508A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/66Updates of program code stored in read-only memory [ROM]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • G06F11/1451Management of the data involved in backup or backup restore by selection of backup contents

Landscapes

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

Abstract

The application relates to a user data storage method, a device, a system, an electronic device and a storage medium, wherein the user data storage method comprises the following steps: acquiring equipment upgrading information pre-stored in a mobile storage device; detecting the connection state between the mobile storage device and the preset storage device in real time under the condition that the preset storage device is detected to be empty, and performing upgrading processing on the preset storage device in response to the upgrading program under the condition that the connection state indicates that the mobile storage device is successfully connected to the preset storage device; and under the condition that the preset storage equipment is detected to be updated, copying the user data to be processed to obtain the user data to be backed up, and storing the user data to be backed up into the preset storage equipment. The application solves the problem of low reliability of data storage in the process of equipment upgrading.

Description

User data storage method, device, system, electronic device and storage medium
Technical Field
The present application relates to the field of data storage technologies, and in particular, to a user data storage method, device, system, electronic device, and storage medium.
Background
In intelligent application equipment such as camera equipment, mobile phones, tablet computers and the like, the whole equipment is generally required to be upgraded. In the related art, the device is generally upgraded directly by compiling the package through three parties. However, when irreversible damage occurs to the storage device capable of storing the user data provided by the intelligent application device, the intelligent application device still cannot complete the startup configuration due to the fact that the conventional three-party compiling package does not contain the user data, and therefore the reliability of data storage in the device upgrading process is low.
At present, no effective solution is proposed for the problem of low reliability of user data storage in the process of equipment upgrading in the related art.
Disclosure of Invention
The embodiment of the application provides a user data storage method, a device, a system, an electronic device and a storage medium, which at least solve the problem of low reliability of data storage in the process of equipment upgrading in the related technology.
In a first aspect, an embodiment of the present application provides a method for storing user data, where the method includes:
acquiring equipment upgrading information pre-stored in a mobile storage device; the equipment upgrading information comprises an upgrading program and user data to be processed;
detecting a connection state between the mobile storage device and the preset storage device in real time under the condition that the preset storage device is detected to be empty, and performing upgrading processing on the preset storage device in response to the upgrading program under the condition that the connection state indicates that the mobile storage device is successfully connected to the preset storage device;
and under the condition that the preset storage equipment is detected to be updated, copying the user data to be processed to obtain the user data to be backed up, and storing the user data to be backed up into the preset storage equipment.
In some embodiments, the upgrade program includes a complete machine upgrade program and a minimum system upgrade program, and the method further includes:
under the condition that the connection state indicates that the mobile storage device is successfully accessed to the preset storage device, responding to the minimum system upgrading program to upgrade the preset storage device;
under the condition that the preset storage equipment is detected to be upgraded, copying the user data to be processed to obtain the user data to be backed up, and responding to the whole machine upgrading program to upgrade a device to be upgraded provided with the preset storage equipment to obtain an equipment upgrading result; the device upgrading result is used for indicating the device to be upgraded to enter a starting state from a stopping working state.
In some embodiments, the acquiring device upgrade information pre-stored in the mobile storage device includes:
and packaging the minimum system upgrading program and the user data to be processed to obtain minimum system upgrading file information, and performing coding processing according to the complete machine upgrading program and the minimum system upgrading file information to obtain the equipment upgrading information.
In some of these embodiments, the method further comprises:
and under the condition that the connection state indicates that the mobile storage equipment is successfully accessed to the preset storage equipment, acquiring the decoding processing of the mobile storage equipment aiming at the equipment upgrading information to obtain the minimum system upgrading file information and the whole machine upgrading program.
In some of these embodiments, the method further comprises:
detecting the connection state between the mobile storage device and the preset storage device in real time under the condition that the preset storage device is detected not to be an empty piece;
and under the condition that the connection state indicates that the mobile storage device is successfully accessed to the preset storage device, responding to the upgrading program to upgrade the preset storage device.
In some embodiments, the removable storage device is detachably connected to the preset storage device.
In a second aspect, an embodiment of the present application provides a user data storage device, the device including: the system comprises an acquisition module, an upgrading module and a backup module;
the acquisition module is used for acquiring equipment upgrading information pre-stored in the mobile storage equipment; the equipment upgrading information comprises an upgrading program and user data to be processed;
the upgrading module is used for detecting the connection state between the mobile storage device and the preset storage device in real time under the condition that the preset storage device is detected to be empty, and performing upgrading processing on the preset storage device in response to the upgrading program under the condition that the connection state indicates that the mobile storage device is successfully connected to the preset storage device;
and the backup module is used for copying the user data to be processed under the condition that the preset storage equipment is detected to be updated, obtaining the user data to be backed up, and storing the user data to be backed up into the preset storage equipment.
In a third aspect, an embodiment of the present application provides a user data storage system, the system comprising: the device comprises a main control device, a preset storage device and a mobile storage device;
the master device is configured to perform the user data storage method according to the first aspect.
In a fourth aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the user data storage method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a storage medium having stored thereon a computer program which, when executed by a processor, implements a user data storage method as described in the first aspect above.
Compared with the related art, the user data storage method, device, system, electronic device and storage medium provided by the embodiment of the application are characterized in that equipment upgrading information pre-stored in the mobile storage equipment is obtained; the equipment upgrading information comprises an upgrading program and user data to be processed; detecting the connection state between the mobile storage device and the preset storage device in real time under the condition that the preset storage device is detected to be empty, and performing upgrading processing on the preset storage device in response to the upgrading program under the condition that the connection state indicates that the mobile storage device is successfully connected to the preset storage device; under the condition that the preset storage device is detected to be upgraded, copying the user data to be processed to obtain user data to be backed up, and storing the user data to be backed up to the preset storage device, so that double backup processing of the user data is realized, the phenomenon that the intelligent application device cannot finish starting configuration caused by upgrading the user data directly through a conventional three-party compiling package in the related technology is avoided, the quick starting configuration of the device can be realized no matter what hardware configuration environment is, and the problem of low reliability of data storage in the device upgrading process is solved.
The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below to provide a more thorough understanding of the other features, objects, and advantages of the application.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
FIG. 1 is a flow chart of a user data storage method according to an embodiment of the present application;
FIG. 2 is a flow chart of another method of user data storage according to an embodiment of the present application;
FIG. 3 is a flowchart of a user data storage method in accordance with a preferred embodiment of the present application;
FIG. 4 is a block diagram of a user data storage device according to an embodiment of the present application;
FIG. 5 is a block diagram of a user data storage system according to an embodiment of the present application;
fig. 6 is a structure inside a computer device according to an embodiment of the present application.
Detailed Description
The present application will be described and illustrated with reference to the accompanying drawings and examples in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application. All other embodiments, which can be made by a person of ordinary skill in the art based on the embodiments provided by the present application without making any inventive effort, are intended to fall within the scope of the present application. Moreover, it should be appreciated that while such a development effort might be complex and lengthy, it would nevertheless be a routine undertaking of design, fabrication, or manufacture for those of ordinary skill having the benefit of this disclosure, and thus should not be construed as having the benefit of this disclosure.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is to be expressly and implicitly understood by those of ordinary skill in the art that the described embodiments of the application can be combined with other embodiments without conflict.
Unless defined otherwise, technical or scientific terms used herein should be given the ordinary meaning as understood by one of ordinary skill in the art to which this application belongs. The terms "a," "an," "the," and similar referents in the context of the application are not to be construed as limiting the quantity, but rather as singular or plural. The terms "comprising," "including," "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to only those steps or elements but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. The terms "connected," "coupled," and the like in connection with the present application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The term "plurality" as used herein means greater than or equal to two. "and/or" describes an association relationship of an association object, meaning that there may be three relationships, e.g., "a and/or B" may mean: a exists alone, A and B exist together, and B exists alone. The terms "first," "second," "third," and the like, as used herein, are merely distinguishing between similar objects and not representing a particular ordering of objects.
The present embodiment provides a user data storage method, and fig. 1 is a flowchart of a user data storage method according to an embodiment of the present application, as shown in fig. 1, where the flowchart includes the following steps:
step S110, obtaining equipment upgrading information pre-stored in a mobile storage device; the equipment upgrading information comprises an upgrading program and user data to be processed.
Further, the mobile storage device may include, but is not limited to, various removable hardware devices for user data backup, such as a usb disk, a bluetooth device, and/or a mobile phone. The upgrade program is used for carrying out system upgrade processing on the preset storage equipment and the device to be upgraded. The user data to be processed refers to the use information of the user terminal, the log and other data.
Step S120, detecting the connection state between the mobile storage device and the preset storage device in real time under the condition that the preset storage device is detected to be empty, and performing upgrading processing on the preset storage device in response to the upgrading program under the condition that the connection state indicates that the mobile storage device is successfully connected to the preset storage device, so as to obtain a device upgrading result.
The preset storage device is a built-in storage device which is arranged in intelligent application devices such as camera equipment, mobile phones, tablet computers and the like and is used for managing the internal memory of the devices; the preset storage device may be an embedded memory multimedia card (Embedded Multi Media Card, abbreviated eMMC), a Multi-Level Cell (MLC), or a universal flash memory (UNIVERSAL FLASH STORAGE, abbreviated UFS), for example. Taking the eMMC chip as an example of the preset storage device, when the eMMC particle chip is irreversibly damaged, the user needs to re-solder another empty eMMC chip onto the PCB substrate in the intelligent application device. Specifically, when the current preset storage device is detected to be an empty piece, a worker can access the mobile storage device to the preset storage device, and under the condition that the connection between the preset storage device and the mobile storage device is detected to be successful, an upgrading program in the mobile storage device is called to upgrade the preset storage device. It should be noted that, the empty slice judgment mode for the preset storage device may be: judging whether the preset storage device is empty or not by judging whether the known user data is stored in the corresponding data partition of the preset storage device or not and/or judging whether the preset storage device is empty or not by calling a basic loading bootstrap program. Further, the preset storage device and the mobile storage device can be detachably connected; for example, if the mobile storage device is a usb disk, when a system upgrade is required to be performed on a preset storage device, the usb disk may be connected to the preset storage device, so as to invoke device upgrade information in the usb disk; or the mobile storage device may be a bluetooth device, and before the preset storage device is upgraded, the preset storage device and the bluetooth device may be connected in bluetooth, and data transmission processing for device upgrade information is implemented to complete system upgrade and user data multi-backup.
Step S130, copying the user data to be processed based on the device upgrading result to obtain the user data to be backed up, and storing the user data to be backed up in the preset storage device.
The step S120 is performed to upgrade the preset storage device, and simultaneously, the user data backed up in advance in the mobile storage device is stored in the preset storage device, so as to effectively avoid the problem of user data loss caused by the damage of the mobile storage device. In another embodiment, the device upgrade information may also be stored on a cloud end deployed on a remote server at the same time; and under the condition that the preset storage device is successfully accessed to the remote server, the cloud end responds to an upgrade request instruction of the preset storage device, and calls the pre-stored device upgrade information to upgrade the preset storage device and perform multi-backup processing on the user data, so that the application scene of the user data storage method is effectively expanded.
Through the steps S110 to S130, when the preset storage device is empty, the mobile storage device is controlled to access the preset storage device, and when the preset storage device is updated in response to the update program in the mobile storage device, user data to be processed in the mobile storage device is copied and stored in the preset storage device, so that dual backup processing of the user data is realized, the phenomenon that the intelligent application device cannot complete starting configuration due to the fact that the intelligent application device is directly updated in a conventional three-party compiling package manner in the related art is avoided, the quick starting configuration of the device can be realized no matter what hardware configuration environment is, and the problem of low reliability of data storage in the device updating process is effectively solved.
In some embodiments, a method for storing user data is further provided, where the upgrade program includes a complete machine upgrade program and a minimum system upgrade program; further, the whole machine upgrade program refers to an upgrade program for carrying out whole package upgrade on a user system operated by a device to be upgraded, and the minimum system upgrade program refers to an upgrade program for carrying out upgrade on a core system operated on the preset storage device. Fig. 2 is a flowchart of another user data storage method according to an embodiment of the present application, as shown in fig. 2, the flowchart includes steps S110 to S130 shown in fig. 1, and further includes the steps of:
step S210, when the connection state indicates that the mobile storage device is successfully accessed to the preset storage device, the minimum system upgrade program is responded to upgrade the preset storage device, and an upgrade result is obtained.
Step S220, the user data to be processed is duplicated based on the upgrading result to obtain the user data to be backed up, and the device to be upgraded provided with the preset storage device is upgraded based on the upgrading result in response to the whole machine upgrading program to obtain the device upgrading result; the device upgrading result is used for indicating the device to be upgraded to enter a starting state from a stop working state.
The device to be upgraded refers to intelligent application devices such as camera equipment, mobile phones and tablet computers, wherein the camera equipment, the mobile phones and the tablet computers are arranged in the device to be upgraded. Specifically, when it is detected that the mobile storage device and the preset storage device are successfully connected to each other, the mobile storage device may analyze the device upgrade information, and perform a minimum system upgrade process on a core system running on the preset storage device by calling a minimum system upgrade program, and copy the configured user data to be backed up to a data partition corresponding to the preset storage device, so as to complete a first startup based on the minimum system. And then, the mobile storage equipment analyzes the program of the three-party whole package system, namely the whole machine upgrading program, and starts to upgrade the system normally used in the device to be upgraded so as to complete the second starting configuration of the system, thereby realizing the quick starting configuration mode of the equipment through the steps.
Through the steps S210 to S220, after the minimum system upgrade program is responded to upgrade the preset storage device and user data copy storage is completed, the complete machine upgrade program is responded to perform secondary upgrade, so that the device secondary starting upgrade method based on multiple user data backups is realized.
In some embodiments, the acquiring the device upgrade information stored in the mobile storage device in advance further includes the steps of: and packaging the minimum system upgrading program and the user data to be processed to obtain minimum system upgrading file information, and carrying out coding processing according to the complete machine upgrading program and the minimum system upgrading file information to obtain the equipment upgrading information. Further, packaging the minimum system upgrading program and the user data to be processed so as to obtain a minimum system upgrading image file containing the user data in advance, namely the minimum system upgrading file information; and then the whole machine upgrading program and the minimum system upgrading file information are encoded into a data format which can be normally analyzed by a main control device in the device to be upgraded, for example, the file information can be encoded by adopting encoding modes such as Unicode codes or ASCII codes and the like, the equipment upgrading information is obtained, the equipment upgrading information is stored in an upgrading system U disk, and then the special system upgrading U disk is manufactured. The method comprises the steps of generating a data image file for system upgrade by means of coding processing, storing the data image file in advance in mobile storage equipment such as an upgrade U disk tool special for system upgrade, and carrying out upgrade burning on an equipment to be upgraded, so that a double-backup processing method of the user data is realized, and simultaneously, the user data is stored in the minimum system upgrade image file in advance, so that when the minimum system upgrade program is called for carrying out minimum system upgrade on the preset storage equipment, the configured user data can be stored in a data partition corresponding to the preset storage equipment, and the reliability and stability of the user data storage are further improved.
In some embodiments, the user data storage method further includes the following steps: and under the condition that the connection state indicates that the mobile storage equipment is successfully accessed to the preset storage equipment, acquiring the decoding processing of the mobile storage equipment aiming at the equipment upgrading information to obtain the minimum system upgrading file information and the whole machine upgrading program. After the mobile storage device is detected to be successfully connected to the preset storage device, the mobile storage device automatically executes system upgrading program function analysis, so that the preset storage device is subjected to minimum system upgrading based on the analyzed minimum system upgrading program, and meanwhile, the configured user data are copied to a data partition corresponding to the preset storage device, so that the first starting up for the minimum system is completed; and then, program analysis of the third-party whole package system is carried out, and the system normally used by the equipment is started to be upgraded, so that the second starting configuration of the system is completed.
In some embodiments, the upgrade program includes a complete machine upgrade program, and the user data storage method further includes the following steps: step S140, detecting the connection state between the mobile storage device and the preset storage device in real time under the condition that the preset storage device is detected not to be a blank; and under the condition that the connection state indicates that the mobile storage device is successfully accessed to the preset storage device, responding to the whole machine upgrading program to upgrade the preset storage device. In the above step, when it is detected that the preset storage device is not empty by the method of inquiring whether the corresponding data partition of the preset storage device stores user data or not, it is indicated that the current preset storage device is not damaged, that is, the preset storage device contains user data files, then the program upgrading of the whole package system can be judged and directly executed through the loading program, and after the upgrading is completed, the device can be started normally.
Through the step S140, the whole package system program is directly updated to the device when the preset storage device is detected not to be empty, and no additional user data is required to be backed up, so that the application scenario of the user data storage method is effectively expanded, and the user data storage efficiency in the device updating process is improved.
The embodiments of the present application will be described and illustrated below by means of preferred embodiments. Taking the EMMC chip as an example of the preset storage device, fig. 3 is a flowchart of an image detection method according to a preferred embodiment of the present application, as shown in fig. 3, the flowchart includes the following steps:
step S301, firstly, packaging the whole machine upgrading program and the image file of the minimum system upgrading program containing the user data to be processed, encoding the packaged file package into a data format which can be normally analyzed by the main control equipment, and putting the data format into an upgrading system U disk to manufacture a special system upgrading U disk.
Step S302, the basic loading program capable of judging whether the user data exist or not is logically processed, and when the system is upgraded according to the conventional operation, the judgment and selection of the EMMC empty program are performed.
Step S303, if EMMC empty soldering is performed, user data is not included, and when a system upgrade is performed by using a USB flash disk inserting mode, the USB flash disk automatically executes function analysis of a system upgrade program.
Step S304, the minimum system package program is updated firstly, and simultaneously, the configured user data is copied to the data partition corresponding to the EMMC, so that the first starting-up of the minimum system is completed.
Step S305, the program of the three-party whole package system is analyzed, the system normally used by the device to be upgraded is started to be upgraded, and the second starting configuration of the device to be upgraded is completed.
Step S306, if the EMMC empty chip is detected, the EMMC system in the device to be upgraded is complete, namely the user data file is contained, at the moment, the program upgrading of the whole package system can be directly executed through the judgment of the loading program, and after the upgrading is finished, the device to be upgraded can be started normally.
It should be noted that the steps illustrated in the above-described flow or flow diagrams of the figures may be performed in a computer system, such as a set of computer-executable instructions, and that, although a logical order is illustrated in the flow diagrams, in some cases, the steps illustrated or described may be performed in an order other than that illustrated herein.
The embodiment also provides a user data storage device, which is used for implementing the above embodiments and preferred embodiments, and is not described in detail. As used below, the terms "module," "unit," "sub-unit," and the like may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
Fig. 4 is a block diagram of a user data storage device according to an embodiment of the present application, as shown in fig. 4, including: an acquisition module 42, an upgrade module 44, and a backup module 46; the acquiring module 42 is configured to acquire device upgrade information that is pre-stored in the mobile storage device; the equipment upgrading information comprises an upgrading program and user data to be processed; the upgrade module 44 is configured to detect, in real time, a connection state between the mobile storage device and the preset storage device when the preset storage device is detected to be an empty piece, and perform upgrade processing on the preset storage device in response to the upgrade program when the connection state indicates that the mobile storage device is successfully connected to the preset storage device; the backup module 46 is configured to copy the user data to be backed up to obtain user data to be backed up, and store the user data to be backed up to the preset storage device when it is detected that the preset storage device is updated.
Through the above embodiment, when the preset storage device is a blank, the mobile storage device is controlled to access the preset storage device, and when the upgrade module responds 44 to the upgrade program in the mobile storage device to upgrade the preset storage device, the backup module 46 copies the user data to be processed in the mobile storage device and stores the user data in the preset storage device, so that dual backup processing of the user data is realized, the phenomenon that the intelligent application device cannot complete the starting configuration caused by directly upgrading the user data in a conventional three-way compiling package manner in the related art is avoided, the quick starting configuration of the device can be realized no matter what hardware configuration environment is, and the problem of low reliability of data storage in the device upgrading process is effectively solved.
In some embodiments, the upgrade program includes a complete machine upgrade program and a minimum system upgrade program, and the upgrade module 44 is further configured to, in case that the connection status indicates that the mobile storage device is successfully connected to the preset storage device, perform an upgrade process on the preset storage device in response to the minimum system upgrade program, to obtain an upgrade process result; the upgrade module 44 is further configured to copy the user data to be processed based on the upgrade processing result to obtain the user data to be backed up, and perform upgrade processing on the device to be upgraded provided with the preset storage device in response to the complete machine upgrade program based on the upgrade processing result to obtain the device upgrade result; the device upgrading result is used for indicating the device to be upgraded to enter a starting state from a stop working state.
In some embodiments, the upgrade module 44 is further configured to perform a packaging process for a minimum system upgrade program and user data to be processed to obtain minimum system upgrade file information, and perform an encoding process according to the complete machine upgrade program and the minimum system upgrade file information to obtain the equipment upgrade information.
In some embodiments, the obtaining module 42 is further configured to obtain, when the connection status indicates that the mobile storage device is successfully connected to the preset storage device, encoding processing performed by the mobile storage device on the device upgrade information, to obtain the minimum system upgrade file information and the complete machine upgrade program.
In some embodiments, the upgrade module 44 is further configured to detect, in real time, a connection state between the mobile storage device and the preset storage device if it is detected that the preset storage device is not empty; the upgrade module 44 is further configured to perform a complete machine upgrade process on the preset storage device in response to the upgrade program when the connection status indicates that the mobile storage device is successfully connected to the preset storage device, so as to obtain a complete machine upgrade result; the whole machine upgrading result is used for indicating that the device to be upgraded enters a starting state from a stop working state.
In some embodiments, the removable storage device is detachably connected to the predetermined storage device.
The above-described respective modules may be functional modules or program modules, and may be implemented by software or hardware. For modules implemented in hardware, the various modules described above may be located in the same processor; or the above modules may be located in different processors in any combination.
The present embodiment also provides a user data storage system, and fig. 5 is a block diagram of a user data storage system according to an embodiment of the present application, and as shown in fig. 5, the user data storage system includes a master control device 52, a preset storage device 54, and a mobile storage device 56. The master control device 52 may be a hardware device such as a single chip, a master control chip, a computer, or a server for controlling a user data storage process. Further, the main control device 52 and the preset storage device 54 are both installed in the device to be upgraded, and the removable storage device 56 and the device to be upgraded can be detachably connected.
Through the above embodiment, when the master control device 52 detects that the preset storage device 54 is empty, the mobile storage device 56 is controlled to access the preset storage device 54, and when the preset storage device 54 is updated in response to the update program in the mobile storage device 56, the user data to be processed in the mobile storage device 56 is copied and stored in the preset storage device 54, so that dual backup processing of the user data is realized, the phenomenon that the intelligent application device cannot complete the startup configuration caused by directly updating by a conventional three-way compiling package in the related art is avoided, the quick startup configuration of the device can be realized no matter what hardware configuration environment is, and the problem of low reliability of data storage in the device updating process is effectively solved.
The embodiment also provides a computer device, which may be a server, and fig. 6 is a structural diagram of an interior of the computer device according to an embodiment of the present application, as shown in fig. 6. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used to store three-dimensional scan results. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a three-dimensional scanning method.
It will be appreciated by those skilled in the art that the structure shown in FIG. 6 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
The present embodiment also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, where the transmission device is connected to the processor, and the input/output device is connected to the processor.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, acquiring equipment upgrading information pre-stored in a mobile storage device; the equipment upgrading information comprises an upgrading program and user data to be processed.
S2, detecting the connection state between the mobile storage device and the preset storage device in real time under the condition that the preset storage device is detected to be empty, and performing upgrading processing on the preset storage device in response to the upgrading program under the condition that the connection state indicates that the mobile storage device is successfully connected to the preset storage device, so as to obtain a device upgrading result.
And S3, copying the user data to be processed based on the equipment upgrading result to obtain the user data to be backed up, and storing the user data to be backed up into the preset storage equipment.
It should be noted that, specific examples in this embodiment may refer to examples described in the foregoing embodiments and alternative implementations, and this embodiment is not repeated herein.
In addition, in combination with the user data storage method in the above embodiment, the embodiment of the present application may be implemented by providing a storage medium. The storage medium has a computer program stored thereon; the computer program, when executed by a processor, implements any of the user data storage methods of the above embodiments.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
It should be understood by those skilled in the art that the technical features of the above-described embodiments may be combined in any manner, and for brevity, all of the possible combinations of the technical features of the above-described embodiments are not described, however, they should be considered as being within the scope of the description provided herein, as long as there is no contradiction between the combinations of the technical features.
The above examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (10)

1. A method of storing user data, the method comprising:
acquiring equipment upgrading information pre-stored in a mobile storage device; the equipment upgrading information comprises an upgrading program and user data to be processed;
detecting a connection state between the mobile storage device and the preset storage device in real time under the condition that the preset storage device is detected to be empty, and performing upgrading processing on the preset storage device in response to the upgrading program under the condition that the connection state indicates that the mobile storage device is successfully connected to the preset storage device;
and under the condition that the preset storage equipment is detected to be updated, copying the user data to be processed to obtain the user data to be backed up, and storing the user data to be backed up into the preset storage equipment.
2. The user data storage method of claim 1, wherein the upgrade program comprises a complete machine upgrade program and a minimum system upgrade program, the method further comprising:
under the condition that the connection state indicates that the mobile storage device is successfully accessed to the preset storage device, responding to the minimum system upgrading program to upgrade the preset storage device;
under the condition that the preset storage equipment is detected to be upgraded, copying the user data to be processed to obtain the user data to be backed up, and responding to the whole machine upgrading program to upgrade a device to be upgraded provided with the preset storage equipment to obtain an equipment upgrading result; the device upgrading result is used for indicating the device to be upgraded to enter a starting state from a stopping working state.
3. The user data storage method according to claim 2, wherein the acquiring device upgrade information stored in advance in the mobile storage device includes:
and packaging the minimum system upgrading program and the user data to be processed to obtain minimum system upgrading file information, and performing coding processing according to the complete machine upgrading program and the minimum system upgrading file information to obtain the equipment upgrading information.
4. A user data storage method according to claim 3, wherein the method further comprises:
and under the condition that the connection state indicates that the mobile storage equipment is successfully accessed to the preset storage equipment, acquiring the decoding processing of the mobile storage equipment aiming at the equipment upgrading information to obtain the minimum system upgrading file information and the whole machine upgrading program.
5. The user data storage method of claim 1, wherein the method further comprises:
detecting the connection state between the mobile storage device and the preset storage device in real time under the condition that the preset storage device is detected not to be an empty piece;
and under the condition that the connection state indicates that the mobile storage device is successfully accessed to the preset storage device, responding to the upgrading program to upgrade the preset storage device.
6. A user data storage method according to any one of claims 1 to 5, wherein the mobile storage device is detachably connected to the predetermined storage device.
7. A user data storage device, the device comprising: the system comprises an acquisition module, an upgrading module and a backup module;
the acquisition module is used for acquiring equipment upgrading information pre-stored in the mobile storage equipment; the equipment upgrading information comprises an upgrading program and user data to be processed;
the upgrading module is used for detecting the connection state between the mobile storage device and the preset storage device in real time under the condition that the preset storage device is detected to be empty, and performing upgrading processing on the preset storage device in response to the upgrading program under the condition that the connection state indicates that the mobile storage device is successfully connected to the preset storage device;
and the backup module is used for copying the user data to be processed under the condition that the preset storage equipment is detected to be updated, obtaining the user data to be backed up, and storing the user data to be backed up into the preset storage equipment.
8. A user data storage system, the system comprising: the device comprises a main control device, a preset storage device and a mobile storage device;
the master device is configured to perform the user data storage method of any one of claims 1 to 6.
9. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, the processor being arranged to run the computer program to perform the user data storage method of any of claims 1 to 6.
10. A storage medium having a computer program stored therein, wherein the computer program is arranged to perform the user data storage method of any of claims 1 to 6 when run.
CN202310602413.6A 2023-05-25 2023-05-25 User data storage method, device, system, electronic device and storage medium Pending CN116820508A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310602413.6A CN116820508A (en) 2023-05-25 2023-05-25 User data storage method, device, system, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310602413.6A CN116820508A (en) 2023-05-25 2023-05-25 User data storage method, device, system, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN116820508A true CN116820508A (en) 2023-09-29

Family

ID=88115827

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310602413.6A Pending CN116820508A (en) 2023-05-25 2023-05-25 User data storage method, device, system, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN116820508A (en)

Similar Documents

Publication Publication Date Title
EP2998861B1 (en) Implementing and deleting method and device for intelligent terminal multi-operation system
US11221838B2 (en) Hot update method, operating system, terminal device, system, and computer-readable storage medium for a system process
CN107832100B (en) APK plug-in loading method and terminal thereof
CN111796856B (en) Differential upgrading method and device, storage medium and computer equipment
US20100235617A1 (en) System recovery method and embedded system with automatic recovery function
CN112162773B (en) Differential upgrading method and device, storage medium and terminal
CN111263354B (en) OTA differential upgrading method and device
CN108920301B (en) Data backup method and system, and data recovery method and system
EP4270299A1 (en) Operating system upgrade method, electronic device, and storage medium
CN112631625A (en) System upgrading method and device of embedded equipment and embedded equipment
CN106293790B (en) application program upgrading method and device based on Firefox operating system
CN116820508A (en) User data storage method, device, system, electronic device and storage medium
CN109634782B (en) Method and device for detecting system robustness, storage medium and terminal
CN114138408B (en) Clone volume creation method, clone volume creation device, computer equipment and storage medium
CN111158947A (en) Method for making pre-copy file, server and readable storage medium
CN111522764B (en) Plug-in operation processing method, terminal and storage medium
CN113190244A (en) Method and device for upgrading wireless module, computer equipment and storage medium
CN112052125A (en) Dump processing method and device for operating system kernel and electronic equipment
CN111464395A (en) Method and device for creating block chain and readable storage medium
CN111984299A (en) Data loading method and equipment
KR101384929B1 (en) Media scanning method and media scanning device for storage medium of user terminal
CN112306551B (en) Historical configuration information acquisition method, system and device
CN113590388B (en) UBOOT-based SPL rollback method and device, storage medium and terminal
CN115981694A (en) OTA (over the air) upgrading method and device of terminal equipment, readable storage medium and terminal equipment
EP4024254A1 (en) Method and device for updating data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination