WO2006122486A1 - A method of updating and rolling back data of terminal device - Google Patents

A method of updating and rolling back data of terminal device Download PDF

Info

Publication number
WO2006122486A1
WO2006122486A1 PCT/CN2006/000963 CN2006000963W WO2006122486A1 WO 2006122486 A1 WO2006122486 A1 WO 2006122486A1 CN 2006000963 W CN2006000963 W CN 2006000963W WO 2006122486 A1 WO2006122486 A1 WO 2006122486A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
terminal device
node
backup
updated
Prior art date
Application number
PCT/CN2006/000963
Other languages
French (fr)
Chinese (zh)
Inventor
Jie Tang
Original Assignee
Huawei Technologies 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 Huawei Technologies Co., Ltd. filed Critical Huawei Technologies Co., Ltd.
Publication of WO2006122486A1 publication Critical patent/WO2006122486A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data
    • H04W8/245Transfer of terminal data from a network towards a terminal

Definitions

  • the present invention relates to the field of communications and information technology, and more particularly to a method of updating and restoring terminal device data. Background technique
  • Mobile terminal equipment is an important part of the entire mobile operation service system. As the functionality of terminal devices becomes more complex, the likelihood of problems with the terminal device software increases significantly. How to quickly and effectively solve problems in the terminal, improve service quality, and reduce operating costs of system equipment has become a concern of terminal equipment manufacturers.
  • the system provides a mechanism for configuring terminal device parameters from the server side and transmitting update packages to the terminal devices to update the terminal device software.
  • OMADM Device Management
  • the current method is to back up the data before the update on the server side, and re-issue the data before the update when a logic error occurs to complete the data recovery.
  • FIG. 1 is a flow chart of data backup and data update signaling in the prior art. Referring to FIG. 2, the process flow is as follows:
  • Step 1 Establish a connection between the server and the terminal device according to the OMA DM standard;
  • Step 2 The server sends a parameter acquisition configuration message according to the data involved in the update;
  • Step 3 The terminal device configures a message according to the acquired parameter, ⁇ Reminder, and upload the corresponding parameter data;
  • Step 4 After receiving the uploaded data, the server backs up the data on the server side.
  • Step 5 The server sends an update package, and the terminal device receives the update operation.
  • Step 6 The terminal device reports the update status.
  • Step 1 According to OMA DM The standard establishes a connection between the server and the terminal device; Step 2: The terminal device informs the server of the parameters that need to be restored by telephone, WEB or other means;
  • Step 3 The server delivers an update package, and the content of the update package is related data backed up before the last update;
  • Step 4 After the terminal device receives the update package, it performs an update operation and completes the recovery.
  • backup data on the server side occupies server resources; since the data is backed up on the server side, and the original data is on the terminal device, it is necessary to upload relevant data before each update, and increase The consumption of network resources is large; and the transmission of data on the mobile network will increase the probability of error.
  • the present invention provides a method for updating terminal device data, so as to solve the problem that the consumption of server resources and network resources is large in the prior art, and that data transmission on the network is error-prone.
  • the present invention also provides a method for recovering data of a terminal device by using the backed up data, which is used to solve the problem that the network resource is consumed in the prior art, and the data is easily error-prone on the network, and the user cannot Recovery, the problem that the server side cannot actively recover.
  • the method for updating terminal device data provided by the present invention includes:
  • the terminal device After receiving the update data, the terminal device backs up the original data that needs to be updated on the terminal device;
  • the updated data is used to overwrite data that needs to be updated on the terminal device.
  • the terminal device manages data by using a tree structure, and manages data by using a database or a data list.
  • a backup node is created in the tree structure before the first backup, and when the backup is performed, the data to be updated is copied to the corresponding node under the backup node.
  • a backup node is created in the tree structure before the data update operation, and the data to be updated is copied to the backup node.
  • the backup node is created under the node where the data to be updated is located.
  • the terminal device After the update operation is completed, the terminal device reports to the area server whether the update operation is successful.
  • a method for restoring data of a terminal device comprising the steps of: determining data that needs to be restored;
  • the restored data is overwritten with the corresponding current data on the terminal device.
  • the device management server Determining the data that needs to be restored by the device management server DM Server and sending a recovery request message to the terminal device, and the terminal device performs a recovery operation after receiving the message; or, the DM Server determines the data to be restored, and the terminal device
  • the recovery data is submitted to the device management server, and the device management server restores the data of the terminal device according to the device management 0MA process of the Open Mobile Alliance; or
  • the recovery operation is triggered directly on the terminal device and the data that needs to be recovered is determined.
  • the recovery request message carries the recovery object information, and is used to notify the terminal device that the data needs to be restored.
  • the terminal device determines whether the recovery is successful, and draws the picture
  • the server sends a recovery status message.
  • the method for updating terminal device data provided by the present invention backs up relevant data in the terminal device before updating the data, and does not need to upload the data, thereby saving server and network resources and reducing the amount of data transmitted by the network.
  • the method for recovering data of the terminal device provided by the present invention, since the data is backed up in the terminal device, the data of the backup is not needed to be recovered during the recovery, thereby saving network resources and reducing the amount of data transmitted by the network; When the problem occurs, the data that can be backed up can be recovered by itself. When the operator finds that there is a problem after updating, the server can actively send a request recovery message to the terminal device to recover the data.
  • FIG. 3 is a flow chart of a method for updating data according to the present invention.
  • FIG. 5 is a schematic diagram of a data structure according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of a data structure in accordance with an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of a data structure after backup according to an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of a data structure after updating according to an embodiment of the present invention.
  • FIG. 9 is a schematic diagram of a data structure after backup according to the method of the present invention.
  • FIG. 10 is a schematic diagram of a data structure after a backup node is created under a root node according to the present invention
  • FIG. 11 is a schematic diagram of a data structure after a backup node and other nodes except the root node are created according to the present invention
  • FIG. 13 is a signaling flowchart of a method for restoring data provided by the present invention. detailed description
  • the present invention provides a method of updating terminal device data in device management.
  • the data management structure of the terminal device is a tree structure, or uses a database or a data list to compare data. Manage. Now taking the data management structure as a tree structure as an example, the method of the present invention will be described below with reference to examples.
  • Example 1 The update process is initiated by the terminal device, and different versions of the data to be updated are backed up under the same ⁇ node.
  • FIG. 3 is a flowchart of a method according to the present invention.
  • FIG. 4 is a signaling flowchart of a method according to the present invention. Referring to FIG. 3 and FIG. 4, the method includes the following specific steps: S11, a terminal device, and a device management server. (DM Server) establishes a connection.
  • DM Server DM Server
  • the user terminal device sends a connection establishment request message to the DM server, and after receiving the message, the DM server sends a response message to the user terminal device to complete the connection between the user terminal device and the DM server.
  • the terminal device sends a data configuration request message to the DM server.
  • the terminal device constructs a data configuration request message according to the data content updated by the user and the path of the node where the data is located. And sending, by the terminal device, the data configuration request message to the DM server, to notify the DM server of the update data, and configuring the DM server to perform corresponding configuration according to the path, so that the update is updated. Data can be automatically copied to the corresponding data node.
  • the DM Server sends the update data according to the content of the received data configuration request message.
  • the DM server After receiving the data configuration request message, the DM server obtains the data content that the user wants to update, and the path of the data, and constructs the related data as an update data packet, and sends the data to the user terminal device.
  • Figure 5 shows the data structure before the backup node is created.
  • Figure 6 shows the data structure after the backup node is created.
  • the terminal device configures a data path in the request message according to the sent data, and creates a backup node for storing the data to be updated under the node where the data to be updated on the terminal device is located.
  • the user can determine whether the data to be updated is important, and select whether to back up the data to be updated, which can save time and storage space.
  • the data structure of the data to be updated is backed up. It can be seen from the figure that the data to be backed up according to the household selection will be The backup data is backed up to the backup node, and the data to be updated is backed up on the terminal device to complete the backup work. If you need to update the data under the same node again, the backup node will not be created. Instead, the data to be updated will be directly backed up to the created backup node and the previous data will be overwritten.
  • FIG. 8 is a schematic diagram of the updated data structure. As can be seen from the figure, after the update, the data to be updated is overwritten by the updated data.
  • steps S14 and S15 and step S13 described in this embodiment may be interchanged, or steps S14 and S15 may be performed simultaneously with step S13 as long as the update is to be performed before the start of the update data operation. Backing up data to the terminal device should be within the scope of the present invention.
  • Example 2 The update process is initiated by the terminal device, and different versions of the data to be updated are backed up under different backup nodes.
  • the terminal device establishes a connection with a device management server (DM Server). (same as instance - same content)
  • DM Server device management server
  • the terminal device sends a data configuration request message to the DM server. (same as the example one)
  • the DM Server sends the update data according to the content of the received data configuration request message. (same content as in example one)
  • the terminal device When the backup needs to be backed up, the terminal device creates a backup node with the current data version number under the node where the data to be updated is located, and stores the data of the current backup. Then, if the data under the same node needs to be updated again, Create a backup node with the current data version number and store the data for that backup. This way the data does not overwrite the previous data for maintenance.
  • Back up the data to be updated to the corresponding backup node It is up to the user to determine whether the data to be updated is important before the backup, and whether to back up the data to be updated. After the selection, the data to be updated is backed up to the backup node with the same version number, and the data to be updated is backed up on the terminal device to complete the backup work.
  • steps S24 and S25 and step S23 described in this embodiment may be interchanged, or steps S24 and S25 may be performed simultaneously with step S23, as long as the data to be updated is backed up before the start of the update data operation. It should be within the scope of the present invention to the terminal device.
  • Example 3 The update process is initiated by the terminal device, and the data to be updated is backed up under any node in the tree structure.
  • the terminal device establishes a connection with a device management server (DM Server). (same as example one)
  • DM Server device management server
  • the terminal device sends a data configuration request message to the DM server. (same as the example one)
  • the DM Server sends the update data according to the content of the received data configuration request message. (same content as in example one)
  • the backup node can be created under the root node or under any other node, and the related data can be backed up on the terminal device.
  • step S33 The sequence between steps S34 and S35 and step S33 described in this embodiment may be interchanged, or steps S34 and S35 may be performed simultaneously with step S33, as long as the data to be updated is backed up before the start of the update data operation. It should be within the scope of the present invention to the terminal device.
  • Example 4 The update process is initiated by the terminal device, and the backup tree and backup related data are created.
  • the terminal device establishes a connection with the device management server (DM Server). (same as example one)
  • DM Server device management server
  • the terminal device sends a data configuration request message to the DM server. (same as the example one)
  • the DM Server sends the update data according to the content of the received data configuration request message. (same content as in example one)
  • Figure 11 shows the data structure after the backup node and other nodes except the original root node are created before the first backup.
  • a backup node is created under the root node of the tree data structure on the terminal device, and each node having the same structure as the other nodes under the original root node is created under the backup node. These created nodes are used to store data under their corresponding nodes.
  • the backup node and the backup tree structure under the backup node may also not be created under the original root node, and may be created under any node in the original tree structure.
  • the data to be updated is important before the backup and to choose whether to back up the data to be updated. Because the node structure under the backup node is the same as the data structure under the original root node, the data under the root node is automatically backed up to the corresponding node under the backup node to complete the backup operation. In this step, only the data that needs to be updated can be backed up to the corresponding node under the backup node to save time and space.
  • the process of updating the terminal device data according to the present invention may also be initiated by the DM Server.
  • the DM Server sends the connection to the terminal device.
  • the parameter configuration request message carries a content list that needs to be updated in the parameter configuration request message, so that the terminal device learns the content involved in the current update, and accordingly, the terminal device actively backs up the related data before the update operation starts.
  • the method for actively updating the terminal device data by the DM server may also be implemented by the following process: After the connection between the terminal device and the DM server is established, the parameter configuration request message is not sent, but a creation message is sent.
  • the creation message carries a creation path for informing the terminal device where to create a backup node in the data management structure, for example: creating a backup node under the node where the data to be updated is located; waiting for the terminal device to be created at the corresponding location After the backup node is reported and reported, the DM Server sends a backup message to the terminal device. After receiving the data, the terminal device backs up the corresponding data to the created backup node. After that, the data update process is performed.
  • the present invention uses a database or data list to manage data, a corresponding data management structure is established on the device terminal.
  • the related data and its path are backed up to the database or data list for subsequent operations to find and call.
  • the server side can also initiate the recovery process.
  • the method of the present invention utilizes the data backed up by the above scheme to provide a method for restoring terminal device data in device management. The method of the invention will now be described in three examples.
  • Example 1 The data recovery process initiated by the DM Server.
  • FIG. 12 is a flow chart showing the steps of the method of the present invention.
  • FIG. 13 is a signaling flowchart of the method of the present invention. As can be seen from the above two figures, the method includes the following steps:
  • the device management server establishes a connection with the terminal device.
  • the DM Server sends a connection establishment request message to the user terminal device, and after receiving the message, the user terminal device sends a response message to the DM Server to complete the connection between the DM Server and the user terminal device.
  • the device management server sends a recovery request message to the terminal device.
  • the DM Server After the connection is established, the DM Server initiates the recovery process.
  • the data content corresponding to the error is carried in the recovery request message to inform the terminal device which data needs to be recovered, according to the update error that the operator has confirmed.
  • the recovery request message is then sent to the user terminal device.
  • the terminal device After receiving the recovery request message, the terminal device determines, according to the content in the message, the data that needs to be restored, and searches for and extracts the backup data corresponding thereto, if the manner of creating different backup nodes for different versions of data is adopted. , the user can choose which version of the data to restore.
  • the original path of the data is the upper node of the backup node; if the backup tree is used, Or the method of creating a backup node under any node, as shown in FIG. 10 and FIG. 11, the original path of the data is the path of the node where the original data needs to be restored under the original root node.
  • the current data is overwritten with the extracted backup data to complete the recovery operation.
  • the terminal device determines whether the recovery is successful. After the judgment result is obtained, the terminal device sends a recovery situation message to the DM server, where the recovery situation message carries a code for identifying the recovery situation, for example: 1 represents recovery success, 2 represents recovery failure, and 3 represents no corresponding recovery data. .
  • the DM Server obtains and parses the code, and then determines whether it is necessary to initiate the recovery process again. If the code DM Server according to the recovery situation confirms that the recovery process does not need to be initiated again, a deletion message is sent to the terminal device, and the terminal device is notified to delete the backed up data. After the results show that the recovery is successful, the terminal device can also actively delete the backup data to save storage space. Of course, after the recovery is successful, the backup data may not be deleted for subsequent processes.
  • Example 2 The user recovers the data autonomously.
  • Example 3 Upload the backup data and then deliver it.
  • the device management server establishes a connection with the terminal device. (same content as in Example 1)
  • the DM Server extracts corresponding data and its path from the terminal device according to the data content that needs to be restored.
  • the data is packaged and sent to the terminal device.
  • the terminal device overwrites the current data with the data in the data packet.

Abstract

A method of updating and rolling back data of terminal device is disclosed. The method comprises backing up the data that needs to be updated in the terminal device before the terminal device performing data updating operation, so as to solve the problem in prior art for big consumption of the server resource and network resource, and it can also avoid the problem for data transmission being fault easily. By the method according to present invention, there is no need to transmit the backup data when rolling back, thus saving the network resource and reducing the data amount transmitted through the network. If users find faults after updating, they can find out the backup data and roll back the data by themselves. And if operators find faults after updating, they can send a rollback request from the server side to the terminal device and roll back the data.

Description

更新和恢复终端设备数据的方法  Method for updating and restoring terminal device data
技术领域 Technical field
本发明涉及通信及信息技术领域, 特别是涉及更新和恢复终端设备数 据的方法。 背景技术  The present invention relates to the field of communications and information technology, and more particularly to a method of updating and restoring terminal device data. Background technique
移动终端设备是整个移动运营服务体系中重要的组成部分。 随着终端 设备功能的日趋复杂, 终端设备软件出现问题的可能性显著增加。 如何迅 速有效地解决终端出现的问题, 提高服务质量, 以及降低系统设备的运营 成本, 已成为终端设备厂商关注的问题。  Mobile terminal equipment is an important part of the entire mobile operation service system. As the functionality of terminal devices becomes more complex, the likelihood of problems with the terminal device software increases significantly. How to quickly and effectively solve problems in the terminal, improve service quality, and reduce operating costs of system equipment has become a concern of terminal equipment manufacturers.
在现有的移动联盟设备管理(OMADM )规范中, 系统提供了一种机 制, 用于从服务器侧配置终端设备参数, 并向终端设备发送更新包, 来更 新终端设备软件。 但是当参数配置或者软件更新包更新成功后, 逻辑上发 生问题时(例如: 更新后的软件依然存在错误或者更新的参数反而让软件 不可用等), 如何恢复到更新前的状态仍然需要提出有效的方案来解决。  In the existing Mobile Alliance Device Management (OMADM) specification, the system provides a mechanism for configuring terminal device parameters from the server side and transmitting update packages to the terminal devices to update the terminal device software. However, when the parameter configuration or the software update package is successfully updated, when there is a logical problem (for example, the updated software still has errors or the updated parameters are not available for the software, etc.), how to restore the state before the update still needs to be effective. The solution to solve.
目前采用的方法是将更新前的数据备份在服务器侧, 当出现逻辑错误 时重新下发更新前的数据, 来完成数据恢复。  The current method is to back up the data before the update on the server side, and re-issue the data before the update when a logic error occurs to complete the data recovery.
如图 1所示为现有技术的数据备份及数据更新信令流程图,参照图 2, 步骤流程如下:  FIG. 1 is a flow chart of data backup and data update signaling in the prior art. Referring to FIG. 2, the process flow is as follows:
步骤 1 : 按照 OMA DM标准建立服务器与终端设备之间的连接; 步骤 2:服务器根据本次更新所涉及的数据, 下发获取参数配置消息; 步驟 3: 终端设备根据所述获取参数配置消息, ^故出回应, 并上传相 应的参数数据;  Step 1: Establish a connection between the server and the terminal device according to the OMA DM standard; Step 2: The server sends a parameter acquisition configuration message according to the data involved in the update; Step 3: The terminal device configures a message according to the acquired parameter, ^Reminder, and upload the corresponding parameter data;
步骤 4: 服务器收到上传的数据后, 将其备份在服务器侧;  Step 4: After receiving the uploaded data, the server backs up the data on the server side.
步骤 5: 服务器下发更新包, 终端设备收到后进行更新操作; 步骤 6: 终端设备上报更新情况。  Step 5: The server sends an update package, and the terminal device receives the update operation. Step 6: The terminal device reports the update status.
当用户发现该参数配置有问题, 需要恢复到更新前的配置时, 参照如 图 2所示的现有技术数据恢复信令流程图, 从图中可见, 步骤流程如下: 步骤 1 : 按照 OMA DM标准建立服务器与终端设备之间的连接; 步驟 2: 终端设备通过电话、 WEB或者其他方式告知服务器其需要恢 复的参数; When the user finds that there is a problem with the parameter configuration and needs to revert to the pre-update configuration, refer to the prior art data recovery signaling flowchart shown in Figure 2. As shown in the figure, the process flow is as follows: Step 1: According to OMA DM The standard establishes a connection between the server and the terminal device; Step 2: The terminal device informs the server of the parameters that need to be restored by telephone, WEB or other means;
步骤 3: 服务器下发更新包, 所述更新包的内容是上次更新前备份的 相关数据;  Step 3: The server delivers an update package, and the content of the update package is related data backed up before the last update;
步骤 4: 终端设备收到更新包后进行更新操作, 完成恢复。  Step 4: After the terminal device receives the update package, it performs an update operation and completes the recovery.
通过上述数据备份和数据更新流程可以看出, 在服务器侧备份数据, 占用了服务器资源; 由于数据在服务器侧备份, 而原始数据在终端设备, 这样就必须在每次更新前上传相关数据, 增大了网络资源的消耗; 而且在 移动网络上传输数据将会增大出错的几率。  Through the above data backup and data update process, it can be seen that backup data on the server side occupies server resources; since the data is backed up on the server side, and the original data is on the terminal device, it is necessary to upload relevant data before each update, and increase The consumption of network resources is large; and the transmission of data on the mobile network will increase the probability of error.
通过上述恢复数据流程可以看出, 由于数据是在服务器侧备份, 每次 恢复都需要服务器下发相关数据, 增大了网络资源的消耗; 在移动网络上 传输数据将会增大出错的几率; 而且目前用户无法自行恢复, 只能由用户 通过电话、 WEB 等方式通知服务器侧与其配合, 发起恢复流程; 若运营 商发现错误, 则从服务器侧无法主动恢复。 发明内容  Through the above data recovery process, it can be seen that since the data is backed up on the server side, each recovery requires the server to issue relevant data, which increases the consumption of network resources; transmitting data on the mobile network will increase the probability of error; At present, the user cannot recover by itself. The user can notify the server side to cooperate with the server through the telephone or the WEB to initiate the recovery process. If the operator finds an error, the server cannot actively recover. Summary of the invention
本发明提供一种更新终端设备数据的方法, 以解决现有技术中存在的 对服务器资源和网络资源的消耗较大, 以及在网络上传输数据容易出错的 问题。  The present invention provides a method for updating terminal device data, so as to solve the problem that the consumption of server resources and network resources is large in the prior art, and that data transmission on the network is error-prone.
本发明还提供了一种利用所述备份的数据对终端设备数据进行恢复 的方法, 用以解决现有技术中存在对网络资源的消耗较大, 在网络上传输 数据容易出错, 以及用户无法自行恢复, 服务器侧无法主动恢复的问题。  The present invention also provides a method for recovering data of a terminal device by using the backed up data, which is used to solve the problem that the network resource is consumed in the prior art, and the data is easily error-prone on the network, and the user cannot Recovery, the problem that the server side cannot actively recover.
本发明提供的一种更新终端设备数据的方法, 包括:  The method for updating terminal device data provided by the present invention includes:
在终端设备与设备管理服务器 DM Server间建立连接, 由 DM Server 向终端设备发送更新数据;  Establishing a connection between the terminal device and the device management server DM Server, and the DM server sends the update data to the terminal device;
终端设备接收到所述更新数据后, 在该终端设备上备份需要更新的原 有数据;  After receiving the update data, the terminal device backs up the original data that needs to be updated on the terminal device;
利用所述更新数据覆盖终端设备上需要更新的数据。  The updated data is used to overwrite data that needs to be updated on the terminal device.
在所述终端设备上备份需要更新的数据之前, 提示用户选择需要备份 的数据。 所述终端设备采用树形结构管理数据、采用数据库或数据列表方式管 理数据。 Before backing up the data that needs to be updated on the terminal device, the user is prompted to select the data that needs to be backed up. The terminal device manages data by using a tree structure, and manages data by using a database or a data list.
当终端设备采用树形结构管理数据, 则进行首次备份前, 在所述树形 结构中创建备份节点, 在进行备份时, 将需要更新的数据复制到该备份节 点下的对应节点。  When the terminal device manages data in a tree structure, a backup node is created in the tree structure before the first backup, and when the backup is performed, the data to be updated is copied to the corresponding node under the backup node.
在根节点下创建所述备份节点。  Create the backup node under the root node.
根据原根节点下节点结构在备份节点下创建相应的节点结构。  Create a corresponding node structure under the backup node according to the node structure under the original root node.
当终端设备釆用树形结构管理数据时, 在数据更新操作前, 在所述树 形结构中创建备份节点 , 并将所述需要更新的数据复制到该备份节点下。  When the terminal device manages the data in a tree structure, a backup node is created in the tree structure before the data update operation, and the data to be updated is copied to the backup node.
在需要更新的数据所在的节点下创建所述备份节点。  The backup node is created under the node where the data to be updated is located.
进行首次备份前, 在需要更新的数据所在的节点下创建一备份节点, 将待更新数据备份到该备份节点下; 或者,  Before performing the first backup, create a backup node under the node where the data to be updated is located, and back up the data to be updated to the backup node; or
每次备份同一节点下的数据之前, 在需要更新的数据所在的节点下创 建带有版本号的备份节点, 并将所述需要更新的数据备份到相应的备份节 点下。  Before backing up the data under the same node, create a backup node with the version number under the node where the data to be updated is located, and back up the data to be updated to the corresponding backup node.
在更新操作完成后, 终端设备向麵 Server上报更新操作是否成功。 根据本发明还提供一种恢复终端设备数据的方法, 包括步骤: 确定需要恢复的数据;  After the update operation is completed, the terminal device reports to the area server whether the update operation is successful. According to the present invention, there is also provided a method for restoring data of a terminal device, comprising the steps of: determining data that needs to be restored;
从终端设备中保存的备份数据中提取相应的恢复数据;  Extracting corresponding recovery data from the backup data saved in the terminal device;
在终端设备上将所述恢复数据覆盖对应的当前数据。  The restored data is overwritten with the corresponding current data on the terminal device.
由设备管理服务器 DM Server确定需要恢复的数据并向所述终端设备 发送恢复请求消息, 所述终端设备收到该消息后进行恢复操作; 或者, 由 DM Server确定需要恢复的数据, 由终端设备将恢复数据提交给设 备管理服务器, 设备管理服务器按开放移动联盟的设备管理 0MA應流程 恢复终端设备的数据; 或者,  Determining the data that needs to be restored by the device management server DM Server and sending a recovery request message to the terminal device, and the terminal device performs a recovery operation after receiving the message; or, the DM Server determines the data to be restored, and the terminal device The recovery data is submitted to the device management server, and the device management server restores the data of the terminal device according to the device management 0MA process of the Open Mobile Alliance; or
在终端设备上直接触发恢复操作并确定需要恢复的数据。  The recovery operation is triggered directly on the terminal device and the data that needs to be recovered is determined.
在所述恢复请求消息中携带有恢复对象信息, 用于告知所述终端设备 需要恢复的数据。  The recovery request message carries the recovery object information, and is used to notify the terminal device that the data needs to be restored.
在恢复数据操作完成后, 所迷终端设备判断恢复是否成功, 并向 画 Server发送恢复情况消息。 After the data recovery operation is completed, the terminal device determines whether the recovery is successful, and draws the picture The server sends a recovery status message.
若恢复成功, 则删除备份的数据。  If the recovery is successful, the backed up data is deleted.
本发明提供的更新终端设备数据的方法, 在更新数据之前, 将相关数 据备份在终端设备, 无需上传所述数据, 从而节省了服务器和网络资源, 減少了网络传输的数据量。  The method for updating terminal device data provided by the present invention backs up relevant data in the terminal device before updating the data, and does not need to upload the data, thereby saving server and network resources and reducing the amount of data transmitted by the network.
本发明提供的恢复终端设备数据的方法, 由于数据被备份在终端设 备, 所以在恢复时无需传送所述备份的数据, 从而节省了网络资源, 减少 了网络传输的数据量; 用户更新后发现有问题时, 可调用备份的数据自行 恢复, 运营商更新后发现有问题时, 可从服务器侧主动向终端设备发送请 求恢复消息, 恢复数据。 附图说明  The method for recovering data of the terminal device provided by the present invention, since the data is backed up in the terminal device, the data of the backup is not needed to be recovered during the recovery, thereby saving network resources and reducing the amount of data transmitted by the network; When the problem occurs, the data that can be backed up can be recovered by itself. When the operator finds that there is a problem after updating, the server can actively send a request recovery message to the terminal device to recover the data. DRAWINGS
图 1为现有技术的备份数据及更新数据信令流程图;  1 is a flow chart of backup data and update data signaling in the prior art;
图 2为现有技术的恢复数据信令流程图;  2 is a flow chart of recovery data signaling in the prior art;
图 3为本发明更新数据方法的流程图;  3 is a flow chart of a method for updating data according to the present invention;
图 4为本发明更新数据方法的信令流程图;  4 is a signaling flowchart of a method for updating data according to the present invention;
图 5为根据本发明的实施例的数据结构示意图;  FIG. 5 is a schematic diagram of a data structure according to an embodiment of the present invention; FIG.
图 6为根据本发明的实施例的数据结构示意图;  6 is a schematic diagram of a data structure in accordance with an embodiment of the present invention;
图 7为根据本发明的实施例备份后的数据结构示意图;  7 is a schematic diagram of a data structure after backup according to an embodiment of the present invention;
图 8为根据本发明的实施例更新后的数据结构示意图;  8 is a schematic diagram of a data structure after updating according to an embodiment of the present invention;
图 9为根据本发明的方法备份后的数据结构示意图;  9 is a schematic diagram of a data structure after backup according to the method of the present invention;
图 10为根据本发明在根节点下创建备份节点之后的数据结构示意图; 图 11 为根据本发明创建备份节点和除根节点以外的其它节点之后的 数据结构示意图;  10 is a schematic diagram of a data structure after a backup node is created under a root node according to the present invention; FIG. 11 is a schematic diagram of a data structure after a backup node and other nodes except the root node are created according to the present invention;
图 12为本发明提供的恢复数据方法的流程图;  12 is a flowchart of a method for restoring data provided by the present invention;
图 13为本发明提供的恢复数据方法的信令流程图。 具体实施方式  FIG. 13 is a signaling flowchart of a method for restoring data provided by the present invention. detailed description
为了在对数据进行更新时节省服务器和网络资源, 减少网络传输的数 据量, 本发明提供一种在设备管理中更新终端设备数据的方法。 所述终端 设备的数据管理结构是树形结构, 或者采用数据库或数据列表方式对数据 进行管理。 现以数据管理结构是树形结构为例, 下面结合实例来描述本发 明方法。 In order to save server and network resources when updating data, and reduce the amount of data transmitted by the network, the present invention provides a method of updating terminal device data in device management. The data management structure of the terminal device is a tree structure, or uses a database or a data list to compare data. Manage. Now taking the data management structure as a tree structure as an example, the method of the present invention will be described below with reference to examples.
实例一: 由终端设备发起更新流程, 且将不同版本的待更新数据备份 在同一 ^分节点下。 如图 3所示为本发明方法的流程图, 如图 4所述为本 发明方法的信令流程图, 参照图 3和图 4, 本方法包括下列具体步骤: Sll、 终端设备与设备管理服务器(DM Server )建立连接。  Example 1: The update process is initiated by the terminal device, and different versions of the data to be updated are backed up under the same ^ node. FIG. 3 is a flowchart of a method according to the present invention. FIG. 4 is a signaling flowchart of a method according to the present invention. Referring to FIG. 3 and FIG. 4, the method includes the following specific steps: S11, a terminal device, and a device management server. (DM Server) establishes a connection.
用户终端设备向 DM Server发送建立连接请求消息, 所述 DM Server 收到该消息后, 向用户终端设备发送回应消息, 完成用户终端设备与 DM Server之间的连接。  The user terminal device sends a connection establishment request message to the DM server, and after receiving the message, the DM server sends a response message to the user terminal device to complete the connection between the user terminal device and the DM server.
S12、 终端设备向 DM Server发送数据配置请求消息。  S12. The terminal device sends a data configuration request message to the DM server.
连接建立后, 用户主动发起更新流程。 终端设备根据用户需要更新的 数据内容和所述数据所在节点的路径构建数据配置请求消息。再通过终端 设备向 DM Server发送所述数据配置请求消息, 用于告知所述 DM Server 发送哪些更新数据, 并使 DM Server根据所述路径对更新数据进行相应的 配置, 以便在更新时所述更新数据可自动拷贝到相应的数据节点下。  After the connection is established, the user initiates the update process. The terminal device constructs a data configuration request message according to the data content updated by the user and the path of the node where the data is located. And sending, by the terminal device, the data configuration request message to the DM server, to notify the DM server of the update data, and configuring the DM server to perform corresponding configuration according to the path, so that the update is updated. Data can be automatically copied to the corresponding data node.
513、 DM Server根据收到的所述数据配置请求消息的内容, 下发更新 数据。  513. The DM Server sends the update data according to the content of the received data configuration request message.
DM Server收到所述数据配置请求消息后, 从中获取用户想要更新的 数据内容, 以及该数据的路径, 并据此将相关数据构造为更新数据包, 下 发给用户终端设备。  After receiving the data configuration request message, the DM server obtains the data content that the user wants to update, and the path of the data, and constructs the related data as an update data packet, and sends the data to the user terminal device.
514、 在待更新数据节点下创建一备份节点。  514. Create a backup node under the data node to be updated.
如图 5所示为创建备份节点之前的数据结构示意图, 如图 6所示为创 建备份节点之后的数据结构示意图。终端设备根据发出的数据配置请求消 息中的数据路径, 在本终端设备上的待更新数据所在的节点下创建一个用 于存放待更新数据的备份节点。  Figure 5 shows the data structure before the backup node is created. Figure 6 shows the data structure after the backup node is created. The terminal device configures a data path in the request message according to the sent data, and creates a backup node for storing the data to be updated under the node where the data to be updated on the terminal device is located.
515、 将待更新数据备份到备份节点下。  515. Back up the data to be updated to the backup node.
在备份之前, 可由用户确定待更新数据是否重要, 并选择是否备份待 更新数据, 这样可以节约时间和存储空间。 如图 7所示为将待更新数据备 份后的数据结构示意图, 从图中可见, 根据户选择需要备份的数据, 将待 更新数据备份到备份节点下, 即将待更新数据备份在本终端设备上, 完成 备份工作。 若需要再次更新同一节点下的数据时, 将不再创建备份节点, 而是直接将本次待更新数据直接备份到已经创建的备份节点下, 并覆盖之 前的数据。 Before the backup, the user can determine whether the data to be updated is important, and select whether to back up the data to be updated, which can save time and storage space. As shown in Figure 7, the data structure of the data to be updated is backed up. It can be seen from the figure that the data to be backed up according to the household selection will be The backup data is backed up to the backup node, and the data to be updated is backed up on the terminal device to complete the backup work. If you need to update the data under the same node again, the backup node will not be created. Instead, the data to be updated will be directly backed up to the created backup node and the previous data will be overwritten.
S16、 更新数据。  S16, update the data.
备份工作完成后, 终端设备利用 DM Server下发的更新数据包对其自 身进行更新。 更新数据包分解后, 将更新数据直接拷贝到与所述更新数据 相对应的节点下。 如图 8所示为更新后的数据结构示意图, 从图中可见, 更新后, 所述待更新数据被更新数据覆盖。  After the backup is completed, the terminal device updates itself with the update packet delivered by the DM Server. After the update packet is decomposed, the update data is directly copied to the node corresponding to the update data. FIG. 8 is a schematic diagram of the updated data structure. As can be seen from the figure, after the update, the data to be updated is overwritten by the updated data.
S17、 上报更新情况。  S17. Report the update.
更新操作完成后。 终端设备向 DM Server上^ :艮更新是否成功。 After the update operation is completed. Terminal equipment to the DM Server ^: Gen update was successful.
本实施例中所述的步 -骤 S14和 S15与步驟 S13之间的先后顺序可以互 换, 或者步骤 S14和 S15与步骤 S13同时进行, 只要满足在更新数据操作 开始之前, 将所述待更新数据备份到终端设备上, 都应在本发明的保护范 围之内。  The sequence between steps S14 and S15 and step S13 described in this embodiment may be interchanged, or steps S14 and S15 may be performed simultaneously with step S13 as long as the update is to be performed before the start of the update data operation. Backing up data to the terminal device should be within the scope of the present invention.
实例二: 由终端设备发起更新流程, 且将不同版本的待更新数据备份 在不同备份节点下。  Example 2: The update process is initiated by the terminal device, and different versions of the data to be updated are backed up under different backup nodes.
S21、 终端设备与设备管理服务器(DM Server )建立连接。 (与实例 —内容相同)  S21. The terminal device establishes a connection with a device management server (DM Server). (same as instance - same content)
S22、 终端设备向 DM Server发送数据配置请求消息。 (与实例一内容 相同)  S22. The terminal device sends a data configuration request message to the DM server. (same as the example one)
523、 DM Server根据收到的所述数据配置请求消息的内容,下发更新 数据。 (与实例一内容相同)  523. The DM Server sends the update data according to the content of the received data configuration request message. (same content as in example one)
524、 在待更新数据节点下创建带有版本号的备份节点。  524. Create a backup node with a version number under the data node to be updated.
当需要备份时, 终端设备在本端的待更新数据所在的节点下创建带有 当前数据版本号的备份节点, 用于储存本次备份的数据; 之后, 若需再次 更新同一节点下的数据时, 再创建一带有当前数据版本号的备份节点, 并 储存该次备份的数据。 这样在后数据不覆盖在前数据, 以便维护。  When the backup needs to be backed up, the terminal device creates a backup node with the current data version number under the node where the data to be updated is located, and stores the data of the current backup. Then, if the data under the same node needs to be updated again, Create a backup node with the current data version number and store the data for that backup. This way the data does not overwrite the previous data for maintenance.
525、 将待更新数据备份到相应备份节点下。 在备份之前可由用户确定待更新数据是否重要, 并选择是否备份待更 新数据。选择后,将本次待更新数据备份到与之版本号相同的备份节点下, 即将待更新数据备份在本终端设备上, 完成备份工作。 其备份之后的数据 结构示意图, 如图 9所示。 525. Back up the data to be updated to the corresponding backup node. It is up to the user to determine whether the data to be updated is important before the backup, and whether to back up the data to be updated. After the selection, the data to be updated is backed up to the backup node with the same version number, and the data to be updated is backed up on the terminal device to complete the backup work. A schematic diagram of the data structure after the backup, as shown in FIG.
S26、 更新数据。 (与实例一内容相同)  S26, update the data. (same content as in example one)
S27、 上报更新情况。 (与实例一内容相同)  S27. Report the update. (same content as in example one)
本实施例中所述的步骤 S24和 S25与步骤 S23之间的先后顺序可以互 换, 或者步骤 S24和 S25与步骤 S23同时进行, 只要满足在更新数据操作 开始之前, 将所述待更新数据备份到终端设备上, 都应在本发明的保护范 围之内。  The sequence between steps S24 and S25 and step S23 described in this embodiment may be interchanged, or steps S24 and S25 may be performed simultaneously with step S23, as long as the data to be updated is backed up before the start of the update data operation. It should be within the scope of the present invention to the terminal device.
实例三: 由终端设备发起更新流程, 将待更新数据备份在树形结构中 的任一节点下  Example 3: The update process is initiated by the terminal device, and the data to be updated is backed up under any node in the tree structure.
S31、 终端设备与设备管理服务器(DM Server )建立连接。 (与实例 一内容相同)  S31. The terminal device establishes a connection with a device management server (DM Server). (same as example one)
S32、 终端设备向 DM Server发送数据配置请求消息。 (与实例一内容 相同)  S32. The terminal device sends a data configuration request message to the DM server. (same as the example one)
533、 DM Server根据收到的所述数据配置请求消息的内容, 下发更新 数据。 (与实例一内容相同 )  533. The DM Server sends the update data according to the content of the received data configuration request message. (same content as in example one)
534、 在树形结构中创建备份节点。  534. Create a backup node in the tree structure.
本实例可将备份节点创建在根节点下或其它任一节点下, 同样可实现 在终端设备上备份相关数据。创建备份节点后的数据结构示意图,如图 10 所示。  In this example, the backup node can be created under the root node or under any other node, and the related data can be backed up on the terminal device. A schematic diagram of the data structure after the backup node is created, as shown in Figure 10.
535、 将待更新数据备份到备份节点下。 (与实例一内容相同) 535. Back up the data to be updated to the backup node. (same content as in example one)
536、 更新数据。 (与实例一内容相同) 536, update the data. (same content as in example one)
S37、 上报更新情况。 (与实例一内容相同)  S37. Report the update. (same content as in example one)
本实施例中所述的步骤 S34和 S35与步驟 S33之间的先后顺序可以互 换, 或者步骤 S34和 S35与步骤 S33同时进行, 只要满足在更新数据操作 开始之前, 将所述待更新数据备份到终端设备上, 都应在本发明的保护范 围之内。 实例四: 由终端设备发起更新流程,并且创建备份树及备份相关数据。The sequence between steps S34 and S35 and step S33 described in this embodiment may be interchanged, or steps S34 and S35 may be performed simultaneously with step S33, as long as the data to be updated is backed up before the start of the update data operation. It should be within the scope of the present invention to the terminal device. Example 4: The update process is initiated by the terminal device, and the backup tree and backup related data are created.
541、 终端设备与设备管理服务器(DM Server )建立连接。 (与实例 一内容相同) 541. The terminal device establishes a connection with the device management server (DM Server). (same as example one)
542、 终端设备向 DM Server发送数据配置请求消息。 (与实例一内容 相同)  542. The terminal device sends a data configuration request message to the DM server. (same as the example one)
543、 DM Server根据收到的所述数据配置请求消息的内容, 下发更新 数据。 (与实例一内容相同)  543. The DM Server sends the update data according to the content of the received data configuration request message. (same content as in example one)
544、 在所述树形结构中创建备份节点, 以及在该备份节点下创建原 树形结构中除;†艮节点以外所有节点的节点结构。  544. Create a backup node in the tree structure, and create a node structure of all nodes except the node in the original tree structure under the backup node.
如图 11 所示为在进行首次备份前, 创建了备份节点和除原根节点以 外的其它节点之后的数据结构示意图。 从图中可见, 在终端设备上的树形 数据结构的根节点下创建了一个备份节点 , 在所述备份节点下又创建了与 原根节点下的其它节点结构相同的各个节点。这些创建出的节点用于存放 与其相应节点下的数据。  Figure 11 shows the data structure after the backup node and other nodes except the original root node are created before the first backup. As can be seen from the figure, a backup node is created under the root node of the tree data structure on the terminal device, and each node having the same structure as the other nodes under the original root node is created under the backup node. These created nodes are used to store data under their corresponding nodes.
所述的备份节点及所述备份节点下的备份树形结构也可不创建在原 根节点下, 其可创建在原树形结构中的任一节点下。  The backup node and the backup tree structure under the backup node may also not be created under the original root node, and may be created under any node in the original tree structure.
当原树形结构发生变化时, 创建的备份树形结构随之相应变化。 S45、 至少将需要更新的数据备份到备份节点下的对应节点。  When the original tree structure changes, the created backup tree structure changes accordingly. S45. Back up at least the data that needs to be updated to the corresponding node under the backup node.
在备份之前可由用户确定待更新数据是否重要, 并选择是否备份待更 新数据。 由于备份节点下的节点结构与原根节点下的数据结构相同, 所以 将根节点下的数据自动备份到备份节点下的相应节点下, 完成备份操作。 本步骤也可只将需要更新的数据备份到备份节点下的对应节点, 以节省时 间和空间。  It is up to the user to determine if the data to be updated is important before the backup and to choose whether to back up the data to be updated. Because the node structure under the backup node is the same as the data structure under the original root node, the data under the root node is automatically backed up to the corresponding node under the backup node to complete the backup operation. In this step, only the data that needs to be updated can be backed up to the corresponding node under the backup node to save time and space.
S46、 更新数据。 (与实例一内容相同)  S46. Update the data. (same content as in example one)
S47、 上报更新情况。 (与实例一内容相同)  S47. Report the update. (same content as in example one)
同理, 只要满足在更新数据操作开始之前, 将所述数据备份到终端设 备, 都应在本发明的保护范围之内。  Similarly, it should be within the scope of the present invention to satisfy the backup of the data to the terminal device before the update data operation begins.
本发明所述的更新终端设备数据的流程也可由 DM Server发起。 在建 立了终端设备与 DM Server之间的连接后, 由 DM Server向终端设备发送 参数配置请求消息, 在所述参数配置请求消息中携带有需要更新的内容列 表, 以便终端设备获知本次更新涉及的内容, 并据此在更新操作开始之前 由终端设备主动备份相关数据。 对于由 DM Server主动发起更新终端设备 数据的方式也可采用以下流程实现: 在建立了终端设备与 DM Server之间 的连接后, 不再下发参数配置请求消息, 而是下发一条创建消息, 在所述 创建消息中携带有创建路经, 用于告知终端设备在其数据管理结构中的什 么位置创建备份节点, 例如: 在待更新数据所在节点下创建备份节点; 待 终端设备在相应位置创建了备份节点并上报后, DM Server向终端设备下 发一条备份消息, 终端设备收到后将相应的数据备份到已创建的备份节点 下; 之后, 再进行数据更新流程。 The process of updating the terminal device data according to the present invention may also be initiated by the DM Server. After the connection between the terminal device and the DM Server is established, the DM Server sends the connection to the terminal device. The parameter configuration request message carries a content list that needs to be updated in the parameter configuration request message, so that the terminal device learns the content involved in the current update, and accordingly, the terminal device actively backs up the related data before the update operation starts. The method for actively updating the terminal device data by the DM server may also be implemented by the following process: After the connection between the terminal device and the DM server is established, the parameter configuration request message is not sent, but a creation message is sent. The creation message carries a creation path for informing the terminal device where to create a backup node in the data management structure, for example: creating a backup node under the node where the data to be updated is located; waiting for the terminal device to be created at the corresponding location After the backup node is reported and reported, the DM Server sends a backup message to the terminal device. After receiving the data, the terminal device backs up the corresponding data to the created backup node. After that, the data update process is performed.
若本发明采用数据库或数据列表方式来管理数据, 则在设备终端上建 立相应的数据管理结构。 在备份时, 将相关数据及其路径备份到所述数据 库或数据列表中, 以便后续操作查找、 调用。  If the present invention uses a database or data list to manage data, a corresponding data management structure is established on the device terminal. When backing up, the related data and its path are backed up to the database or data list for subsequent operations to find and call.
为了在对数据进行恢复时节省网络资源, 减少网絡传输的数据量, 以 及使用户可自行恢复数据, 服务器侧也可以主动发起恢复流程。 本发明方 法利用上述方案备份的数据 ,提供一种在设备管理中恢复终端设备数据的 方法。 现以三个实例来描述本发明方法。  In order to save network resources when restoring data, reduce the amount of data transmitted by the network, and enable users to recover data by themselves, the server side can also initiate the recovery process. The method of the present invention utilizes the data backed up by the above scheme to provide a method for restoring terminal device data in device management. The method of the invention will now be described in three examples.
例 1 : DM Server发起的数据恢复流程。 如图 12所示为本发明方法的 步驟流程图, 如图 13所述为本发明方法的信令流程图, 从上述两图中可 以看出, 本方法包括下列步骤:  Example 1: The data recovery process initiated by the DM Server. FIG. 12 is a flow chart showing the steps of the method of the present invention. FIG. 13 is a signaling flowchart of the method of the present invention. As can be seen from the above two figures, the method includes the following steps:
Sl、 设备管理服务器与终端设备建立连接。  Sl, the device management server establishes a connection with the terminal device.
DM Server向用户终端设备发送建立连接请求消息, 所述用户终端设 备收到该消息后, 向 DM Server发送回应消息, 完成 DM Server与用户终 端设备之间的连接。  The DM Server sends a connection establishment request message to the user terminal device, and after receiving the message, the user terminal device sends a response message to the DM Server to complete the connection between the DM Server and the user terminal device.
S2、 设备管理服务器向终端设备发送恢复请求消息。  S2. The device management server sends a recovery request message to the terminal device.
建立连接后, DM Server主动发起恢复流程。 根据运营商已确认的更 新错误, 在构建恢复请求消息时, 将与所述错误对应的数据内容携带在所 述恢复请求消息中, 用于告知终端设备需要恢复哪些数据。 之后将所述恢 复请求消息发送给用户终端设备。 S3、 从备份数据中提取恢复数据。 After the connection is established, the DM Server initiates the recovery process. The data content corresponding to the error is carried in the recovery request message to inform the terminal device which data needs to be recovered, according to the update error that the operator has confirmed. The recovery request message is then sent to the user terminal device. S3. Extract recovery data from the backup data.
终端设备收到所述恢复请求消息后,根据该消息中的内容确定需要恢 复的数据, 并查找和提取与之对应的备份数据, 若采用的是对不同版本的 数据创建不同的备份节点的方式, 则可由用户选择恢复哪个版本的数据。  After receiving the recovery request message, the terminal device determines, according to the content in the message, the data that needs to be restored, and searches for and extracts the backup data corresponding thereto, if the manner of creating different backup nodes for different versions of data is adopted. , the user can choose which version of the data to restore.
若采用的是在待更新数据所在节点下创建备份节点的方法,则如图 8、 图 9所示, 数据的原始路径为所述备份节点的上一级节点; 若采用的是创 建备份树, 或者在任一节点下创建备份节点的方法, 则如图 10、 图 11所 示, 数据的原始路径为在原根节点下查找到的需要恢复数据所在的节点路 径。  If the method of creating a backup node under the node where the data to be updated is created is used, as shown in FIG. 8 and FIG. 9, the original path of the data is the upper node of the backup node; if the backup tree is used, Or the method of creating a backup node under any node, as shown in FIG. 10 and FIG. 11, the original path of the data is the path of the node where the original data needs to be restored under the original root node.
S4、 覆盖当前数据。  S4, overwriting the current data.
根据解析出的该数据的原始路径, 用提取的备份数据覆盖当前数据, 完成恢复操作。  According to the original path of the parsed data, the current data is overwritten with the extracted backup data to complete the recovery operation.
S5、 判断恢复是否成功, 并上报恢复情况。  S5. Determine whether the recovery is successful, and report the recovery.
恢复操作完成后, 终端设备判断恢复是否成功。 得出判断结果后, 终 端设备向 DM Server发送恢复情况消息, 在所述恢复情况消息中携带有用 于标识恢复情况的代码, 例如: 1代表恢复成功, 2代表恢复失败, 3代表 无对应恢复数据。 DM Server收到所述恢复情况消息后, 从中获取并解析 所述代码, 进而决定是否有必要再次发起恢复流程。 若根据恢复情况的代 码 DM Server确认不需要再次发起恢复流程,则向终端设备发送删除消息, 告知所述终端设备删除备份的数据。 在得出结果表明恢复成功后, 终端设 备也可主动删除备份的数据, 以节约存储空间。 当然, 在恢复成功后也可 不删除备份的数据, 以便后续流程使用。  After the recovery operation is completed, the terminal device determines whether the recovery is successful. After the judgment result is obtained, the terminal device sends a recovery situation message to the DM server, where the recovery situation message carries a code for identifying the recovery situation, for example: 1 represents recovery success, 2 represents recovery failure, and 3 represents no corresponding recovery data. . After receiving the recovery status message, the DM Server obtains and parses the code, and then determines whether it is necessary to initiate the recovery process again. If the code DM Server according to the recovery situation confirms that the recovery process does not need to be initiated again, a deletion message is sent to the terminal device, and the terminal device is notified to delete the backed up data. After the results show that the recovery is successful, the terminal device can also actively delete the backup data to save storage space. Of course, after the recovery is successful, the backup data may not be deleted for subsequent processes.
例 2: 用户自主恢复数据。  Example 2: The user recovers the data autonomously.
Sl、 用户发现更新后出现问题时, 可自主发起恢复流程。  Sl. When the user finds a problem after the update, the recovery process can be initiated autonomously.
S2、 根据发现的错误确定需要恢复的数据, 并从备份数据中提取恢复 数据, 以及解析该数据的原始路径。  S2. Determine the data that needs to be recovered according to the found error, and extract the recovered data from the backup data, and parse the original path of the data.
53、 用提取的数据覆盖当前数据。  53. Overwrite the current data with the extracted data.
54、 恢复操作完成后, 判断恢复是否成功, 若恢复成功可删除或不删 除备份的数据。 例 3: 将备份数据上传后再下发。 54. After the recovery operation is completed, determine whether the recovery is successful. If the recovery is successful, the backup data may be deleted or not deleted. Example 3: Upload the backup data and then deliver it.
51、 设备管理服务器与终端设备建立连接。 (与例 1内容相同) 51. The device management server establishes a connection with the terminal device. (same content as in Example 1)
52、 DM Server根据需要恢复的数据内容从所述终端设备上提取相应 数据及其路径。 52. The DM Server extracts corresponding data and its path from the terminal device according to the data content that needs to be restored.
53、 将该数据打包下发给所述终端设备。  53. The data is packaged and sent to the terminal device.
54、 终端设备用该数据包中的数据覆盖当前数据。  54. The terminal device overwrites the current data with the data in the data packet.
S4、 恢复操作完成后, 判断恢复是否成功, 并上 4艮恢复情况。 (与例 1 内容相同)  S4. After the recovery operation is completed, it is judged whether the recovery is successful, and the recovery situation is as follows. (same content as in Example 1)
上述实施例是用于说明和解释本发明的原理的。 可以理解, 本发明的 具体实施方式不限于此。 对于本领域技术人员而言, 在不脱离本发明的实 质和范围的前提下进行的各种变更和修改均涵盖在本发明的保护范围之  The above embodiments are intended to illustrate and explain the principles of the invention. It is to be understood that the specific embodiments of the present invention are not limited thereto. Various changes and modifications may be made by those skilled in the art without departing from the scope and scope of the invention.

Claims

权 利 要 求 Rights request
1、 一种更新终端设备数据的方法, 其特征在于, 包括:  A method for updating terminal device data, comprising:
在终端设备与设备管理服务器 DM Server间建立连接, 由 DM Server 向终端设备发送更新数据;  Establishing a connection between the terminal device and the device management server DM Server, and the DM server sends the update data to the terminal device;
终端设备接收到所述更新数据后, 在该终端设备上备份需要更新的数 据;  After receiving the update data, the terminal device backs up the data that needs to be updated on the terminal device;
利用所述更新数据覆盖终端设备上需要更新的数据。  The updated data is used to overwrite data that needs to be updated on the terminal device.
2、 如权利要求 1 所述的方法, 其特征在于, 在所述终端设备上备份 需要更新的数据之前, 提示用户选择需要备份的数据。  2. The method according to claim 1, wherein the user is prompted to select data to be backed up before backing up the data to be updated on the terminal device.
3、 如权利要求 2所述的方法, 其特征在于, 所述终端设备采用树形 结构管理数据、 采用数据库或数据列表方式管理数据。  3. The method according to claim 2, wherein the terminal device manages data by using a tree structure, and manages data by using a database or a data list.
4、 如权利要求 3 所述的方法, 其特征在于, 当终端设备采用树形结 构管理数据, 则进行首次备份前, 在所述树形结构中创建备份节点, 在进 行备份时, 将需要更新的数据复制到该备份节点下的对应节点。  The method according to claim 3, wherein when the terminal device manages the data by using a tree structure, the backup node is created in the tree structure before the first backup, and the backup node needs to be updated when the backup is performed. The data is copied to the corresponding node under the backup node.
5、 如权利要求 4所述的方法, 其特征在于, 在根节点下创建所述备 份节点。  5. The method of claim 4, wherein the backup node is created under a root node.
6、 如权利要求 5所述的方法, 其特征在于, 根据根节点下节点结构 在备份节点下创建相应的节点结构。  6. The method according to claim 5, wherein the corresponding node structure is created under the backup node according to the node structure under the root node.
7、 如权利要求 3所述的方法, 其特征在于, 当终端设备采用树形结 构管理数据时, 在数据更新操作前, 在所述树形结构中创建备份节点, 并 将所述需要更新的数据复制到该备份节点下。  7. The method according to claim 3, wherein when the terminal device manages data in a tree structure, a backup node is created in the tree structure before the data update operation, and the update needs to be updated. The data is copied to the backup node.
8、 如权利要求 7所述的方法, 其特征在于, 在需要更新的数据所在 的节点下创建所述备份节点。  8. The method of claim 7, wherein the backup node is created under a node where data to be updated is located.
9、 如权利要求 8所述的方法, 其特征在于, 进行首次备份前, 在需 要更新的数据所在的节点下创建一备份节点, 将待更新数据备份到该备份 节点下; 或者,  The method of claim 8, wherein before the first backup, a backup node is created under the node where the data to be updated is located, and the data to be updated is backed up to the backup node; or
每次备份同一节点下的数据之前,在需要更新的数据所在的节点下创 建带有版本号的备份节点, 并将所述需要更新的数据备份到相应的备份节 点下。 Each time the data under the same node is backed up, a backup node with a version number is created under the node where the data to be updated is located, and the data to be updated is backed up to the corresponding backup node.
10、 如权利要求 1至 9中任一项所述的方法, 其特征在于, 在更新操 作完成后 , 终端设备向 DM Server上报更新操作是否成功。 The method according to any one of claims 1 to 9, wherein after the update operation is completed, the terminal device reports to the DM Server whether the update operation is successful.
11、 一种恢复终端设备数据的方法, 其特征在于, 包括步骤: 确定需要恢复的数据;  A method for recovering data of a terminal device, comprising the steps of: determining data that needs to be restored;
从终端设备保存的备份数据中提取相应的恢复数据;  Extracting corresponding recovery data from the backup data saved by the terminal device;
在终端设备上将所述恢复数据覆盖对应的当前数据。  The restored data is overwritten with the corresponding current data on the terminal device.
12、如权利要求 11所述的方法, 其特征在于, 由设备管理服务器 DM Server确定需要恢复的数据并向所述终端设备发送恢复请求消息, 所述终 端设备收到该消息后进行恢复操作; 或者,  The method according to claim 11, wherein the device management server DM Server determines data that needs to be restored and sends a recovery request message to the terminal device, and the terminal device performs a recovery operation after receiving the message; Or,
由 DM Server确定需要恢复的数据, 由终端设备将恢复数据提交给设 备管理服务器, 设备管理服务器按开放移动联盟的设备管理 OMA DM流 程恢复终端设备的数据; 或者,  The data that needs to be restored is determined by the DM server, and the recovery data is submitted by the terminal device to the device management server, and the device management server restores the data of the terminal device according to the device management OMA DM process of the Open Mobile Alliance; or
在终端设备上直接触发恢复操作并确定需要恢复的数据。  The recovery operation is triggered directly on the terminal device and the data that needs to be recovered is determined.
13、 如权利要求 12所述的方法, 其特征在于, 在所述恢复请求消息 中携带有恢复对象信息, 用于告知所述终端设备需要恢复的数据。  The method according to claim 12, wherein the recovery request message carries recovery object information for informing the terminal device of data that needs to be recovered.
14、 如权利要求 13 所述的方法, 其特征在于, 在恢复数据操作完成 后,所述终端设备判断恢复是否成功,并向 DM Server发送恢复情况消息。  14. The method according to claim 13, wherein after the data recovery operation is completed, the terminal device determines whether the recovery is successful, and sends a recovery situation message to the DM Server.
15、 如权利要求 14所述的方法, 其特征在于, 若恢复成功, 则删除 备份的数据。  15. The method of claim 14, wherein if the recovery is successful, the backed up data is deleted.
PCT/CN2006/000963 2005-05-19 2006-05-15 A method of updating and rolling back data of terminal device WO2006122486A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CNB2005100709610A CN100450015C (en) 2005-05-19 2005-05-19 Method for updating and recovering terminal device data in device management
CN200510070961.0 2005-05-19

Publications (1)

Publication Number Publication Date
WO2006122486A1 true WO2006122486A1 (en) 2006-11-23

Family

ID=37425745

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2006/000963 WO2006122486A1 (en) 2005-05-19 2006-05-15 A method of updating and rolling back data of terminal device

Country Status (2)

Country Link
CN (1) CN100450015C (en)
WO (1) WO2006122486A1 (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1976517B (en) * 2006-11-30 2010-08-11 华为技术有限公司 Mobile terminal
CN101026850A (en) * 2007-03-09 2007-08-29 华为技术有限公司 Mobileterminal software autmatic upgrading method and system, mobile terminal and software management server
US9002787B2 (en) 2009-01-30 2015-04-07 Blackberry Limited Method and apparatus for tracking device management data changes
CN101790156B (en) * 2009-11-19 2011-10-26 北京邮电大学 Strategy optimization based method and device for repairing fault of terminal software
CN101771727B (en) * 2010-02-25 2014-12-17 中兴通讯股份有限公司 Methods and devices for synchronously upgrading equipment management object information
CN101917351A (en) * 2010-03-31 2010-12-15 迈普通信技术股份有限公司 Multicasting forwarding method on router and forwarding router thereof
CN102281159A (en) * 2011-09-06 2011-12-14 曙光信息产业(北京)有限公司 Recovery method for cluster system
CN103685176B (en) * 2012-09-11 2017-03-22 联想(北京)有限公司 Terminal equipment, equipment management server and connection establishment method
CN104901840A (en) * 2015-07-01 2015-09-09 冯旋宇 Data updating method of router and router
CN106446111B (en) * 2016-09-14 2020-01-14 Oppo广东移动通信有限公司 Data migration method and terminal
CN107608859A (en) * 2017-09-29 2018-01-19 郑州云海信息技术有限公司 Storage system status monitoring method, device, equipment and computer-readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003309485A (en) * 2002-04-16 2003-10-31 Matsushita Electric Ind Co Ltd Device and method for updating software
WO2004063899A2 (en) * 2003-01-13 2004-07-29 Bitfone Corporation Mobile handset capable of updating its update agent
US20050132351A1 (en) * 2003-12-12 2005-06-16 Randall Roderick K. Updating electronic device software employing rollback

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004038546A2 (en) * 2002-10-21 2004-05-06 Bitfone Corporation System with required enhancements to syncml dm environment to support firmware updates
US8250565B2 (en) * 2003-06-27 2012-08-21 Hewlett-Packard Development Company, L.P. System and method for downloading update packages into a mobile handset in a carrier network
US7392512B2 (en) * 2003-09-08 2008-06-24 Microsoft Corporation System and method for automatic conversion from WAP client provisioning XML represented objects to OMA DM tree structure represented objects

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003309485A (en) * 2002-04-16 2003-10-31 Matsushita Electric Ind Co Ltd Device and method for updating software
WO2004063899A2 (en) * 2003-01-13 2004-07-29 Bitfone Corporation Mobile handset capable of updating its update agent
US20050132351A1 (en) * 2003-12-12 2005-06-16 Randall Roderick K. Updating electronic device software employing rollback

Also Published As

Publication number Publication date
CN100450015C (en) 2009-01-07
CN1866854A (en) 2006-11-22

Similar Documents

Publication Publication Date Title
WO2006122486A1 (en) A method of updating and rolling back data of terminal device
CN100391291C (en) Data backing-up and recovering method and system
US8495616B2 (en) Method for upgrading communication equipment
CN100568854C (en) A kind of method and interface board that keeps neighborhood
CN100527716C (en) Method and gateway equipment for resuming service after switching status of main/standby gateway device
CN102171995B (en) Method for processing packet when server fails and router thereof
CN107547245B (en) Version upgrading method and device
CN101888304A (en) Updating method, device and system for routing equipment
US20080195693A1 (en) Method and Device for Monitoring and Upgrading Software in Device Management
EP2582089A1 (en) System and method for implementing automatic configuration for equipments
CN101313518A (en) Management method for communication terminal apparatus and communication terminal and system
JP2009500759A (en) Method and system for data management based on simple network management protocol
CN101883355B (en) Collocation method and system of terminal parameter and terminal management device
WO2011137793A1 (en) Method, apparatus and network system for achieving remote update of zigbee devices
WO2011006328A1 (en) System and method for updating device firmware, device management server and mobile terminal
CN105743948A (en) Network version upgrading method and apparatus
CN111786893A (en) method and device for synchronizing software versions of wireless routers in mesh networking
WO2013040906A1 (en) Method and system for managing software version of base station
WO2012155630A1 (en) Method, device, and system for disaster recovery
CN106330695B (en) Service control method and device
WO2016065853A1 (en) Self-recovery method and device after disconnection of base station
CN102143604A (en) Method, system and device for recovering control and provisioning for wireless access point (CAPWAP) tunnel
CN106411574B (en) Management control method and device
JP2003337717A (en) Fault recovery synchronizing system of online transaction process
CN102611717A (en) Service data sending method and system, client-side agent and server agent

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application
NENP Non-entry into the national phase

Ref country code: DE

WWW Wipo information: withdrawn in national office

Country of ref document: DE

NENP Non-entry into the national phase

Ref country code: RU

WWW Wipo information: withdrawn in national office

Country of ref document: RU

122 Ep: pct application non-entry in european phase

Ref document number: 06741853

Country of ref document: EP

Kind code of ref document: A1