Equipment upgrading method and device, equipment, storage medium and program product

CN119585708APending Publication Date: 2025-03-07GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202280097900.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2022-07-11
Publication Date
2025-03-07

AI Technical Summary

Technical Problem

The existing IoT device bridging capability upgrade process lacks flexibility. Users need to proactively select upgrade capabilities and versions, and the devices to be upgraded can only obtain the latest version of the upgrade package, which cannot meet the upgrade needs of multiple bridging capabilities and limits bridging. Application scenarios.

Method used

By configuring the device to query the server for information about multiple upgrade packages, and instructing the first device to download the target upgrade package from the server, one is allowed to select one from multiple upgrade packages for upgrade, which improves the flexibility and application scenarios of bridging capability upgrades.

Benefits of technology

It improves the flexibility of bridging capability upgrades, expands application scenarios, allows users to select appropriate upgrade packages according to needs, and enhances device interoperability and management capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119585708A_ABST
    Figure CN119585708A_ABST
Patent Text Reader

Abstract

The invention discloses an equipment upgrading method and device, equipment, a storage medium and a program product, and belongs to the technical field of Internet of Things. The method comprises: sending a query request to a server (S301); the query request is used for querying an upgrade package; the upgrade package is used for upgrading the bridging capability of the first equipment; receiving a query result sent by the server (S302); the query result comprises information of at least one upgrade package; sending a first request to the first device (S303); the first request is used for indicating the first equipment to download a target upgrade package from the server. According to the scheme, the flexibility of upgrading the bridging capability is greatly improved, so that the bridging application scene is expanded.
Need to check novelty before this filing date? Find Prior Art

Description

Device upgrade method, device, equipment, storage medium and program product Technical Field

[0001] The present application relates to the field of Internet of Things technology, and in particular to a device upgrading method, apparatus, device, storage medium and program product. Background Art

[0002] With the continuous development of Internet of Things (IoT) technology, more and more IoT devices have brought great convenience to users' production and life in many fields such as smart homes and industrial production.

[0003] In related technologies, different IoT devices may support different IoT protocols. In order to enable IoT devices supporting different IoT protocols to be interconnected or uniformly managed, IoT devices supporting different IoT protocols can be networked through a bridge device.

[0004] Summary of the Invention

[0005] The present invention provides a device upgrade method, apparatus, device, storage medium, and program product. The technical solution is as follows:

[0006] In one aspect, an embodiment of the present application provides a device upgrade method, the method being performed by a configuration device, the method comprising:

[0007] Sending a query request to the server; the query request is used to query an upgrade package; the upgrade package is used to upgrade the bridging capability of the first device;

[0008] receiving a query result sent by the server; the query result includes information of at least one upgrade package;

[0009] A first request is sent to the first device; the first request is used to instruct the first device to download the target upgrade package from the server; the target upgrade package is one of the at least one upgrade package.

[0010] In one aspect, an embodiment of the present application provides a device upgrade method, the method being performed by a first device, the method comprising:

[0011] receiving a first request sent by a configuration device; the first request is a request sent by the configuration device based on information of a target upgrade package after the configuration device sends a query request to a server and receives a query result sent by the server; the query request is used to query for upgrade packages; the upgrade package is used to upgrade the bridging capability of the first device; the query result includes information of at least one upgrade package; the target upgrade package is one of the at least one upgrade package;

[0012] Downloading the target upgrade package from the server according to the first request.

[0013] In one aspect, an embodiment of the present application provides a device upgrade method, which is executed by a server and includes:

[0014] receiving a query request sent by a configuration device; the query request is used to query an upgrade package; the upgrade package is used to upgrade the bridging capability of the first device;

[0015] Sending a query result to the configuration device; the query result includes information about at least one upgrade package;

[0016] When the first device downloads the target upgrade package from the server, the target upgrade package is sent to the first device; the target upgrade package is indicated to the first device by the configuration device through a first request, and the target upgrade package is one of the at least one upgrade package.

[0017] On the other hand, an embodiment of the present application provides a device upgrading apparatus, the apparatus comprising:

[0018] A sending module, configured to send a query request to a server; the query request is used to query an upgrade package; the upgrade package is used to upgrade the bridging capability of the first device;

[0019] A receiving module, configured to receive a query result sent by the server; the query result includes information about at least one upgrade package;

[0020] The sending module is further used to send a first request to the first device; the first request is used to instruct the first device to download the target upgrade package from the server; the target upgrade package is one of the at least one upgrade package.

[0021] On the other hand, an embodiment of the present application provides a device upgrading apparatus, the apparatus comprising:

[0022] a receiving module, configured to receive a first request sent by a configuration device; the first request is a request sent by the configuration device based on information about a target upgrade package after the configuration device sends a query request to a server and receives a query result sent by the server; the query request is used to query for upgrade packages; the upgrade package is used to upgrade the first device; the query result includes information about at least one upgrade package; the target upgrade package is one of the at least one upgrade package;

[0023] A download module is used to download the target upgrade package from the server according to the first request.

[0024] On the other hand, an embodiment of the present application provides a device upgrading apparatus, the apparatus comprising:

[0025] A receiving module, configured to receive a query request sent by a configuration device; the query request is used to query an upgrade package; the upgrade package is used to upgrade the first device;

[0026] A sending module, configured to send a query result to the configuration device; the query result includes information about at least one upgrade package;

[0027] The sending module is further configured to send the target upgrade package to the first device when the first device downloads the target upgrade package from the server; the target upgrade package is indicated to the first device by the configuration device through a first request, and the target upgrade package is one of the at least one upgrade package.

[0028] On the other hand, an embodiment of the present application provides a computer device, wherein the computer device is implemented as an information reporting device, and the computer device includes a processor, a memory, and a transceiver;

[0029] The memory stores a computer program, and the processor executes the computer program to enable the computer device to implement the above-mentioned device upgrading method.

[0030] On the other hand, an embodiment of the present application provides a computer device, which includes a processor, a memory and a transceiver, wherein the memory stores a computer program, and the computer program is used to be executed by the processor to implement the above-mentioned device upgrade method.

[0031] On the other hand, an embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. The computer program is loaded and executed by a processor to implement the above-mentioned device upgrade method.

[0032] On the other hand, the present application also provides a chip, which is used to run in a computer device so that the computer device executes the above-mentioned device upgrade method.

[0033] In another aspect, the present application provides a computer program product, the computer program product including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the above-mentioned device upgrade method.

[0034] On the other hand, the present application provides a computer program, which is executed by a processor of a computer device to implement the above-mentioned device upgrading method.

[0035] The technical solutions provided in the embodiments of the present application can bring the following beneficial effects:

[0036] The configuration device queries the information of at least one upgrade package from the server, and instructs the first device to download the target upgrade package in the at least one upgrade package from the server; that is, in the above scheme, the configuration device instructs the first device to select an upgrade package from multiple upgrade packages to upgrade to obtain new bridging capabilities, thereby greatly improving the flexibility of bridging capability upgrades in the process of controlling the first device to upgrade to obtain new bridging capabilities, thereby expanding the application scenarios of bridging. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0038] FIG1 is a schematic diagram of a network architecture of the Internet of Things provided by one embodiment of the present application;

[0039] FIG2 is a schematic diagram of the bridging architecture involved in this application;

[0040] FIG3 is a flow chart of a device upgrade method provided by one embodiment of the present application;

[0041] FIG4 is a flow chart of a device upgrade method provided by an embodiment of the present application;

[0042] FIG5 is a flow chart of a device upgrade method provided by one embodiment of the present application;

[0043] FIG6 is a flowchart of a process for obtaining an upgrade package according to an embodiment of the present application;

[0044] FIG7 is a flow chart of a device upgrade method provided by one embodiment of the present application;

[0045] FIG8 is a schematic diagram of a device upgrade process involved in the embodiment shown in FIG7 ;

[0046] FIG9 is a schematic diagram of another device upgrade process involved in the embodiment shown in FIG7 ;

[0047] FIG10 is a block diagram of a device upgrading apparatus provided by one embodiment of the present application;

[0048] FIG11 is a block diagram of a device upgrading apparatus provided by one embodiment of the present application;

[0049] FIG12 is a block diagram of a device upgrading apparatus provided by one embodiment of the present application;

[0050] FIG13 is a schematic diagram of the structure of a computer device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0051] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.

[0052] The network architecture and business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. A person skilled in the art will appreciate that, with the evolution of the network architecture and the emergence of new business scenarios, the technical solutions provided by the embodiments of the present application are equally applicable to similar technical problems.

[0053] Please refer to Figure 1, which shows a schematic diagram of an IoT network architecture provided by one embodiment of the present application. The IoT network architecture may include: IoT devices 110 (shown in Figure 1 as IoT devices 110a, 110b, 110c, and 110d) and a configuration device 120; the network architecture may also include a bridge device 130; and the network architecture also includes a server 140.

[0054] The IoT device 110 may refer to a device in the IoT that is used to provide client functions or server functions corresponding to the IoT protocol.

[0055] For example, the IoT device 110 may be a smart home device, such as a smart switch, a smart lamp, a smart TV, a smart air conditioner, a smart refrigerator, a smart microwave oven, a smart rice cooker, a sweeping robot, and the like.

[0056] Alternatively, the IoT device 110 may be an industrial production equipment, such as a lathe, an industrial robot, a solar panel, a wind turbine, and the like.

[0057] Alternatively, the IoT device 110 may be a commercial service device, such as an unmanned vending machine, etc.

[0058] Alternatively, the IoT device 110 may be an intelligent monitoring device, such as a monitoring camera, an infrared sensor, a sound sensor, a temperature sensor, and the like.

[0059] In one possible implementation, the configuration device 120 is a user-side terminal device. For example, the configuration device 120 may be a smart controller, a smart remote control, a smartphone, a tablet computer, a smart watch, a smart TV, a smart speaker, a smart switch, a gateway, or the like. Alternatively, the configuration device 120 may be a personal computer, such as a desktop computer, a laptop computer, or a personal workstation.

[0060] In another possible implementation, the configuration device 120 is a client entity (which may be a virtual entity) running on the terminal device. For example, the configuration device 120 may be an application (Application, APP) running in the terminal device for accessing, controlling, and managing the IoT device.

[0061] The bridge device 130 is used to enable interaction between two devices supporting different IoT protocols. The bridge device 130 provides information conversion and transmission services between IoT devices 110 supporting different IoT protocols, or between IoT devices 110 supporting different IoT protocols and the configuration device 120.

[0062] The bridge device 130 may be a device dedicated to bridging, or the bridge device 130 may be an intelligent device with a bridging function, such as a gateway or a router.

[0063] The server 140 may be a server deployed on the network side. The server 140 may store an upgrade package for upgrading the device, and the upgrade package may enable the device to obtain new bridging capabilities through the upgrade.

[0064] In an embodiment of the present application, the above-mentioned IoT device 110, configuration device 120, and bridge device 130 can be electronic devices that meet the same or different IoT protocols. For example, they can be electronic devices that meet the Matter protocol (or the Connected Home over IP Working Group (CHIP) project) under the Connectivity Standards Alliance (CSA) (or Zigbee Alliance).

[0065] In FIG1 , when the IoT device 110 a and the IoT device 110 b support the same protocol specification, a secure connection may be established between the IoT device 110 a and the IoT device 110 b , for example, a secure connection may be established based on the Matter specification.

[0066] When the IoT device 110 c and the IoT device 110 d support different protocol specifications, for example, the IoT device 110 c is a Zigbee device and the IoT device 110 d is a Matter device, the IoT device 110 c and the IoT device 110 d may be connected via the bridge device 130 .

[0067] Please refer to Figure 2, which shows a schematic diagram of the bridging architecture involved in this application. As shown in Figure 2, taking the bridging framework under the Matter protocol as an example, in the current bridge solution of the Internet of Things, a bridge manufacturer application 201 (also called bridge Manufacturer App, which is a manufacturer's privately implemented App) is required to complete the bridging function of heterogeneous devices (i.e., non-Matter protocol devices, such as Zigbee devices) such as bridged sub-devices 202 (also called Bridged Device, corresponding to BD1 to BD3 in Figure 2), wherein the Bridged Device in Figure 2 can be a physical Internet of Things device or a logical device; the bridge Manufacturer App controls the generation of corresponding Matter devices 204 (also called Matter Device, corresponding to MD1 to MD4 in Figure 2) for devices such as BD1 on the bridge device 203 (Bridge), so that the App that supports the Matter protocol (i.e., Matter App 1 to Matter App 3) can view and control the bridged sub-device 202 through the bridge device 203, wherein the Matter Device in Figure 2 can be a logical device.

[0068] Among them, the implementation method of generating corresponding Matter devices 204 for devices such as BD1 can be: generating corresponding endpoints on the Bridge data model, one or more endpoints corresponding to one Matter Device; therefore, the Bridge data model includes both the endpoints of its own functions (which can be called endpoint0) and the endpoints corresponding to the heterogeneous devices it bridges.

[0069] In a bridging solution described in this application, the bridging capability is tightly coupled with the bridging device, meaning that the bridging capability of the bridging device is already installed at the factory. However, devices supporting different IoT protocols require different bridging capabilities for communication. This means that if a matching bridging device is not pre-installed in the IoT, communication between the IoT device and other heterogeneous IoT devices cannot be established via bridging, thus limiting the application scenarios of bridging.

[0070] In this regard, the present application proposes a solution for upgrading existing IoT devices or bridge devices so that the IoT devices or bridge devices can support new bridging capabilities.

[0071] Device upgrades can be implemented via OTA (Over the Air). OTA, also known as over-the-air (OTA) technology, refers to the ability of a server to connect to a device via a communication network and send the upgrade package or data to the device. An OTA device upgrade solution can be as follows:

[0072] S1, OTA Provider (usually a cloud server) announces its existence.

[0073] S2, OTA Requestor (requester, usually the device to be upgraded) requests to download the software upgrade package.

[0074] S3, OTA Provider queries the latest software upgrade package.

[0075] The OTA Provider does not permanently store actual software upgrade packages. Device manufacturers provide upgrade packages. When a new software upgrade package is available, it is registered with an upgrade package management server. The OTA Provider can query the upgrade package management server for information about the upgrade package, including but not limited to the version, applicable device model, and applicable device software version. During this step, the OTA Provider can search for the latest available upgrade package based on the OTA Requester's current software version.

[0076] S4: OTA Provider sends a Busy response message to OTA Requestor, indicating that the upgrade package cannot be provided temporarily and needs to be downloaded from the cache.

[0077] S5: OTA Provider obtains the upgrade package.

[0078] S6: OTA Requestor requests the software upgrade package again.

[0079] S7: Return the software upgrade package download address to the OTA Requestor.

[0080] S8, start downloading the software upgrade package.

[0081] S9: Request and execute the software upgrade package.

[0082] S10: After the upgrade is completed, the OTA Provider is notified of the upgrade result.

[0083] In the scenario of upgrading bridge capabilities, users are usually required to actively select which bridge capability to upgrade and which version of bridge capability to upgrade, etc. However, in the above solution, the device to be upgraded (OTA Requestor) can only obtain the latest version of the upgrade package from the cloud (OTA Provider), which is not suitable for the scenario of upgrading bridge capabilities.

[0084] For the above solution, subsequent embodiments of the present application provide a device upgrade solution, in which the server can provide information about the upgrade package available for the first device to the configuration device, and the configuration device controls the first device to obtain a certain upgrade package to upgrade and obtain new bridging capabilities, thereby greatly improving the flexibility of bridging capability upgrades and expanding the application scenarios of bridging.

[0085] Please refer to FIG3 , which shows a flow chart of a device upgrade method provided by one embodiment of the present application. The method may be performed by a configuration device, for example, the configuration device may be the configuration device 120 in the network architecture shown in FIG1 . The method may include the following steps:

[0086] Step 301: Send a query request to a server; the query request is used to query an upgrade package; the upgrade package is used to upgrade the bridging capability of the first device.

[0087] In a possible implementation, the configuration device may query the server for all available upgrade packages.

[0088] Alternatively, the configuration device may query the server for upgrade packages that meet certain conditions; for example, the configuration device may query the server for upgrade packages available for one or more types of devices, and / or the configuration device may query the server for upgrade packages corresponding to one or more bridging capabilities.

[0089] Step 302: Receive the query result sent by the server; the query result includes information about at least one upgrade package.

[0090] In an embodiment of the present application, after receiving the above query request, the server may send information of the upgrade package corresponding to the query request to the configuration device.

[0091] The information of the upgrade package may include identification information of the upgrade package, corresponding bridge capability information, version number, applicable device model, download address, etc.

[0092] Step 303: Send a first request to the first device; the first request is used to instruct the first device to download a target upgrade package from the server; the target upgrade package is one of the at least one upgrade package.

[0093] In an embodiment of the present application, the target upgrade package may be an upgrade package selected by the configuration device from at least one upgrade package based on information of the at least one upgrade package.

[0094] For example, the target upgrade package may be an upgrade package selected by the configuration device from at least one upgrade package according to a preset selection policy; or, the target upgrade package may be an upgrade package selected by the configuration device from at least one upgrade package according to a user selection operation.

[0095] To sum up, in the solution shown in the embodiment of the present application, the configuration device queries the information of at least one upgrade package from the server, and instructs the first device to download the target upgrade package in the at least one upgrade package from the server; that is, in the above solution, the configuration device instructs the first device to select an upgrade package from multiple upgrade packages to upgrade to obtain new bridging capabilities, thereby greatly improving the flexibility of the bridging capability upgrade in the process of controlling the first device to upgrade to obtain new bridging capabilities, thereby expanding the application scenarios of bridging.

[0096] Please refer to FIG4 , which shows a flow chart of a device upgrade method provided by an embodiment of the present application. The method may be performed by a first device, for example, the first device may be the configuration device 120 in the network architecture shown in FIG1 . The method may include the following steps:

[0097] Step 401, receiving a first request sent by the configuration device; the first request is a request sent by the configuration device based on the information of the target upgrade package after the configuration device sends a query request to the server and receives the query result sent by the server; the query request is used to query the upgrade package; the upgrade package is used to upgrade the first device; the query result contains information about at least one upgrade package; the target upgrade package is one of the at least one upgrade package.

[0098] Step 402: Download the target upgrade package from the server according to the first request.

[0099] To sum up, in the solution shown in the embodiment of the present application, the configuration device queries the information of at least one upgrade package from the server, and instructs the first device to download the target upgrade package in the at least one upgrade package from the server; that is, in the above solution, the configuration device instructs the first device to select an upgrade package from multiple upgrade packages to upgrade to obtain new bridging capabilities, thereby greatly improving the flexibility of the bridging capability upgrade in the process of controlling the first device to upgrade to obtain new bridging capabilities, thereby expanding the application scenarios of bridging.

[0100] Please refer to FIG5 , which shows a flow chart of a device upgrade method provided by one embodiment of the present application. The method may be executed by a server, for example, the server may be server 140 in the network architecture shown in FIG1 . The method may include the following steps:

[0101] Step 501: Receive a query request sent by a configuration device; the query request is used to query an upgrade package; the upgrade package is used to upgrade a first device.

[0102] Step 502: Send the query result to the configuration device; the query result includes information about at least one upgrade package.

[0103] Step 503: When the first device downloads the target upgrade package from the server, the target upgrade package is sent to the first device; the target upgrade package is indicated to the first device by the configuration device through the first request, and the target upgrade package is one of the at least one upgrade package.

[0104] To sum up, in the solution shown in the embodiment of the present application, the configuration device queries the information of at least one upgrade package from the server, and instructs the first device to download the target upgrade package in the at least one upgrade package from the server; that is, in the above solution, the configuration device instructs the first device to select an upgrade package from multiple upgrade packages to upgrade to obtain new bridging capabilities, thereby greatly improving the flexibility of the bridging capability upgrade in the process of controlling the first device to upgrade to obtain new bridging capabilities, thereby expanding the application scenarios of bridging.

[0105] Through the solutions shown in Figures 3 to 5 of the present application, the configuration device can query the server for information on each upgrade package for upgrading the bridging capability, and instruct the first device to obtain one of the upgrade packages from the server for upgrading.

[0106] Please refer to Figure 6, which shows a process framework diagram for obtaining an upgrade package during a device upgrade process provided by an embodiment of the present application. In one possible application scenario, as shown in Figure 6, the configuration device 61 in the Internet of Things queries the server 62 for information about various upgrade packages that can be used to upgrade the bridge device or the Internet of Things device so that the device obtains new bridging capabilities (step S1); then, the information about each upgrade package is displayed to the user, and based on the user's selection operation, one upgrade package is selected from the various upgrade packages as the target upgrade package (step S2); thereafter, the configuration device 61 instructs the first device 63 to obtain the target upgrade package (step S3); and the first device 63 downloads the target upgrade package from the server 62 according to the instruction of the configuration device 61 (step S4).

[0107] Please refer to FIG7 , which shows a flow chart of a device upgrade method provided by an embodiment of the present application. The method can be interactively executed by a configuration device, a first device, and a server. For example, the configuration device can be the configuration device 120 in the network architecture shown in FIG1 , the first device can be the bridge device 130 and / or one of the IoT devices 110 in the network architecture shown in FIG1 ; the server can be the server 140 in the network architecture shown in FIG1 ; the method can include the following steps:

[0108] Step 701: The configuration device obtains identification information of a server while querying the bridging capability obtained by the first device through upgrading.

[0109] In one possible implementation, the configuration device may send a first query message, which is used to query devices that support upgraded bridging capabilities; accordingly, the query response device may receive a first response message; the query response device may send a first response message to the configuration device; the first response message is used to indicate that the first device supports upgraded bridging capabilities.

[0110] The query response device may be the first device, or a bridging service management device other than the first device. The bridging service management device may be a cloud device or a local device.

[0111] Optionally, the first query message may be used to query devices that support upgrading the bridging capability between any two IoT protocols; or, the first query message may also be used to query devices that support upgrading the bridging capability between two specified IoT protocols.

[0112] The identification information of the server may be carried in the first response message.

[0113] For example, the configuration device can query the surrounding IoT devices or bridge devices for upgradeable bridging capabilities through broadcasting. Accordingly, the IoT devices or bridge devices that receive the broadcast and have upgradeable bridging capabilities can return a query response to the configuration device. During this process, the IoT device or bridge device can send the identification information of the server that provides the upgrade package to itself to the configuration device, for example, carry the server's identification information in the query response and send it to the configuration device.

[0114] For another example, the configuration device may also query the bridging capability management device about the bridging capability that the first device can obtain through upgrading. For example, the first device may register with the bridging capability management device in advance, and send information about the bridging capability that the first device can obtain through upgrading to the bridging capability management device for storage and management. After the bridging capability management device receives the request from the configuration device to query about the bridging capability that the first device can obtain through upgrading, it may send relevant information about the bridging capability that the first device can obtain through upgrading to the configuration device, and the above-mentioned relevant information may carry identification information of the server that provides the upgrade package for the first device. Optionally, the above-mentioned bridging capability management device may be a cloud server (which may be the server in the embodiment of the present application or other servers), or the above-mentioned bridging capability management device may also be an offline device (such as a home gateway) in the same Internet of Things as the first device.

[0115] In one possible implementation, the configuration device may send a second query message, where the second query message is used to query devices that support upgrading the first bridging capability; the first bridging capability is a bridging capability between the first Internet of Things protocol and other Internet of Things protocols; accordingly, the configuration device may receive a second response message; the second response message is used to indicate that the first device supports upgrading the first bridging capability, and the first bridging capability supported by the first device for upgrading is a bridging capability between the first Internet of Things protocol and the second Internet of Things protocol.

[0116] The second response message may be a response message sent by the first device, or a response message sent by a bridging service management device other than the first device.

[0117] For example, when the second response message is a response message sent by the first device, the first device may receive the second query message sent by the configuration device, and send the second response message to the configuration device if the first device supports upgrading the first bridging capability.

[0118] For another example, when the second response message is a response message sent by a bridging service management device, the bridging service management device may maintain capability information of each device in the Internet of Things; the capability information includes supporting upgraded bridging capabilities; the bridging service management device may receive the second query message sent by the configuration device, and when the first device among the various devices supports upgrading the first bridging capability, send a second response message to the configuration device.

[0119] That is, in the embodiment of the present application, the second query message can also be used to query devices that support upgrading the bridging capability between a specific IoT protocol (which can be referred to as the source protocol) and any other IoT protocol (which can be referred to as the target protocol). Optionally, in this case, the configuration device can start from the IoT protocol corresponding to the target device, use the target protocol found in each round of query as the source protocol for the next round of query, and perform N rounds of queries until the specified IoT protocol is found, and establish an indirect bridge path between the IoT protocol corresponding to the target and the specified IoT protocol.

[0120] The identification information of the server may be carried in the second response message.

[0121] The identification information of the server may be the network address of the server and / or the ID (Identity) of the server.

[0122] Step 702: The configuration device sends a query request to the server according to the identification information of the server; the server receives the query request.

[0123] The query request is used to query an upgrade package; the upgrade package is used to upgrade the bridging capability of the first device.

[0124] In an embodiment of the present application, when the configuration device needs to control the first device to upgrade and obtain new bridging capabilities, it can send a query request to the server based on the obtained identification information of the server.

[0125] Step 703: The server sends the query result to the configuration device; the configuration device receives the query result.

[0126] The query result includes information about at least one upgrade package.

[0127] In a possible implementation, after receiving the query request sent by the configuration device, the server may send information about each downloadable upgrade package to the configuration device.

[0128] In another possible implementation, the query request includes device model information of the first device; the server can send information about at least one upgrade package that matches the device model of the first device to the configuration device; that is, the above query result includes information about at least one upgrade package that matches the device model of the first device.

[0129] In an embodiment of the present application, the configuration device may query the server for information about each upgrade package that can be used by the first device.

[0130] In another possible implementation, in addition to the device model information of the first device included in the query request, target bridging capability information may also be included; the target bridging capability information is used to indicate the ability to provide bridging services for the target device; accordingly, the server can send information about at least one upgrade package that matches the device model of the first device and the target bridging capability information to the configuration device; that is, the above query result contains information about at least one upgrade package that matches the device model of the first device and the target bridging capability information.

[0131] In an embodiment of the present application, the configuration device may query the server for information about various upgrade packages that can be used by the first device and whose target IoT protocol for bridging is a specified IoT protocol.

[0132] Step 704: The configuration device sends a first request to the first device according to the information of the target upgrade package; the first device receives the first request.

[0133] The target upgrade package is one of at least one upgrade package queried from the configuration device.

[0134] In a possible implementation, the target upgrade package may be an upgrade package specified by a user from at least one upgrade package.

[0135] For example, after the configuration device obtains the information of the at least one upgrade package, the information of the at least one upgrade package can be displayed in the upgrade management interface of the application (APP), and the user selects an upgrade package as the target upgrade package based on the information of the at least one upgrade package.

[0136] In another possible implementation, the target upgrade package may be selected by the configuration device from at least one upgrade package according to a pre-set selection policy. For example, the user may pre-set the priority order for the configuration device to prioritize upgrade packages as follows: newly released official version upgrade package → test version upgrade package → old version upgrade package; wherein the newly released official version upgrade package may refer to an official version upgrade package released within a specified time period (such as within the last three months), and the old version upgrade package may refer to an official version upgrade package released outside the specified time period (such as three months ago). After the configuration device obtains information about at least one upgrade package, it will prioritize the newly released official version upgrade package as the target upgrade package. If there is no newly released official version upgrade package, the test version upgrade package will be selected. If there is still no test version upgrade package, the old version upgrade package will be selected.

[0137] After the configuration device determines the target upgrade package, it can send the first request to the first device.

[0138] Step 705: The first device downloads the target upgrade package from the server according to the first request; correspondingly, the server sends the target upgrade package to the first device.

[0139] In the embodiment of the present application, after the first device receives the first request sent by the configuration device, it can download the target upgrade package from the server for subsequent upgrade.

[0140] In a possible implementation, the configuration device may further send upgrade package indication information to the first device; the upgrade package indication information includes at least one of the following information: a download address of a target upgrade package; or identification information of the target upgrade package.

[0141] Correspondingly, the first device receives the upgrade package indication information sent by the configuration device; when downloading the target upgrade package from the server according to the first request, the configuration device can download the target upgrade package from the server according to the first request through the upgrade package indication information.

[0142] In an embodiment of the present application, the upgrade package indication information may be carried by the first request, or the upgrade package indication information may be sent independently of the first request.

[0143] In one possible implementation, in addition to sending a first request to the first device, the configuration device may also send a second request to the server. The second request is used to request credentials for the first device to download the upgrade package from the server. Accordingly, the server receives the second request and, based on the second request, sends the first credential to the configuration device. The first credential is used by the first device to download the target upgrade package from the first server based on the first credential. The configuration device receives the first credential sent by the server and, when instructing the first device to obtain the target upgrade package, sends the first credential to the first device, so that the first device downloads the target upgrade package from the server based on the first credential. Accordingly, when the first device downloads the target upgrade package from the server based on the first request, it can download the target upgrade package from the server based on the first request using the first credential.

[0144] In an embodiment of the present application, in order to ensure the security of the upgrade package download, the configuration device can apply for a first credential for the first device to download the upgrade package from the server, and provide the first credential to the first device. The first device requests the server to download the target upgrade package based on the first credential. During this process, the server can verify the download request of the first device based on the first credential.

[0145] In one possible implementation, the second request may include identification information of the target upgrade package. That is, after determining the target upgrade package, the configuration device may notify the server that the configuration device wants to request an upgrade package for other devices. At this time, the server may generate a first credential for downloading the target upgrade package and return it to the configuration device.

[0146] In a possible implementation, the first credential includes credential information; the credential information includes at least one of the following information:

[0147] Downloadable certificate of the target upgrade package; download address of the target upgrade package; identification information of the target upgrade package; identification information of the configuration device; random string; or download time limit.

[0148] The identification information of the configuration device may include the hardware identification of the configuration device, or the identification of an APP installed in the configuration device.

[0149] In a possible implementation, the first credential may be a credential generated by encrypting credential information using a public key of the first device.

[0150] That is, the server may encrypt the credential information using the public key of the first device to obtain the first credential.

[0151] For example, in an embodiment of the present application, before receiving the first credential sent by the server, the configuration device may also send the identification information of the first device to the server to notify the server that the configuration device is requesting an upgrade package for the first device. Accordingly, after the server receives the device identification of the first device sent by the configuration device, it can obtain the public key of the first device based on the device identification of the first device. For example, the first device can query the public key (i.e., the public key of the first device) that is pre-stored corresponding to the device identification of the first device based on the device identification of the first device.

[0152] In one possible implementation of the embodiment of the present application, when the first credential is generated by encrypting credential information using the public key of the first device, a process in which the first device downloads the target upgrade package from the server using the first credential according to the first request may include:

[0153] Decrypting the first credential using the public key of the first device to obtain credential information;

[0154] Encrypting the credential information and the identification information of the first device using the public key of the server to obtain a second credential;

[0155] Sending a first download request including a second credential to the server;

[0156] Receive the target upgrade package sent by the server.

[0157] Accordingly, for the server, when the first credential is a credential generated by encrypting credential information using the public key of the first device, when the first device downloads the target upgrade package from the server, the process of the server sending the target upgrade package to the first device may include:

[0158] Receiving a first download request sent by a first device; the first download request includes a second credential;

[0159] Decrypting the second credential using the public key of the server to obtain credential information and identification information of the first device;

[0160] Performing a legitimacy check on the credential information and the identification information of the first device;

[0161] After the validity of the credential information and the identification information of the first device is verified, the target upgrade package is sent to the first device.

[0162] Among them, there are multiple ways for the server to verify the legitimacy of the credential information and the identification information of the first device. In one possible implementation method, the server can first determine whether the identification information of the first device is legal, such as determining whether a first credential has been generated for the first device before based on the identification information of the first device; if the identification information of the first device is legal, then continue to determine whether the credential information is legal, such as determining whether the credential information is consistent with the information in the first credential previously generated for the first device, and checking whether the current moment is within the download time limit, etc. If the credential information is consistent with the information in the first credential previously generated for the first device, and the current moment is within the download time limit, then it is determined that the credential information is legal.

[0163] In one possible implementation, the first device encrypts the credential information and the identification information of the first device through the public key of the server. When obtaining the second credential, the legitimacy of the credential information can be verified. After the legitimacy of the credential information is verified, the credential information and the identification information of the first device are encrypted through the public key of the server to obtain the second credential.

[0164] In an embodiment of the present application, after the first device receives the first request and the first credential sent by the configuration device, it can also perform a validity check on the credential information in the first credential, and execute subsequent steps after the validity check passes.

[0165] For example, the first device may check whether the download address of the target upgrade package is a safe address, check whether the current time is within the download time limit, and so on.

[0166] In another possible implementation of the embodiment of the present application, the process of the first device downloading the target upgrade package from the server using the first credential according to the first request may also include:

[0167] sending a second download request including the first credential to the server;

[0168] Receive the target upgrade package sent by the server.

[0169] Accordingly, when the first device downloads the target upgrade package from the server, the process of the server sending the target upgrade package to the first device may include:

[0170] Receiving a second download request sent by a second device; the second download request includes the first credential;

[0171] Performing a validity check on the first certificate;

[0172] After the validity of the first credential is verified, the target upgrade package is sent to the first device.

[0173] In the embodiment of the present application, the first device may also directly use the first credential to request the server to download the target upgrade package. That is, in this process, the first device transparently transmits the first credential.

[0174] The process of the server verifying the validity of the first certificate is similar to the process of the server verifying the certificate information in the second certificate, and will not be repeated here.

[0175] In a possible implementation, the second download request further includes identification information of the target upgrade package.

[0176] Accordingly, this plan also includes:

[0177] The server generates binding information, where the binding information is used to indicate that there is a binding relationship between the identification information of the first device and the target upgrade package.

[0178] The process of generating the binding information may be a process performed after the configuration device sends the identification information of the target upgrade package to the server (for example, via the second request).

[0179] In one possible implementation, after the server verifies the legitimacy of the first credential and passes it, it can query the pre-generated binding information based on the identification information of the first device corresponding to the second download request to determine the target upgrade package to be downloaded, and send the target upgrade package to the first device.

[0180] Accordingly, after receiving the second download request, the server performs a validity check on the identification information of the target upgrade package according to the binding information;

[0181] The process of sending the target upgrade package to the first device after the validity of the first credential is verified may include:

[0182] After the server passes the validity verification of the first credential and the validity verification of the identification information of the target upgrade package, the server sends the target upgrade package to the first device.

[0183] The server's verification process of the legitimacy of the identification information of the target upgrade package may include:

[0184] The server determines whether a binding relationship exists locally between the identification information of the target upgrade package and the identification information of the first device. If such a binding relationship exists, it determines that the legitimacy check of the identification information of the target upgrade package has passed.

[0185] Step 706: The first device upgrades the bridging capability based on the target upgrade package.

[0186] In the embodiment of the present application, the first device completes downloading the target upgrade package, that is, it can run the target upgrade package to complete the upgrade of the device.

[0187] In one possible implementation, the first device sends a download completion response to the configuration device when the download of the target upgrade package is completed; the above-mentioned process of running the target upgrade package to perform device upgrade may include: running the target upgrade package to perform device upgrade when an upgrade instruction sent by the configuration device is received.

[0188] Correspondingly, on the configuration device side, a download completion response sent by the first device can be received; the download completion response is used to indicate that the first device has completed the download of the target upgrade package; then, an upgrade indication is sent to the first device, and the upgrade indication is used to instruct the first device to run the target upgrade package to perform a device upgrade.

[0189] Among them, the above-mentioned upgrade indication can be triggered by the user's upgrade confirmation operation. For example, the configuration device displays a prompt message based on the download completion response to prompt the user whether to control the first device to upgrade. When the user executes the operation to determine whether to control the upgrade of the first device, the configuration device sends the upgrade indication to the first device.

[0190] For example, taking the bridge device of the first device, the configuration device is installed with an APP that controls the bridge device (device_bridge) for upgrading, and the above-mentioned server is the server corresponding to the OTA store (OTA_shop) as an example, please refer to Figure 8, which shows a schematic diagram of a device upgrade process involved in an embodiment of the present application. As shown in Figure 8, the device upgrade process is as follows:

[0191] S81, the App sends a bridge capability query broadcast message, which carries one or more of the following parameters: target protocol, target device model, target device manufacturer, and other information.

[0192] S82: After receiving the above message, Device_bridge replies with a bridge capability query response message. This response message may carry the address or identifier of the application store where the upgrade package is located. The application store address may also be obtained through other means. For example, if the address of OTA_shop is registered on a public cloud that uses blockchain technology, the app can directly query the address of OTA_shop based on the device vendor identifier, device identifier, or device model identifier.

[0193] S83, the App accesses OTA_shop to search for a suitable upgrade package. The App completes authentication (such as payment) by displaying the upgrade packages (services) that can be selected on the page.

[0194] The app may need to specify that it is requesting a bridge upgrade package for device_bridge. For example, the app can include the device_bridge model information and bridge service information, such as the target protocol, in its access request. During this process, OTA_shop can use the bridge's identification information to obtain the device_bridge's public key information to complete token generation in subsequent steps. During this process, OTA_shop can also send its public key information to device_bridge. Alternatively, device_bridge may also obtain OTA_shop's public key information in advance.

[0195] S84: After OTA_shop confirms that the app can obtain the upgrade package, it must issue a download credential, Token1, to the app. Token1 can be generated by encrypting one or more of the following: download credential, upgrade package download address, upgrade package identifier, app identifier, random string, download time limit, etc., using the public key of device_bridge. Alternatively, the above information can be sent separately by OTA_shop to the app.

[0196] S85, App sends an upgrade request to Device_bridge. Token 1 may be written into the upgrade request. Optionally, the upgrade request may also include information such as the upgrade package download address and upgrade package identifier.

[0197] S86: After receiving the above information, Device_bridge first decrypts it using its stored secret key (the private key corresponding to its own public key) to confirm the legitimacy of the content. Device_bridge can also encrypt the decrypted information and its credentials (such as Device_bridge's ID) using OTA_shop's public key to generate Token2.

[0198] S87, Device_bridge sends a request to download the upgrade package to OTA_shop or the upgrade package download address, and the request carries token2.

[0199] OTA_shop is a logical concept that allows for separate download addresses for upgrade packages. This means that OTA_shop is responsible for requesting upgrade packages and providing them at a specific address. OTA_shop can also be a software store maintained by another ecosystem.

[0200] S88, after receiving the request, OTA_shop uses its private key to decrypt and verify token2.

[0201] S89, OTA_shop sends the upgrade package to Device_bridge.

[0202] S810, Device_bridge notifies APP that downloading of the upgrade package is complete.

[0203] S811, APP instructs Device_bridge to start the upgrade operation.

[0204] For another example, taking the bridge device of the first device, the configuration device is installed with an APP that controls the bridge device (device_bridge) for upgrading, and the above-mentioned server is the server corresponding to the OTA store (OTA_shop), please refer to Figure 9, which shows a schematic diagram of another device upgrade process involved in an embodiment of the present application. As shown in Figure 9, the device upgrade process is as follows:

[0205] S91, the App sends a bridge capability query broadcast message, which carries one or more of the following parameters: target protocol, target device model, target device manufacturer, and other information.

[0206] S92: After receiving the above message, Device_bridge replies with a bridge capability query response message, which may carry the address or identifier of the application store where the upgrade package is located. The address of the application store may also be obtained through other means.

[0207] S93, App accesses OTA_shop to search for a suitable upgrade package. App completes authentication by displaying the upgrade packages (services) it can choose on the page. Optionally, AppOTA_shop specifies that it is requesting a bridge upgrade package for device_bridge.

[0208] S94, OTA_shop provides information about a suitable upgrade package based on the conditions.

[0209] S95, the APP notifies the OTA_shop of the target device Device_bridge where the target upgrade package is planned to be downloaded: the identifier of the Device_bridge.

[0210] S96, OTA_shop completes the binding between the identifier of Device_bridge and the identifier of the target upgrade package to be downloaded. After completion, the download credential of the upgrade package (corresponding to the first credential mentioned above, which can be token1) is returned to the APP.

[0211] S97, APP sends an upgrade request to Device_bridge, which may carry: upgrade package identifier and download certificate.

[0212] S98, Device_bridge requests OTA_shop to download the upgrade package, carrying the above download credentials (such as token1).

[0213] S99, after OTA_shop passes verification, it sends the upgrade package to Device_bridge.

[0214] S910, Device_bridge notifies the APP that the upgrade package download is complete.

[0215] S911, APP instructs Device_bridge to start the upgrade operation.

[0216] To sum up, in the solution shown in the embodiment of the present application, the configuration device queries the information of at least one upgrade package from the server, and instructs the first device to download the target upgrade package in the at least one upgrade package from the server; that is, in the above solution, the configuration device instructs the first device to select an upgrade package from multiple upgrade packages to upgrade to obtain new bridging capabilities, thereby greatly improving the flexibility of the bridging capability upgrade in the process of controlling the first device to upgrade to obtain new bridging capabilities, thereby expanding the application scenarios of bridging.

[0217] Please refer to Figure 10, which shows a block diagram of a device upgrade apparatus provided by an embodiment of the present application. The device upgrade apparatus 1000 has the function of implementing the method shown in Figure 3 or Figure 7 above, which is performed by the configuration device. As shown in Figure 10, the apparatus may include:

[0218] The sending module 1001 is configured to send a query request to a server; the query request is used to query an upgrade package; the upgrade package is used to upgrade the bridging capability of the first device;

[0219] Receiving module 1002, configured to receive a query result sent by the server; the query result includes information about at least one upgrade package;

[0220] The sending module 1001 is further used to send a first request to the first device according to the information of the target upgrade package; the first request is used to instruct the first device to download the target upgrade package from the server; the target upgrade package is one of the at least one upgrade package.

[0221] In a possible implementation, the query request includes device model information of the first device;

[0222] The query result includes information about the at least one upgrade package that matches the device model of the first device.

[0223] In a possible implementation, the query request further includes target bridging capability information; the target bridging capability information is used to indicate the capability of providing bridging services for the target device;

[0224] The query result includes information of the at least one upgrade package that matches the device model of the first device and the target bridging capability information.

[0225] In a possible implementation, the sending module is further configured to send a second request to the server; the second request is used for the first device to request the server for a credential to download the upgrade package;

[0226] The receiving module is further configured to receive a first credential sent by the server;

[0227] The sending module is further configured to send the first credential to the first device, where the first credential is used by the first device to download the target upgrade package from the server according to the first credential.

[0228] In one possible implementation, the first credential includes credential information; the credential information includes at least one of the following information:

[0229] The downloadable certificate of the target upgrade package; the download address of the target upgrade package; the identification information of the target upgrade package; the identification information of the configuration device; a random string; or a download time limit.

[0230] In a possible implementation, the first credential is generated by encrypting the credential information using a public key of the first device.

[0231] In a possible implementation, the sending module is further configured to send upgrade package indication information to the first device; the upgrade package indication information includes at least one of the following information:

[0232] The download address of the target upgrade package; or the identification information of the target upgrade package.

[0233] In a possible implementation, the sending module is further configured to send identification information of the first device to the server.

[0234] In a possible implementation, the apparatus further includes:

[0235] an acquisition module, configured to acquire identification information of the server during a process of querying the bridging capability obtained by the first device through upgrading;

[0236] The sending module is configured to send the query request to the server according to the identification information of the server.

[0237] In a possible implementation, the receiving module is further configured to receive a download completion response sent by the first device; the download completion response is used to indicate that the first device has completed downloading the target upgrade package;

[0238] The sending module is further configured to send an upgrade instruction to the first device, where the upgrade instruction is used to instruct the first device to upgrade its bridging capability based on the target upgrade package.

[0239] Please refer to Figure 11, which shows a block diagram of a device upgrade apparatus provided by one embodiment of the present application. The apparatus has the function of implementing the method shown in Figure 4 or Figure 7 above, which is performed by the first device. As shown in Figure 11, the apparatus may include:

[0240] Receiving module 1101 is configured to receive a first request sent by a configuration device; the first request is a request sent by the configuration device based on information about a target upgrade package after the configuration device sends a query request to a server and receives a query result from the server; the query request is used to query for an upgrade package; the upgrade package is used to upgrade the bridging capability of the first device; the query result includes information about at least one upgrade package; the target upgrade package is one of the at least one upgrade package;

[0241] The download module 1102 is configured to download the target upgrade package from the server according to the first request.

[0242] In a possible implementation, the receiving module is further configured to receive a first credential sent by the configuration device;

[0243] The download module is configured to download the target upgrade package from the server using the first credential according to the first request.

[0244] In a possible implementation, the first credential includes credential information; the credential information includes at least one of the following information:

[0245] The downloadable certificate of the target upgrade package; the download address of the target upgrade package; the identification information of the target upgrade package; the identification information of the configuration device; a random string; or a download time limit.

[0246] In a possible implementation, the first credential is a credential generated by encrypting the credential information using a public key of the first device;

[0247] The download module is used to:

[0248] Decrypting the first credential using the public key of the first device to obtain the credential information;

[0249] Encrypting the credential information and the identification information of the first device using a public key of the server to obtain a second credential;

[0250] Sending a first download request including the second credential to the server;

[0251] Receive the target upgrade package sent by the server.

[0252] In a possible implementation, the download module is used to:

[0253] Performing a validity check on the credential information;

[0254] After the legitimacy of the credential information is verified, the credential information and the identification information of the first device are encrypted using the public key of the server to obtain the second credential.

[0255] In a possible implementation, the download module is used to:

[0256] sending a second download request including the first credential to the server;

[0257] Receive the target upgrade package sent by the server.

[0258] In a possible implementation, the second download request further includes identification information of the target upgrade package.

[0259] In a possible implementation, the apparatus further includes:

[0260] The receiving module is further configured to receive upgrade package indication information sent by the configuration device; the upgrade package indication information includes at least one of the following information: a download address of the target upgrade package; or identification information of the target upgrade package;

[0261] The download module is configured to download the target upgrade package from the server according to the first request and through the upgrade package indication information.

[0262] In a possible implementation, the apparatus further includes: an upgrading module, configured to upgrade the bridging capability based on the target upgrading package.

[0263] In a possible implementation, the apparatus further includes:

[0264] A sending module, configured to send a download completion response to the configuration device when downloading of the target upgrade package is completed;

[0265] The upgrade module is configured to execute the target upgrade package to perform device upgrade upon receiving an upgrade instruction sent by the configuration device.

[0266] Please refer to Figure 12, which shows a block diagram of a device upgrade apparatus provided by one embodiment of the present application. The apparatus has the function of implementing the method shown in Figure 5 or Figure 7 above, which is performed by the server. As shown in Figure 12, the apparatus may include:

[0267] The receiving module 1201 is configured to receive a query request sent by a configuration device; the query request is used to query an upgrade package; the upgrade package is used to upgrade the bridging capability of the first device;

[0268] The sending module 1202 is configured to send a query result to the configuration device; the query result includes information about at least one upgrade package;

[0269] The sending module 1202 is also used to send the target upgrade package to the first device when the first device downloads the target upgrade package from the server; the target upgrade package is indicated to the first device by the configuration device through a first request, and the target upgrade package is one of the at least one upgrade package.

[0270] In a possible implementation, the query request includes device model information of the first device;

[0271] The sending module is configured to send information of the at least one upgrade package that matches the device model of the first device to the configuration device.

[0272] In a possible implementation, the query request further includes target bridging capability information; the target bridging capability information is used to indicate the capability of providing bridging services for the target device;

[0273] The sending module is configured to send information of the at least one upgrade package that matches the device model of the first device and the target bridging capability information to the configuration device.

[0274] In a possible implementation, the receiving module is further configured to receive a second request sent by the configuration device; the second request is used for the first device to request the server for a credential to download the upgrade package;

[0275] The sending module is further configured to send a first credential to the configuration device according to the second request; the first credential is used by the first device to download the target upgrade package from the first server.

[0276] In a possible implementation, the first credential includes credential information; the credential information includes at least one of the following information:

[0277] The downloadable certificate of the target upgrade package; the download address of the target upgrade package; the identification information of the target upgrade package; the identification information of the configuration device; a random string; or a download time limit.

[0278] In a possible implementation, the apparatus further includes:

[0279] An encryption module is used to encrypt the credential information using the public key of the first device to obtain the first credential.

[0280] In a possible implementation, the receiving module is further configured to receive a device identifier of the first device sent by the configuration device;

[0281] The apparatus further includes: a public key acquisition module, configured to acquire the public key of the first device according to the device identification of the first device.

[0282] In a possible implementation, the sending module is configured to:

[0283] receiving a first download request sent by the first device, wherein the first download request includes a second credential;

[0284] Decrypting the second credential using the public key of the server to obtain the credential information and identification information of the first device;

[0285] Performing a legitimacy check on the credential information and the identification information of the first device;

[0286] After the validity of the credential information and the identification information of the first device is verified, the target upgrade package is sent to the first device.

[0287] In a possible implementation, the sending module is configured to:

[0288] receiving a second download request sent by the second device, wherein the second download request includes the first credential;

[0289] Performing a validity check on the first credential;

[0290] After the validity of the first credential is verified, the target upgrade package is sent to the first device.

[0291] In a possible implementation, the second download request further includes identification information of the target upgrade package; and the apparatus further includes:

[0292] a binding information generating module, configured to generate binding information, wherein the binding information is used to indicate that there is a binding relationship between the identification information of the first device and the target upgrade package;

[0293] After receiving the second download request, performing a validity check on the identification information of the target upgrade package according to the binding information;

[0294] The sending module is configured to send the target upgrade package to the first device after the validity verification of the first credential and the validity verification of the identification information of the target upgrade package are passed.

[0295] It should be noted that the device provided in the above embodiment only uses the division of the above-mentioned functional modules as an example to implement its functions. In actual applications, the above-mentioned functions can be assigned to different functional modules according to actual needs, that is, the content structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0296] Regarding the apparatus in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0297] Please refer to FIG13 , which shows a schematic diagram of the structure of a computer device 1300 provided in one embodiment of the present application. The computer device 1300 may include: a processor 1301 , a receiver 1302 , a transmitter 1303 , a memory 1304 , and a bus 1305 .

[0298] The processor 1301 includes one or more processing cores. The processor 1301 executes various functional applications and information processing by running software programs and modules.

[0299] The receiver 1302 and the transmitter 1303 may be implemented as a communication component, which may be a communication chip, which may also be called a transceiver.

[0300] The memory 1304 is connected to the processor 1301 via a bus 1305 .

[0301] The memory 1304 may be used to store a computer program, and the processor 1301 may be used to execute the computer program to implement each step in the above method embodiment.

[0302] In addition, the memory 1304 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, including but not limited to: magnetic disk or optical disk, electrically erasable programmable read-only memory, erasable programmable read-only memory, static access memory, read-only memory, magnetic memory, flash memory, and programmable read-only memory.

[0303] In an exemplary scenario, when the computer device 1300 is implemented as a configuration device, the transceiver is used to send a query request to a server; the query request is used to query an upgrade package; the upgrade package is used to upgrade the bridging capability of the first device; receive the query result sent by the server; the query result contains information about at least one upgrade package; send a first request to the first device based on the information of the target upgrade package; the first request is used to instruct the first device to download the target upgrade package from the server; the target upgrade package is one of at least one upgrade package.

[0304] The process executed by the processor 1301 and / or the transceiver in the computer device 1300 may refer to the steps executed by the configuration device in the method shown in either FIG. 3 or FIG. 7 .

[0305] In an exemplary scenario, when the computer device 1300 is implemented as a first device, the transceiver is used to receive a first request sent by a configuration device; the first request is a request sent by the configuration device based on information of a target upgrade package after the configuration device sends a query request to a server and receives a query result sent by the server; the query request is used to query the upgrade package; the upgrade package is used to upgrade the bridging capability of the first device; the query result contains information of at least one upgrade package; the target upgrade package is one of at least one upgrade package; and according to the first request, the target upgrade package is downloaded from the server.

[0306] The process executed by the processor 1301 and / or transceiver in the computer device 1300 may refer to the steps executed by the first device in the method shown in either FIG. 4 or FIG. 7 .

[0307] In an exemplary scenario, when the computer device 1300 is implemented as a server, the transceiver is used to receive a query request sent by a configuration device; the query request is used to query an upgrade package; the upgrade package is used to upgrade the bridging capability of the first device; the query result is sent to the configuration device; the query result includes information about at least one upgrade package; when the first device downloads a target upgrade package from the server, the target upgrade package is sent to the first device; the target upgrade package is indicated to the first device by the configuration device through a first request, and the target upgrade package is one of at least one upgrade package.

[0308] The process executed by the processor 1301 and / or transceiver in the computer device 1300 may refer to the steps executed by the server in the method shown in either FIG. 5 or FIG. 7 .

[0309] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. The computer program is loaded and executed by a processor to implement all or part of the steps performed by the configuration device, the first device or the server in the method shown in Figures 3, 4, 5 or 7 above.

[0310] The present application also provides a chip, which is used to run in a computer device so that the computer device executes all or part of the steps performed by the configuration device, the first device or the server in the method shown in Figures 3, 4, 5 or 7 above.

[0311] The present application also provides a computer program product, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform all or part of the steps performed by the configuration device, the first device, or the server in the method shown in Figures 3, 4, 5, or 7 above.

[0312] The present application also provides a computer program, which is executed by a processor of a computer device to implement all or part of the steps performed by the configuration device, the first device or the server in the method shown in Figures 3, 4, 5 or 7 above.

[0313] Those skilled in the art will appreciate that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein communication media include any media that facilitates the transmission of computer programs from one place to another. The storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer.

[0314] The above description is merely an exemplary embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A device upgrade method, characterized in that: The method is performed by a configuration device, and includes: Sending a query request to the server; the query request is used to query an upgrade package; the upgrade package is used to upgrade the bridging capability of the first device; receiving a query result sent by the server; the query result includes information of at least one upgrade package; A first request is sent to the first device; the first request is used to instruct the first device to download a target upgrade package from the server; the target upgrade package is one of the at least one upgrade package.

2. The method according to claim 1, characterized in that The query request includes device model information of the first device; The query result includes information of at least one upgrade package that matches the device model of the first device.

3. The method according to claim 2, characterized in that The query request also includes target bridging capability information; the target bridging capability information is used to indicate the capability of providing bridging services for the target device; The query result includes information of at least one upgrade package that matches the device model of the first device and the target bridging capability information.

4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: Sending a second request to the server; the second request is used for the first device to request the server for a credential to download an upgrade package; receiving a first credential sent by the server; The first credential is sent to the first device, where the first credential is used by the first device to download the target upgrade package from the server according to the first credential.

5. The method according to claim 4, characterized in that The first credential includes credential information; the credential information includes at least one of the following information: The downloadable certificate of the target upgrade package; the download address of the target upgrade package; the identification information of the target upgrade package; the identification information of the configuration device; a random string; or a download time limit.

6. The method according to claim 5, characterized in that The first credential is generated by encrypting the credential information using the public key of the first device.

7. The method according to any one of claims 4 to 6, characterized in that: The method further comprises: Sending upgrade package indication information to the first device; the upgrade package indication information includes at least one of the following information: The download address of the target upgrade package; or the identification information of the target upgrade package.

8. The method according to any one of claims 4 to 7, characterized in that: The method further comprises: Send identification information of the first device to the server.

9. The method according to any one of claims 1 to 8, characterized in that: The method further comprises: receiving a download completion response sent by the first device; the download completion response is used to indicate that the first device has completed downloading the target upgrade package; An upgrade instruction is sent to the first device, where the upgrade instruction is used to instruct the first device to upgrade a bridging capability based on the target upgrade package.

10. A device upgrade method, characterized in that: The method is performed by a first device, and includes: receiving a first request sent by a configuration device; the first request is a request sent by the configuration device based on information of a target upgrade package after the configuration device sends a query request to a server and receives a query result sent by the server; the query request is used to query for upgrade packages; the upgrade package is used to upgrade the bridging capability of the first device; the query result includes information of at least one upgrade package; the target upgrade package is one of the at least one upgrade package; Downloading the target upgrade package from the server according to the first request.

11. The method according to claim 10, characterized in that The method further comprises: receiving a first credential sent by the configuration device; The downloading of the target upgrade package from the server according to the first request includes: According to the first request, the target upgrade package is downloaded from the server using the first credential.

12. The method according to claim 11, characterized in that The first credential includes credential information; the credential information includes at least one of the following information: The downloadable certificate of the target upgrade package; the download address of the target upgrade package; the identification information of the target upgrade package; the identification information of the configuration device; a random string; or a download time limit.

13. The method according to claim 12, characterized in that The first credential is a credential generated by encrypting the credential information with the public key of the first device; The downloading of the target upgrade package from the server using the first credential according to the first request includes: Decrypting the first credential using the public key of the first device to obtain the credential information; Encrypting the credential information and the identification information of the first device using a public key of the server to obtain a second credential; Sending a first download request including the second credential to the server; Receive the target upgrade package sent by the server.

14. The method according to claim 13, characterized in that The encrypting the credential information and the identification information of the first device by using the public key of the server to obtain the second credential includes: Performing a validity check on the credential information; After the legitimacy of the credential information is verified, the credential information and the identification information of the first device are encrypted using the public key of the server to obtain the second credential.

15. The method according to claim 11 or 12, characterized in that The downloading of the target upgrade package from the server using the first credential according to the first request includes: sending a second download request including the first credential to the server; Receive the target upgrade package sent by the server.

16. The method according to claim 15, characterized in that The second download request also includes identification information of the target upgrade package.

17. The method according to any one of claims 11 to 16, characterized in that: The method further comprises: Receive upgrade package indication information sent by the configuration device; the upgrade package indication information includes at least one of the following information: a download address of the target upgrade package; or identification information of the target upgrade package; The downloading of the target upgrade package from the server according to the first request includes: According to the first request, the target upgrade package is downloaded from the server using the upgrade package indication information.

18. The method according to any one of claims 10 to 17, characterized in that: The method further comprises: The bridging capability is upgraded based on the target upgrade package.

19. The method according to claim 18, characterized in that The method further comprises: When downloading of the target upgrade package is completed, sending a download completion response to the configuration device; The running of the target upgrade package to perform device upgrade includes: Upon receiving the upgrade instruction sent by the configuration device, the target upgrade package is executed to perform device upgrade.

20. A device upgrade method, characterized in that: The method is executed by a server, and includes: receiving a query request sent by a configuration device; the query request is used to query an upgrade package; the upgrade package is used to upgrade the bridging capability of the first device; Sending a query result to the configuration device; the query result includes information about at least one upgrade package; When the first device downloads the target upgrade package from the server, the target upgrade package is sent to the first device; the target upgrade package is indicated to the first device by the configuration device through a first request, and the target upgrade package is one of the at least one upgrade package.

21. The method according to claim 20, characterized in that The query request includes device model information of the first device; The sending the query result to the configuration device includes: Send information of the at least one upgrade package that matches the device model of the first device to the configuration device.

22. The method according to claim 21, characterized in that The query request also includes target bridging capability information; the target bridging capability information is used to indicate the capability of providing bridging services for the target device; The sending information of the at least one upgrade package matching the device model of the first device to the configuration device includes: Sending information of the at least one upgrade package that matches the device model of the first device and the target bridging capability information to the configuration device.

23. The method according to any one of claims 20 to 22, characterized in that The method further comprises: receiving a second request sent by the configuration device; the second request is used for the first device to request the server for a credential to download an upgrade package; According to the second request, a first credential is sent to the configuration device; the first credential is used by the first device to download the target upgrade package from the first server.

24. The method according to claim 23, wherein The first credential includes credential information; the credential information includes at least one of the following information: The downloadable certificate of the target upgrade package; the download address of the target upgrade package; the identification information of the target upgrade package; the identification information of the configuration device; a random string; or a download time limit.

25. The method according to claim 24, characterized in that The method further comprises: The credential information is encrypted using the public key of the first device to obtain the first credential.

26. The method according to claim 25, characterized in that The method further comprises: receiving a device identifier of the first device sent by the configuration device; Obtain a public key of the first device according to the device identification of the first device.

27. The method according to any one of claims 24 to 26, characterized in that When the first device downloads the target upgrade package from the server, sending the target upgrade package to the first device includes: receiving a first download request sent by the first device, wherein the first download request includes a second credential; Decrypting the second credential using the public key of the server to obtain the credential information and identification information of the first device; Performing a legitimacy check on the credential information and the identification information of the first device; After the validity of the credential information and the identification information of the first device is verified, the target upgrade package is sent to the first device.

28. The method according to any one of claims 24 to 26, characterized in that When the first device downloads the target upgrade package from the server, sending the target upgrade package to the first device includes: receiving a second download request sent by the second device, wherein the second download request includes the first credential; Performing a validity check on the first credential; After the validity of the first credential is verified, the target upgrade package is sent to the first device.

29. The method according to claim 28, characterized in that The second download request further includes identification information of the target upgrade package; and the method further includes: Generate binding information, where the binding information is used to indicate that there is a binding relationship between the identification information of the first device and the target upgrade package; After receiving the second download request, performing a validity check on the identification information of the target upgrade package according to the binding information; After the validity of the first credential is verified, sending the target upgrade package to the first device includes: After the validity verification of the first credential and the validity verification of the identification information of the target upgrade package are passed, the target upgrade package is sent to the first device.

30. A device upgrading apparatus, characterized in that: The device comprises: A sending module, configured to send a query request to a server; the query request is used to query an upgrade package; the upgrade package is used to upgrade the bridging capability of the first device; A receiving module, configured to receive a query result sent by the server; the query result includes information about at least one upgrade package; The sending module is further used to send a first request to the first device; the first request is used to instruct the first device to download a target upgrade package from the server; the target upgrade package is one of the at least one upgrade package.

31. The device according to claim 30, characterized in that The query request includes device model information of the first device; The query result includes information about the at least one upgrade package that matches the device model of the first device.

32. The device according to claim 31, characterized in that The query request also includes target bridging capability information; the target bridging capability information is used to indicate the capability of providing bridging services for the target device; The query result includes information of the at least one upgrade package that matches the device model of the first device and the target bridging capability information.

33. The device according to any one of claims 30 to 32, characterized in that The sending module is further configured to send a second request to the server; the second request is used for the first device to request the server for a credential to download an upgrade package; The receiving module is further configured to receive a first credential sent by the server; The sending module is further configured to send the first credential to the first device, where the first credential is used by the first device to download the target upgrade package from the server according to the first credential.

34. The device according to claim 33, characterized in that The first credential includes credential information; the credential information includes at least one of the following information: The downloadable certificate of the target upgrade package; the download address of the target upgrade package; the identification information of the target upgrade package; the identification information of the configuration device; a random string; or a download time limit.

35. The device according to claim 34, characterized in that The first credential is generated by encrypting the credential information using the public key of the first device.

36. The device according to any one of claims 33 to 35, characterized in that The sending module is further configured to send upgrade package indication information to the first device; the upgrade package indication information includes at least one of the following information: The download address of the target upgrade package; or the identification information of the target upgrade package.

37. The device according to any one of claims 33 to 36, characterized in that The sending module is further configured to send identification information of the first device to the server.

38. The device according to any one of claims 30 to 37, characterized in that The receiving module is further configured to receive a download completion response sent by the first device; the download completion response is used to indicate to the first device that the download of the target upgrade package has been completed; The sending module is further configured to send an upgrade instruction to the first device, where the upgrade instruction is used to instruct the first device to upgrade its bridging capability based on the target upgrade package.

39. A device upgrading apparatus, characterized in that: The device comprises: a receiving module, configured to receive a first request sent by a configuration device; the first request is a request sent by the configuration device based on information about a target upgrade package after the configuration device sends a query request to a server and receives a query result sent by the server; the query request is used to query for upgrade packages; the upgrade package is used to upgrade the bridging capability of the first device; the query result includes information about at least one upgrade package; the target upgrade package is one of the at least one upgrade package; A download module is used to download the target upgrade package from the server according to the first request.

40. The device according to claim 39, characterized in that The receiving module is further configured to receive a first credential sent by the configuration device; The download module is configured to download the target upgrade package from the server using the first credential according to the first request.

41. The device according to claim 40, characterized in that The first credential includes credential information; the credential information includes at least one of the following information: The downloadable certificate of the target upgrade package; the download address of the target upgrade package; the identification information of the target upgrade package; the identification information of the configuration device; a random string; or a download time limit.

42. The device according to claim 41, characterized in that The first credential is a credential generated by encrypting the credential information with the public key of the first device; The download module is used to: Decrypting the first credential using the public key of the first device to obtain the credential information; Encrypting the credential information and the identification information of the first device using a public key of the server to obtain a second credential; Sending a first download request including the second credential to the server; Receive the target upgrade package sent by the server.

43. The device according to claim 42, characterized in that The download module is used to: Performing a validity check on the credential information; After the legitimacy of the credential information is verified, the credential information and the identification information of the first device are encrypted using the public key of the server to obtain the second credential.

44. The device according to claim 40 or 41, characterized in that The download module is used to: sending a second download request including the first credential to the server; Receive the target upgrade package sent by the server.

45. The device according to claim 44, characterized in that The second download request also includes identification information of the target upgrade package.

46. ​​The device according to any one of claims 40 to 45, characterized in that The device further comprises: The receiving module is further configured to receive upgrade package indication information sent by the configuration device; the upgrade package indication information includes at least one of the following information: a download address of the target upgrade package; or identification information of the target upgrade package; The download module is configured to download the target upgrade package from the server according to the first request and through the upgrade package indication information.

47. The device according to any one of claims 39 to 46, characterized in that The device further comprises: An upgrade module is used to upgrade the bridging capability based on the target upgrade package.

48. The device according to claim 47, characterized in that The device further comprises: A sending module, configured to send a download completion response to the configuration device when downloading of the target upgrade package is completed; The upgrade module is configured to execute the target upgrade package to perform device upgrade upon receiving an upgrade instruction sent by the configuration device.

49. A device upgrading apparatus, characterized in that: The device comprises: A receiving module, configured to receive a query request sent by a configuration device; the query request is used to query an upgrade package; the upgrade package is used to upgrade the bridging capability of the first device; A sending module, configured to send a query result to the configuration device; the query result includes information about at least one upgrade package; The sending module is further configured to send the target upgrade package to the first device when the first device downloads the target upgrade package from the server; the target upgrade package is indicated to the first device by the configuration device through a first request, and the target upgrade package is one of the at least one upgrade package.

50. The device according to claim 49, characterized in that The query request includes device model information of the first device; The sending module is configured to send information of the at least one upgrade package that matches the device model of the first device to the configuration device.

51. The device according to claim 50, characterized in that The query request also includes target bridging capability information; the target bridging capability information is used to indicate the capability of providing bridging services for the target device; The sending module is configured to send information of the at least one upgrade package that matches the device model of the first device and the target bridging capability information to the configuration device.

52. The device according to any one of claims 49 to 51, characterized in that The receiving module is further configured to receive a second request sent by the configuration device; the second request is used for the first device to request the server for a credential to download an upgrade package; The sending module is further configured to send a first credential to the configuration device according to the second request; the first credential is used by the first device to download the target upgrade package from the first server.

53. The device according to claim 52, characterized in that The first credential includes credential information; the credential information includes at least one of the following information: The downloadable certificate of the target upgrade package; the download address of the target upgrade package; the identification information of the target upgrade package; the identification information of the configuration device; a random string; or a download time limit.

54. The device according to claim 53, characterized in that The device further comprises: An encryption module is used to encrypt the credential information using the public key of the first device to obtain the first credential.

55. The device according to claim 54, characterized in that The receiving module is further configured to receive a device identifier of the first device sent by the configuration device; The device further comprises: The public key acquisition module is used to acquire the public key of the first device according to the device identification of the first device.

56. The device according to any one of claims 53 to 55, characterized in that The sending module is used to: receiving a first download request sent by the first device, wherein the first download request includes a second credential; Decrypting the second credential using the public key of the server to obtain the credential information and identification information of the first device; Performing a legitimacy check on the credential information and the identification information of the first device; After the validity of the credential information and the identification information of the first device is verified, the target upgrade package is sent to the first device.

57. The device according to any one of claims 53 to 55, characterized in that The sending module is used to: receiving a second download request sent by the second device, wherein the second download request includes the first credential; Performing a validity check on the first credential; After the validity of the first credential is verified, the target upgrade package is sent to the first device.

58. The device according to claim 57, characterized in that The second download request further includes identification information of the target upgrade package; and the apparatus further includes: a binding information generating module, configured to generate binding information, wherein the binding information is used to indicate that there is a binding relationship between the identification information of the first device and the target upgrade package; After receiving the second download request, performing a validity check on the identification information of the target upgrade package according to the binding information; The sending module is configured to send the target upgrade package to the first device after the validity verification of the first credential and the validity verification of the identification information of the target upgrade package are passed.

59. A computer device, characterized in that The computer device includes a processor, a memory and a transceiver; The memory stores a computer program, and the processor executes the computer program so that the computer device implements the device upgrade method as described in any one of claims 1 to 29.

60. A computer-readable storage medium, characterized in that The storage medium stores a computer program, which is used to be executed by a processor to implement the device upgrading method according to any one of claims 1 to 29.

61. A chip, characterized in that: The chip is used to run in a computer device, so that the computer device executes the device upgrade method according to any one of claims 1 to 29.

62. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium; the processor of the computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, so that the computer device executes the device upgrade method as described in any one of claims 1 to 29.

63. A computer program, characterized in that The computer program is executed by a processor of a computer device to implement the device upgrading method according to any one of claims 1 to 29.