Device upgrade method, intelligent device and computer-readable storage medium

By establishing a software update resource mapping relationship between the virtual OCF service module and the node device in the IoT system, the problem of device upgrade management under the OCF protocol is solved, safe and reliable connection and upgrade between devices are realized, and the interconnection of the IoT system is improved. Interoperability.

CN115335803BActive Publication Date: 2024-08-23GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202080098880.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-05-08
Publication Date
2024-08-23
Estimated Expiration
2040-05-08

AI Technical Summary

Technical Problem

Existing technology is difficult to effectively manage the upgrade of IoT devices with different transmission protocols under the Open Connectivity Foundation (OCF) protocol, resulting in inconvenient interconnection and interoperability between devices.

Method used

By establishing the software update resource mapping relationship between the virtual OCF service module and the node device, detecting and obtaining relevant software data packages, and performing device upgrade processing, in order to realize device upgrade management under the OCF protocol.

Benefits of technology

It realizes the unified upgrade management of various node devices, improves the interconnection and interoperability between devices, and ensures safe and reliable device connection and updates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115335803B
    Figure CN115335803B
Patent Text Reader

Abstract

An embodiment of the present application provides a device upgrade method, an intelligent device and a computer-readable storage medium, the method comprising: establishing a first mapping relationship, the first mapping relationship refers to: the software update resource in the virtual open connection foundation OCF service module established for the node device, and the update mapping information between the over-the-air download cluster OTA Cluster in the node device, the update mapping information includes a mapping relationship of update version attributes and a mapping relationship of update status attributes, if an upgrade event of an already connected node device is detected, then the software update data packet and the first mapping relationship related to the node device are obtained, and the node device is upgraded according to the software update data packet and the first mapping relationship, so that device upgrade management of various connected node devices can be realized under the OCF protocol.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of Internet of Things, and in particular to a device upgrade method, a smart device and a computer-readable storage medium. Background Art

[0002] The Internet of Things is an information carrier based on the Internet, traditional telecommunications networks, etc., which allows all ordinary physical objects that can be independently addressed to achieve interconnection and intercommunication, and can realize intelligent identification, positioning, management and other functions. The number of connected devices in the Internet of Things is huge, but the huge number of connected devices corresponds to many technical standards, and the standards are not yet fully interconnected, and the state of everything being connected cannot be achieved. The Open Connectivity Foundation (OCF) protocol can achieve connections between tens of billions of devices, and realize secure and reliable device discovery and connection mechanisms across different operating systems and platforms. How to achieve upgrade management of IoT devices with various transmission protocols under the OCF protocol has become a hot research issue. Summary of the invention

[0003] The embodiments of the present application provide a device upgrade method, an intelligent device, and a computer-readable storage medium, which can implement device upgrade management for various node devices connected under the OCF protocol.

[0004] A first aspect of an embodiment of the present application provides a device upgrade method, including:

[0005] Establishing a first mapping relationship, wherein the first mapping relationship refers to update mapping information between a software update resource in a virtual open connectivity foundation (OCF) service module and an over-the-air download cluster (OTA Cluster) in a node device, wherein the update mapping information includes a mapping relationship of an update version attribute and a mapping relationship of an update status attribute;

[0006] In case an upgrade event of the node device is detected, acquiring a software data packet related to the node device and the first mapping relationship;

[0007] The node device is upgraded according to the software data package and the first mapping relationship.

[0008] A second aspect of an embodiment of the present application provides a device for upgrading a device, the device comprising:

[0009] An establishing unit, configured to establish a first mapping relationship, wherein the first mapping relationship refers to update mapping information between a software update resource in a virtual open connectivity foundation (OCF) service module and an over-the-air download cluster (OTA Cluster) in a node device, wherein the update mapping information includes a mapping relationship of an update version attribute and a mapping relationship of an update status attribute;

[0010] an acquisition unit, configured to acquire a software update data packet related to the node device and the first mapping relationship if an upgrade event of the connected node device is detected;

[0011] An upgrading unit is used to upgrade the node device according to the software update data packet and the first mapping relationship.

[0012] A third aspect of an embodiment of the present application provides an intelligent device, comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing the steps in the method described in the first aspect above.

[0013] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps described in the method described in the first aspect of the embodiment of the present application.

[0014] A fifth aspect of an embodiment of the present application provides a computer program product, wherein the above-mentioned computer program product includes a computer program stored on a computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes part or all of the steps described in the method described in the first aspect of the embodiment of the present application.

[0015] By implementing the embodiments of the present application, the processing module establishes update mapping information between the software update resources in the virtual open connection foundation OCF service module and the over-the-air download cluster OTA Cluster in the node device, and the update mapping information includes a mapping relationship between update version attributes and a mapping relationship between update status attributes. If the processing module detects an upgrade event of a connected node device, it can obtain the software update data packet and the first mapping relationship related to the node device. Furthermore, the processing module can upgrade the node device according to the software update data packet and the first mapping relationship, thereby realizing device upgrade management of various connected node devices under the OCF protocol. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments are briefly introduced below.

[0017] Figure 1 It is a schematic diagram of the architecture of a device upgrade system provided in an embodiment of the present application;

[0018] Figure 2A schematic diagram of a process flow of a device upgrade method provided in an embodiment of the present application;

[0019] Figure 3 A flowchart of another device upgrade method provided in an embodiment of the present application;

[0020] Figure 4 A flowchart of another device upgrade method provided in an embodiment of the present application;

[0021] Figure 5 A flowchart of another device upgrade method provided in an embodiment of the present application;

[0022] Figure 6 A schematic diagram of the structure of a device upgrade apparatus provided in an embodiment of the present application;

[0023] Figure 7 A schematic diagram of the structure of a smart device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0024] The technical solutions in the embodiments of the present application will be described clearly and in detail below in conjunction with the drawings in the embodiments of the present application.

[0025] The IoT system includes a bridging platform, multiple node devices, and OCF devices. The OCF device can access the node device through the bridging platform from the node device's protocol to the OCF protocol.

[0026] See also Figure 1 , Figure 1 Schematic diagram of the architecture of a device upgrade system provided by an embodiment of the present application, the device upgrade system includes an OCF device, a virtual OCF service module, a processing module, a virtual node service module and a node device. Figure 1 As shown, the virtual OCF service module is established for the OCF device, and the OCF device can transmit data and exchange data with the processing module through the virtual OCF service module. The virtual node service module is established for the node device, and the node device can transmit data through the virtual node service module. Different node devices can establish different virtual node service modules. The node device can be a ZigBee device, for example, a light bulb that supports the ZigBee protocol, or a light switch that supports the ZigBee protocol, or a refrigerator that supports the ZigBee protocol and other smart home appliances. Of course, it can also be a device that transmits data based on other transmission methods, such as a Bluetooth speaker. Figure 1 The processing module in can realize the function of bridging platform.

[0027] For example, taking the node device as a ZigBee device, Table 1 is a mapping model from the ZigBee protocol to the OCF protocol. As shown in Table 1, the ZigBee device corresponds to the OCF device, the service cluster of the ZigBee device corresponds to the resource type of the OCF device, and the ZigBee protocol attribute corresponds to the OCF protocol resource attribute.

[0028] Table 1:

[0029]

[0030]

[0031] For the specific description of Table 1, please refer to the series of tables as follows, among which Table 2 shows the protocol specifications and software update resource descriptions related to the software update resource type of the OCF device, Table 3 shows the definition of the "oic.r.softwareupdate" resource type, Table 4 shows the definition of the "swupdteaction" attribute value, Table 5 shows the definition of the "swupdatestatus" attribute value, Table 6 shows the definition of the "swupdateresult" attribute value, Table 7 shows the protocol specifications and descriptions related to the Over the Air Cluster (OTA Cluster) in the ZigBee device, and Table 8 shows the definition of OTA Cluster attributes.

[0032] Table 2:

[0033]

[0034] Table 3:

[0035]

[0036] Table 4:

[0037]

[0038]

[0039] Table 5:

[0040]

[0041] Table 6:

[0042] describe Error Code idle 0 Upgrade Successfully 1 Not enough memory 2 Not enough flash 3 Connection lost 4 Software verification failed 5 Invalid URL 6 The download address URL does not support the download protocol type 7 Firmware upgrade failed 8 Software transfer failed. HTTP error code 400-600

[0043] Table 7:

[0044] Cluster ID Cluster ID describe 0x0019 OAT Upgrade Parameters and commands for device OTA upgrade

[0045] Table 8:

[0046]

[0047]

[0048] In the embodiments of the present application, a device upgrade method, a smart device and a computer-readable storage medium are provided, which are helpful to implement device upgrade management of various node devices connected under the OCF protocol.

[0049] See also Figure 2 , Figure 2 The method of this embodiment is applied to the above-mentioned device upgrade system, and is mainly executed by the above-mentioned smart device, specifically, by the processor set in the smart device, which is executed by the above-mentioned smart device. Figure 1 Corresponding to the processing module shown in, the method includes the following steps.

[0050] 201: Establish a first mapping relationship, where the first mapping relationship refers to update mapping information between software update resources in the virtual OCF service module and the OTA Cluster in the node device, where the update mapping information includes a mapping relationship of update version attributes and a mapping relationship of update status attributes.

[0051] Specifically, when the processing module receives a notification that the node device to be upgraded is connected to the virtual node service module, it can establish update mapping information between the software update resources in the virtual OCF service module and the OTA Cluster in the node device.

[0052] For example, taking ZigBee devices as an example, as shown in Table 9, Table 9 shows the update mapping information between the software update resources in the virtual OCF service module and the OTA Cluster in the ZigBee device.

[0053] Table 9:

[0054]

[0055] It can be seen from Table 9 that the update mapping information between the OTA Cluster in the ZigBee device and the software update resource of the virtual OCF service module includes the mapping relationship of the update version attribute and the mapping relationship of the update status attribute. In Table 9, "0x0009" is used to identify the OTA Cluster in the ZigBee device, "0x0004" is used to identify the downloaded software version in the ZigBee attribute, "0x0006" is used to identify the image upgrade status in the ZigBee attribute, "oic.r.softwareupdate" is used to identify the software update resource in the virtual OCF service module, "nv" is used to describe the available new software version in the software update resource attribute, and "swupdatestatus" is used to describe the software update status in the software update resource attribute. The mapping relationship of the update version attribute refers to the mapping of "0x0004" and "nv" in the table, and the mapping relationship of the update status attribute refers to the mapping of "0x0006" and "swupdatestatus".

[0056] In one implementation, after establishing the first mapping relationship, the processing module may establish a virtual OCF device, wherein the virtual OCF device may include a software update resource, and the processing module may add the address information of the associated server provided by the device manufacturer of the node device to the software update resource as a first attribute, that is, for example, the information with the attribute name "purl" in Table 3, and add the signature method of the associated server of the node device to the software update resource as a second attribute, that is, for example, the information with the attribute name "signed" in Table 3. The address information of the associated server is the address for downloading the latest software package, and the signature method of the associated server is used to verify the downloaded latest software package.

[0057] 202: If an upgrade event of the connected node device is detected, a software update data packet and a first mapping relationship related to the node device are obtained.

[0058] Specifically, if the processing module can detect an upgrade event of a connected node device, it can obtain a software update data packet related to the node device and obtain a first mapping relationship to upgrade the node device. The upgrade event of the node device can be when the node device initiates an update request, or when the OCF device detects a node device that needs to be upgraded, or when the update cycle arrives and the smart device actively confirms the existence of an upgrade event, etc.

[0059] In one implementation, the processing module may obtain a software update data packet related to the node device to upgrade the node device and obtain the first mapping relationship when the local version information of the node device is lower than the service version information on the associated server.

[0060] 203: Perform upgrade processing on the node device according to the software update data packet and the first mapping relationship.

[0061] Specifically, after the processing module obtains the corresponding software data packet that needs to be upgraded for the node device, the node device can be upgraded according to the software data packet. During the upgrade of the node device, the relevant attributes in the OTA Cluster of the node device will change. According to the first mapping relationship, the processing module can perform upgrade feedback processing on the status of the node device during the upgrade process.

[0062] In one implementation, the processing module may obtain a software data packet according to the address information included in the first attribute. If the processing module receives a first software data packet update request from the node device, the processing module may perform data upgrade processing on the node device according to the obtained software data packet.

[0063] In one implementation, after the processing module obtains the software data packet according to the address information included in the first attribute, it can map the download status of the software data packet to the update status attribute in the first mapping relationship according to the update status attribute in the first mapping relationship, and send download status feedback information including the download status of the software data packet to the virtual OCF service module.

[0064] In one implementation, the processing module may receive feedback information sent by the node device through the virtual node service module, the feedback information including the node device software version information and the node device software update status information. After receiving the feedback information, the processing module may map the node device software version information to the update version attribute in the first mapping relationship and map the node device software update status information to the update status attribute in the first mapping relationship according to the update version attribute and the update status attribute in the first mapping relationship. Then, the processing module may send upgrade status feedback information including the virtual OCF service module update version attribute and the virtual OCF service module software update status attribute to the virtual OCF service module.

[0065] In the embodiment of the present application, the processing module can establish a first mapping relationship, the first mapping relationship refers to: the update mapping information between the software update resource in the virtual OCF service module and the OTA Cluster in the node device, the update mapping information includes the mapping relationship of the update version attribute and the mapping relationship of the update status attribute. If the processing module detects an upgrade event of the connected node device, it can obtain the software update data packet related to the node device and obtain the first mapping relationship. Further, the processing module upgrades the node device according to the software update data packet and the first mapping relationship. By implementing the above method, it is possible to implement device upgrade management for various connected node devices under the OCF protocol.

[0066] See also Figure 3 , Figure 3 1 is a flow chart of another device upgrade method provided by an embodiment of the present application. The method of this embodiment is applied to the above-mentioned device upgrade system, and is mainly executed by the above-mentioned smart device, specifically, by a processor set in the smart device, which is executed by the above-mentioned processor. Figure 1 Corresponding to the processing module shown in, the method includes the following steps.

[0067] 301: Establish a first mapping relationship.

[0068] Specifically, before establishing the first mapping relationship, it is necessary to confirm that the node device is connected to the virtual node service module. The virtual node service module can allow the device to access, and the node device transmits data through the virtual node service module. The node device can send an access request to the virtual node service module. After the virtual node service module receives the request, it can allow the node device to access and return a device access success message to the node device so that the node device can confirm whether the access is successful. In addition, after the node device accesses the virtual node service module, the virtual node service module can send a device access notification to the processing module so that the OCF device can determine that the node device is connected to the system when the upgrade event of the node device is triggered.

[0069] The specific implementation of step 301 can refer to the specific description of step 201 in the above embodiment, which will not be repeated here.

[0070] 302: The OCF device triggers an upgrade event of the node device.

[0071] Specifically, the OCF device may trigger an upgrade event of the node device, and the triggering method may be that the OCF device triggers the virtual OCF service module to perform software upgrade.

[0072] 303: An upgrade event of a connected node device is detected.

[0073] Specifically, when the OCF device triggers an upgrade event of a node device, the processing module can detect the upgrade event of the connected node device.

[0074] In one implementation, the virtual OCF service module may send the address information included in the first attribute of the software update resource to the processing module, wherein the address information included in the first attribute is the address of the associated server, the address of the associated server is provided by the manufacturer of the node device, and the address type of the associated server is "https: / / xxx". The processing module receives the first attribute, obtains the latest software version according to the first attribute, and performs subsequent data upgrade processing of the node device.

[0075] 304: Obtain device information of the node device according to the second mapping relationship.

[0076] Specifically, the processing module can obtain a second mapping relationship, which is established by the processing module, wherein the second mapping relationship refers to a device information mapping relationship between the virtual OCF service module and the node device. Optionally, the processing module can obtain device information of the node device according to the second mapping relationship, and the device information can be a MAC address (Media Access Control Address), an IP address (Internet Protocol Address), an ID (Identity Document), etc. of the node device, so that the processing module can confirm the node device according to the device information.

[0077] 305: According to the device information, obtain the local version information of the node device through the virtual node service module.

[0078] Specifically, after the processing module obtains the device information of the node device, it can obtain the local version information of the node device through the virtual node service module established for the node device according to the device information.

[0079] In one implementation, the processing module sends a request for the local version information of the node device to the virtual node service module. After the virtual node service module obtains the request, it can send the request to the node device. After the node device receives the request, it sends the local version information to the virtual node service module. The virtual node service module then sends the local version information to the processing module, and the processing module can obtain the local version information of the node device.

[0080] 306: Obtain service version information on the associated server according to the address information included in the first attribute.

[0081] Specifically, after the OCF device triggers an upgrade event of the node device, the virtual OCF service module will send the address information included in the first attribute in the software update resource to the processing module, that is, send the address of the associated server to the processing module. After the processing module receives the address of the associated server, it can send a service version information request to the associated server according to the address of the associated server. After the associated server receives the request, it can send the service version information to the processing module, and the processing module can obtain the service version information on the associated server.

[0082] 307: When the local version information is lower than the service version information, an upgrade notification message is sent to the node device through the virtual node service module.

[0083] Specifically, after obtaining the local version information of the node device and the service version information on the associated server, the processing module can determine whether the local version information is lower than the service version information. If the local version information is lower than the service version information, the node device can be notified to upgrade, and the processing module sends the upgrade notification information to the virtual node service module. After receiving the upgrade notification information, the virtual node service module sends the upgrade notification information to the node device to notify the node device that the upgrade process can be performed, and request the software data package from the node device.

[0084] 308: Acquire a software data packet according to the address information included in the first attribute, and acquire a first mapping relationship.

[0085] Specifically, if the processing module determines that the local version information is lower than the service version information, it can be determined that the node device needs to be upgraded, and the software data package is obtained according to the address information included in the first attribute, wherein the address information included in the first attribute is the address of the associated server. The processing module also needs to obtain the first mapping relationship so that the subsequent processing module first mapping relationship can perform upgrade feedback processing on the status of the node device upgrade process.

[0086] In one implementation, before obtaining the software data package according to the address information included in the first attribute, the processing module can detect whether the local storage space meets the software data package storage conditions. If the local storage space is sufficient, the processing module can download all the software data packages from the associated server at one time.

[0087] In one implementation, the processing module can verify the downloaded software data package according to the signature method included in the second attribute, wherein the signature method included in the second attribute is provided by the manufacturer of the node device, and the signature method is used to perform integrity check and signature verification on the software data package downloaded by the processing module. If there is no error in the verification, the software data package can be stored in the processing module.

[0088] 309: According to the update status attribute in the first mapping relationship, map the download status of the software data package to the update status attribute in the first mapping relationship.

[0089] Specifically, when the processing module is downloading the software data package, the download status of the software data package will change, and the update status attribute in the first mapping relationship will change accordingly with the change of the download status.

[0090] For example, taking the node device as a ZigBee device, as shown in Table 1, the update status attribute in the first mapping relationship refers to "0x0006" and "swupdatestatus" in Table 1. As shown in Table 3, in the description corresponding to the attribute identifier "0x0006", there are 6 cases of OTA upgrade status, and the processing module will experience different download statuses in the process of downloading software data packets, such as "waiting for download", "download in progress", and "download completed". Therefore, in the process of the processing module downloading the software data packet, the OTA upgrade status will change with the download status of the software data packet. Similarly, in the process of downloading the software data packet, the processing module will also have states such as "nsa", "svv", and "sva" as shown in Table 6. Therefore, in the process of downloading the software data packet by the processing module, the software update status will change with the download status of the software data packet.

[0091] 310: Send download status feedback information including software data package download status to the virtual OCF service module.

[0092] Specifically, when the processing module is downloading the software data package, the update status attribute in the first mapping relationship will change accordingly with the change of the software data package download status. The processing module can feed back the download status of the software data package to the virtual OCF service module.

[0093] In one implementation, after the processing module feeds back the download status of the software data package to the virtual OCF service module and the virtual OCF service module receives the download status feedback information, the virtual OCF service module may send the download status feedback information to the OCF device.

[0094] 311: Divide the software data packet into N data blocks, each block has M data pages, where N and M are positive integers.

[0095] 312: Receive a first software data package update request sent by the node device through the virtual node service module, wherein the first software data package update request includes a block identifier of a required first data block and a page identifier of a corresponding data page.

[0096] Specifically, after receiving the upgrade notification information, the node device can send a first software data packet update request to the virtual node service module, wherein the first software data packet update request includes a block identifier of the required first data block and a page identifier of the corresponding data page. The virtual node service module receives the first software data packet update request, and then sends the first software data packet update request to the processing module. The processing module can then receive the first software data packet update request sent by the node device through the virtual node service module.

[0097] 313: In response to the first software data packet request, the data page under the corresponding data block is sent to the node device through the virtual node service module according to the block identifier and the corresponding page identifier.

[0098] Specifically, after the processing module receives the first software data packet update request sent by the node device through the virtual node service module, the processing module sends the data page under the corresponding data block to the virtual node service module according to the block identifier of the required first data block and the page identifier of the corresponding data page included in the first software data packet update request. After the virtual node service module receives the data page under the corresponding data block, it sends the data page under the corresponding data block to the node device, and the node device can receive the data page under the requested data block.

[0099] 314: Receive feedback information sent by the node device through the virtual node service module, where the feedback information includes: node device software version information and node device software update status information.

[0100] Specifically, after the node device receives the data page under the requested data block sent by the processing module through the virtual node service module, the software version information of the node device and the software update status information of the node device change. The node device can send feedback information to the virtual node service module, and the feedback information includes the software version information of the node device and the software update status information of the node device. After the virtual node service module receives the feedback information, it can send the feedback information to the processing module, and the processing module can receive the feedback information.

[0101] 315: According to the update version attribute and the update status attribute in the first mapping relationship, map the node device software version information to the update version attribute in the first mapping relationship, and map the node device software update status information to the update status attribute in the first mapping relationship.

[0102] Specifically, after receiving the feedback information, the processing module can update the version attribute and update status attribute in the first mapping relationship according to the feedback information, map the node device software version information to the update version attribute in the first mapping relationship, and map the node device software update status information to the update status attribute in the first mapping relationship.

[0103] 316: Sending upgrade status feedback information including the virtual OCF service module update version attribute and the virtual OCF service module update status attribute to the virtual OCF service module.

[0104] Specifically, the processing module can make corresponding changes to the update version attribute and the update status attribute in the first mapping relationship according to the feedback information sent by the node device, and the processing module can send the virtual OCF service module update version attribute and the virtual OCF service module update status attribute in the first mapping relationship to the virtual OCF service module.

[0105] For example, taking the node device as a ZigBee device, as shown in Table 1, the update version attribute in the first mapping relationship refers to "0x0004" and "nv" in Table 1, and the update status attribute refers to "0x0006" and "swupdatestatus" in Table 1. When the processing module responds to the first software data packet update request sent by the node device through the virtual node service module, the node device software version information and software update status will change, where "0x0004" corresponds to the service version information of the associated server, and "0x0006" corresponds to the 6 situations of OTA upgrade status shown in Table 3. During the node device data upgrade process, the node device can send feedback information to the virtual node service module, and the feedback information includes the software version information of the node device and the software update status information of the node device. After receiving the feedback information, the virtual node service module sends the feedback information to the processing module. The processing module can make corresponding changes to the update version attribute and the update status attribute in the first mapping relationship according to the feedback information. The processing module can map the node device software version information to the update version attribute in the first mapping relationship, and map the node device software update status information to the update status attribute in the first mapping relationship. Then the processing module feeds back the update version attribute and update status attribute of the virtual OCF service module to the virtual OCF service module.

[0106] In one implementation, after the virtual OCF service module receives the updated version attribute and updated status attribute of the virtual OCF service module sent by the processing module, the virtual OCF service module may send the updated version attribute and updated status attribute of the virtual OCF service module to the OCF device.

[0107] In the embodiment of the present application, the processing module establishes a first mapping relationship, the OCF device triggers an upgrade event of the node device, the processing module detects the upgrade event of the connected node device, and obtains the device information of the node device according to the second mapping relationship. Then, the processing module obtains the local version information of the node device through the virtual node service module established for the node device according to the device information, and obtains the service version information on the associated server according to the address information included in the first attribute. When the local version information is lower than the service version information, the processing module sends the upgrade notification information to the node device through the virtual node service module. Further, the processing module obtains the software data packet according to the address information included in the first attribute, and obtains the first mapping relationship. According to the update status attribute in the first mapping relationship, the download status of the software data packet is mapped to the update status attribute in the first mapping relationship. Download status feedback information including the download status of the software data packet is sent to the virtual OCF service module. The software data packet is divided into N data blocks, each block has M data pages, where N and M are positive integers. A first software data packet update request sent by the node device through the virtual node service module is received, wherein the first software data packet update request includes the block identifier of the required first data block and the page identifier of the corresponding data page. In response to the first software data packet request, the data page under the corresponding data block is sent to the node device through the virtual node service module according to the block identifier and the corresponding page identifier. Feedback information sent by the node device through the virtual node service module is received, and the feedback information includes: node device software version information and node device software update status information. According to the update version attribute and update status attribute in the first mapping relationship, the node device software version information is mapped to the update version attribute in the first mapping relationship, and the node device software update status information is mapped to the update status attribute in the first mapping relationship. The upgrade status feedback information including the virtual OCF service module update version attribute and the virtual OCF service module update status attribute is sent to the virtual OCF service module. By implementing the above method, device upgrade management of various node devices connected under the OCF protocol can be realized.

[0108] See also Figure 4 , Figure 4 The method of this embodiment is applied to the above-mentioned device upgrade system, and is mainly executed by the above-mentioned smart device, specifically, by the processor set in the smart device, which is executed by the above-mentioned smart device. Figure 1 Corresponding to the processing module shown in, the method includes the following steps.

[0109] 401: Establish a first mapping relationship.

[0110] 402: The node device triggers an upgrade event of the node device.

[0111] Specifically, the node device may trigger an upgrade event of the node device, and the triggering method may be that the node device periodically requests the processing module to upgrade.

[0112] In one implementation, the node device sends an upgrade request to the virtual node service module, and after receiving the upgrade request, the virtual node service module sends the upgrade request to the processing module.

[0113] 403: Obtain an upgrade request generated when the node device triggers the upgrade event, wherein the upgrade request includes local version information of the node device.

[0114] Specifically, the processing module may receive an upgrade request sent by the node device through the virtual node service module, wherein the upgrade request carries the local version information of the node device.

[0115] 404: Obtain service version information on the associated server according to the address information included in the first attribute.

[0116] 405: When the local version information is lower than the service version information, obtain the software data package according to the address information included in the first attribute, and obtain the first mapping relationship.

[0117] 406: According to the update status attribute in the first mapping relationship, map the download status of the software data package to the update status attribute in the first mapping relationship.

[0118] 407: Send download status feedback information including software data package download status to the virtual OCF service module.

[0119] 408: Divide the software data packet into N data blocks, each block having M data pages.

[0120] 409: Receive a first software data package update request sent by the node device through the virtual node service module, wherein the first software data package update request includes a block identifier of a required first data block and a page identifier of a corresponding data page.

[0121] 410: In response to the first software data packet request, the data page under the corresponding data block is sent to the node device through the virtual node service module according to the block identifier and the corresponding page identifier.

[0122] 411: Receive feedback information sent by the node device through the virtual node service module, where the feedback information includes: node device software version information and node device software update status information.

[0123] 412: According to the update version attribute and the update status attribute in the first mapping relationship, map the node device software version information to the update version attribute in the first mapping relationship, and map the node device software update status information to the update status attribute in the first mapping relationship.

[0124] 413: Sending upgrade status feedback information including the virtual OCF service module update version attribute and the virtual OCF service module update status attribute to the virtual OCF service module.

[0125] The specific implementation of steps 401 and 404-413 may refer to the specific description of steps 301 and 306-316 of the above embodiment, which will not be repeated here.

[0126] In the embodiment of the present application, the processing module establishes a first mapping relationship, the node device triggers an upgrade event of the node device, and the processing module obtains an upgrade request that occurs when the node device triggers the upgrade event, wherein the upgrade request includes the local version information of the node device. Then, the processing module obtains the service version information on the associated server according to the address information included in the first attribute, and when the local version information is lower than the service version information, the software data packet is obtained according to the address information included in the first attribute, and the first mapping relationship is obtained. According to the update status attribute in the first mapping relationship, the download status of the software data packet is mapped to the update status attribute in the first mapping relationship. Download status feedback information including the download status of the software data packet is sent to the virtual OCF service module. The software data packet is divided into N data blocks, each block having M data pages. Further, the processing module receives a first software data packet update request sent by the node device through the virtual node service module, wherein the first software data packet update request includes the required block identifier of the first data block and the corresponding page identifier of the data page, responds to the first software data packet request, and sends the data page under the corresponding data block to the node device through the virtual node service module according to the block identifier and the corresponding page identifier. Receive feedback information sent by the node device through the virtual node service module, the feedback information includes: node device software version information and node device software update status information, map the node device software version information to the update version attribute in the first mapping relationship according to the update version attribute and the update status attribute in the first mapping relationship, map the node device software update status information to the update status attribute in the first mapping relationship, and send upgrade status feedback information including the virtual OCF service module update version attribute and the virtual OCF service module update status attribute to the virtual OCF service module. By implementing the above method, the node device can be used to periodically request device upgrades, and the software data package can be downloaded at one time, so as to realize device upgrade management for various connected node devices under the OCF protocol.

[0127] See also Figure 5 , Figure 5 The method of this embodiment is applied to the above-mentioned device upgrade system, and is mainly executed by the above-mentioned smart device, specifically, by the processor set in the smart device, which is executed by the above-mentioned smart device. Figure 1 Corresponding to the processing module shown in, the method includes the following steps.

[0128] 501: Establish a first mapping relationship.

[0129] 502: The OCF device triggers an upgrade event of the node device.

[0130] 503: An upgrade event of the connected node device is detected.

[0131] 504: Obtain device information of the node device according to the second mapping relationship.

[0132] 505: According to the device information, the local version information of the node device is obtained through the virtual node service module established for the node device.

[0133] 506: Acquire service version information on the associated server according to the address information included in the first attribute.

[0134] 507: When the local version information is lower than the service version information, an upgrade notification message is sent to the node device through the virtual node service module.

[0135] 508: Obtain a first mapping relationship.

[0136] Specifically, after determining that the node device needs to be upgraded, the processing device may obtain the first mapping relationship, and the first mapping relationship may be used for feedback in subsequent steps.

[0137] 509: Receive a second software data packet request sent by the node device through the virtual node service module, wherein the second software data packet request includes a block identifier of a required second data block and a page identifier of a corresponding data page.

[0138] Specifically, after receiving the upgrade notification information, the node device can send a second software data packet update request to the virtual node service module, wherein the second software data packet update request includes the block identifier of the required second data block and the page identifier of the corresponding data page. The virtual node service module receives the second software data packet update request and then sends the second software data packet update request to the processing module. The processing module can then receive the second software data packet update request sent by the node device through the virtual node service module.

[0139] In one implementation, after determining that the local version information is lower than the service version information, the processing module can detect whether the local storage space meets the software data package storage conditions. If the local storage space is insufficient, the processing module can download the corresponding software data package from the associated server based on the second software data package request sent by the node device through the virtual node service module, and there is no need to download all the software data packages from the associated server at one time.

[0140] 510: Download the data page under the corresponding data block from the associated server.

[0141] Specifically, after receiving the second software data packet request sent by the node device through the virtual node service module, the processing module can download the data page under the corresponding data block from the associated server according to the second software data packet request including the block identifier of the required second data block and the page identifier of the corresponding data page.

[0142] In one implementation, the processing module can verify the data page under the downloaded data block according to the signature method included in the second attribute, wherein the signature method included in the second attribute is provided by the manufacturer of the node device, and the signature method is used to perform integrity check and signature verification on the software data package downloaded by the processing module. If there is no error in the verification, the data page under the downloaded data block can be stored in the processing module.

[0143] 511: According to the update status attribute in the first mapping relationship, map the download status of the software data package to the update status attribute in the first mapping relationship.

[0144] 512: Send download status feedback information including software data package download status to the virtual OCF service module.

[0145] 513: In response to the second software data packet request, the data page under the corresponding data block is sent to the node device through the virtual node service module.

[0146] Specifically, the processing module downloads the data page under the corresponding data block from the associated server according to the second software data packet request, and after verification, the data page under the corresponding data block can be sent to the virtual node service module. After the virtual node service module receives the data page under the corresponding data block, it sends the data page under the corresponding data block to the node device, and the node device can receive the data page under the requested data block.

[0147] 514: Receive feedback information sent by the node device through the virtual node service module, where the feedback information includes: node device software version information and node device software update status information.

[0148] 515: According to the update version attribute and the update status attribute in the first mapping relationship, map the node device software version information to the update version attribute in the first mapping relationship, and map the node device software update status information to the update status attribute in the first mapping relationship.

[0149] 516: Sending upgrade status feedback information including the virtual OCF service module update version attribute and the virtual OCF service module update status attribute to the virtual OCF service module.

[0150] The specific implementation of steps 501-507, 511-512, and 514-516 can refer to the specific description of steps 301-307, 309-310, and 313-316 in the above embodiment, which will not be repeated here.

[0151] It should be noted that when an upgrade event of a node device is triggered for a node device, the processing module may also download a corresponding software data package according to a second software data package request of the node device, and then respond to the second software data package request.

[0152] In the embodiment of the present application, the processing module establishes a first mapping relationship, and the OCF device triggers an upgrade event of the node device. The processing module detects the upgrade event of the connected node device and obtains the device information of the node device according to the second mapping relationship. Then, the processing module obtains the local version information of the node device through the virtual node service module established for the node device according to the device information, and obtains the service version information on the associated server according to the address information included in the first attribute. When the local version information is lower than the service version information, the processing module sends the upgrade notification information to the node device through the virtual node service module, and obtains the first mapping relationship. Further, the processing module receives the second software data packet request sent by the node device through the virtual node service module, wherein the second software data packet request includes the block identifier of the required second data block and the page identifier of the corresponding data page. Then, the data page under the corresponding data block is downloaded from the associated server, and the download status of the software data packet is mapped to the update status attribute in the first mapping relationship according to the update status attribute in the first mapping relationship. Download status feedback information including the download status of the software data packet is sent to the virtual OCF service module. In response to the second software data packet request, the data page under the corresponding data block is sent to the node device through the virtual node service module. Receive feedback information sent by the node device through the virtual node service module, the feedback information includes: node device software version information and node device software update status information, map the node device software version information to the update version attribute in the first mapping relationship according to the update version attribute and the update status attribute in the first mapping relationship, map the node device software update status information to the update status attribute in the first mapping relationship, and send upgrade status feedback information including the virtual OCF service module update version attribute and the virtual OCF service module update status attribute to the virtual OCF service module. By implementing the above method, the node device upgrade can be triggered by the OCF device, and the corresponding software data package can be downloaded according to the software data package requirements of the node device, so as to realize the device upgrade management of various node devices connected under the OCF protocol.

[0153] See also Figure 6 , Figure 6 : is a schematic diagram of a device upgrade apparatus provided in an embodiment of the present application. The apparatus comprises:

[0154] An establishing unit 601 is used to establish a first mapping relationship, wherein the first mapping relationship refers to update mapping information between a software update resource in a virtual open connectivity foundation OCF service module and an over-the-air download cluster OTA Cluster in a node device, wherein the update mapping information includes a mapping relationship of an update version attribute and a mapping relationship of an update status attribute;

[0155] The acquisition unit 602 is configured to acquire a software update data packet related to the node device and the first mapping relationship if an upgrade event of the connected node device is detected;

[0156] The upgrading unit 603 is used to upgrade the node device according to the software update data packet and the first mapping relationship.

[0157] In some feasible implementations, the establishing unit 601 is further configured to:

[0158] Establishing the virtual OCF device, wherein the virtual OCF device includes the software update resource;

[0159] Adding the address information of the associated server of the node device as a first attribute to the software update resource;

[0160] The signature method of the associated server of the node device is added to the software update resource as a second attribute.

[0161] In some feasible implementations, the upgrading unit 603 is specifically used to:

[0162] Performing data upgrade processing on the node device according to the software data packet;

[0163] According to the first mapping relationship, upgrade feedback processing is performed on the status of the node device during the upgrade process.

[0164] In some feasible implementations, the upgrading unit 603 is specifically used to:

[0165] Acquire the software data packet according to the address information included in the first attribute;

[0166] When a first software data package update request is received, data upgrade processing is performed on the node device according to the software data package.

[0167] In some feasible implementations, the apparatus further includes a sending unit 604, which is specifically configured to:

[0168] An upgrade notification message is sent to the node device via a virtual node service module established for the node device, wherein the node device transmits data via the virtual node service module.

[0169] In some feasible implementations, the acquisition unit 602 is specifically configured to:

[0170] Downloading a corresponding software data package from the associated server according to the address information included in the first attribute, and verifying the software data package according to the signature method included in the second attribute;

[0171] After the verification is completed, the software data packet is divided into N data blocks, each block has M data pages, and N and M are positive integers;

[0172] The upgrading unit 603 is specifically used for:

[0173] Receiving a first software data packet update request sent by the node device through the virtual node service module, wherein the first software data packet update request includes a block identifier of a required first data block and a page identifier of a corresponding data page;

[0174] In response to the first software data packet request, a data page under the corresponding data block is sent to the node device through a virtual node service module according to the block identifier and the corresponding page identifier.

[0175] In some feasible implementations, the upgrading unit 603 is further used for:

[0176] According to the update status attribute in the first mapping relationship, mapping the download status of the software data package to the update status attribute in the first mapping relationship;

[0177] Sending download status feedback information including software data package download status to the virtual OCF service module.

[0178] In some feasible implementations, the upgrading unit 602 is specifically used to:

[0179] Receiving feedback information sent by the node device through the virtual node service module, the feedback information including: node device software version information and node device software update status information;

[0180] According to the update version attribute and the update status attribute in the first mapping relationship, the node device software version information is mapped to the update version attribute in the first mapping relationship, and the node device software update status information is mapped to the update status attribute in the first mapping relationship;

[0181] Sending upgrade status feedback information including the virtual OCF service module update version attribute and the virtual OCF service module update status attribute to the virtual OCF service module.

[0182] In some feasible implementations, the detection unit 606 is specifically configured to:

[0183] Check whether the local storage space meets the software data package storage conditions;

[0184] If yes, then executing the step of obtaining a software data package according to the address information included in the first attribute;

[0185] If not, receive a second software data packet request sent by the node device through the virtual node service module, wherein the second software data packet request includes the block identifier of the required second data block and the page identifier of the corresponding data page, and download the data page under the corresponding data block from the associated server based on the block identifier and the corresponding page identifier.

[0186] In some feasible implementations, the upgrading unit 602 is further used for:

[0187] Verifying the data page under the corresponding data block according to the signature method included in the second attribute;

[0188] After the verification is completed, in response to the second software data packet request, the data page under the corresponding data block is sent to the node device through the virtual node service module.

[0189] In some feasible implementations, the upgrade event of the connected node device is triggered by an OCF device, wherein the OCF device transmits data through the virtual OCF service module, and the acquiring unit 602 is further used to:

[0190] Obtaining device information of the node device according to a second mapping relationship, wherein the second mapping relationship refers to: a device information mapping relationship between the virtual OCF service module and the node device;

[0191] According to the device information, obtaining the local version information of the node device through the virtual node service module;

[0192] Acquire service version information on the associated server according to the address information included in the first attribute;

[0193] In a case where the local version information of the node device is lower than the service version information on the associated server, the step of obtaining the software data package related to the node device is performed.

[0194] In some feasible implementation manners, the upgrade event of the connected node device is triggered by the node device, and the acquisition unit 602 is specifically configured to:

[0195] Acquire an upgrade request generated when the node device triggers the upgrade event, wherein the upgrade request includes local version information of the node device;

[0196] Acquire service version information on the associated server according to the address information included in the first attribute;

[0197] In a case where the local version information of the node device is lower than the service version information on the associated server, the step of obtaining the software data package related to the node device is performed.

[0198] In the embodiment of the present application, the establishment unit 601 establishes a first mapping relationship, the first mapping relationship refers to: the update mapping information between the software update resource in the virtual open connection foundation OCF service module and the over-the-air download cluster OTA Cluster in the node device, the update mapping information includes the mapping relationship of the update version attribute and the mapping relationship of the update status attribute, if the acquisition unit 602 detects the upgrade event of the connected node device, then the software update data packet related to the node device and the first mapping relationship are acquired, further, the upgrade unit 603 upgrades the node device according to the software update data packet and the first mapping relationship. By implementing the above method, it is possible to implement device upgrade management for various connected node devices under the OCF protocol.

[0199] It is understood that the division of units in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. The functional units in the embodiments of the present application may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware or in the form of software functional units.

[0200] See also Figure 7 , Figure 7 A schematic diagram of the structure of a smart device provided in an embodiment of the present application, wherein: Figure 7 The smart device shown may include: a processor 701, a communication interface 702 and a memory 703, wherein the processor 701, the communication interface 702 and the memory 703 are respectively connected to a bus, wherein the memory 703 is used to store a computer program, the computer program includes program instructions, and the processor 701 is used to execute the program instructions stored in the memory 703.

[0201] In the embodiment of the present application, the processor 701 performs the following operations by running the executable program code in the memory 703:

[0202] Establishing a first mapping relationship, wherein the first mapping relationship refers to update mapping information between a software update resource in a virtual open connectivity foundation (OCF) service module and an over-the-air download cluster (OTA Cluster) in a node device, wherein the update mapping information includes a mapping relationship of an update version attribute and a mapping relationship of an update status attribute;

[0203] In case an upgrade event of the node device is detected, acquiring a software data packet related to the node device and the first mapping relationship;

[0204] The node device is upgraded according to the software data package and the first mapping relationship.

[0205] In some feasible implementations, the processor 701 is further configured to:

[0206] Establishing the virtual OCF device, wherein the virtual OCF device includes the software update resource;

[0207] Adding the address information of the associated server of the node device as a first attribute to the software update resource;

[0208] The signature method of the associated server of the node device is added to the software update resource as a second attribute.

[0209] In some feasible implementations, the processor 701 is specifically configured to:

[0210] Performing data upgrade processing on the node device according to the software data packet;

[0211] According to the first mapping relationship, upgrade feedback processing is performed on the status of the node device during the upgrade process.

[0212] In some feasible implementations, the processor 701 is specifically configured to:

[0213] Acquire the software data packet according to the address information included in the first attribute;

[0214] When a first software data package update request is received, data upgrade processing is performed on the node device according to the software data package.

[0215] In some feasible implementations, the processor 701 is further configured to:

[0216] An upgrade notification message is sent to the node device via a virtual node service module established for the node device, wherein the node device transmits data via the virtual node service module.

[0217] In some feasible implementations, the processor 701 is specifically configured to:

[0218] Downloading a corresponding software data package from the associated server according to the address information included in the first attribute, and verifying the software data package according to the signature method included in the second attribute;

[0219] After the verification is completed, the software data packet is divided into N data blocks, each block has M data pages, and N and M are positive integers;

[0220] Receiving a first software data packet update request sent by the node device through the virtual node service module, wherein the first software data packet update request includes a block identifier of a required first data block and a page identifier of a corresponding data page;

[0221] In response to the first software data packet request, a data page under the corresponding data block is sent to the node device through a virtual node service module according to the block identifier and the corresponding page identifier.

[0222] In some feasible implementations, the processor 701 is further configured to:

[0223] According to the update status attribute in the first mapping relationship, mapping the download status of the software data package to the update status attribute in the first mapping relationship;

[0224] Sending download status feedback information including software data package download status to the virtual OCF service module.

[0225] In some feasible implementations, the processor 701 is specifically configured to:

[0226] Receiving feedback information sent by the node device through the virtual node service module, the feedback information including: node device software version information and node device software update status information;

[0227] According to the update version attribute and the update status attribute in the first mapping relationship, the node device software version information is mapped to the update version attribute in the first mapping relationship, and the node device software update status information is mapped to the update status attribute in the first mapping relationship;

[0228] Sending upgrade status feedback information including the virtual OCF service module update version attribute and the virtual OCF service module update status attribute to the virtual OCF service module.

[0229] In some feasible implementations, the processor 701 is further configured to:

[0230] When the local storage space meets the software data package storage condition, executing the step of acquiring the software data package according to the address information included in the first attribute;

[0231] When the local storage space does not meet the software data package storage conditions, a second software data package request is received from the node device through the virtual node service module, wherein the second software data package request includes a block identifier of the required second data block and a page identifier of the corresponding data page, and based on the block identifier and the corresponding page identifier, the data page under the corresponding data block is downloaded from the associated server.

[0232] In some feasible implementations, the processor 701 is further configured to:

[0233] Verifying the data page under the corresponding data block according to the signature method included in the second attribute;

[0234] After the verification is completed, in response to the second software data packet request, the data page under the corresponding data block is sent to the node device through the virtual node service module.

[0235] In some feasible implementations, the upgrade event of the connected node device is triggered by an OCF device, wherein the OCF device transmits data through the virtual OCF service module, and the processor 701 is specifically configured to:

[0236] Obtaining device information of the node device according to a second mapping relationship, wherein the second mapping relationship refers to: a device information mapping relationship between the virtual OCF service module and the node device;

[0237] According to the device information, obtaining the local version information of the node device through a virtual node service module established for the node device, wherein the node device transmits data through the virtual node service module;

[0238] Acquire service version information on the associated server according to the address information included in the first attribute;

[0239] In a case where the local version information of the node device is lower than the service version information on the associated server, the step of obtaining the software data package related to the node device is performed.

[0240] In some feasible implementations, the upgrade event of the connected node device is triggered by the node device, and the processor 701 is specifically configured to:

[0241] Acquire an upgrade request generated when the node device triggers the upgrade event, wherein the upgrade request includes local version information of the node device;

[0242] Acquire service version information on the associated server according to the address information included in the first attribute;

[0243] In a case where the local version information of the node device is lower than the service version information on the associated server, the step of obtaining the software data package related to the node device is performed.

[0244] In the embodiment of the present application, the processor 701 establishes a first mapping relationship, the first mapping relationship refers to: the update mapping information between the software update resource in the virtual open connection foundation OCF service module and the over-the-air download cluster OTA Cluster in the node device, the update mapping information includes the mapping relationship of the update version attribute and the mapping relationship of the update status attribute, if the upgrade event of the connected node device is detected, the software update data packet related to the node device and the first mapping relationship are obtained, and further, the node device is upgraded according to the software update data packet and the first mapping relationship. By implementing the above method, it is possible to implement device upgrade management for various connected node devices under the OCF protocol.

[0245] An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any method recorded in the above method embodiments.

[0246] The present application also provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps described by the terminal or network device in the above method embodiment. The computer program product may be a software installation package.

[0247] The steps of the method or algorithm described in conjunction with the disclosure of the present application can be implemented in a hardware manner, or can be implemented by a processor executing software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in a random access memory (Random Access Memory, RAM), a flash memory, a read-only memory (ReadOnly Memory, ROM), an erasable programmable read-only memory (Erasable Programmable ROM, EPROM), an electrically erasable programmable read-only memory (Electrically EPROM, EEPROM), a register, a hard disk, a mobile hard disk, a read-only compact disk (CD-ROM) or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and can write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC. In addition, the ASIC can be located in a communication device such as a terminal. Of course, the processor and the storage medium can also be present in the communication device as discrete components.

[0248] It can be understood that the first, second, and various digital numbers involved in this document are only distinguished for the convenience of description and are not used to limit the scope of the embodiments of the present application.

[0249] It can be understood that in various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0250] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes.

Claims

1. A device upgrading method, characterized in that: A processing module applied to a device upgrade system, wherein the device upgrade system further comprises a virtual Open Connectivity Foundation (OCF) device, a virtual OCF service module, a virtual node service module and a node device, wherein the virtual OCF service module is established for the OCF device, the OCF device transmits data through the virtual OCF service module, the virtual node service module is established for the node device, different node devices establish different virtual node service modules, the node device transmits data through the virtual node service module, and the method comprises: Establishing a first mapping relationship, wherein the first mapping relationship refers to: update mapping information between the software update resource in the virtual OCF service module and the over-the-air download cluster OTA Cluster in the node device, wherein the update mapping information includes a mapping relationship of an update version attribute and a mapping relationship of an update status attribute; In the case where an upgrade event of the node device is detected, a software data packet related to the node device and the first mapping relationship are acquired, wherein the upgrade event of the connected node device is triggered by an OCF device, and the triggering method is that the OCF device triggers the virtual OCF service module to perform software upgrade; The node device is upgraded according to the software data package and the first mapping relationship.

2. The method according to claim 1, characterized in that After the first mapping relationship is established, the method further includes: Establishing the virtual OCF device, wherein the virtual OCF device includes the software update resource; Adding the address information of the associated server of the node device as a first attribute to the software update resource; The signature method of the associated server of the node device is added to the software update resource as a second attribute.

3. The method according to claim 2, characterized in that The step of performing an upgrade process on the node device according to the software update data packet and the first mapping relationship includes: Performing data upgrade processing on the node device according to the software data packet; According to the first mapping relationship, upgrade feedback processing is performed on the status of the node device during the upgrade process.

4. The method according to claim 3, characterized in that The step of performing data upgrade processing on the node device according to the software data packet includes: Acquire the software data packet according to the address information included in the first attribute; When a first software data package update request is received, data upgrade processing is performed on the node device according to the software data package.

5. The method according to claim 4, characterized in that Before acquiring the software data packet according to the address information included in the first attribute, the method further includes: The upgrade notification information is sent to the node device through the virtual node service module established for the node device.

6. The method according to claim 5, characterized in that The acquiring the software data packet according to the address information included in the first attribute includes: Downloading a corresponding software data package from the associated server according to the address information included in the first attribute, and verifying the software data package according to the signature method included in the second attribute; After the verification is completed, the software data packet is divided into N data blocks, each block has M data pages, wherein N and M are positive integers; When receiving a software data package update request, performing data upgrade processing on the node device according to the software data package includes: Receiving a first software data packet update request sent by the node device through the virtual node service module, wherein the first software data packet update request includes a block identifier of a required first data block and a page identifier of a corresponding data page; In response to the first software data packet request, a data page under the corresponding data block is sent to the node device through a virtual node service module according to the block identifier and the corresponding page identifier.

7. The method according to any one of claims 4 to 6, characterized in that: After acquiring the software data packet according to the address information included in the first attribute, the method further includes: According to the update status attribute in the first mapping relationship, mapping the download status of the software data package to the update status attribute in the first mapping relationship; Sending download status feedback information including software data package download status to the virtual OCF service module.

8. The method according to claim 3, characterized in that The step of performing feedback processing on the state of the node device during the upgrade process according to the first mapping relationship includes: Receiving feedback information sent by the node device through the virtual node service module, the feedback information including: node device software version information and node device software update status information; According to the update version attribute and the update status attribute in the first mapping relationship, the node device software version information is mapped to the update version attribute in the first mapping relationship, and the node device software update status information is mapped to the update status attribute in the first mapping relationship; Sending upgrade status feedback information including the virtual OCF service module update version attribute and the virtual OCF service module update status attribute to the virtual OCF service module.

9. The method according to claim 4, characterized in that Before acquiring the software data packet according to the address information included in the first attribute, the method further includes: When the local storage space meets the software data package storage condition, executing the step of acquiring the software data package according to the address information included in the first attribute; When the local storage space does not meet the software data package storage conditions, a second software data package request is received from the node device through the virtual node service module, wherein the second software data package request includes a block identifier of the required second data block and a page identifier of the corresponding data page, and based on the block identifier and the corresponding page identifier, the data page under the corresponding data block is downloaded from the associated server.

10. The method according to claim 9, characterized in that After downloading the data page under the corresponding data block from the associated server, the method further includes: Verifying the data page under the corresponding data block according to the signature method included in the second attribute; After the verification is completed, in response to the second software data packet request, the data page under the corresponding data block is sent to the node device through the virtual node service module.

11. The method according to claim 2, characterized in that Before acquiring the software data package related to the node device and the first mapping relationship, the method further includes: Obtaining device information of the node device according to a second mapping relationship, wherein the second mapping relationship refers to: a device information mapping relationship between the virtual OCF service module and the node device; According to the device information, obtaining the local version information of the node device through the virtual node service module; Acquire service version information on the associated server according to the address information included in the first attribute; In a case where the local version information of the node device is lower than the service version information on the associated server, the step of obtaining the software data package related to the node device is performed.

12. The method according to claim 2, characterized in that: The upgrade event of the connected node device is triggered by the node device, and before acquiring the software data package related to the node device and the first mapping relationship, the method further includes: Acquire an upgrade request generated when the node device triggers the upgrade event, wherein the upgrade request includes local version information of the node device; Acquire service version information on the associated server according to the address information included in the first attribute; In a case where the local version information of the node device is lower than the service version information on the associated server, the step of obtaining the software data package related to the node device is performed.

13. A device upgrading apparatus, characterized in that: A processing module applied to a device upgrade system, wherein the device upgrade system further comprises a virtual Open Connectivity Foundation OCF device, a virtual OCF service module, a virtual node service module and a node device, wherein the virtual OCF service module is established for the OCF device, different node devices establish different virtual node service modules, the OCF device transmits data through the virtual OCF service module, the virtual node service module is established for the node device, and the node device transmits data through the virtual node service module, wherein the apparatus comprises: An establishing unit, configured to establish a first mapping relationship, wherein the first mapping relationship refers to update mapping information between the software update resource in the virtual OCF service module and the over-the-air download cluster OTA Cluster in the node device, wherein the update mapping information includes a mapping relationship of an update version attribute and a mapping relationship of an update status attribute; an acquisition unit, configured to acquire, when an upgrade event of the node device is detected, a software data packet related to the node device and the first mapping relationship, wherein the upgrade event of the connected node device is triggered by an OCF device, and the triggering method is that the OCF device triggers the virtual OCF service module to perform software upgrade; An upgrading unit is used to upgrade the node device according to the software update data packet and the first mapping relationship.

14. The device according to claim 13, characterized in that The establishing unit is further used for: Establishing the virtual OCF device, wherein the virtual OCF device includes the software update resource; Adding the address information of the associated server of the node device as a first attribute to the software update resource; The signature method of the associated server of the node device is added to the software update resource as a second attribute.

15. The device according to claim 14, characterized in that The upgrading unit is specifically used for: Performing data upgrade processing on the node device according to the software data packet; According to the first mapping relationship, upgrade feedback processing is performed on the status of the node device during the upgrade process.

16. The device according to claim 15, characterized in that The upgrading unit is specifically used for: Acquire the software data packet according to the address information included in the first attribute; When a first software data package update request is received, data upgrade processing is performed on the node device according to the software data package.

17. The device according to claim 16, characterized in that The device also includes: A sending unit is used to send upgrade notification information to the node device through the virtual node service module established for the node device.

18. The device according to claim 17, characterized in that The acquisition unit is specifically used for: Downloading a corresponding software data package from the associated server according to the address information included in the first attribute, and verifying the software data package according to the signature method included in the second attribute; After the verification is completed, the software data packet is divided into N data blocks, each block has M data pages, wherein N and M are positive integers; The upgrading unit is specifically used for: Receiving a first software data packet update request sent by the node device through the virtual node service module, wherein the first software data packet update request includes a block identifier of a required first data block and a page identifier of a corresponding data page; In response to the first software data packet request, a data page under the corresponding data block is sent to the node device through a virtual node service module according to the block identifier and the corresponding page identifier.

19. The device according to any one of claims 16 to 18, characterized in that: The upgrading unit is further used for: According to the update status attribute in the first mapping relationship, mapping the download status of the software data package to the update status attribute in the first mapping relationship; Sending download status feedback information including software data package download status to the virtual OCF service module.

20. The device according to claim 15, characterized in that The upgrading unit is specifically used for: Receiving feedback information sent by the node device through the virtual node service module, the feedback information including: node device software version information and node device software update status information; According to the update version attribute and the update status attribute in the first mapping relationship, the node device software version information is mapped to the update version attribute in the first mapping relationship, and the node device software update status information is mapped to the update status attribute in the first mapping relationship; Sending upgrade status feedback information including the virtual OCF service module update version attribute and the virtual OCF service module update status attribute to the virtual OCF service module.

21. The device according to claim 16, characterized in that The upgrading unit is further used for: When the local storage space meets the software data package storage condition, executing the step of acquiring the software data package according to the address information included in the first attribute; When the local storage space does not meet the software data package storage conditions, a second software data package request is received from the node device through the virtual node service module, wherein the second software data package request includes a block identifier of the required second data block and a page identifier of the corresponding data page, and based on the block identifier and the corresponding page identifier, the data page under the corresponding data block is downloaded from the associated server.

22. The device according to claim 21, characterized in that The upgrading unit is further used for: Verifying the data page under the corresponding data block according to the signature method included in the second attribute; After the verification is completed, in response to the second software data packet request, the data page under the corresponding data block is sent to the node device through the virtual node service module.

23. The device according to claim 14, characterized in that The acquisition unit is further used for: Obtaining device information of the node device according to a second mapping relationship, wherein the second mapping relationship refers to: a device information mapping relationship between the virtual OCF service module and the node device; According to the device information, obtaining the local version information of the node device through the virtual node service module; Acquire service version information on the associated server according to the address information included in the first attribute; In a case where the local version information of the node device is lower than the service version information on the associated server, the step of obtaining the software data package related to the node device is performed.

24. The device according to claim 14, characterized in that The acquisition unit is further used for: Acquire an upgrade request generated when the node device triggers the upgrade event, wherein the upgrade request includes local version information of the node device; Acquire service version information on the associated server according to the address information included in the first attribute; In a case where the local version information of the node device is lower than the service version information on the associated server, the step of obtaining the software data package related to the node device is performed.

25. A smart device, characterized in that: The method comprises a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for executing the steps in the method according to any one of claims 1 to 12.

26. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program enables a computer to execute the method according to any one of claims 1 to 12.

27. A computer program product, characterized in that The computer program product comprises a computer program stored on a computer-readable storage medium, wherein the computer program comprises program instructions. When the program instructions are executed by a computer, the computer is caused to execute the method according to any one of claims 1 to 12.

Citation Information

Patent Citations

  • Equipment upgrading method and device, and configuration point equipment

    CN107347017A

  • Updating method and device of intelligent equipment, electronic equipment and storage medium

    CN110727454A

  • Virtual device systems and methods

    US20170054594A1

  • Apparatus and method for interoperation between internet-of-things devices

    US20180063879A1

  • Software update system, method and computer storage medium

    WO2012025011A1