WO2024011366A1 - Device upgrade method and apparatus, and device, storage medium and program product - Google Patents

Device upgrade method and apparatus, and device, storage medium and program product Download PDF

Info

Publication number
WO2024011366A1
WO2024011366A1 PCT/CN2022/104971 CN2022104971W WO2024011366A1 WO 2024011366 A1 WO2024011366 A1 WO 2024011366A1 CN 2022104971 W CN2022104971 W CN 2022104971W WO 2024011366 A1 WO2024011366 A1 WO 2024011366A1
Authority
WO
WIPO (PCT)
Prior art keywords
upgrade package
information
target
request
server
Prior art date
Application number
PCT/CN2022/104971
Other languages
French (fr)
Chinese (zh)
Inventor
吕小强
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Priority to PCT/CN2022/104971 priority Critical patent/WO2024011366A1/en
Publication of WO2024011366A1 publication Critical patent/WO2024011366A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Definitions

  • This application relates to the technical field of the Internet of Things, and in particular to an equipment upgrade method, device, equipment, storage medium and program product.
  • IoT Internet of Things
  • different IoT devices may support different IoT protocols.
  • IoT devices that support different IoT protocols can be networked through bridge devices.
  • Embodiments of the present application provide an equipment upgrade method, device, equipment, storage medium and program product.
  • the technical solutions are as follows:
  • embodiments of the present application provide a device upgrade method, which is executed by a configuration device.
  • the method includes:
  • the server Send a query request to 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 about at least one upgrade package
  • inventions of the present application provide a device upgrade method, which is executed by a first device.
  • the method includes:
  • the first request sent by the configuration device is a request sent according to 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 Querying the upgrade package;
  • 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;
  • inventions of the present application provide a device upgrade method, which is executed by a server.
  • the method includes:
  • the query result contains information about at least one upgrade package
  • 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.
  • an equipment upgrade device which includes:
  • a sending module configured to send a query request to 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;
  • a receiving module configured to receive query results sent by the server; the query results include information on at least one upgrade package;
  • the sending module is further configured 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 the at least one of the above upgrade packages.
  • an equipment upgrade device which includes:
  • a receiving module configured to receive the first request sent by the configuration device; the first request is a request sent according to 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 an 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;
  • a download module configured to download the target upgrade package from the server according to the first request.
  • an equipment upgrade device which includes:
  • a receiving module configured to receive a query request sent by the configuration device; the query request is used to query the upgrade package; the upgrade package is used to upgrade the first device;
  • a sending module configured to send query results to the configuration device; the query results include information on at least one upgrade package;
  • the sending module is also 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 by the configuration device through the first request. to the first device, and the target upgrade package is one of the at least one upgrade package.
  • embodiments of the present application provide a computer device, the computer device is implemented as an information reporting device, and the computer device includes a processor, a memory, and a transceiver;
  • a computer program is stored in the memory, and the processor executes the computer program, so that the computer device implements the above device upgrade method.
  • embodiments of the present application provide a computer device, which includes a processor, a memory, and a transceiver.
  • the memory stores a computer program, and the computer program is configured to be executed by the processor, so as to Implement the above device upgrade method.
  • embodiments of the present application also provide a computer-readable storage medium, in which a computer program is stored, and the computer program is loaded and executed by a processor to implement the above device upgrade method.
  • the present application also provides a chip, which is used to run in a computer device, so that the computer device executes the above device upgrade method.
  • the present application provides a computer program product including computer instructions stored in a computer-readable storage medium.
  • the processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the above device upgrade method.
  • the present application provides a computer program, which is executed by a processor of a computer device to implement the above device upgrade method.
  • the configuration device queries the server for information about at least one upgrade package, and instructs the first device to download the target upgrade package in at least one upgrade package from the server; that is, in the above solution, the configuration device instructs the first device to download the target upgrade package from multiple upgrade packages. Select an upgrade package from the upgrade package to upgrade and obtain new bridging capabilities, thereby greatly improving the flexibility of bridging capability upgrades in the process of controlling the upgrade of the first device to obtain new bridging capabilities, thereby expanding the application scenarios of bridging. .
  • Figure 1 is a schematic diagram of the network architecture of the Internet of Things provided by an embodiment of the present application.
  • FIG. 2 is a schematic diagram of the bridge architecture involved in this application.
  • Figure 3 is a flow chart of a device upgrade method provided by an embodiment of the present application.
  • Figure 4 is a flow chart of a device upgrade method provided by an embodiment of the present application.
  • Figure 5 is a flow chart of a device upgrade method provided by an embodiment of the present application.
  • Figure 6 is a process framework diagram for obtaining an upgrade package provided by an embodiment of the present application.
  • Figure 7 is a flow chart of a device upgrade method provided by an embodiment of the present application.
  • Figure 8 is a schematic diagram of a device upgrade process involved in the embodiment shown in Figure 7;
  • FIG. 9 is a schematic diagram of another device upgrade process involved in the embodiment shown in Figure 7;
  • FIG. 10 is a block diagram of an equipment upgrade device provided by an embodiment of the present application.
  • FIG. 11 is a block diagram of an equipment upgrade device provided by an embodiment of the present application.
  • Figure 12 is a block diagram of an equipment upgrade device provided by an embodiment of the present application.
  • Figure 13 is a schematic structural diagram of a computer device provided by an embodiment of the present application.
  • the network architecture of the Internet of Things may include: an Internet of Things device 110 (shown as an Internet of Things device 110a, an Internet of Things device 110b, an Internet of Things device 110c, and an Internet of Things device 110d in Figure 1) and a configuration device 120; the network architecture may also A bridge device 130 is included; the network architecture also includes a server 140.
  • an Internet of Things device 110 shown as an Internet of Things device 110a, an Internet of Things device 110b, an Internet of Things device 110c, and an Internet of Things device 110d in Figure 1
  • the network architecture may also A bridge device 130 is included
  • the network architecture also includes a server 140.
  • the Internet of Things device 110 may refer to a device used to provide client functions or server functions corresponding to the Internet of Things protocol in the Internet of Things.
  • 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, etc.
  • 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, etc.
  • the IoT device 110 may be an industrial production equipment, such as a lathe, an industrial robot, a solar panel, a wind turbine, etc.
  • the Internet of Things device 110 may be a commercial service device, such as an unmanned vending machine or the like.
  • the IoT device 110 may be an intelligent monitoring device, such as a surveillance camera, an infrared sensor, a sound sensor, a temperature sensor, etc.
  • the configuration device 120 is a user-side terminal device.
  • the configuration device 120 can be a smart controller, a smart remote control, a smart phone, a tablet, a smart watch, a smart TV, a smart speaker, a smart switch, a gateway, etc.; or the configuration device 120 can also be a personal computer, such as a desktop. Computers, laptops, personal workstations and more.
  • the configuration device 120 is a client entity (which may be a virtual entity) running on a terminal device.
  • the configuration device 120 may be running in a terminal device for accessing Internet of Things devices. , control, and management operations (Application, APP).
  • the bridge device 130 is used to implement interaction between two devices supporting different Internet of Things protocols.
  • the bridge device 130 provides information conversion and transfer services between IoT devices 110 that support different IoT protocols, or between IoT devices 110 that support different IoT protocols and the configuration device 120 .
  • the bridging device 130 may be a device dedicated for bridging, or the bridging device 130 may also be an intelligent device with a bridging function, such as a gateway or a router.
  • 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 upgrading.
  • the above-mentioned Internet of Things device 110, configuration device 120, and bridge device 130 may be electronic devices that meet the same or different Internet of Things protocols.
  • they may be electronic devices that meet the Connectivity Standards Alliance (CSA) (Connectivity Standards Alliance, CSA) ( Electronic devices under the Matter protocol (or Connected Home over IP Working Group (CHIP) project) under the Zigbee Alliance.
  • CSA Connectivity Standards Alliance
  • CHIP Connected Home over IP Working Group
  • a secure connection can be established between the IoT device 110a and the IoT device 110b, for example, a secure connection is established based on the Matter specification.
  • the IoT device 110c and the IoT device 110d support different protocol specifications, for example, the IoT device 110c is a Zigbee device and the IoT device 110d is a Matter device, the IoT device 110c and the IoT device 110d can connected via a bridge device 130.
  • FIG 2 shows a schematic diagram of the bridge architecture involved in this application.
  • the current bridge solution for the Internet of Things requires a bridge manufacturer application 201 (also called a bridge Manufacturer App, which is an App implemented privately by the manufacturer)
  • a bridge manufacturer application 201 also called a bridge Manufacturer App, which is an App implemented privately by the manufacturer
  • bridged sub-device 202 also called Bridged Device, corresponding to BD1 ⁇ BD3 in Figure 2
  • Bridged Device can be a physical IoT device or a logical device
  • the bridge Manufacturer App controls the bridge device 203 (Bridge) to generate the corresponding Matter device 204 (also called Matter Device, corresponding to MD1 in Figure 2) for BD1 and other devices.
  • the implementation method of generating the corresponding Matter device 204 for devices such as BD1 can be: generating corresponding endpoints (endpoints) on the Bridge data model, and one or more endpoints correspond to a Matter Device; therefore, in the Bridge data model Contains the endpoints of its own functions (can be called endpoint0), and also includes the endpoints corresponding to the heterogeneous devices it bridges.
  • the bridging capability and the bridging device are tightly coupled, that is, the bridging capability of the bridging device is already installed at the factory.
  • Devices that support different IoT protocols need to be handed over through different bridging capabilities. That is to say, for an IoT device in the IoT, if there is no pre-installed bridge device in the IoT that matches the IoT device. , then communication between the IoT device and other heterogeneous IoT devices cannot be established through bridging, thus limiting the application scenarios of bridging.
  • this application proposes a solution to upgrade existing IoT devices or bridging devices so that the IoT devices or bridging devices can support new bridging capabilities.
  • Equipment upgrades can be achieved through OTA (Over the Air, online upgrade).
  • OTA also known as over-the-air download technology, refers to the function of the server connecting to the device through the communication network and sending the upgrade package or upgrade data to the device.
  • a device upgrade solution implemented through OTA can be as follows:
  • OTA Provider (provider, usually a server in the cloud) announces its existence.
  • OTA Requestor (requester, usually the device to be upgraded) requests to download the software upgrade package.
  • OTA Provider does not permanently save the real software upgrade package.
  • Equipment manufacturers provide upgrade packages. When there is a new software upgrade package, it will be registered on 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 version and applicable device model. Applicable device software version, etc. In this step, the OTA Provider can find the latest software upgrade package that can be upgraded based on the current software version of the OTA Requestor.
  • OTA Provider sends a Busy response message to OTA Requestor, indicating that the upgrade package cannot be provided temporarily and needs to be downloaded and cached.
  • OTA Requestor the device to be upgraded
  • OTA Provider the cloud
  • subsequent embodiments of the present application provide a device upgrade solution.
  • the server can provide information about the upgrade package available to the first device to the configuration device, and the configuration device controls the first device to obtain an upgrade package to upgrade and obtain a new device.
  • bridging capabilities thus greatly improving the flexibility of bridging capability upgrades and expanding bridging application scenarios.
  • Figure 3 shows a flow chart of a device upgrade method provided by an embodiment of the present application.
  • the method can be executed by a configuration device.
  • the configuration device can be the configuration device 120 in the network architecture shown in Figure 1. ; This method may include the following steps:
  • Step 301 Send a query request to 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 configuration device can query the server for all available upgrade packages.
  • the configuration device can also query the server for upgrade packages that meet certain conditions; for example, the configuration device can query the server for upgrade packages available for one or more models of devices, and/or the configuration device can query the server An upgrade package corresponding to one or more bridging capabilities.
  • Step 302 Receive the query result sent by the server; the query result contains information about at least one upgrade package.
  • the server may send the information of the upgrade package corresponding to the query request to the configuration device.
  • the information of the above-mentioned upgrade package may include identification information of the upgrade package, corresponding bridging capability information, version number, applicable device model, download address, etc.
  • 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 at least one upgrade package.
  • the target upgrade package may be an upgrade package selected by the configuration device from at least one upgrade package based on information about at least one upgrade package.
  • the above target upgrade package may be an upgrade package that the configuration device selects from at least one upgrade package according to a preset selection strategy; or the above target upgrade package may also be an upgrade package that the configuration device selects from at least one upgrade package according to the user's selection operation. the selected upgrade package.
  • 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 at least one upgrade package from the server; that is, in In the above solution, the configuration device instructs the first device to select an upgrade package from multiple upgrade packages to upgrade and obtain new bridging capabilities, thereby greatly improving the process of controlling the first device to upgrade and obtain new bridging capabilities.
  • the flexibility of bridging capability upgrades expands the application scenarios of bridging.
  • Figure 4 shows a flow chart of a device upgrade method provided by an embodiment of the present application.
  • the method can be executed by a first device.
  • the first device can be configured in the network architecture shown in Figure 1 Device 120; the method may include the following steps:
  • Step 401 Receive the first request sent by the configuration device; the first request is a request sent according to 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 at least one upgrade package.
  • Step 402 Download the target upgrade package from the server according to the first request.
  • 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 at least one upgrade package from the server; that is, in In the above solution, the configuration device instructs the first device to select an upgrade package from multiple upgrade packages to upgrade and obtain new bridging capabilities, thereby greatly improving the process of controlling the first device to upgrade and obtain new bridging capabilities.
  • the flexibility of bridging capability upgrades expands the application scenarios of bridging.
  • Figure 5 shows a flow chart of a device upgrade method provided by an embodiment of the present application.
  • This method can be executed by a server.
  • the server can be the server 140 in the network architecture shown in Figure 1; this method It can include the following steps:
  • Step 501 Receive a query request sent by the configuration device; the query request is used to query the upgrade package; the upgrade package is used to upgrade the first device.
  • Step 502 Send a query result to the configuration device; the query result contains information about at least one upgrade package.
  • 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 in at least one upgrade package. one of.
  • 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 at least one upgrade package from the server; that is, in In the above solution, the configuration device instructs the first device to select an upgrade package from multiple upgrade packages to upgrade and obtain new bridging capabilities, thereby greatly improving the process of controlling the first device to upgrade and obtain new bridging capabilities.
  • the flexibility of bridging capability upgrades expands the application scenarios of bridging.
  • the configuration device can query the server for information on each upgrade package used to upgrade the bridging capability, and instruct the first device to obtain one of the upgrade packages from the server to perform the upgrade.
  • FIG. 6 shows a process framework diagram for obtaining an upgrade package during a device upgrade provided by an embodiment of the present application.
  • the configuration device 61 in the Internet of Things queries the server 62 for various upgrade packages that can be used to upgrade the bridging device or the Internet of Things device so that the device obtains new bridging capabilities.
  • step S1 then display the information of each upgrade package to the user, and select one from each upgrade package as the target upgrade package according to the user's selection operation (step S2); after that, the configuration device 61 instructs the first device 63 Obtain the target upgrade package (step S3); the first device 63 downloads the target upgrade package from the server 62 according to the instruction of the configuration device 61 (step S4).
  • Figure 7 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.
  • the configuration device can be the one shown in Figure 1
  • the configuration device 120 in the network architecture the first device may be the bridge device 130 and/or one of the Internet of Things devices 110 in the network architecture shown in Figure 1;
  • the server may be a server in the network architecture shown in Figure 1 140;
  • This method may include the following steps:
  • Step 701 The configuration device obtains the identification information of the server in the process of querying the bridging capability of the first device obtained through the upgrade.
  • the configuration device can send a first query message, and the first query message is used to query a device that supports upgraded bridging capabilities; accordingly, the query response device can receive the first response message; the query response device can Send a first response message to the configuration device; the first response message is used to indicate that the first device supports upgrading the bridging capability.
  • the above query response device may be a first device or a bridge service management device other than the first device.
  • the bridge service management device may be a cloud device or a local device.
  • the above-mentioned first query message can be used to query devices that support upgrading the bridging capabilities between any two IoT protocols; or, the above-mentioned first query message can also be used to query two specified devices that support the upgrade. Devices with bridging capabilities between networking protocols.
  • the identification information of the server may be carried in the first response message.
  • the configuration device can query the surrounding IoT devices or bridging devices for upgradeable bridging capabilities through broadcasts.
  • the IoT devices or bridging devices that receive the broadcast and have the bridging capabilities that can be upgraded can return to the configuration device.
  • the IoT device or bridge device can send the identification information of the server that provides the upgrade package to the configuration device.
  • the identification information of the server is carried in the query response and sent to the configuration device.
  • the configuration device may also query the bridging capability management device for bridging capabilities that the first device can obtain through upgrade.
  • the first device can register with the bridging capability management device in advance, and send the bridging capability information that the first device can obtain through upgrade to the bridging capability management device for storage and management.
  • the bridging capability management device can send relevant information about the bridging capabilities that the first device can obtain by upgrading to the configuration device. The above relevant information can be carried as The first device provides identification information of the server of the upgrade package.
  • the above-mentioned bridging capability management device may be a cloud server (which may be the server in the embodiment of this application, or may be other servers), or the above-mentioned bridging capability management device may also be in the same Internet of Things as the first device. offline equipment (such as home gateway).
  • the configuration device can send a second query message, and the second query message is used to query a device that supports upgrading the first bridging capability; the first bridging capability is one of the first IoT protocol and other IoT protocols.
  • the above-mentioned second response message may be a response message sent by the first device, or may be a response message sent by a bridge service management device other than the first device.
  • the first device may receive the second query message sent by the configuration device, and if the first device supports upgrading the first bridging capability, send the configuration message to the configuration device.
  • the device sends a second response message.
  • the bridging service management device may maintain capability information of each device in the Internet of Things; the capability information includes bridging capabilities that support upgrades; bridging capabilities The service management device may receive the second query message sent by the configuration device, and if the first device among the devices supports upgrading the first bridging capability, send a second response message to the configuration device.
  • the above-mentioned second query message can also be used to query support for upgrading a specific IoT protocol (which can be called a source protocol) and any other IoT protocol (which can be called a target protocol).
  • the configuration device can start from the IoT protocol corresponding to the target device, and use the target protocol queried in each round as the source protocol of the next round of query to perform N rounds of queries until the queried Specify the IoT protocol, and establish an indirect bridge path between the target IoT protocol and the specified IoT protocol.
  • the identification information of the above server may be carried in the second response message.
  • the identification information of the server may be the network address of the server and/or the ID (Identity) of the server.
  • Step 702 The configuration device sends a query request to the server according to the server's identification information; the server receives the query request.
  • the above query request is used to query the upgrade package; the above upgrade package is used to upgrade the bridging capability of the first device.
  • the configuration device when the configuration device needs to control the first device to upgrade to obtain new bridging capabilities, it can send a query request to the server based on the obtained identification information of the server.
  • Step 703 The server sends the query result to the configuration device; the configuration device receives the query result.
  • the query results include information about at least one upgrade package.
  • the server may send information about each downloadable upgrade package to the configuration device.
  • the query request contains device model information of the first device; the server can send information of at least one upgrade package that matches the device model of the first device to the configuration device; that is, the above query
  • the result includes information about at least one upgrade package that matches the device model of the first device.
  • the configuration device may query the server for information on each upgrade package that can be used by the first device.
  • the query request may also include target bridging capability information; the target bridging capability information is used to indicate the ability to provide bridging services for the target device;
  • the server can send to the configuration device information about at least one upgrade package that matches the device model and target bridging capability information of the first device; that is, the above query results include information that matches the device model and target bridging capability of the first device. The information matches the information of at least one upgrade package.
  • the configuration device may query the server for information on each upgrade package that can be used by the first device and the bridged target IoT protocol is a specified IoT protocol.
  • 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.
  • the above target upgrade package is one of at least one upgrade package queried from the configuration device.
  • the target upgrade package may be an upgrade package specified by the user from at least one upgrade package.
  • the configuration device After the configuration device obtains the information of the above-mentioned at least one upgrade package, it can display the above-mentioned at least one upgrade package information in the upgrade management interface of the application (APP, Application), and the user selects an upgrade based on the information of the at least one upgrade package. package as the target upgrade package.
  • APP application
  • the user selects an upgrade based on the information of the at least one upgrade package. package as the target upgrade package.
  • the target upgrade package may also be configured to be selected by the device from at least one upgrade package according to a preset selection strategy.
  • the user can pre-set the priority order of configuring the device to preferentially select the upgrade package as follows: the newly released official version upgrade package ⁇ the test version upgrade package ⁇ the old version upgrade package; among them, the above-mentioned newly released official version upgrade package , can refer to the official version upgrade package released within a specified time period (such as within the last three months), and the above-mentioned old version upgrade package can refer to the official version released outside the specified time period (such as three months ago) upgrade package.
  • the configuration device After the configuration device obtains at least one upgrade package information, it will give priority to the newly released official version of the upgrade package as the target upgrade package. If there is no newly released official version of the upgrade package, select the test version of the upgrade package. If there is still no test version version's upgrade package, then select the old version's upgrade package.
  • the configuration device After the configuration device determines the target upgrade package, it can send the first request to the first device.
  • Step 705 The first device downloads the target upgrade package from the server according to the first request; accordingly, the server sends the target upgrade package to the first device.
  • the first device after receiving the first request sent by the configuration device, the first device can download the target upgrade package from the server for subsequent upgrades.
  • the configuration device may also 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 of the target upgrade package information.
  • the first device receives the upgrade package instruction 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 through the upgrade package instruction information according to the first request.
  • the above-mentioned upgrade package indication information may be carried through the first request, or the above-mentioned upgrade package indication information may also be sent independently of the first request.
  • the configuration device in addition to sending the first request to the first device, can also send a second request to the server.
  • the second request is used to request the server for a certificate for downloading the upgrade package for the first device.
  • the server receives the second request, and sends the first credential to the configuration device according to the second request, where the first credential is used by the first device to download the target upgrade package from the first server according to 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 according to the first credential.
  • the first device downloads the target upgrade package from the server according to the first request, it can download the target upgrade package from the server through the first voucher according to the first request.
  • the configuration device in order to ensure the security of downloading the upgrade package, can apply for the first credential for downloading the upgrade package from the server for the first device, and provide the first credential to the first device. Request the server to download the target upgrade package based on the first voucher. In this process, the server can verify the download request of the first device based on the first voucher.
  • the above-mentioned second request may include identification information of the target upgrade package. That is to say, after determining the target upgrade package, the configuration device may notify the server that the configuration device wants to request upgrade packages for other devices. , at this time, the server can generate the first credential for downloading the target upgrade package and return it to the configuration device.
  • the first voucher contains voucher information;
  • the voucher information includes at least one of the following information;
  • the downloadable credentials 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, the download time limit.
  • the identification information of the configuration device may include a hardware identification of the configuration device or an identification of an APP installed in the configuration device.
  • the above-mentioned first certificate may be a certificate generated by encrypting the certificate information with the public key of the first device.
  • the server can encrypt the certificate information using the public key of the first device to obtain the first certificate.
  • the configuration device before receiving the first voucher sent by the server, may also send the identification information of the first device to the server to notify the server that the configuration device wants to request an upgrade package for the first device.
  • the server 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.
  • the first device may query the public key stored in advance corresponding to the device identification of the first device (ie, the public key of the first device) based on the device identification of the first device.
  • the first device downloads the target from the server through the first certificate according to the first request.
  • the process of upgrading the package includes:
  • the server when the first certificate is a certificate generated by encrypting the certificate information with the public key of the first device, the server sends the target upgrade package to the first device when the first device downloads the target upgrade package from the server.
  • the process can include:
  • the first download request includes the second voucher
  • the target upgrade package is sent to the first device.
  • the server can first determine whether the identification information of the first device is legal, for example, according to the first The identification information of the device determines whether the first credential has been generated for the first device before; if the identification information of the first device is legal, continue to determine whether the credential information is legal, for example, determine whether the credential information is consistent with the first credential previously generated for the first device. Whether the information in the certificate is consistent, and whether the current time is within the download time limit, etc., if the certificate information is consistent with the information in the first certificate previously generated for the first device, and the current time is within the download time limit, then determine the The credential information is legal.
  • the first device encrypts the voucher information and the identification information of the first device using the public key of the server.
  • the voucher information can be verified for legality; After the legality verification is passed, the certificate information and the identification information of the first device are encrypted using the public key of the server to obtain the second certificate.
  • the first device may also perform a legality check on the credential information in the first credential. After the legality check passes, the first device may follow the next steps.
  • the first device can 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.
  • the process of the first device downloading the target upgrade package from the server through the first credential according to the first request may also include:
  • the process of sending the target upgrade package to the first device may include:
  • the target upgrade package is sent to the first device.
  • the first device can also directly use the first credential to request the server to download the target upgrade package. That is to say, in this process, the first device transparently transmits the first credential.
  • 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 above-mentioned second certificate, and will not be described again here.
  • the second download request also includes identification information of the target upgrade package.
  • this plan also includes:
  • the server generates binding information, and 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.
  • the generation process of the binding information may be a process executed after the configuration device sends the identification information of the target upgrade package to the server (for example, through the second request).
  • the server after the server passes the legality verification of the first certificate, it can query the above-mentioned pre-generated binding information according to the identification information of the first device corresponding to the second download request to determine the download. the target upgrade package, and sends the target upgrade package to the first device.
  • the server after receiving the second download request, the server performs legality verification on the identification information of the target upgrade package based on the binding information;
  • the above-mentioned process of sending the target upgrade package to the first device after the validity verification of the first credential is passed may include:
  • the server After the server passes the legality check of the first certificate and passes the legality check of the identification information of the target upgrade package, it sends the target upgrade package to the first device.
  • the server's verification process of the legality of the identification information of the target upgrade package may include:
  • the server determines whether there is a local binding relationship between the identification information of the target upgrade package and the identification information of the first device. If the binding relationship exists, it determines that the legality verification of the identification information of the target upgrade package passes.
  • Step 706 The first device upgrades the bridging capability based on the target upgrade package.
  • the first device downloads the target upgrade package, it can run the target upgrade package to complete the upgrade of the device.
  • the first device after completing the download of the target upgrade package, the first device sends a download completion response to the configuration device; the above-mentioned process of running the target upgrade package for device upgrade may include: after receiving the configuration If the device sends an upgrade instruction, run the target upgrade package to upgrade the device.
  • the download completion response sent by the first device can be received; the download completion response is used to instruct the first device to complete the download of the target upgrade package; then, an upgrade instruction is sent to the first device, and the upgrade instruction is Instructing the first device to run the target upgrade package to perform device upgrade.
  • the above upgrade instructions can be triggered by the user's upgrade confirmation operation.
  • the configuration device displays prompt information according to the download completion response to prompt the user whether to control the upgrade of the first device.
  • the configuration device sends the upgrade instruction to the first device.
  • the APP that controls the bridge device (device_bridge) for upgrading is installed in the configuration device, and the above server is the server corresponding to the OTA store (OTA_shop), please refer to Figure 8, which shows A schematic diagram of a device upgrade process related to the embodiment of this application. As shown in Figure 8, the device upgrade process is as follows:
  • 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.
  • Device_bridge uses the bridge capability query response message to reply.
  • the response message may carry the address or identification of its upgrade package application store. It is also possible to obtain the app store address through other means. For example, the address of OTA_shop has been registered on a public cloud, which uses blockchain technology.
  • the APP can directly find the address of OTA_shop based on the device supplier identification, device identification or device model identification.
  • the App visits the OTA_shop to find a suitable upgrade package.
  • the App completes the authentication (such as payment, etc.) by displaying the upgrade packages (services) it can choose on the page.
  • the App may need to make it clear that it is applying for a bridge upgrade package for device_bridge.
  • the App carries the model information of Device_bridge in the access request, as well as the bridge service information: such as the target protocol of the bridge.
  • OTA_shop can obtain the public key information of device_bridge based on the identification information of the bridge in order to complete the token generation in subsequent steps.
  • OTA_shop can also send OTA_shop's public key information to device_bridge.
  • the public key information of OTA_shop can also be obtained in advance by device_bridge.
  • OTA_shop after OTA_shop determines that the App can obtain the upgrade package, it needs to issue a certificate token1 to the App that can download the upgrade package.
  • the token1 can be generated by encrypting one or more of the following information: downloadable certificate, upgrade package download address, The upgrade package ID, App ID, random words, download time limit, etc. are generated after encryption using the public key of device_bridge. Alternatively, the above information can also be sent to the App separately by OTA_shop.
  • App sends an upgrade request to Device_bridge.
  • the upgrade request can include token1.
  • the upgrade request can also include information such as the upgrade package download address and upgrade package identification.
  • Device_bridge After Device_bridge receives the above information, it first uses its saved secret key (the private key corresponding to its own public key) to decrypt. Confirm the legality of the content. Device_bridge can also encrypt the decrypted information + its credentials (such as Device_bridge's ID) using the public key of OTA_shop to generate Token2.
  • saved secret key the private key corresponding to its own public key
  • Device_bridge can also encrypt the decrypted information + its credentials (such as Device_bridge's ID) using the public key of OTA_shop to generate Token2.
  • Device_bridge sends a request to download the upgrade package to OTA_shop or the upgrade package download address, and the request carries token2.
  • OTA_shop is a logical concept, and the address for downloading the upgrade package can be separate.
  • OTA_shop is responsible for applying for the upgrade package and designating a specific address to provide the upgrade package.
  • OTA_shop can be a software store maintained by other ecosystems.
  • Device_bridge notifies the APP that downloading the upgrade package is completed.
  • the configuration device is installed with an APP that controls the bridge device (device_bridge) for upgrade
  • the above server is the server corresponding to the OTA store (OTA_shop).
  • Figure 9 shows is a schematic diagram of another device upgrade process involved in the embodiment of the present application. As shown in Figure 9, the device upgrade process is as follows:
  • 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.
  • Device_bridge After receiving the above message, Device_bridge uses the bridge capability query response message to reply.
  • the response message may carry the address or identification of its upgrade package application store. It is also possible to obtain the app store address through other means.
  • the App visits OTA_shop to find a suitable upgrade package.
  • the App completes the certification by displaying the upgrade packages (services) it can choose on the page.
  • AppOTA_shop makes it clear that it is applying for a bridge upgrade package for device_bridge.
  • OTA_shop provides information on suitable upgrade packages according to its conditions.
  • the APP notifies OTA_shop of the target device Device_bridge where it plans to download the target upgrade package: the identifier of Device_bridge.
  • OTA_shop completes binding of the ID of Device_bridge and the ID of the target upgrade package to be downloaded. After completion, return the download certificate of the upgrade package to the APP (corresponding to the first certificate above, which can be token1).
  • Device_bridge requests OTA_shop to download the upgrade package. Carry the above download credentials (such as token1).
  • Device_bridge notifies the APP that downloading the upgrade package is completed.
  • 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 at least one upgrade package from the server; that is, in In the above solution, the configuration device instructs the first device to select an upgrade package from multiple upgrade packages to upgrade and obtain new bridging capabilities, thereby greatly improving the process of controlling the first device to upgrade and obtain new bridging capabilities.
  • the flexibility of bridging capability upgrades expands the application scenarios of bridging.
  • FIG. 10 shows a block diagram of an equipment upgrade device provided by an embodiment of the present application.
  • the device upgrading device 1000 has the function of implementing the function performed by the configuration device in the method shown in FIG. 3 or FIG. 7 .
  • the device may include:
  • the sending module 1001 is used to send a query request to 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 receiving module 1002 is used to receive the query results sent by the server; the query results include information about at least one upgrade package;
  • the sending module 1001 is further configured 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.
  • 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.
  • the query request also includes target bridging capability information; the target bridging capability information is used to indicate the ability to provide bridging services for the target device;
  • the query result includes information about the at least one upgrade package that matches the device model of the first device and the target bridging capability information.
  • the sending module is further configured to send a second request to the server; the second request is used to request a certificate for the first device to download the upgrade package from the server;
  • the receiving module is also used to receive the first certificate sent by the server;
  • the sending module is also configured to send the first voucher to the first device, where the first voucher is used for the first device to download the target upgrade package from the server according to the first voucher.
  • the first voucher contains voucher information;
  • the voucher 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.
  • the first certificate is a certificate generated by encrypting the certificate information with the public key of the first device.
  • 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.
  • the sending module is further configured to send the identification information of the first device to the server.
  • the device further includes:
  • An acquisition module configured to acquire the identification information of the server in the process of querying the bridging capability obtained by the first device through upgrade
  • the sending module is configured to send the query request to the server according to the identification information of the server.
  • the receiving module is also configured to receive a download completion response sent by the first device; the download completion response is used to instruct the first device to complete the download of the target upgrade package. download;
  • 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 the bridging capability based on the target upgrade package.
  • Figure 11 shows a block diagram of an equipment upgrade device provided by an embodiment of the present application.
  • the device has the function of realizing the function performed by the first device in the method shown in FIG. 4 or FIG. 7 .
  • the device may include:
  • the receiving module 1101 is used to receive the first request sent by the configuration device; the first request is a request sent according to 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 bridging capability of 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 one of;
  • Download module 1102 configured to download the target upgrade package from the server according to the first request.
  • the receiving module is also configured to receive the first voucher sent by the configuration device;
  • the download module is configured to download the target upgrade package from the server through the first voucher according to the first request.
  • the first voucher includes voucher information;
  • the voucher 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.
  • the first certificate is a certificate generated by encrypting the certificate information with the public key of the first device
  • the download module is used to,
  • the download module is used to:
  • 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.
  • the download module is used to:
  • the second download request also includes identification information of the target upgrade package.
  • the device further includes:
  • the receiving module is also configured to receive the upgrade package indication information sent by the configuration device;
  • the upgrade package indication information includes at least one of the following information: the download address of the target upgrade package; or, the target upgrade Package identification information;
  • the download module is configured to download the target upgrade package from the server through the upgrade package indication information according to the first request.
  • the device further includes: an upgrade module, configured to upgrade the bridging capability based on the target upgrade package.
  • the device further includes:
  • a sending module configured to send a download completion response to the configuration device when the download of the target upgrade package is completed
  • the upgrade module is configured to run the target upgrade package to upgrade the device upon receiving an upgrade instruction sent by the configuration device.
  • Figure 12 shows a block diagram of an equipment upgrade device provided by an embodiment of the present application.
  • the device has the function of being executed by the server in implementing the method shown in FIG. 5 or FIG. 7 .
  • the device may include:
  • the receiving module 1201 is used to receive a query request sent by the configuration device; the query request is used to query the upgrade package; the upgrade package is used to upgrade the bridging capability of the first device;
  • Sending module 1202 configured to send query results to the configuration device; the query results include information about at least one upgrade package;
  • the sending module 1202 is also 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 received by the configuration device through the first request. Indicated to the first device, and the target upgrade package is one of the at least one upgrade package.
  • the query request includes device model information of the first device
  • the sending module is configured to send information about the at least one upgrade package that matches the device model of the first device to the configuration device.
  • the query request also includes target bridging capability information; the target bridging capability information is used to indicate the ability to provide bridging services for the target device;
  • the sending module is configured to send the 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.
  • the receiving module is further configured to receive a second request sent by the configuration device; the second request is used to request the first device to download an upgrade package from the server. certificate;
  • the sending module is further configured to send a first voucher to the configuration device according to the second request; the first voucher is used for the first device to download the target upgrade package from the first server. .
  • the first voucher includes voucher information;
  • the voucher 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.
  • the device further includes:
  • An encryption module configured to encrypt the credential information using the public key of the first device to obtain the first credential.
  • the receiving module is also configured to receive the device identification of the first device sent by the configuration device;
  • the device 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.
  • the sending module is used to,
  • the target upgrade package is sent to the first device.
  • the sending module is used to,
  • the target upgrade package is sent to the first device.
  • the second download request also includes identification information of the target upgrade package; the device further includes:
  • a binding information generation module configured to 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;
  • the sending module is configured to send the target upgrade to the first device after the legality check of the first certificate passes and the legality check of the identification information of the target upgrade package passes. Bag.
  • the device provided in the above embodiment implements its functions, only the division of the above functional modules is used as an example. In practical applications, the above functions can be allocated to different functional modules according to actual needs. That is, the content structure of the device is divided into different functional modules to complete all or part of the functions described above.
  • FIG 13 shows a schematic structural diagram of a computer device 1300 provided by an 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.
  • 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.
  • the receiver 1302 and the transmitter 1303 can be implemented as a communication component, and the communication component can be a communication chip.
  • This communication chip can also be called a transceiver.
  • Memory 1304 is connected to processor 1301 through bus 1305.
  • the memory 1304 can be used to store a computer program, and the processor 1301 is used to execute the computer program to implement various steps in the above method embodiments.
  • memory 1304 may be implemented by any type of volatile or non-volatile storage device, or combination thereof, including but not limited to: magnetic or optical disks, electrically erasable programmable Read-only memory, erasable programmable read-only memory, static ready-access memory, read-only memory, magnetic memory, flash memory, programmable read-only memory.
  • the transceiver when the computer device 1300 is implemented as a configuration device, the transceiver is used to send a query request to the server; the query request is used to query the upgrade package; the upgrade package is used for the first device Upgrading the bridging capability; receiving the query result sent by the server; the query result contains information of at least one upgrade package; sending 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 at least one upgrade package.
  • the process performed by the processor 1301 and/or the transceiver in the computer device 1300 may refer to the various steps performed by the configuration device in the method shown in any of the above-mentioned FIG. 3 or FIG. 7 .
  • the transceiver when the computer device 1300 is implemented as a first device, the transceiver is configured to receive a first request sent by the configuration device; the first request is a query request sent by the configuration device to the server. And after receiving the query result sent by the server, a request is sent according to the information of the target upgrade package; 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 about at least one upgrade package; the target upgrade package is one of at least one upgrade package; and download the target upgrade package from the server according to the first request.
  • the process performed by the processor 1301 and/or the transceiver in the computer device 1300 may refer to the various steps performed by the first device in the method shown in either of FIG. 4 or FIG. 7 .
  • the transceiver when the computer device 1300 is implemented as a server, the transceiver is used to receive a query request sent by the configuration device; the query request is used to query the upgrade package; the upgrade package is used for the first
  • the device upgrades the bridging capability; sends a query result to the configuration device; the query result contains information of at least one upgrade package; when the first device downloads the target upgrade package from the server, sends the first device the Target upgrade package; the target upgrade package is indicated by the configuration device to the first device through a first request, and the target upgrade package is one of at least one upgrade package.
  • the process performed by the processor 1301 and/or the transceiver in the computer device 1300 may refer to the various steps performed by the server in the method shown in either FIG. 5 or FIG. 7 .
  • Embodiments of the present application also provide a computer-readable storage medium.
  • a computer program is stored in the storage medium.
  • the computer program is loaded and executed by a processor to implement the above-mentioned FIG. 3, FIG. 4, FIG. 5 or FIG. 7.
  • all or part of the steps are performed by the configuration device, the first device or the server.
  • This application also provides a chip, which is used to run in a computer device, so that the computer device performs the method shown in Figure 3, Figure 4, Figure 5 or Figure 7, by the configuration device, the first device or All or part of the steps performed by the server.
  • the application also provides a computer program product, which computer program product or computer program includes computer instructions, and the computer instructions 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 the processor executes the computer instructions, so that the computer device performs the method shown in FIG. 3, FIG. 4, FIG. 5 or FIG. 7, by configuring the device, All or part of the steps performed by the first device or server.
  • This application also provides a computer program, which is executed by a processor of a computer device to implement the method shown in FIG. 3, FIG. 4, FIG. 5 or FIG. 7, by the configuration device, the first device or the server. All or part of the steps to be performed.
  • Computer-readable media includes computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another.
  • Storage media can be any available media that can be accessed by a general purpose or special purpose computer.

Abstract

A device upgrade method and apparatus, and a device, a storage medium and a program product, which belong to the technical field of the Internet of Things. The method comprises: sending a query request to a server (S301), wherein the query request is used for querying an upgrade package, and the upgrade package is used for a first device to upgrade a bridging capability; receiving a query result sent by the server (S302), wherein the query result includes information of at least one upgrade package; and sending a first request to the first device (S303), wherein the first request is used for instructing the first device to download a target upgrade package from the server. The solution greatly improves the flexibility of upgrading a bridging capability, thereby expanding the application scenarios of bridging.

Description

设备升级方法、装置、设备、存储介质及程序产品Equipment upgrade method, device, equipment, storage medium and program product 技术领域Technical field
本申请涉及物联网技术领域,特别涉及一种设备升级方法、装置、设备、存储介质及程序产品。This application relates to the technical field of the Internet of Things, and in particular to an equipment upgrade method, device, equipment, storage medium and program product.
背景技术Background technique
随着物联网(Internet of Things,IoT)技术的不断发展,越来越多的物联网设备在智能家居、工业生产等诸多领域给用户的生产生活带来了极大的便利性。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.
在相关技术中,不同的物联网设备可能支持不同的物联网协议。为了使得支持不同的物联网协议的物联网设备能够进行互联或者统一管理,支持不同物联网协议的物联网设备可以通过桥接设备进行组网。In related technology, different IoT devices may support different IoT protocols. In order to enable interconnection or unified management of IoT devices that support different IoT protocols, IoT devices that support different IoT protocols can be networked through bridge devices.
发明内容Contents of the invention
本申请实施例提供了一种设备升级方法、装置、设备、存储介质及程序产品。所述技术方案如下:Embodiments of the present application provide an equipment upgrade method, device, equipment, storage medium and program product. The technical solutions are as follows:
一方面,本申请实施例提供了一种设备升级方法,所述方法由配置设备执行,所述方法包括:On the one hand, embodiments of the present application provide a device upgrade method, which is executed by a configuration device. The method includes:
向服务器发送查询请求;所述查询请求用于查询升级包;所述升级包用于第一设备升级桥接能力;Send a query request to 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;
接收所述服务器发送的查询结果;所述查询结果中包含至少一个升级包的信息;Receive a 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; 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 .
一方面,本申请实施例提供了一种设备升级方法,所述方法由第一设备执行,所述方法包括:On the one hand, embodiments of the present application provide a device upgrade method, which is executed by a first device. The method includes:
接收配置设备发送的第一请求;所述第一请求是所述配置设备向服务器发送查询请求并接收所述服务器发送的查询结果后,根据目标升级包的信息发送的请求;所述查询请求用于查询升级包;所述升级包用于第一设备升级桥接能力;所述查询结果中包含至少一个升级包的信息;所述目标升级包是所述至少一个升级包中的一个;Receive the first request sent by the configuration device; the first request is a request sent according to 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 Querying the upgrade package; 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;
根据所述第一请求,从所述服务器下载所述目标升级包。According to the first request, download the target upgrade package from the server.
一方面,本申请实施例提供了一种设备升级方法,所述方法由服务器执行,所述方法包括:On the one hand, embodiments of the present application provide a device upgrade method, which is executed by a server. The method includes:
接收配置设备发送的查询请求;所述查询请求用于查询升级包;所述升级包用于第一设备升级桥接能力;Receive a query request sent by the configuration device; the query request is used to query the upgrade package; the upgrade package is used to upgrade the bridging capability of the first device;
向所述配置设备发送查询结果;所述查询结果中包含至少一个升级包的信息;Send a query result to the configuration device; the query result contains 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.
另一方面,本申请实施例提供了一种设备升级装置,所述装置包括:On the other hand, embodiments of the present application provide an equipment upgrade device, which includes:
发送模块,用于向服务器发送查询请求;所述查询请求用于查询升级包;所述升级包用于第一设备升级桥接能力;A sending module, configured to send a query request to 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;
接收模块,用于接收所述服务器发送的查询结果;所述查询结果中包含至少一个升级包的信息;A receiving module, configured to receive query results sent by the server; the query results include information on at least one upgrade package;
所述发送模块,还用于向所述第一设备发送第一请求;所述第一请求用于指示所述第一设备从所述服务器下载所述目标升级包;所述目标升级包是所述至少一个升级包中的一个。The sending module is further configured 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 the at least one of the above upgrade packages.
另一方面,本申请实施例提供了一种设备升级装置,所述装置包括:On the other hand, embodiments of the present application provide an equipment upgrade device, which includes:
接收模块,用于接收配置设备发送的第一请求;所述第一请求是所述配置设备向服务器发送查询请求并接收所述服务器发送的查询结果后,根据目标升级包的信息发送的请求;所述查询请求用于查询升级包;所述升级包用于第一设备升级;所述查询结果中包含至少一个升级包的信息;所述目标升级包是所述至少一个升级包中的一个;A receiving module, configured to receive the first request sent by the configuration device; the first request is a request sent according to 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 an 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;
下载模块,用于根据所述第一请求,从所述服务器下载所述目标升级包。A download module, configured to download the target upgrade package from the server according to the first request.
另一方面,本申请实施例提供了一种设备升级装置,所述装置包括:On the other hand, embodiments of the present application provide an equipment upgrade device, which includes:
接收模块,用于接收配置设备发送的查询请求;所述查询请求用于查询升级包;所述升级包用于第一设备升级;A receiving module, configured to receive a query request sent by the configuration device; the query request is used to query the upgrade package; the upgrade package is used to upgrade the first device;
发送模块,用于向所述配置设备发送查询结果;所述查询结果中包含至少一个升级包的信息;A sending module, configured to send query results to the configuration device; the query results include information on at least one upgrade package;
所述发送模块,还用于在第一设备从所述服务器下载目标升级包时,向所述第一设备发送所述目标升级包;所述目标升级包由所述配置设备通过第一请求指示给所述第一设备,且所述目标升级包是所述至少一个升级包中的一个。The sending module is also 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 by the configuration device through the first request. to the first device, and the target upgrade package is one of the at least one upgrade package.
另一方面,本申请实施例提供了一种计算机设备,所述计算机设备实现为信息上报设备,所述计算机设备包括处理器、存储器和收发器;On the other hand, embodiments of the present application provide a computer device, the computer device is implemented as an information reporting device, and the computer device includes a processor, a memory, and a transceiver;
存储器中存储有计算机程序,处理器执行所述计算机程序,以使得计算机设备实现上述设备升级方法。A computer program is stored in the memory, and the processor executes the computer program, so that the computer device implements the above device upgrade method.
再一方面,本申请实施例提供了一种计算机设备,所述计算机设备包括处理器、存储器和收发器,所述存储器存储有计算机程序,所述计算机程序用于被所述处理器执行,以实现上述设备升级方法。In yet another aspect, embodiments of the present application provide a computer device, which includes a processor, a memory, and a transceiver. The memory stores a computer program, and the computer program is configured to be executed by the processor, so as to Implement the above device upgrade method.
又一方面,本申请实施例还提供了一种计算机可读存储介质,所述存储介质中存储有计算机程序,所述计算机程序由处理器加载并执行以实现上述设备升级方法。On another aspect, embodiments of the present application also provide a computer-readable storage medium, in which a computer program is stored, and the computer program is loaded and executed by a processor to implement the above device upgrade method.
又一方面,本申请还提供了一种芯片,所述芯片用于在计算机设备中运行,以使得所述计算机设备执行上述设备升级方法。In another aspect, the present application also provides a chip, which is used to run in a computer device, so that the computer device executes the above device upgrade method.
又一方面,本申请提供了一种计算机程序产品,该计算机程序产品包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述设备升级方法。In yet another aspect, the present application provides a computer program product including computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the above device upgrade method.
又一方面,本申请提供了一种计算机程序,该计算机程序由计算机设备的处理器执行,以实现上述设备升级方法。In another aspect, the present application provides a computer program, which is executed by a processor of a computer device to implement the above device upgrade method.
本申请实施例提供的技术方案可以带来如下有益效果:The technical solutions provided by the embodiments of this application can bring the following beneficial effects:
配置设备从服务器查询至少一个升级包的信息,并指示第一设备从服务器中下载至少一个升级包中的目标升级包;也就是说,在上述方案中,由配置设备指示第一设备从多个升级包中选择一个升级包来升级获得新的桥接能力,从而在控制第一设备升级获得新的桥接能力的过程中,极大的提高了桥接能力升级的灵活性,从而扩展了桥接的应用场景。The configuration device queries the server for information about at least one upgrade package, and instructs the first device to download the target upgrade package in at least one upgrade package from the server; that is, in the above solution, the configuration device instructs the first device to download the target upgrade package from multiple upgrade packages. Select an upgrade package from the upgrade package to upgrade and obtain new bridging capabilities, thereby greatly improving the flexibility of bridging capability upgrades in the process of controlling the upgrade of the first device to obtain new bridging capabilities, thereby expanding the application scenarios of bridging. .
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without exerting creative efforts.
图1是本申请一个实施例提供的物联网的网络架构的示意图;Figure 1 is a schematic diagram of the network architecture of the Internet of Things provided by an embodiment of the present application;
图2是本申请涉及的桥接架构示意图;Figure 2 is a schematic diagram of the bridge architecture involved in this application;
图3是本申请一个实施例提供的设备升级方法的流程图;Figure 3 is a flow chart of a device upgrade method provided by an embodiment of the present application;
图4是本申请一个实施例提供的设备升级方法的流程图;Figure 4 is a flow chart of a device upgrade method provided by an embodiment of the present application;
图5是本申请一个实施例提供的设备升级方法的流程图;Figure 5 is a flow chart of a device upgrade method provided by an embodiment of the present application;
图6是本申请一个实施例提供的获取升级包的流程框架图;Figure 6 is a process framework diagram for obtaining an upgrade package provided by an embodiment of the present application;
图7是本申请一个实施例提供的设备升级方法的流程图;Figure 7 is a flow chart of a device upgrade method provided by an embodiment of the present application;
图8是图7所示实施例涉及的一种设备升级流程的示意图;Figure 8 is a schematic diagram of a device upgrade process involved in the embodiment shown in Figure 7;
图9是图7所示实施例涉及的另一种设备升级流程的示意图;Figure 9 is a schematic diagram of another device upgrade process involved in the embodiment shown in Figure 7;
图10是本申请一个实施例提供的设备升级装置的框图;Figure 10 is a block diagram of an equipment upgrade device provided by an embodiment of the present application;
图11是本申请一个实施例提供的设备升级装置的框图;Figure 11 is a block diagram of an equipment upgrade device provided by an embodiment of the present application;
图12是本申请一个实施例提供的设备升级装置的框图;Figure 12 is a block diagram of an equipment upgrade device provided by an embodiment of the present application;
图13是本申请一个实施例提供的计算机设备的结构示意图。Figure 13 is a schematic structural diagram of a computer device provided by an embodiment of the present application.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the purpose, technical solutions and advantages of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
本申请实施例描述的网络架构以及业务场景是为了更加清楚地说明本申请实施例的技术方案,并不构成对本申请实施例提供的技术方案的限定,本领域普通技术人员可知,随着网络架构的演变和新业务场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。The network architecture and business scenarios described in the embodiments of this application are to more clearly explain the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided by the embodiments of this application. Those of ordinary skill in the art will know that with the network architecture evolution and the emergence of new business scenarios, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.
请参考图1,其示出了本申请一个实施例提供的物联网的网络架构的示意图。该物联网的网络架构可以包括:物联网设备110(图1中示出为物联网设备110a、物联网设备110b、物联网设备110c、物联网设备110d)和配置设备120;该网络架构还可以包括桥接设备130;该网络架构还包括服务器140。Please refer to Figure 1, which shows a schematic diagram of the network architecture of the Internet of Things provided by an embodiment of the present application. The network architecture of the Internet of Things may include: an Internet of Things device 110 (shown as an Internet of Things device 110a, an Internet of Things device 110b, an Internet of Things device 110c, and an Internet of Things device 110d in Figure 1) and a configuration device 120; the network architecture may also A bridge device 130 is included; the network architecture also includes a server 140.
物联网设备110可以是指在物联网中,用于提供物联网协议对应的客户端功能或者服务端功能的设备。The Internet of Things device 110 may refer to a device used to provide client functions or server functions corresponding to the Internet of Things protocol in the Internet of Things.
比如,物联网设备110可以是智能家居设备,例如,智能开关、智能灯具、智能电视、智能空调、智能冰箱、智能微波炉、智能电饭煲、扫地机器人等等。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, etc.
或者,物联网设备110可以是工业生产设备,例如,车床、工业机器人、太阳能面板、风力发电机等 等。Alternatively, the IoT device 110 may be an industrial production equipment, such as a lathe, an industrial robot, a solar panel, a wind turbine, etc.
或者,物联网设备110可以是商业服务设备,例如,无人售货机等等。Alternatively, the Internet of Things device 110 may be a commercial service device, such as an unmanned vending machine or the like.
或者,物联网设备110可以是智能监控设备,例如,监控摄像头、红外传感器、声音传感器、温度传感器等等。Alternatively, the IoT device 110 may be an intelligent monitoring device, such as a surveillance camera, an infrared sensor, a sound sensor, a temperature sensor, etc.
在一种可能的实现方式中,配置设备120是用户侧的终端设备。比如,配置设备120可以是智能控制器、智能遥控器、智能手机、平板电脑、智能手表、智能电视、智能音箱、智能开关、网关等等;或者,配置设备120也可以是个人电脑,比如台式电脑、便携式计算机、个人工作站等等。In a possible implementation, the configuration device 120 is a user-side terminal device. For example, the configuration device 120 can be a smart controller, a smart remote control, a smart phone, a tablet, a smart watch, a smart TV, a smart speaker, a smart switch, a gateway, etc.; or the configuration device 120 can also be a personal computer, such as a desktop. Computers, laptops, personal workstations and more.
在另一种可能的实现方式中,配置设备120是基于终端设备运行的客户端实体(可以是虚拟实体),例如,配置设备120可以是运行在终端设备中,用于对物联网设备进行访问、控制、以及管理等操作的应用程序(Application,APP)。In another possible implementation, the configuration device 120 is a client entity (which may be a virtual entity) running on a terminal device. For example, the configuration device 120 may be running in a terminal device for accessing Internet of Things devices. , control, and management operations (Application, APP).
桥接设备130用于实现支持不同物联网协议的两个设备之间的交互。桥接设备130在支持不同物联网协议的物联网设备110之间,或者,在支持不同物联网协议的物联网设备110和配置设备120之间,提供信息转换和传递的服务。The bridge device 130 is used to implement interaction between two devices supporting different Internet of Things protocols. The bridge device 130 provides information conversion and transfer services between IoT devices 110 that support different IoT protocols, or between IoT devices 110 that support different IoT protocols and the configuration device 120 .
桥接设备130可以是专用于进行桥接的设备,或者,桥接设备130也可以是具有桥接功能的智能设备,比如网关或者路由器等等。The bridging device 130 may be a device dedicated for bridging, or the bridging device 130 may also be an intelligent device with a bridging function, such as a gateway or a router.
服务器140可以是部署在网络侧的服务器。服务器140中可以存储用于对设备升级的升级包,该升级包可以使得设备通过升级获得新的桥接能力。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 upgrading.
在本申请实施例中,上述物联网设备110、配置设备120、桥接设备130可以是满足相同或者不同的物联网协议的电子设备,比如,可以是满足连接标准联盟(Connectivity Standards Alliance,CSA)(或称Zigbee联盟)下的Matter协议(或称通过IP连接家庭工作组(Connected Home over IP Working Group,CHIP)项目)的电子设备。In the embodiment of the present application, the above-mentioned Internet of Things device 110, configuration device 120, and bridge device 130 may be electronic devices that meet the same or different Internet of Things protocols. For example, they may be electronic devices that meet the Connectivity Standards Alliance (CSA) (Connectivity Standards Alliance, CSA) ( Electronic devices under the Matter protocol (or Connected Home over IP Working Group (CHIP) project) under the Zigbee Alliance.
在图1中,当物联网设备110a和物联网设备110b之间支持相同的协议规范时,物联网设备110a和物联网设备110b之间可以建立安全连接,比如,基于Matter规范建立安全连接。In Figure 1, when the IoT device 110a and the IoT device 110b support the same protocol specification, a secure connection can be established between the IoT device 110a and the IoT device 110b, for example, a secure connection is established based on the Matter specification.
当物联网设备110c和物联网设备110d之间支持不同的协议规范,比如,物联网设备110c是Zigbee设备,而物联网设备110d是Matter设备时,物联网设备110c和物联网设备110d之间可以通过桥接设备130相连。When the IoT device 110c and the IoT device 110d support different protocol specifications, for example, the IoT device 110c is a Zigbee device and the IoT device 110d is a Matter device, the IoT device 110c and the IoT device 110d can connected via a bridge device 130.
请参考图2,其示出了本申请涉及的桥接架构示意图。如图2所示,以Matter协议下的桥接框架为例,目前物联网的桥(bridge)解决方案中,需要桥生产商应用程序201(也称为bridge Manufacturer App,是厂家私有实现的App)来完成对桥接的子设备202(也称为Bridged Device,对应图2中的BD1~BD3)等异构设备(即非Matter协议设备,比如Zigbee设备)的桥接功能实现,其中,图2中的Bridged Device可以为实体物联网设备,也可以为逻辑设备;bridge Manufacturer App控制在桥接设备203(Bridge)上为BD1等设备生成对应的Matter设备204(也称为Matter Device,对应图2中的MD1~MD4),以便支持Matter协议的App(即Matter App 1~Matter App 3)通过桥接设备203对桥接的子设备202进行查看和控制,其中,图2中的Matter Device可以为逻辑设备。Please refer to Figure 2, which shows a schematic diagram of the bridge architecture involved in this application. As shown in Figure 2, taking the bridging framework under the Matter protocol as an example, the current bridge solution for the Internet of Things requires a bridge manufacturer application 201 (also called a bridge Manufacturer App, which is an App implemented privately by the manufacturer) To complete the bridging function of heterogeneous devices (that is, non-Matter protocol devices, such as Zigbee devices) such as bridged sub-device 202 (also called Bridged Device, corresponding to BD1 ~ BD3 in Figure 2), among which, in Figure 2 Bridged Device can be a physical IoT device or a logical device; the bridge Manufacturer App controls the bridge device 203 (Bridge) to generate the corresponding Matter device 204 (also called Matter Device, corresponding to MD1 in Figure 2) for BD1 and other devices. ~MD4), so that the App that supports the Matter protocol (i.e., Matter App 1 ~ Matter App 3) can view and control the bridged sub-device 202 through the bridge device 203, where the Matter Device in Figure 2 can be a logical device.
其中,为BD1等设备生成对应的Matter设备204的实现方法可以为:在Bridge的数据模型上生成对应的端点(endpoints),一个或者多个endpoints对应一个Matter Device;因此在Bridge的数据模型中既包含了其自身功能的endpoints(可以称为endpoint0),也包含其桥接的异构设备对应的endpoints。Among them, the implementation method of generating the corresponding Matter device 204 for devices such as BD1 can be: generating corresponding endpoints (endpoints) on the Bridge data model, and one or more endpoints correspond to a Matter Device; therefore, in the Bridge data model Contains the endpoints of its own functions (can be called endpoint0), and also includes the endpoints corresponding to the heterogeneous devices it bridges.
在本申请涉及的一个桥接方案中,桥接能力与桥接设备是紧耦合的,也就是说,桥接设备的桥接能力在出厂时就已经安装好。而支持不同的物联网协议的设备需要通过不同的桥接能力进行交接,也就是说,对于物联网中的一个物联网设备来说,如果物联网中没有预先安装与该物联网设备匹配的桥接设备,则无法通过桥接方式建立该物联网设备与其它异构的物联网设备之间的通信,从而限制了桥接的应用场景。In a bridging solution involved in this application, the bridging capability and the bridging device are tightly coupled, that is, the bridging capability of the bridging device is already installed at the factory. Devices that support different IoT protocols need to be handed over through different bridging capabilities. That is to say, for an IoT device in the IoT, if there is no pre-installed bridge device in the IoT that matches the IoT device. , then communication between the IoT device and other heterogeneous IoT devices cannot be established through bridging, thus limiting the application scenarios of bridging.
对此,本申请提出对已有的物联网设备或者桥接设备进行升级的方案,以使得物联网设备或者桥接设备能够支持新的桥接能力。In this regard, this application proposes a solution to upgrade existing IoT devices or bridging devices so that the IoT devices or bridging devices can support new bridging capabilities.
设备升级可以通过OTA(Over the Air,在线升级)的方式来实现。OTA也称为空中下载技术,是指服务器通过通信网络与设备连接,并将升级包或者升级数据发送给设备的功能。一种通过OTA实现的设备升级方案可以如下:Equipment upgrades can be achieved through OTA (Over the Air, online upgrade). OTA, also known as over-the-air download technology, refers to the function of the server connecting to the device through the communication network and sending the upgrade package or upgrade data to the device. A device upgrade solution implemented through OTA can be as follows:
S1,OTA Provider(供应者,通常为云端的服务器)宣告自身的存在。S1, OTA Provider (provider, usually a server in the cloud) announces its existence.
S2,OTA Requestor(请求者,通常为待升级的设备)请求下载软件升级包。S2, OTA Requestor (requester, usually the device to be upgraded) requests to download the software upgrade package.
S3,OTA Provider查询最新的软件升级包。S3, OTA Provider queries the latest software upgrade package.
其中,OTA Provider并不永久保存真正的软件升级包。设备厂商提供升级包,当有新的软件升级包时,会注册到一个升级包管理服务器上,OTA Provider可以向升级包管理服务器查询关于升级包的信息,包括但不限于版本、适用设备型号,适用设备软件版本等。在此步骤中OTA Provider可以根据OTA Requestor 的当前软件版本,查找可升级的最新软件升级包。Among them, OTA Provider does not permanently save the real software upgrade package. Equipment manufacturers provide upgrade packages. When there is a new software upgrade package, it will be registered on 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 version and applicable device model. Applicable device software version, etc. In this step, the OTA Provider can find the latest software upgrade package that can be upgraded based on the current software version of the OTA Requestor.
S4,OTA Provider向OTA Requestor发送Busy应答消息,表示暂时不能提供升级包,需要去下载缓存。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 and cached.
S5,OTA Provider获取升级包。S5, OTA Provider obtains the upgrade package.
S6,OTA Requestor再次请求软件升级包。S6, OTA Requestor requests the software upgrade package again.
S7,向OTA Requestor返回软件升级包下载地址。S7, returns the software upgrade package download address to the OTA Requestor.
S8,开始下载软件升级包。S8, start downloading the software upgrade package.
S9,请求执行软件升级包并执行。S9, request and execute the software upgrade package.
S10,升级完成后,通知OTA Provider升级结果。S10, after the upgrade is completed, notify the OTA Provider of the upgrade result.
在桥接能力升级的场景下,通常需要用户主动选择升级获得哪一种桥接能力,以及选择升级哪个版本的桥接能力等等。然而在上述方案中,待升级的设备(OTA Requestor)只能从云端(OTA Provider)获取到最新版本的升级包,因此无法满足桥接能力升级的场景。In the scenario of bridging capability upgrade, users usually need to actively choose which bridging capability to upgrade, choose which version of bridging 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), so it cannot meet the scenario of bridging capability upgrade.
对于上述方案,本申请后续实施例提供了一种设备升级方案,服务器能够将第一设备可用的升级包的信息提供给配置设备,由配置设备控制第一设备获取某个升级包来升级获得新的桥接能力,从而极大的提高了桥接能力升级的灵活性,从而扩展了桥接的应用场景。For the above solution, subsequent embodiments of the present application provide a device upgrade solution. The server can provide information about the upgrade package available to the first device to the configuration device, and the configuration device controls the first device to obtain an upgrade package to upgrade and obtain a new device. bridging capabilities, thus greatly improving the flexibility of bridging capability upgrades and expanding bridging application scenarios.
请参考图3,其示出了本申请一个实施例提供的设备升级方法的流程图,该方法可以由配置设备执行,比如,该配置设备可以是图1所示的网络架构中的配置设备120;该方法可以包括如下几个步骤:Please refer to Figure 3, which shows a flow chart of a device upgrade method provided by an embodiment of the present application. The method can be executed by a configuration device. For example, the configuration device can be the configuration device 120 in the network architecture shown in Figure 1. ;This method may include the following steps:
步骤301,向服务器发送查询请求;查询请求用于查询升级包;升级包用于第一设备升级桥接能力。Step 301: Send a query request to 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.
在一种可能的实现方式中,配置设备可以向服务器查询所有可用的升级包。In a possible implementation, the configuration device can query the server for all available upgrade packages.
或者,配置设备也可以向服务器查询满足某些条件的升级包;比如,配置设备可以向服务器查询与某一种或者多种型号的设备可用的升级包,和/或,配置设备可以向服务器查询某一种或者多种桥接能力对应的升级包。Alternatively, the configuration device can also query the server for upgrade packages that meet certain conditions; for example, the configuration device can query the server for upgrade packages available for one or more models of devices, and/or the configuration device can query the server An upgrade package corresponding to one or more bridging capabilities.
步骤302,接收服务器发送的查询结果;查询结果中包含至少一个升级包的信息。Step 302: Receive the query result sent by the server; the query result contains information about at least one upgrade package.
在本申请实施例中,服务器接收到上述查询请求之后,可以将与查询请求对应的升级包的信息发送给配置设备。In this embodiment of the present application, after receiving the above query request, the server may send the information of the upgrade package corresponding to the query request to the configuration device.
其中,上述升级包的信息可以包括升级包的标识信息、对应的桥接能力的信息、版本号、适用的设备型号、下载地址等等。The information of the above-mentioned upgrade package may include identification information of the upgrade package, corresponding bridging capability information, version number, applicable device model, download address, etc.
步骤303,向第一设备发送第一请求;第一请求用于指示第一设备从服务器下载目标升级包;目标升级包是至少一个升级包中的一个。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 at least one upgrade package.
在本申请实施例中,上述目标升级包可以是配置设备基于至少一个升级包的信息,从至少一个升级包中选择的升级包。In this 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 about at least one upgrade package.
比如,上述目标升级包可以是配置设备按照预先设置的选择策略,从至少一个升级包中选择的升级包;或者,上述目标升级包也可以是配置设备根据用户的选择操作,从至少一个升级包中选择的升级包。For example, the above target upgrade package may be an upgrade package that the configuration device selects from at least one upgrade package according to a preset selection strategy; or the above target upgrade package may also be an upgrade package that the configuration device selects from at least one upgrade package according to the user's selection operation. the selected upgrade package.
综上所述,本申请实施例所示的方案,配置设备从服务器查询至少一个升级包的信息,并指示第一设备从服务器中下载至少一个升级包中的目标升级包;也就是说,在上述方案中,由配置设备指示第一设备从多个升级包中选择一个升级包来升级获得新的桥接能力,从而在控制第一设备升级获得新的桥接能力的过程中,极大的提高了桥接能力升级的灵活性,从而扩展了桥接的应用场景。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 at least one upgrade package from the server; that is, in In the above solution, the configuration device instructs the first device to select an upgrade package from multiple upgrade packages to upgrade and obtain new bridging capabilities, thereby greatly improving the process of controlling the first device to upgrade and obtain new bridging capabilities. The flexibility of bridging capability upgrades expands the application scenarios of bridging.
请参考图4,其示出了本申请一个实施例提供的设备升级方法的流程图,该方法可以由第一设备执行,比如,该第一设备可以是图1所示的网络架构中的配置设备120;该方法可以包括如下几个步骤:Please refer to Figure 4, which shows a flow chart of a device upgrade method provided by an embodiment of the present application. The method can be executed by a first device. For example, the first device can be configured in the network architecture shown in Figure 1 Device 120; the method may include the following steps:
步骤401,接收配置设备发送的第一请求;第一请求是配置设备向服务器发送查询请求并接收服务器发送的查询结果后,根据目标升级包的信息发送的请求;查询请求用于查询升级包;升级包用于第一设备升级;查询结果中包含至少一个升级包的信息;目标升级包是至少一个升级包中的一个。Step 401: Receive the first request sent by the configuration device; the first request is a request sent according to 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 at least one upgrade package.
步骤402,根据第一请求,从服务器下载目标升级包。Step 402: Download the target upgrade package from the server according to the first request.
综上所述,本申请实施例所示的方案,配置设备从服务器查询至少一个升级包的信息,并指示第一设备从服务器中下载至少一个升级包中的目标升级包;也就是说,在上述方案中,由配置设备指示第一设备从多个升级包中选择一个升级包来升级获得新的桥接能力,从而在控制第一设备升级获得新的桥接能力的过程中,极大的提高了桥接能力升级的灵活性,从而扩展了桥接的应用场景。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 at least one upgrade package from the server; that is, in In the above solution, the configuration device instructs the first device to select an upgrade package from multiple upgrade packages to upgrade and obtain new bridging capabilities, thereby greatly improving the process of controlling the first device to upgrade and obtain new bridging capabilities. The flexibility of bridging capability upgrades expands the application scenarios of bridging.
请参考图5,其示出了本申请一个实施例提供的设备升级方法的流程图,该方法可以由服务器执行,比如,该服务器可以是图1所示的网络架构中的服务器140;该方法可以包括如下几个步骤:Please refer to Figure 5, which shows a flow chart of a device upgrade method provided by an embodiment of the present application. This method can be executed by a server. For example, the server can be the server 140 in the network architecture shown in Figure 1; this method It can include the following steps:
步骤501,接收配置设备发送的查询请求;查询请求用于查询升级包;升级包用于第一设备升级。Step 501: Receive a query request sent by the configuration device; the query request is used to query the upgrade package; the upgrade package is used to upgrade the first device.
步骤502,向配置设备发送查询结果;查询结果中包含至少一个升级包的信息。Step 502: Send a query result to the configuration device; the query result contains information about at least one upgrade package.
步骤503,在第一设备从服务器下载目标升级包时,向第一设备发送目标升级包;目标升级包由配置设备通过第一请求指示给第一设备,且目标升级包是至少一个升级包中的一个。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 in at least one upgrade package. one of.
综上所述,本申请实施例所示的方案,配置设备从服务器查询至少一个升级包的信息,并指示第一设备从服务器中下载至少一个升级包中的目标升级包;也就是说,在上述方案中,由配置设备指示第一设备从多个升级包中选择一个升级包来升级获得新的桥接能力,从而在控制第一设备升级获得新的桥接能力的过程中,极大的提高了桥接能力升级的灵活性,从而扩展了桥接的应用场景。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 at least one upgrade package from the server; that is, in In the above solution, the configuration device instructs the first device to select an upgrade package from multiple upgrade packages to upgrade and obtain new bridging capabilities, thereby greatly improving the process of controlling the first device to upgrade and obtain new bridging capabilities. The flexibility of bridging capability upgrades expands the application scenarios of bridging.
通过本申请上述图3至图5所示的方案,配置设备可以服务器查询用于升级桥接能力的各个升级包的信息,并指示第一设备从服务器获取各个升级包中的一个来进行升级。Through the solutions shown in FIGS. 3 to 5 of the present application, the configuration device can query the server for information on each upgrade package used to upgrade the bridging capability, and instruct the first device to obtain one of the upgrade packages from the server to perform the upgrade.
请参考图6,其示出了本申请一个实施例提供的设备升级过程中获取升级包的流程框架图。在一种可能的应用场景中,如图6所示,物联网中的配置设备61向服务器62查询可用于对桥接设备或者物联网设备进行升级,以使得设备获得新的桥接能力的各个升级包的信息(步骤S1);然后将各个升级包的信息展示给用户,根据用户的选择操作,从各个升级包中选择一个作为目标升级包(步骤S2);之后,配置设备61指示第一设备63获取目标升级包(步骤S3);第一设备63根据配置设备61的指示,从服务器62下载目标升级包(步骤S4)。Please refer to FIG. 6 , which shows a process framework diagram for obtaining an upgrade package during a device upgrade provided by an embodiment of the present application. In a possible application scenario, as shown in Figure 6, the configuration device 61 in the Internet of Things queries the server 62 for various upgrade packages that can be used to upgrade the bridging device or the Internet of Things device so that the device obtains new bridging capabilities. information (step S1); then display the information of each upgrade package to the user, and select one from each upgrade package as the target upgrade package according to the user's selection operation (step S2); after that, the configuration device 61 instructs the first device 63 Obtain the target upgrade package (step S3); the first device 63 downloads the target upgrade package from the server 62 according to the instruction of the configuration device 61 (step S4).
请参考图7,其示出了本申请一个实施例提供的设备升级方法的流程图,该方法可以由配置设备、第一设备以及服务器交互执行,比如,该配置设备可以是图1所示的网络架构中的配置设备120,第一设备可以是图1所示的网络架构中的桥接设备130和/或物联网设备110中的一个设备;服务器可以是图1所示的网络架构中的服务器140;该方法可以包括如下几个步骤:Please refer to Figure 7, 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 one shown in Figure 1 The configuration device 120 in the network architecture, the first device may be the bridge device 130 and/or one of the Internet of Things devices 110 in the network architecture shown in Figure 1; the server may be a server in the network architecture shown in Figure 1 140; This method may include the following steps:
步骤701,配置设备在查询第一设备通过升级获得的桥接能力的过程中,获取服务器的标识信息。Step 701: The configuration device obtains the identification information of the server in the process of querying the bridging capability of the first device obtained through the upgrade.
在一种可能的实现方式中,配置设备可以发送第一查询消息,第一查询消息用于查询支持升级桥接能力的设备;相应的,查询响应设备可以接收第一响应消息;该查询响应设备可以向配置设备发送第一响应消息;第一响应消息用于指示第一设备支持升级桥接能力。In a possible implementation, the configuration device can send a first query message, and the first query message is used to query a device that supports upgraded bridging capabilities; accordingly, the query response device can receive the first response message; the query response device can Send a first response message to the configuration device; the first response message is used to indicate that the first device supports upgrading the bridging capability.
其中,上述的查询响应设备可以第一设备,也可以是第一设备之外的桥接服务管理设备,该桥接服务管理设备可以是云端设备,也可以是本地设备。The above query response device may be a first device or a bridge service management device other than the first device. The bridge service management device may be a cloud device or a local device.
可选的,上述第一查询消息,可以用于查询支持升级任意两个物联网协议之间的桥接能力的设备;或者,上述第一查询消息,也可以用于查询支持升级指定的两个物联网协议之间的桥接能力的设备。Optionally, the above-mentioned first query message can be used to query devices that support upgrading the bridging capabilities between any two IoT protocols; or, the above-mentioned first query message can also be used to query two specified devices that support the upgrade. Devices with bridging capabilities between networking protocols.
其中,上述服务器的标识信息可以携带在第一响应消息中。The identification information of the server may be carried in the first response message.
比如,配置设备可以通过广播方式向周围的物联网设备或者桥接设备查询可升级的桥接能力,相应的,接收到广播,且具有可以升级获得桥接能力的物联网设备或者桥接设备可以向配置设备返回查询响应,在此过程中,物联网设备或者桥接设备可以将为自身提供升级包的服务器的标识信息发送给配置设备,比如,将服务器的标识信息携带在查询响应中发送给配置设备。For example, the configuration device can query the surrounding IoT devices or bridging devices for upgradeable bridging capabilities through broadcasts. Correspondingly, the IoT devices or bridging devices that receive the broadcast and have the bridging capabilities that can be upgraded can return to the configuration device. Query response. In this process, the IoT device or bridge device can send the identification information of the server that provides the upgrade package to the configuration device. For example, the identification information of the server is carried in the query response and sent to the configuration device.
再比如,配置设备也可以向桥接能力管理设备查询第一设备可以通过升级获得的桥接能力。比如,第一设备可以预先向桥接能力管理设备进行注册,将第一设备可以通过升级获得的桥接能力的信息发送给桥接能力管理设备进行存储和管理。桥接能力管理设备接收到配置设备查询第一设备可以通过升级获得的桥接能力的请求后,可以将第一设备可以通过升级获得的桥接能力的相关信息发送给配置设备,上述相关信息中可以携带为第一设备提供升级包的服务器的标识信息。可选的,上述桥接能力管理设备可以是云端服务器(可以是本申请实施例中的服务器,也可以是其它服务器),或者,上述桥接能力管理设备也可以是与第一设备处于同一物联网中的线下设备(比如家庭网关)。For another example, the configuration device may also query the bridging capability management device for bridging capabilities that the first device can obtain through upgrade. For example, the first device can register with the bridging capability management device in advance, and send the bridging capability information that the first device can obtain through upgrade to the bridging capability management device for storage and management. After receiving a request from the configuration device to query the bridging capabilities of the first device that can be obtained by upgrading, the bridging capability management device can send relevant information about the bridging capabilities that the first device can obtain by upgrading to the configuration device. The above relevant information can be carried as The first device provides identification information of the server of the upgrade package. Optionally, the above-mentioned bridging capability management device may be a cloud server (which may be the server in the embodiment of this application, or may be other servers), or the above-mentioned bridging capability management device may also be in the same Internet of Things as the first device. offline equipment (such as home gateway).
在一种可能的实现方式中,配置设备可以发送第二查询消息,第二查询消息用于查询支持升级第一桥接能力的设备;第一桥接能力是第一物联网协议与其它物联网协议之间的桥接能力;相应的,配置设备可以接收第二响应消息;第二响应消息用于指示第一设备支持升级第一桥接能力,且第一设备支持升级的第一桥接能力是第一物联网协议与第二物联网协议之间的桥接能力。In a possible implementation, the configuration device can send a second query message, and the second query message is used to query a device that supports upgrading the first bridging capability; the first bridging capability is one of the first IoT protocol and other IoT protocols. The bridging capability between Bridging capabilities between the protocol and second IoT protocols.
其中,上述第二响应消息可以是第一设备发送的响应消息,也可以是第一设备之外的桥接服务管理设备发送的响应消息。The above-mentioned second response message may be a response message sent by the first device, or may be a response message sent by a bridge service management device other than the first device.
比如,当第二响应消息是第一设备发送的响应消息的情况下,第一设备可以接收配置设备发送的第二查询消息,并在第一设备支持升级第一桥接能力的情况下,向配置设备发送第二响应消息。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 if the first device supports upgrading the first bridging capability, send the configuration message to the configuration device. The device sends a second response message.
再比如,当第二响应消息是桥接服务管理设备发送的响应消息的情况下,桥接服务管理设备中可以维护有物联网中的各个设备的能力信息;该能力信息包括支持升级的桥接能力;桥接服务管理设备可以接收配置设备发送的第二查询消息,并在各个设备中的第一设备支持升级第一桥接能力的情况下,向配置设备 发送第二响应消息。For another example, when the second response message is a response message sent by the 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 bridging capabilities that support upgrades; bridging capabilities The service management device may receive the second query message sent by the configuration device, and if the first device among the devices supports upgrading the first bridging capability, send a second response message to the configuration device.
也就是说,在本申请实施例中,上述第二查询消息,也可以用于查询支持升级某个特定的物联网协议(可以称为源协议)与其它任意物联网协议(可以称为目标协议)之间的桥接能力的设备。可选的,在这种情况下,配置设备可以从目标设备对应的物联网协议开始,将每一轮查询到的目标协议作为下一轮查询的源协议,以进行N轮查询,直至查询到指定物联网协议,并建立目标对应的物联网协议与指定物联网协议之间的间接的桥接路径。That is to say, in this embodiment of the present application, the above-mentioned second query message can also be used to query support for upgrading a specific IoT protocol (which can be called a source protocol) and any other IoT protocol (which can be called a target protocol). ). Optionally, in this case, the configuration device can start from the IoT protocol corresponding to the target device, and use the target protocol queried in each round as the source protocol of the next round of query to perform N rounds of queries until the queried Specify the IoT protocol, and establish an indirect bridge path between the target IoT protocol and the specified IoT protocol.
其中,上述服务器的标识信息可以携带在第二响应消息中。Wherein, the identification information of the above server may be carried in the second response message.
其中,上述服务器的标识信息可以是服务器的网络地址,和/或,服务器的ID(Identity,标识)。The identification information of the server may be the network address of the server and/or the ID (Identity) of the server.
步骤702,配置设备根据服务器的标识信息,向服务器发送查询请求;服务器接收该查询请求。Step 702: The configuration device sends a query request to the server according to the server's identification information; the server receives the query request.
其中,上述查询请求用于查询升级包;上述升级包用于第一设备升级桥接能力。The above query request is used to query the upgrade package; the above upgrade package is used to upgrade the bridging capability of the first device.
在本申请实施例中,配置设备在需要控制第一设备升级获得新的桥接能力时,可以根据获取到的服务器的标识信息,向服务器发送查询请求。In this embodiment of the present application, when the configuration device needs to control the first device to upgrade to obtain new bridging capabilities, it can send a query request to the server based on the obtained identification information of the server.
步骤703,服务器向配置设备发送查询结果;配置设备接收该查询结果。Step 703: The server sends the query result to the configuration device; the configuration device receives the query result.
其中,查询结果中包含至少一个升级包的信息。The query results include information about at least one upgrade package.
在一种可能的实现方式中,服务器接收到配置设备发送的查询请求后,可以将可下载的各个升级包的信息发送给配置设备。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.
在另一种可能的实现方式中,查询请求中包含第一设备的设备型号信息;服务器可以向配置设备发送与第一设备的设备型号匹配的至少一个升级包的信息;也就是说,上述查询结果中包含与第一设备的设备型号匹配的至少一个升级包的信息。In another possible implementation, the query request contains device model information of the first device; the server can send information of at least one upgrade package that matches the device model of the first device to the configuration device; that is, the above query The result includes information about at least one upgrade package that matches the device model of the first device.
在本申请实施例中,配置设备可以向服务器查询可以由第一设备使用的各个升级包的信息。In this embodiment of the present application, the configuration device may query the server for information on each upgrade package that can be used by the first device.
在另一种可能的实现方式中除了包含查询请求中包含第一设备的设备型号信息之外,还可以包含目标桥接能力信息;该目标桥接能力信息用于指示为目标设备提供桥接服务的能力;相应的,服务器可以向配置设备发送与第一设备的设备型号以及目标桥接能力信息匹配的至少一个升级包的信息;也就是说,上述查询结果中包含与第一设备的设备型号以及目标桥接能力信息匹配的至少一个升级包的信息。In another possible implementation, in addition to the device model information of the first device included in the query request, the query request may also include target bridging capability information; the target bridging capability information is used to indicate the ability to provide bridging services for the target device; Correspondingly, the server can send to the configuration device information about at least one upgrade package that matches the device model and target bridging capability information of the first device; that is, the above query results include information that matches the device model and target bridging capability of the first device. The information matches the information of at least one upgrade package.
在本申请实施例中,配置设备可以向服务器查询可以由第一设备使用的,且桥接的目标物联网协议是指定的物联网协议的各个升级包的信息。In this embodiment of the present application, the configuration device may query the server for information on each upgrade package that can be used by the first device and the bridged target IoT protocol is a specified IoT protocol.
步骤704,配置设备根据目标升级包的信息向第一设备发送第一请求;第一设备接收该第一请求。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.
其中,上述目标升级包是从配置设备查询到的至少一个升级包中的一个。Wherein, the above target upgrade package is one of at least one upgrade package queried from the configuration device.
在一种可能的实现方式中,上述目标升级包可以是用户从至少一个升级包中指定的升级包。In a possible implementation manner, the target upgrade package may be an upgrade package specified by the user from at least one upgrade package.
比如,配置设备获取到上述至少一个升级包的信息之后,可以在应用程序(APP,Application)的升级管理界面中展示上述至少一个升级包的信息,用户基于至少一个升级包的信息选择出一个升级包作为目标升级包。For example, after the configuration device obtains the information of the above-mentioned at least one upgrade package, it can display the above-mentioned at least one upgrade package information in the upgrade management interface of the application (APP, Application), and the user selects an upgrade based on the information of the at least one upgrade package. package as the target upgrade package.
在另一种可能的实现方式中,上述目标升级包也可以是配置设备按照预先设置的选择策略,从至少一个升级包中选择的。比如,用户可以预先设置配置设备优先选择升级包的优先级顺序为:新发布的正式版本的升级包→测试版本的升级包→旧版本的升级包;其中,上述新发布的正式版本的升级包,可以是指在指定时间段内(比如最近三个月内)发布的正式版本的升级包,上述旧版本的升级包可以是指指定时间段之外(比如三个月之前)发布的正式版本的升级包。配置设备获取到至少一个升级包的信息后,优先选择新发布的正式版本的升级包作为目标升级包,若没有新发布的正式版本的升级包,则选择测试版本的升级包,若还是没有测试版本的升级包,则再选择旧版本的升级包。In another possible implementation manner, the target upgrade package may also be configured to be selected by the device from at least one upgrade package according to a preset selection strategy. For example, the user can pre-set the priority order of configuring the device to preferentially select the upgrade package as follows: the newly released official version upgrade package → the test version upgrade package → the old version upgrade package; among them, the above-mentioned newly released official version upgrade package , can refer to the official version upgrade package released within a specified time period (such as within the last three months), and the above-mentioned old version upgrade package can refer to the official version released outside the specified time period (such as three months ago) upgrade package. After the configuration device obtains at least one upgrade package information, it will give priority to the newly released official version of the upgrade package as the target upgrade package. If there is no newly released official version of the upgrade package, select the test version of the upgrade package. If there is still no test version version's upgrade package, then select the old version's upgrade package.
配置设备确定目标升级包之后,即可以向第一设备发送上述第一请求。After the configuration device determines the target upgrade package, it can send the first request to the first device.
步骤705,第一设备根据第一请求,从服务器下载目标升级包;相应的,服务器向第一设备发送目标升级包。Step 705: The first device downloads the target upgrade package from the server according to the first request; accordingly, the server sends the target upgrade package to the first device.
在本申请实施例中,第一设备接收到配置设备发送的第一请求之后,即可以从服务器下载目标升级包,以便后续升级。In this embodiment of the present application, after receiving the first request sent by the configuration device, the first device can download the target upgrade package from the server for subsequent upgrades.
在一种可能的实现方式中,配置设备还可以向第一设备发送升级包指示信息;升级包指示信息包括以下信息中的至少一项:目标升级包的下载地址;或者,目标升级包的标识信息。In a possible implementation, the configuration device may also 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 of the target upgrade package information.
相应的,第一设备接收配置设备发送的升级包指示信息;在根据第一请求,从服务器下载目标升级包时,配置设备可以根据第一请求,通过升级包指示信息从服务器下载目标升级包。Correspondingly, the first device receives the upgrade package instruction 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 through the upgrade package instruction information according to the first request.
在本申请实施例中,上述升级包指示信息可以通过第一请求来携带,或者,上述升级包指示信息也可以独立于第一请求进行发送。In this embodiment of the present application, the above-mentioned upgrade package indication information may be carried through the first request, or the above-mentioned upgrade package indication information may also be sent independently of the first request.
在一种可能的实现方式中,配置设备在向第一设备发送第一请求之外,还可以向服务器发送第二请求,该第二请求用于为第一设备向服务器请求下载升级包的凭证,相应的,服务器接收该第二请求,并根据第 二请求,向配置设备发送第一凭证,其中,该第一凭证用于由第一设备根据第一凭证从第一服务器下载目标升级包;配置设备接收服务器发送的第一凭证,并在指示第一设备获取目标升级包时,向第一设备发送第一凭证,以使得第一设备根据第一凭证从服务器下载目标升级包。相应的,第一设备根据第一请求从服务器下载目标升级包时,可以根据第一请求,通过第一凭证从服务器下载目标升级包。In a possible implementation, in addition to sending the first request to the first device, the configuration device can also send a second request to the server. The second request is used to request the server for a certificate for downloading the upgrade package for the first device. , Correspondingly, the server receives the second request, and sends the first credential to the configuration device according to the second request, where the first credential is used by the first device to download the target upgrade package from the first server according to 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 according to the first credential. Correspondingly, when the first device downloads the target upgrade package from the server according to the first request, it can download the target upgrade package from the server through the first voucher according to the first request.
在本申请实施例中,为了保证升级包下载的安全性,配置设备可以为第一设备申请用于从服务器下载升级包的第一凭证,并将第一凭证提供给第一设备,第一设备根据第一凭证向服务器请求下载目标升级包,在此过程中,服务器可以根据第一凭证对第一设备的下载请求进行验证。In this embodiment of the present application, in order to ensure the security of downloading the upgrade package, the configuration device can apply for the first credential for downloading the upgrade package from the server for the first device, and provide the first credential to the first device. Request the server to download the target upgrade package based on the first voucher. In this process, the server can verify the download request of the first device based on the first voucher.
在一种可能的实现方式中,上述第二请求中可以包含目标升级包的标识信息,也就是说,配置设备在确定目标升级包之后,可以通知服务器,该配置设备要为其它设备请求升级包,此时,服务器可以生成下载该目标升级包的第一凭证并返回给配置设备。In a possible implementation, the above-mentioned second request may include identification information of the target upgrade package. That is to say, after determining the target upgrade package, the configuration device may notify the server that the configuration device wants to request upgrade packages for other devices. , at this time, the server can generate the first credential for downloading the target upgrade package and return it to the configuration device.
在一种可能的实现方式中,第一凭证中包含凭证信息;凭证信息包括以下信息中的至少一项;In a possible implementation, the first voucher contains voucher information; the voucher information includes at least one of the following information;
目标升级包的可下载凭证;目标升级包的下载地址;目标升级包的标识信息;配置设备的标识信息;随机字符串;或者,下载时限。The downloadable credentials 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, the download time limit.
其中,上述配置设备的标识信息,可以包括配置设备的硬件标识,也可以包含配置设备中安装的APP的标识。The identification information of the configuration device may include a hardware identification of the configuration device or an identification of an APP installed in the configuration device.
在一种可能的实现方式中,上述第一凭证可以是通过第一设备的公钥对凭证信息加密生成的凭证。In a possible implementation, the above-mentioned first certificate may be a certificate generated by encrypting the certificate information with the public key of the first device.
也就是说,服务器可以通过第一设备的公钥对凭证信息进行加密,获得第一凭证。That is to say, the server can encrypt the certificate information using the public key of the first device to obtain the first certificate.
比如,在本申请实施例中,配置设备在接收服务器发送的第一凭证之前,还可以向服务器发送第一设备的标识信息,以通知服务器,该配置设备要为第一设备请求升级包。相应的,服务器接收到配置设备发送的,第一设备的设备标识后,即可以根据第一设备的设备标识,获取第一设备的公钥。比如,第一设备可以根据第一设备的设备标识,查询预先与第一设备的设备标识对应存储的公钥(即第一设备的公钥)。For example, in this embodiment of the present application, before receiving the first voucher 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 wants to request an upgrade package for the first device. Correspondingly, 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 may query the public key stored in advance corresponding to the device identification of the first device (ie, the public key of the first device) based on the device identification of the first device.
在本申请实施例的一种可能实现方案中,当第一凭证是通过第一设备的公钥对凭证信息加密生成的凭证时,第一设备根据第一请求,通过第一凭证从服务器下载目标升级包的过程可以,包括:In a possible implementation of the embodiment of this application, when the first certificate is a certificate generated by encrypting the certificate information with the public key of the first device, the first device downloads the target from the server through the first certificate according to the first request. The process of upgrading the package includes:
通过第一设备的公钥对第一凭证进行解密,获得凭证信息;Decrypt the first certificate using the public key of the first device to obtain the certificate information;
通过服务器的公钥对凭证信息以及第一设备的标识信息进行加密,获得第二凭证;Encrypt the certificate information and the identification information of the first device using the public key of the server to obtain the second certificate;
向服务器发送包含第二凭证的第一下载请求;Send a first download request containing the second credential to the server;
接收服务器发送的目标升级包。Receive the target upgrade package sent by the server.
相应的,对于服务器来说,当第一凭证是通过第一设备的公钥对凭证信息加密生成的凭证时,服务器在第一设备从服务器下载目标升级包时,向第一设备发送目标升级包的过程可以包括:Correspondingly, for the server, when the first certificate is a certificate generated by encrypting the certificate information with the public key of the first device, the server sends the target upgrade package to the first device when the first device downloads the target upgrade package from the server. The process can include:
接收第一设备发送的第一下载请求;第一下载请求中包含第二凭证;Receive the first download request sent by the first device; the first download request includes the second voucher;
通过服务器的公钥对第二凭证进行解密,获得凭证信息以及第一设备的标识信息;Decrypt the second certificate using the public key of the server to obtain the certificate information and the identification information of the first device;
对凭证信息以及第一设备的标识信息进行合法性校验;Perform legality verification on the credential information and the identification information of the first device;
在对凭证信息以及第一设备的标识信息的合法性校验通过后,向第一设备发送目标升级包。After the validity verification of the credential information and the identification information of the first device passes, the target upgrade package is sent to the first device.
其中,服务器对凭证信息以及第一设备的标识信息进行合法性校验的方式有多种,在一种可能的实现方式中,服务器可以首先判断第一设备的标识信息是否合法,比如根据第一设备的标识信息判断之前是否为该第一设备生成过第一凭证;若第一设备的标识信息合法,则继续判断凭证信息是否合法,比如,判断凭证信息与之前为第一设备生成的第一凭证中的信息是否一致,以及,检验当前时刻是否处于下载时限内等等,若凭证信息与之前为第一设备生成的第一凭证中的信息一致,且当前时刻处于下载时限内,则确定该凭证信息合法。There are many ways for the server to verify the validity of the credential information and the identification information of the first device. In a possible implementation, the server can first determine whether the identification information of the first device is legal, for example, according to the first The identification information of the device determines whether the first credential has been generated for the first device before; if the identification information of the first device is legal, continue to determine whether the credential information is legal, for example, determine whether the credential information is consistent with the first credential previously generated for the first device. Whether the information in the certificate is consistent, and whether the current time is within the download time limit, etc., if the certificate information is consistent with the information in the first certificate previously generated for the first device, and the current time is within the download time limit, then determine the The credential information is legal.
在一种可能的实现方式中,第一设备通过服务器的公钥对凭证信息以及第一设备的标识信息进行加密,获得第二凭证时,可以对凭证信息进行合法性校验;在对凭证信息合法性校验通过后,通过服务器的公钥对凭证信息以及第一设备的标识信息进行加密,获得第二凭证。In a possible implementation, the first device encrypts the voucher information and the identification information of the first device using the public key of the server. When obtaining the second voucher, the voucher information can be verified for legality; After the legality verification is passed, the certificate information and the identification information of the first device are encrypted using the public key of the server to obtain the second certificate.
在本申请实施例中,第一设备接收到配置设备发送的第一请求以及第一凭证之后,也可以对第一凭证中的凭证信息进行合法性校验,在合法性校验通过后,再执行后续步骤。In this embodiment of the present application, after receiving the first request and the first credential sent by the configuration device, the first device may also perform a legality check on the credential information in the first credential. After the legality check passes, the first device may Follow the next steps.
比如,第一设备可以检验目标升级包的下载地址是否是安全地址,检验当前时刻是否处于下载时限内等等。For example, the first device can 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.
在本申请实施例的另一种可能的实现方式中,第一设备根据第一请求,通过第一凭证从服务器下载目标升级包的过程,也可以包括:In another possible implementation manner of the embodiment of this application, the process of the first device downloading the target upgrade package from the server through the first credential according to the first request may also include:
向服务器发送包含第一凭证的第二下载请求;Send a second download request containing the first credential to the server;
接收服务器发送的目标升级包。Receive the target upgrade package sent by the server.
相应的,服务器在第一设备从服务器下载目标升级包时,向第一设备发送目标升级包的过程可以包括:Correspondingly, when the first device downloads the target upgrade package from the server, the process of sending the target upgrade package to the first device may include:
接收第二设备发送的第二下载请求;第二下载请求中包含第一凭证;Receive a second download request sent by the second device; the second download request includes the first voucher;
对第一凭证进行合法性校验;Perform legality verification on the first voucher;
在对第一凭证的合法性校验通过后,向第一设备发送目标升级包。After the validity verification of the first certificate passes, the target upgrade package is sent to the first device.
在本申请实施例中,第一设备也可以直接使用第一凭证向服务器请求下载目标升级包,也就是说,再此过程中,第一设备对第一凭证进行透传。In this embodiment of the present application, the first device can also directly use the first credential to request the server to download the target upgrade package. That is to say, in this process, the first device transparently transmits the first credential.
其中,服务器对第一凭证进行合法性校验的过程,与服务器对上述第二凭证中的凭证信息进行校验的过程类似,此处不再赘述。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 above-mentioned second certificate, and will not be described again here.
在一种可能的实现方式中,第二下载请求中还包含目标升级包的标识信息。In a possible implementation, the second download request also includes identification information of the target upgrade package.
相应的,本方案还包括:Accordingly, this plan also includes:
服务器生成绑定信息,绑定信息用于指示第一设备的标识信息与目标升级包之间具有绑定关系。The server generates binding information, and 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.
其中,该绑定信息的生成过程,可以是配置设备向服务器发送该目标升级包的标识信息(比如通过上述第二请求发送)后执行的过程。The generation process of the binding information may be a process executed after the configuration device sends the identification information of the target upgrade package to the server (for example, through the second request).
在一种可能的实现方式中,服务器对第一凭证进行合法性校验通过后,可以根据第二下载请求对应的第一设备的标识信息,查询上述预先生成的绑定信息,以确定要下载的目标升级包,并将目标升级包发送给第一设备。In a possible implementation, after the server passes the legality verification of the first certificate, it can query the above-mentioned pre-generated binding information according to the identification information of the first device corresponding to the second download request to determine the download. the target upgrade package, and sends the target upgrade package to the first device.
相应的,服务器在接收到第二下载请求后,根据绑定信息对目标升级包的标识信息进行合法性校验;Correspondingly, after receiving the second download request, the server performs legality verification on the identification information of the target upgrade package based on the binding information;
上述在对第一凭证的合法性校验通过后,向第一设备发送目标升级包的过程可以包括:The above-mentioned process of sending the target upgrade package to the first device after the validity verification of the first credential is passed may include:
服务器在对第一凭证的合法性校验通过,且对目标升级包的标识信息的合法性校验通过后,向第一设备发送目标升级包。After the server passes the legality check of the first certificate and passes the legality check of the identification information of the target upgrade package, it sends the target upgrade package to the first device.
其中,服务器对目标升级包的标识信息的合法性的校验过程,可以包括:Among them, the server's verification process of the legality of the identification information of the target upgrade package may include:
服务器判断本地是否存在该目标升级包的标识信息与第一设备的标识信息之间的绑定关系,若存在该绑定关系,则确定对目标升级包的标识信息的合法性校验通过。The server determines whether there is a local binding relationship between the identification information of the target upgrade package and the identification information of the first device. If the binding relationship exists, it determines that the legality verification of the identification information of the target upgrade package passes.
步骤706,第一设备基于目标升级包升级桥接能力。Step 706: The first device upgrades the bridging capability based on the target upgrade package.
在本申请实施例中,第一设备下载完成目标升级包,即可以运行该目标升级包,以完成设备的升级。In this embodiment of the present application, after the first device downloads the target upgrade package, it can run the target upgrade package to complete the upgrade of the device.
在一种可能的实现方式中,第一设备在完成对目标升级包的下载的情况下,向配置设备发送下载完成响应;上述运行目标升级包以进行设备升级的过程可以包括:在接收到配置设备发送的升级指示的情况下,运行目标升级包以进行设备升级。In a possible implementation, after completing the download of the target upgrade package, the first device sends a download completion response to the configuration device; the above-mentioned process of running the target upgrade package for device upgrade may include: after receiving the configuration If the device sends an upgrade instruction, run the target upgrade package to upgrade the device.
相应的,在配置设备侧,可以接收第一设备发送的下载完成响应;下载确完成响应用于指示第一设备完成对目标升级包的下载;然后,向第一设备发送升级指示,升级指示用于指示第一设备运行目标升级包以进行设备升级。Correspondingly, on the configuration device side, the download completion response sent by the first device can be received; the download completion response is used to instruct the first device to complete the download of the target upgrade package; then, an upgrade instruction is sent to the first device, and the upgrade instruction is Instructing the first device to run the target upgrade package to perform device upgrade.
其中,上述升级指示可以由用户的升级确认操作来触发,比如,配置设备根据下载完成响应显示提示信息,以提示用户是否控制第一设备升级,当用户执行确定控制第一设备升级的操作后,配置设备向第一设备发送该升级指示。The above upgrade instructions can be triggered by the user's upgrade confirmation operation. For example, the configuration device displays prompt information according to the download completion response to prompt the user whether to control the upgrade of the first device. When the user performs the operation of determining to control the upgrade of the first device, The configuration device sends the upgrade instruction to the first device.
比如,以第一设备的桥接设备,配置设备中安装有控制桥接设备(device_bridge)进行升级的APP,且上述服务器为OTA商店(OTA_shop)对应的服务器为例,请参考图8,其示出了本申请实施例涉及的一种设备升级流程的示意图。如图8所示,该设备升级流程如下:For example, taking the bridge device of the first device, the APP that controls the bridge device (device_bridge) for upgrading is installed in the configuration device, and the above server is the server corresponding to the OTA store (OTA_shop), please refer to Figure 8, which shows A schematic diagram of a device upgrade process related to the embodiment of this application. As shown in Figure 8, the device upgrade process is as follows:
S81,App发送桥接能力查询广播消息,该消息携带以下参数中的一个或者多个:目标协议、目标设备的型号、目标设备的厂商等信息。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.
S82,Device_bridge接收到上述消息后,使用桥接能力查询应答消息回复,该应答消息中可能携带其升级包应用商店的地址或者标识。也可能通过其他方式获取应用商店的地址。例如OTA_shop的地址已经注册在一个公有云上,该公有云使用区块链技术,APP根据设备供应商标识、设备标识或者设备型号标识可以直接查到OTA_shop的地址。S82. After receiving the above message, Device_bridge uses the bridge capability query response message to reply. The response message may carry the address or identification of its upgrade package application store. It is also possible to obtain the app store address through other means. For example, the address of OTA_shop has been registered on a public cloud, which uses blockchain technology. The APP can directly find the address of OTA_shop based on the device supplier identification, device identification or device model identification.
S83,App访问OTA_shop,以查找合适的升级包,App通过在页面上展示其可以选择的升级包(服务),完成认证(比如付款等)。S83, the App visits the OTA_shop to find a suitable upgrade package. The App completes the authentication (such as payment, etc.) by displaying the upgrade packages (services) it can choose on the page.
其中,App可能需要明确其是为device_bridge申请桥接升级包,比如,APP在访问请求中携带Device_bridge的型号信息,以及桥接服务信息:比如桥接的目标协议。在此过程中OTA_shop可以根据bridge的标识信息去获取device_bridge的公钥信息,以便完成其后续步骤的token生成。在此过程中,OTA_shop也可以将OTA_shop的公钥信息发送给device_bridge。或者,也可能OTA_shop的公钥信息也可以由device_bridge提前获取。Among them, the App may need to make it clear that it is applying for a bridge upgrade package for device_bridge. For example, the App carries the model information of Device_bridge in the access request, as well as the bridge service information: such as the target protocol of the bridge. During this process, OTA_shop can obtain the public key information of device_bridge based on the identification information of the bridge in order to complete the token generation in subsequent steps. During this process, OTA_shop can also send OTA_shop's public key information to device_bridge. Alternatively, it is possible that the public key information of OTA_shop can also be obtained in advance by device_bridge.
S84,OTA_shop确定App可以获取升级包之后,需给App下发一个能够下载升级包的凭证token1,该token1可以是以下一个或者几个信息进过加密后生成:可下载凭证、升级包下载地址、升级包标识、App标识、随机字、下载时限等,使用device_bridge的公钥进行加密后生成。或者,上述信息也可以由OTA_shop单独发送给App。S84, after OTA_shop determines that the App can obtain the upgrade package, it needs to issue a certificate token1 to the App that can download the upgrade package. The token1 can be generated by encrypting one or more of the following information: downloadable certificate, upgrade package download address, The upgrade package ID, App ID, random words, download time limit, etc. are generated after encryption using the public key of device_bridge. Alternatively, the above information can also be sent to the App separately by OTA_shop.
S85,App向Device_bridge发送升级请求,该升级请求中可以写入有token1,可选的,该升级请求还可以包含升级包下载地址、升级包标识等信息。S85, App sends an upgrade request to Device_bridge. The upgrade request can include token1. Optionally, the upgrade request can also include information such as the upgrade package download address and upgrade package identification.
S86,Device_bridge收到上述信息后,首先使用其保存的秘钥(对应自己的公钥的私钥)进行解密。确认内容的合法性。Device_bridge还可以将解密信息+其凭证(比如Device_bridge的ID)使用OTA_shop的公钥进行在加密后生成Token2。S86, after Device_bridge receives the above information, it first uses its saved secret key (the private key corresponding to its own public key) to decrypt. Confirm the legality of the content. Device_bridge can also encrypt the decrypted information + its credentials (such as Device_bridge's ID) using the public key of OTA_shop to generate Token2.
S87,Device_bridge向OTA_shop或者升级包下载地址,发送下载升级包请求,该请求中携带token2。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.
其中,OTA_shop是一个逻辑概念,可以是下载升级包地址是分开的。也就是说OTA_shop负责升级包的申请,并指定一个具体的地址提供升级包。OTA_shop可以是其他生态的负责维护的一个软件商店。Among them, OTA_shop is a logical concept, and the address for downloading the upgrade package can be separate. In other words, OTA_shop is responsible for applying for the upgrade package and designating a specific address to provide the upgrade package. OTA_shop can be a software store maintained by other ecosystems.
S88,OTA_shop收到请求后,使用其私钥对token2进行解密和验证。S88, after OTA_shop receives the request, it uses its private key to decrypt and verify token2.
S89,OTA_shop向Device_bridge发送升级包。S89, OTA_shop sends the upgrade package to Device_bridge.
S810,Device_bridge通知APP下载升级包完成。S810, Device_bridge notifies the APP that downloading the upgrade package is completed.
S811,APP指示Device_bridge开始升级操作。S811, APP instructs Device_bridge to start the upgrade operation.
再比如,以第一设备的桥接设备,配置设备中安装有控制桥接设备(device_bridge)进行升级的APP,且上述服务器为OTA商店(OTA_shop)对应的服务器为例,请参考图9,其示出了本申请实施例涉及的另一种设备升级流程的示意图。如图9所示,该设备升级流程如下:For another example, take the bridge device of the first device, the configuration device is installed with an APP that controls the bridge device (device_bridge) for upgrade, and the above server is the server corresponding to the OTA store (OTA_shop). Please refer to Figure 9, which shows is a schematic diagram of another device upgrade process involved in the embodiment of the present application. As shown in Figure 9, the device upgrade process is as follows:
S91,App发送桥接能力查询广播消息,该消息携带以下参数中的一个或者多个:目标协议、目标设备的型号、目标设备的厂商等信息。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.
S92,Device_bridge接收到上述消息后,使用桥接能力查询应答消息回复,该应答消息中可能携带其升级包应用商店的地址或者标识。也可能通过其他方式获取应用商店的地址。S92. After receiving the above message, Device_bridge uses the bridge capability query response message to reply. The response message may carry the address or identification of its upgrade package application store. It is also possible to obtain the app store address through other means.
S93,App访问OTA_shop去查找合适的升级包,App通过在页面上展示其可以选择的升级包(服务),完成认证。可选的,AppOTA_shop向明确其是为device_bridge申请桥接升级包。S93, the App visits OTA_shop to find a suitable upgrade package. The App completes the certification by displaying the upgrade packages (services) it can choose on the page. Optionally, AppOTA_shop makes it clear that it is applying for a bridge upgrade package for device_bridge.
S94,OTA_shop根据其条件提供合适的升级包的信息。S94, OTA_shop provides information on suitable upgrade packages according to its conditions.
S95,APP向OTA_shop通知计划下载目标升级包的目标设备Device_bridge:Device_bridge的标识。S95, the APP notifies OTA_shop of the target device Device_bridge where it plans to download the target upgrade package: the identifier of Device_bridge.
S96,OTA_shop上完成Device_bridge的标识与待下载的目标升级包的标识的绑定。完成后向APP返回升级包的下载凭证(对应上述第一凭证,可以是token1)。S96, OTA_shop completes binding of the ID of Device_bridge and the ID of the target upgrade package to be downloaded. After completion, return the download certificate of the upgrade package to the APP (corresponding to the first certificate above, which can be token1).
S97,APP向Device_bridge发送升级请求,可能携带:升级包标识、以及下载凭证。S97, APP sends an upgrade request to Device_bridge, which may carry: upgrade package identification and download credentials.
S98,Device_bridge向OTA_shop请求下载升级包。携带有上述下载凭证(比如token1)。S98, Device_bridge requests OTA_shop to download the upgrade package. Carry the above download credentials (such as token1).
S99,OTA_shop验证通过后向Device_bridge发送升级包。S99, OTA_shop sends the upgrade package to Device_bridge after passing the verification.
S910,Device_bridge通知APP下载升级包完成。S910, Device_bridge notifies the APP that downloading the upgrade package is completed.
S911,APP指示Device_bridge开始升级操作。S911, APP instructs Device_bridge to start the upgrade operation.
综上所述,本申请实施例所示的方案,配置设备从服务器查询至少一个升级包的信息,并指示第一设备从服务器中下载至少一个升级包中的目标升级包;也就是说,在上述方案中,由配置设备指示第一设备从多个升级包中选择一个升级包来升级获得新的桥接能力,从而在控制第一设备升级获得新的桥接能力的过程中,极大的提高了桥接能力升级的灵活性,从而扩展了桥接的应用场景。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 at least one upgrade package from the server; that is, in In the above solution, the configuration device instructs the first device to select an upgrade package from multiple upgrade packages to upgrade and obtain new bridging capabilities, thereby greatly improving the process of controlling the first device to upgrade and obtain new bridging capabilities. The flexibility of bridging capability upgrades expands the application scenarios of bridging.
请参考图10,其示出了本申请一个实施例提供的设备升级装置的框图。该设备升级装置1000具有实现上述图3或图7所示的方法中,由配置设备执行的功能。如图10所示,该装置可以包括:Please refer to Figure 10, which shows a block diagram of an equipment upgrade device provided by an embodiment of the present application. The device upgrading device 1000 has the function of implementing the function performed by the configuration device in the method shown in FIG. 3 or FIG. 7 . As shown in Figure 10, the device may include:
发送模块1001,用于向服务器发送查询请求;所述查询请求用于查询升级包;所述升级包用于第一设备升级桥接能力;The sending module 1001 is used to send a query request to 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;
接收模块1002,用于接收所述服务器发送的查询结果;所述查询结果中包含至少一个升级包的信息;The receiving module 1002 is used to receive the query results sent by the server; the query results include information about at least one upgrade package;
所述发送模块1001,还用于根据目标升级包的信息向所述第一设备发送第一请求;所述第一请求用于指示所述第一设备从所述服务器下载所述目标升级包;所述目标升级包是所述至少一个升级包中的一个。The sending module 1001 is further configured 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.
在一种可能的实现方式中,所述查询请求中包含所述第一设备的设备型号信息;In a possible implementation, 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.
在一种可能的实现方式中,所述查询请求中还包含目标桥接能力信息;所述目标桥接能力信息用于指示为目标设备提供桥接服务的能力;In a possible implementation, the query request also includes target bridging capability information; the target bridging capability information is used to indicate the ability to provide bridging services for the target device;
所述查询结果中包含与所述第一设备的设备型号以及所述目标桥接能力信息匹配的所述至少一个升级包的信息。The query result includes information about the at least one upgrade package that matches the device model of the first device and the target bridging capability information.
在一种可能的实现方式中,所述发送模块,还用于向所述服务器发送第二请求;所述第二请求用于为所述第一设备向所述服务器请求下载升级包的凭证;In a possible implementation, the sending module is further configured to send a second request to the server; the second request is used to request a certificate for the first device to download the upgrade package from the server;
所述接收模块,还用于接收所述服务器发送的第一凭证;The receiving module is also used to receive the first certificate sent by the server;
所述发送模块,还用于向所述第一设备发送所述第一凭证,所述第一凭证用于所述第一设备根据所述 第一凭证从所述服务器下载所述目标升级包。The sending module is also configured to send the first voucher to the first device, where the first voucher is used for the first device to download the target upgrade package from the server according to the first voucher.
在一种可能的实现方式中,所述第一凭证中包含凭证信息;所述凭证信息包括以下信息中的至少一项:In a possible implementation, the first voucher contains voucher information; the voucher 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.
在一种可能的实现方式中,所述第一凭证是通过所述第一设备的公钥对所述凭证信息加密生成的凭证。In a possible implementation, the first certificate is a certificate generated by encrypting the certificate information with the public key of the first device.
在一种可能的实现方式中,所述发送模块,还用于向所述第一设备发送升级包指示信息;所述升级包指示信息包括以下信息中的至少一项: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:
所述目标升级包的下载地址;或者,所述目标升级包的标识信息。The download address of the target upgrade package; or, the identification information of the target upgrade package.
在一种可能的实现方式中,所述发送模块,还用于向所述服务器发送所述第一设备的标识信息。In a possible implementation, the sending module is further configured to send the identification information of the first device to the server.
在一种可能的实现方式中,所述装置还包括:In a possible implementation, the device further includes:
获取模块,用于在查询所述第一设备通过升级获得的桥接能力的过程中,获取所述服务器的标识信息;An acquisition module, configured to acquire the identification information of the server in the process of querying the bridging capability obtained by the first device through upgrade;
所述发送模块,用于根据所述服务器的标识信息,向所述服务器发送所述查询请求。The sending module is configured to send the query request to the server according to the identification information of the server.
在一种可能的实现方式中,所述接收模块,还用于接收所述第一设备发送的下载完成响应;所述下载确完成响应用于指示所述第一设备完成对所述目标升级包的下载;In a possible implementation, the receiving module is also configured to receive a download completion response sent by the first device; the download completion response is used to instruct the first device to complete the download of the target upgrade package. download;
所述发送模块,还用于向所述第一设备发送升级指示,所述升级指示用于指示所述第一设备基于所述目标升级包升级桥接能力。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 the bridging capability based on the target upgrade package.
请参考图11,其示出了本申请一个实施例提供的设备升级装置的框图。该装置具有实现上述图4或图7所示的方法中,由第一设备执行的功能。如图11所示,该装置可以包括:Please refer to Figure 11, which shows a block diagram of an equipment upgrade device provided by an embodiment of the present application. The device has the function of realizing the function performed by the first device in the method shown in FIG. 4 or FIG. 7 . As shown in Figure 11, the device may include:
接收模块1101,用于接收配置设备发送的第一请求;所述第一请求是所述配置设备向服务器发送查询请求并接收所述服务器发送的查询结果后,根据目标升级包的信息发送的请求;所述查询请求用于查询升级包;所述升级包用于第一设备升级桥接能力;所述查询结果中包含至少一个升级包的信息;所述目标升级包是所述至少一个升级包中的一个;The receiving module 1101 is used to receive the first request sent by the configuration device; the first request is a request sent according to 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 bridging capability of 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 one of;
下载模块1102,用于根据所述第一请求,从所述服务器下载所述目标升级包。 Download module 1102, configured to download the target upgrade package from the server according to the first request.
在一种可能的实现方式中,所述接收模块,还用于接收所述配置设备发送的第一凭证;In a possible implementation, the receiving module is also configured to receive the first voucher sent by the configuration device;
所述下载模块,用于根据所述第一请求,通过所述第一凭证从所述服务器下载所述目标升级包。The download module is configured to download the target upgrade package from the server through the first voucher according to the first request.
在一种可能的实现方式中,所述第一凭证中包含凭证信息;所述凭证信息包括以下信息中的至少一项;In a possible implementation, the first voucher includes voucher information; the voucher 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.
在一种可能的实现方式中,第一凭证是通过所述第一设备的公钥对所述凭证信息加密生成的凭证;In a possible implementation, the first certificate is a certificate generated by encrypting the certificate information with the public key of the first device;
所述下载模块,用于,The download module is used to,
通过所述第一设备的公钥对所述第一凭证进行解密,获得所述凭证信息;Decrypt the first certificate using the public key of the first device to obtain the certificate information;
通过所述服务器的公钥对所述凭证信息以及所述第一设备的标识信息进行加密,获得第二凭证;Encrypt the certificate information and the identification information of the first device using the public key of the server to obtain a second certificate;
向所述服务器发送包含所述第二凭证的第一下载请求;Send a first download request containing the second voucher to the server;
接收所述服务器发送的所述目标升级包。Receive the target upgrade package sent by the server.
在一种可能的实现方式中,所述下载模块,用于,In a possible implementation, the download module is used to:
对所述凭证信息进行合法性校验;Perform legality verification on the credential information;
在对所述凭证信息合法性校验通过后,通过所述服务器的公钥对所述凭证信息以及所述第一设备的标识信息进行加密,获得所述第二凭证。After the validity verification of the credential information passes, 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.
在一种可能的实现方式中,所述下载模块,用于,In a possible implementation, the download module is used to:
向所述服务器发送包含所述第一凭证的第二下载请求;Send a second download request containing the first voucher to the server;
接收所述服务器发送的所述目标升级包。Receive the target upgrade package sent by the server.
在一种可能的实现方式中,所述第二下载请求中还包含所述目标升级包的标识信息。In a possible implementation, the second download request also includes identification information of the target upgrade package.
在一种可能的实现方式中,所述装置还包括:In a possible implementation, the device further includes:
所述接收模块,还用于接收所述配置设备发送的升级包指示信息;所述升级包指示信息包括以下信息中的至少一项:所述目标升级包的下载地址;或者,所述目标升级包的标识信息;The receiving module is also configured to receive the upgrade package indication information sent by the configuration device; the upgrade package indication information includes at least one of the following information: the download address of the target upgrade package; or, the target upgrade Package identification information;
所述下载模块,用于根据所述第一请求,通过所述升级包指示信息从所述服务器下载所述目标升级包。The download module is configured to download the target upgrade package from the server through the upgrade package indication information according to the first request.
在一种可能的实现方式中,所述装置还包括:升级模块,用于基于所述目标升级包升级桥接能力。In a possible implementation manner, the device further includes: an upgrade module, configured to upgrade the bridging capability based on the target upgrade package.
在一种可能的实现方式中,所述装置还包括:In a possible implementation, the device further includes:
发送模块,用于在完成对所述目标升级包的下载的情况下,向所述配置设备发送下载完成响应;A sending module, configured to send a download completion response to the configuration device when the download of the target upgrade package is completed;
所述升级模块,用于在接收到所述配置设备发送的升级指示的情况下,运行所述目标升级包以进行设 备升级。The upgrade module is configured to run the target upgrade package to upgrade the device upon receiving an upgrade instruction sent by the configuration device.
请参考图12,其示出了本申请一个实施例提供的设备升级装置的框图。该装置具有实现上述图5或图7所示的方法中,由服务器执行的功能。如图12所示,该装置可以包括:Please refer to Figure 12, which shows a block diagram of an equipment upgrade device provided by an embodiment of the present application. The device has the function of being executed by the server in implementing the method shown in FIG. 5 or FIG. 7 . As shown in Figure 12, the device may include:
接收模块1201,用于接收配置设备发送的查询请求;所述查询请求用于查询升级包;所述升级包用于第一设备升级桥接能力;The receiving module 1201 is used to receive a query request sent by the configuration device; the query request is used to query the upgrade package; the upgrade package is used to upgrade the bridging capability of the first device;
发送模块1202,用于向所述配置设备发送查询结果;所述查询结果中包含至少一个升级包的信息;Sending module 1202, configured to send query results to the configuration device; the query results include information about at least one upgrade package;
所述发送模块1202,还用于在第一设备从所述服务器下载目标升级包时,向所述第一设备发送所述目标升级包;所述目标升级包由所述配置设备通过第一请求指示给所述第一设备,且所述目标升级包是所述至少一个升级包中的一个。The sending module 1202 is also 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 received by the configuration device through the first request. Indicated to the first device, and the target upgrade package is one of the at least one upgrade package.
在一种可能的实现方式中,所述查询请求中包含所述第一设备的设备型号信息;In a possible implementation, the query request includes device model information of the first device;
所述发送模块,用于向所述配置设备发送与所述第一设备的设备型号匹配的所述至少一个升级包的信息。The sending module is configured to send information about the at least one upgrade package that matches the device model of the first device to the configuration device.
在一种可能的实现方式中,所述查询请求中还包含目标桥接能力信息;所述目标桥接能力信息用于指示为目标设备提供桥接服务的能力;In a possible implementation, the query request also includes target bridging capability information; the target bridging capability information is used to indicate the ability to provide bridging services for the target device;
所述发送模块,用于向所述配置设备发送与所述第一设备的设备型号以及所述目标桥接能力信息匹配的所述至少一个升级包的信息。The sending module is configured to send the 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.
在一种可能的实现方式中,所述接收模块,还用于接收所述配置设备发送的第二请求;所述第二请求用于为所述第一设备向所述服务器请求下载升级包的凭证;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 to request the first device to download an upgrade package from the server. certificate;
所述发送模块,还用于根据所述第二请求,向所述配置设备发送第一凭证;所述第一凭证用于由所述第一设备从所述第一服务器下载所述目标升级包。The sending module is further configured to send a first voucher to the configuration device according to the second request; the first voucher is used for the first device to download the target upgrade package from the first server. .
在一种可能的实现方式中,所述第一凭证中包含凭证信息;所述凭证信息包括以下信息中的至少一项;In a possible implementation, the first voucher includes voucher information; the voucher 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.
在一种可能的实现方式中,所述装置还包括:In a possible implementation, the device further includes:
加密模块,用于通过所述第一设备的公钥对所述凭证信息进行加密,获得所述第一凭证。An encryption module, configured to encrypt the credential information using the public key of the first device to obtain the first credential.
在一种可能的实现方式中,所述接收模块,还用于接收所述配置设备发送的,所述第一设备的设备标识;In a possible implementation, the receiving module is also configured to receive the device identification of the first device sent by the configuration device;
所述装置还包括:公钥获取模块,用于根据所述第一设备的设备标识,获取所述第一设备的公钥。The device 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.
在一种可能的实现方式中,所述发送模块,用于,In a possible implementation, the sending module is used to,
接收所述第一设备发送的第一下载请求;所述第一下载请求中包含第二凭证;Receive a first download request sent by the first device; the first download request includes a second voucher;
通过所述服务器的公钥对所述第二凭证进行解密,获得所述凭证信息以及所述第一设备的标识信息;Decrypt the second certificate using the public key of the server to obtain the certificate information and the identification information of the first device;
对所述凭证信息以及所述第一设备的标识信息进行合法性校验;Perform legality verification on the credential information and the identification information of the first device;
在对所述凭证信息以及所述第一设备的标识信息的合法性校验通过后,向所述第一设备发送所述目标升级包。After the validity verification of the credential information and the identification information of the first device passes, the target upgrade package is sent to the first device.
在一种可能的实现方式中,所述发送模块,用于,In a possible implementation, the sending module is used to,
接收所述第二设备发送的第二下载请求;所述第二下载请求中包含第一凭证;Receive a second download request sent by the second device; the second download request includes the first voucher;
对所述第一凭证进行合法性校验;Perform legality verification on the first voucher;
在对所述第一凭证的合法性校验通过后,向所述第一设备发送所述目标升级包。After the validity verification of the first certificate passes, the target upgrade package is sent to the first device.
在一种可能的实现方式中,所述第二下载请求中还包含所述目标升级包的标识信息;所述装置还包括:In a possible implementation, the second download request also includes identification information of the target upgrade package; the device further includes:
绑定信息生成模块,用于生成绑定信息,所述绑定信息用于指示所述第一设备的标识信息与所述目标升级包之间具有绑定关系;A binding information generation module, configured to 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, perform a legality 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 to the first device after the legality check of the first certificate passes and the legality check of the identification information of the target upgrade package passes. Bag.
需要说明的一点是,上述实施例提供的装置在实现其功能时,仅以上述各个功能模块的划分进行举例说明,实际应用中,可以根据实际需要而将上述功能分配由不同的功能模块完成,即将设备的内容结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。It should be noted that when the device provided in the above embodiment implements its functions, only the division of the above functional modules is used as an example. In practical applications, the above functions can be allocated to different functional modules according to actual needs. That is, the content structure of the device is divided into different functional modules to complete all or part of the functions described above.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the devices in the above embodiments, the specific manner in which each module performs operations has been described in detail in the embodiments related to the method, and will not be described in detail here.
请参考图13,其示出了本申请一个实施例提供的计算机设备1300的结构示意图。该计算机设备1300可以包括:处理器1301、接收器1302、发射器1303、存储器1304和总线1305。Please refer to Figure 13, which shows a schematic structural diagram of a computer device 1300 provided by an 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.
处理器1301包括一个或者一个以上处理核心,处理器1301通过运行软件程序以及模块,从而执行各种功能应用以及信息处理。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.
接收器1302和发射器1303可以实现为一个通信组件,该通信组件可以是一块通信芯片。该通信芯片也可以称为收发器。The receiver 1302 and the transmitter 1303 can be implemented as a communication component, and the communication component can be a communication chip. This communication chip can also be called a transceiver.
存储器1304通过总线1305与处理器1301相连。 Memory 1304 is connected to processor 1301 through bus 1305.
存储器1304可用于存储计算机程序,处理器1301用于执行该计算机程序,以实现上述方法实施例中的各个步骤。The memory 1304 can be used to store a computer program, and the processor 1301 is used to execute the computer program to implement various steps in the above method embodiments.
此外,存储器1304可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,易失性或非易失性存储设备包括但不限于:磁盘或光盘,电可擦除可编程只读存储器,可擦除可编程只读存储器,静态随时存取存储器,只读存储器,磁存储器,快闪存储器,可编程只读存储器。Additionally, memory 1304 may be implemented by any type of volatile or non-volatile storage device, or combination thereof, including but not limited to: magnetic or optical disks, electrically erasable programmable Read-only memory, erasable programmable read-only memory, static ready-access memory, read-only memory, magnetic memory, flash memory, programmable read-only memory.
在一个示例性的方案中,当计算机设备1300实现为配置设备时,所述收发器,用于向服务器发送查询请求;所述查询请求用于查询升级包;所述升级包用于第一设备升级桥接能力;接收所述服务器发送的查询结果;所述查询结果中包含至少一个升级包的信息;根据目标升级包的信息向所述第一设备发送第一请求;所述第一请求用于指示所述第一设备从所述服务器下载所述目标升级包;所述目标升级包是至少一个升级包中的一个。In an exemplary solution, when the computer device 1300 is implemented as a configuration device, the transceiver is used to send a query request to the server; the query request is used to query the upgrade package; the upgrade package is used for the first device Upgrading the bridging capability; receiving the query result sent by the server; the query result contains information of at least one upgrade package; sending 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 at least one upgrade package.
其中,上述计算机设备1300中的处理器1301和/或收发器执行的过程可以参考上述图3或图7任一所示的方法中,由配置设备执行的各个步骤。The process performed by the processor 1301 and/or the transceiver in the computer device 1300 may refer to the various steps performed by the configuration device in the method shown in any of the above-mentioned FIG. 3 or FIG. 7 .
在一个示例性的方案中,当计算机设备1300实现为第一设备时,所述收发器,用于接收配置设备发送的第一请求;所述第一请求是所述配置设备向服务器发送查询请求并接收所述服务器发送的查询结果后,根据目标升级包的信息发送的请求;所述查询请求用于查询升级包;所述升级包用于第一设备升级桥接能力;所述查询结果中包含至少一个升级包的信息;所述目标升级包是至少一个升级包中的一个;根据所述第一请求,从所述服务器下载所述目标升级包。In an exemplary solution, when the computer device 1300 is implemented as a first device, the transceiver is configured to receive a first request sent by the configuration device; the first request is a query request sent by the configuration device to the server. And after receiving the query result sent by the server, a request is sent according to the information of the target upgrade package; 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 about at least one upgrade package; the target upgrade package is one of at least one upgrade package; and download the target upgrade package from the server according to the first request.
其中,上述计算机设备1300中的处理器1301和/或收发器执行的过程可以参考上述图4或图7任一所示的方法中,由第一设备执行的各个步骤。The process performed by the processor 1301 and/or the transceiver in the computer device 1300 may refer to the various steps performed by the first device in the method shown in either of FIG. 4 or FIG. 7 .
在一个示例性的方案中,当计算机设备1300实现为服务器时,所述收发器,用于接收配置设备发送的查询请求;所述查询请求用于查询升级包;所述升级包用于第一设备升级桥接能力;向所述配置设备发送查询结果;所述查询结果中包含至少一个升级包的信息;在第一设备从所述服务器下载目标升级包时,向所述第一设备发送所述目标升级包;所述目标升级包由所述配置设备通过第一请求指示给所述第一设备,且所述目标升级包是至少一个升级包中的一个。In an exemplary solution, when the computer device 1300 is implemented as a server, the transceiver is used to receive a query request sent by the configuration device; the query request is used to query the upgrade package; the upgrade package is used for the first The device upgrades the bridging capability; sends a query result to the configuration device; the query result contains information of at least one upgrade package; when the first device downloads the target upgrade package from the server, sends the first device the Target upgrade package; the target upgrade package is indicated by the configuration device to the first device through a first request, and the target upgrade package is one of at least one upgrade package.
其中,上述计算机设备1300中的处理器1301和/或收发器执行的过程可以参考上述图5或图7任一所示的方法中,由服务器执行的各个步骤。The process performed by the processor 1301 and/or the transceiver in the computer device 1300 may refer to the various steps performed by the server in the method shown in either FIG. 5 or FIG. 7 .
本申请实施例还提供了一种计算机可读存储介质,所述存储介质中存储有计算机程序,所述计算机程序由处理器加载并执行以实现上述图3、图4、图5或图7所示的方法中,由配置设备、第一设备或者服务器执行的全部或者部分步骤。Embodiments of the present application also provide a computer-readable storage medium. A computer program is stored in the storage medium. The computer program is loaded and executed by a processor to implement the above-mentioned FIG. 3, FIG. 4, FIG. 5 or FIG. 7. In the method shown, all or part of the steps are performed by the configuration device, the first device or the server.
本申请还提供了一种芯片,该芯片用于在计算机设备中运行,以使得计算机设备执行上述图3、图4、图5或图7所示的方法中,由配置设备、第一设备或者服务器执行的全部或者部分步骤。This application also provides a chip, which is used to run in a computer device, so that the computer device performs the method shown in Figure 3, Figure 4, Figure 5 or Figure 7, by the configuration device, the first device or All or part of the steps performed by the server.
本申请还提供了一种计算机程序产品,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得计算机设备执行上述图3、图4、图5或图7所示的方法中,由配置设备、第一设备或者服务器执行的全部或者部分步骤。The application also provides a computer program product, which computer program product or computer program includes computer instructions, and the computer instructions 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 the processor executes the computer instructions, so that the computer device performs the method shown in FIG. 3, FIG. 4, FIG. 5 or FIG. 7, by configuring the device, All or part of the steps performed by the first device or server.
本申请还提供了一种计算机程序,该计算机程序由计算机设备的处理器执行,以实现上述图3、图4、图5或图7所示的方法中,由配置设备、第一设备或者服务器执行的全部或者部分步骤。This application also provides a computer program, which is executed by a processor of a computer device to implement the method shown in FIG. 3, FIG. 4, FIG. 5 or FIG. 7, by the configuration device, the first device or the server. All or part of the steps to be performed.
本领域技术人员应该可以意识到,在上述一个或多个示例中,本申请实施例所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。Those skilled in the art should realize 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, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. Storage media can be any available media that can be accessed by a general purpose or special purpose computer.
以上所述仅为本申请的示例性实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包括在本申请的保护范围之内。The above are only exemplary embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection of the present application. within the range.

Claims (63)

  1. 一种设备升级方法,其特征在于,所述方法由配置设备执行,所述方法包括:A device upgrade method, characterized in that the method is executed by a configuration device, and the method includes:
    向服务器发送查询请求;所述查询请求用于查询升级包;所述升级包用于第一设备升级桥接能力;Send a query request to 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;
    接收所述服务器发送的查询结果;所述查询结果中包含至少一个升级包的信息;Receive a 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; 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. 根据权利要求1所述的方法,其特征在于,所述查询请求中包含所述第一设备的设备型号信息;The method according to claim 1, wherein the query request contains device model information of the first device;
    所述查询结果中包含与所述第一设备的设备型号匹配的至少一个升级包的信息。The query results include information about at least one upgrade package that matches the device model of the first device.
  3. 根据权利要求2所述的方法,其特征在于,所述查询请求中还包含目标桥接能力信息;所述目标桥接能力信息用于指示为目标设备提供桥接服务的能力;The method according to claim 2, characterized in that the query request also contains target bridging capability information; the target bridging capability information is used to indicate the ability to provide bridging services for the target device;
    所述查询结果中包含与所述第一设备的设备型号以及所述目标桥接能力信息匹配的至少一个升级包的信息。The query result includes information about at least one upgrade package that matches the device model of the first device and the target bridging capability information.
  4. 根据权利要求1至3任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 3, characterized in that, the method further includes:
    向所述服务器发送第二请求;所述第二请求用于为所述第一设备向所述服务器请求下载升级包的凭证;Send a second request to the server; the second request is used to request a certificate for the first device to download the upgrade package from the server;
    接收所述服务器发送的第一凭证;Receive the first certificate sent by the server;
    向所述第一设备发送所述第一凭证,所述第一凭证用于所述第一设备根据所述第一凭证从所述服务器下载所述目标升级包。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.
  5. 根据权利要求4所述的方法,其特征在于,所述第一凭证中包含凭证信息;所述凭证信息包括以下信息中的至少一项:The method according to claim 4, characterized in that the first voucher contains voucher information; the voucher 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. 根据权利要求5所述的方法,其特征在于,所述第一凭证是通过所述第一设备的公钥对所述凭证信息加密生成的凭证。The method of claim 5, wherein the first certificate is a certificate generated by encrypting the certificate information with the public key of the first device.
  7. 根据权利要求4至6任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 4 to 6, characterized in that, the method further includes:
    向所述第一设备发送升级包指示信息;所述升级包指示信息包括以下信息中的至少一项: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.
  8. 根据权利要求4至7任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 4 to 7, characterized in that, the method further includes:
    向所述服务器发送所述第一设备的标识信息。Send identification information of the first device to the server.
  9. 根据权利要求1至8任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 8, characterized in that the method further includes:
    接收所述第一设备发送的下载完成响应;所述下载确完成响应用于指示所述第一设备完成对所述目标升级包的下载;Receive a download completion response sent by the first device; the download completion response is used to instruct the first device to complete downloading of the target upgrade package;
    向所述第一设备发送升级指示,所述升级指示用于指示所述第一设备基于所述目标升级包升级桥接能力。Send an upgrade instruction to the first device, where the upgrade instruction is used to instruct the first device to upgrade the bridging capability based on the target upgrade package.
  10. 一种设备升级方法,其特征在于,所述方法由第一设备执行,所述方法包括:A device upgrade method, characterized in that the method is executed by a first device, and the method includes:
    接收配置设备发送的第一请求;所述第一请求是所述配置设备向服务器发送查询请求并接收所述服务器发送的查询结果后,根据目标升级包的信息发送的请求;所述查询请求用于查询升级包;所述升级包用于第一设备升级桥接能力;所述查询结果中包含至少一个升级包的信息;所述目标升级包是所述至少一个升级包中的一个;Receive the first request sent by the configuration device; the first request is a request sent according to 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 Querying the upgrade package; 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;
    根据所述第一请求,从所述服务器下载所述目标升级包。According to the first request, download the target upgrade package from the server.
  11. 根据权利要求10所述的方法,其特征在于,所述方法还包括:The method of claim 10, further comprising:
    接收所述配置设备发送的第一凭证;Receive the first credential sent by the configuration device;
    所述根据所述第一请求,从所述服务器下载所述目标升级包,包括:Downloading the target upgrade package from the server according to the first request includes:
    根据所述第一请求,通过所述第一凭证从所述服务器下载所述目标升级包。According to the first request, download the target upgrade package from the server through the first voucher.
  12. 根据权利要求11所述的方法,其特征在于,所述第一凭证中包含凭证信息;所述凭证信息包括以下信息中的至少一项:The method according to claim 11, characterized in that the first voucher contains voucher information; the voucher 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. 根据权利要求12所述的方法,其特征在于,第一凭证是通过所述第一设备的公钥对所述凭证信息加密生成的凭证;The method according to claim 12, characterized in that the first certificate is a certificate generated by encrypting the certificate information with the public key of the first device;
    所述根据所述第一请求,通过所述第一凭证从所述服务器下载所述目标升级包,包括:Downloading the target upgrade package from the server through the first credential according to the first request includes:
    通过所述第一设备的公钥对所述第一凭证进行解密,获得所述凭证信息;Decrypt the first certificate using the public key of the first device to obtain the certificate information;
    通过所述服务器的公钥对所述凭证信息以及所述第一设备的标识信息进行加密,获得第二凭证;Encrypt the certificate information and the identification information of the first device with the public key of the server to obtain a second certificate;
    向所述服务器发送包含所述第二凭证的第一下载请求;Send a first download request containing the second voucher to the server;
    接收所述服务器发送的所述目标升级包。Receive the target upgrade package sent by the server.
  14. 根据权利要求13所述的方法,其特征在于,所述通过所述服务器的公钥对所述凭证信息以及所述第一设备的标识信息进行加密,获得第二凭证,包括:The method of claim 13, wherein encrypting the credential information and the identification information of the first device using the public key of the server to obtain the second credential includes:
    对所述凭证信息进行合法性校验;Perform legality verification on the credential information;
    在对所述凭证信息合法性校验通过后,通过所述服务器的公钥对所述凭证信息以及所述第一设备的标识信息进行加密,获得所述第二凭证。After the validity verification of the credential information passes, 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. 根据权利要求11或12所述的方法,其特征在于,所述根据所述第一请求,通过所述第一凭证从所述服务器下载所述目标升级包,包括:The method according to claim 11 or 12, characterized in that, according to the first request, downloading the target upgrade package from the server through the first voucher includes:
    向所述服务器发送包含所述第一凭证的第二下载请求;Send a second download request containing the first voucher to the server;
    接收所述服务器发送的所述目标升级包。Receive the target upgrade package sent by the server.
  16. 根据权利要求15所述的方法,其特征在于,所述第二下载请求中还包含所述目标升级包的标识信息。The method of claim 15, wherein the second download request further includes identification information of the target upgrade package.
  17. 根据权利要求11至16任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 11 to 16, characterized in that the method further includes:
    接收所述配置设备发送的升级包指示信息;所述升级包指示信息包括以下信息中的至少一项:所述目标升级包的下载地址;或者,所述目标升级包的标识信息;Receive the upgrade package indication information sent by the configuration 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;
    所述根据所述第一请求,从所述服务器下载所述目标升级包,包括:Downloading the target upgrade package from the server according to the first request includes:
    根据所述第一请求,通过所述升级包指示信息从所述服务器下载所述目标升级包。According to the first request, download the target upgrade package from the server through the upgrade package indication information.
  18. 根据权利要求10至17任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 10 to 17, characterized in that the method further includes:
    基于所述目标升级包升级桥接能力。Upgrade the bridging capability based on the target upgrade package.
  19. 根据权利要求18所述的方法,其特征在于,所述方法还包括:The method of claim 18, further comprising:
    在完成对所述目标升级包的下载的情况下,向所述配置设备发送下载完成响应;When the download of the target upgrade package is completed, sending a download completion response to the configuration device;
    所述运行所述目标升级包以进行设备升级,包括:Running the target upgrade package to upgrade the device includes:
    在接收到所述配置设备发送的升级指示的情况下,运行所述目标升级包以进行设备升级。Upon receiving the upgrade instruction sent by the configuration device, run the target upgrade package to upgrade the device.
  20. 一种设备升级方法,其特征在于,所述方法由服务器执行,所述方法包括:A device upgrade method, characterized in that the method is executed by a server, and the method includes:
    接收配置设备发送的查询请求;所述查询请求用于查询升级包;所述升级包用于第一设备升级桥接能力;Receive a query request sent by the configuration device; the query request is used to query the upgrade package; the upgrade package is used to upgrade the bridging capability of the first device;
    向所述配置设备发送查询结果;所述查询结果中包含至少一个升级包的信息;Send a query result to the configuration device; the query result contains 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. 根据权利要求20所述的方法,其特征在于,所述查询请求中包含所述第一设备的设备型号信息;The method according to claim 20, wherein the query request contains device model information of the first device;
    所述向所述配置设备发送查询结果,包括:The sending of query results to the configuration device includes:
    向所述配置设备发送与所述第一设备的设备型号匹配的所述至少一个升级包的信息。Send information about the at least one upgrade package that matches the device model of the first device to the configuration device.
  22. 根据权利要求21所述的方法,其特征在于,所述查询请求中还包含目标桥接能力信息;所述目标桥接能力信息用于指示为目标设备提供桥接服务的能力;The method according to claim 21, characterized in that the query request also contains target bridging capability information; the target bridging capability information is used to indicate the ability to provide bridging services for the target device;
    所述向所述配置设备发送与所述第一设备的设备型号匹配的所述至少一个升级包的信息,包括:The sending of the information of the at least one upgrade package that matches the device model of the first device to the configuration device includes:
    向所述配置设备发送与所述第一设备的设备型号以及所述目标桥接能力信息匹配的所述至少一个升级包的信息。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.
  23. 根据权利要求20至22任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 20 to 22, characterized in that the method further includes:
    接收所述配置设备发送的第二请求;所述第二请求用于为所述第一设备向所述服务器请求下载升级包的凭证;Receive a second request sent by the configuration device; the second request is used to request a certificate for the first device to download the upgrade package from the server;
    根据所述第二请求,向所述配置设备发送第一凭证;所述第一凭证用于由所述第一设备从所述第一服务器下载所述目标升级包。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. 根据权利要求23所述的方法,其特征在于,所述第一凭证中包含凭证信息;所述凭证信息包括以下信息中的至少一项:The method according to claim 23, characterized in that the first voucher contains voucher information; the voucher 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. 根据权利要求24所述的方法,其特征在于,所述方法还包括:The method of claim 24, further comprising:
    通过所述第一设备的公钥对所述凭证信息进行加密,获得所述第一凭证。The first certificate is obtained by encrypting the certificate information with the public key of the first device.
  26. 根据权利要求25所述的方法,其特征在于,所述方法还包括:The method of claim 25, further comprising:
    接收所述配置设备发送的,所述第一设备的设备标识;Receive the device identification of the first device sent by the configuration device;
    根据所述第一设备的设备标识,获取所述第一设备的公钥。Obtain the public key of the first device according to the device identification of the first device.
  27. 根据权利要求24至26任一所述的方法,其特征在于,所述在第一设备从所述服务器下载目标升级包时,向所述第一设备发送所述目标升级包,包括: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:
    接收所述第一设备发送的第一下载请求;所述第一下载请求中包含第二凭证;Receive a first download request sent by the first device; the first download request includes a second voucher;
    通过所述服务器的公钥对所述第二凭证进行解密,获得所述凭证信息以及所述第一设备的标识信息;Decrypt the second certificate using the public key of the server to obtain the certificate information and the identification information of the first device;
    对所述凭证信息以及所述第一设备的标识信息进行合法性校验;Perform legality verification on the credential information and the identification information of the first device;
    在对所述凭证信息以及所述第一设备的标识信息的合法性校验通过后,向所述第一设备发送所述目标升级包。After the validity verification of the credential information and the identification information of the first device passes, the target upgrade package is sent to the first device.
  28. 根据权利要求24至26任一所述的方法,其特征在于,所述在第一设备从所述服务器下载目标升级包时,向所述第一设备发送所述目标升级包,包括: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:
    接收所述第二设备发送的第二下载请求;所述第二下载请求中包含第一凭证;Receive a second download request sent by the second device; the second download request includes the first voucher;
    对所述第一凭证进行合法性校验;Perform legality verification on the first voucher;
    在对所述第一凭证的合法性校验通过后,向所述第一设备发送所述目标升级包。After the validity verification of the first certificate passes, the target upgrade package is sent to the first device.
  29. 根据权利要求28所述的方法,其特征在于,所述第二下载请求中还包含所述目标升级包的标识信息;所述方法还包括:The method according to claim 28, wherein the second download request also includes identification information of the target upgrade package; the method further includes:
    生成绑定信息,所述绑定信息用于指示所述第一设备的标识信息与所述目标升级包之间具有绑定关系;Generate binding information, the binding information being 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, perform a legality check on the identification information of the target upgrade package according to the binding information;
    所述在对所述第一凭证的合法性校验通过后,向所述第一设备发送所述目标升级包,包括:After the legality verification of the first certificate passes, sending the target upgrade package to the first device includes:
    在对所述第一凭证的合法性校验通过,且对所述目标升级包的标识信息的合法性校验通过后,向所述第一设备发送所述目标升级包。After the legality check of the first certificate passes and the legality check of the identification information of the target upgrade package passes, the target upgrade package is sent to the first device.
  30. 一种设备升级装置,其特征在于,所述装置包括:An equipment upgrade device, characterized in that the device includes:
    发送模块,用于向服务器发送查询请求;所述查询请求用于查询升级包;所述升级包用于第一设备升级桥接能力;A sending module, configured to send a query request to 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;
    接收模块,用于接收所述服务器发送的查询结果;所述查询结果中包含至少一个升级包的信息;A receiving module, configured to receive query results sent by the server; the query results include information on at least one upgrade package;
    所述发送模块,还用于向所述第一设备发送第一请求;所述第一请求用于指示所述第一设备从所述服务器下载目标升级包;所述目标升级包是所述至少一个升级包中的一个。The sending module is also configured 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 the at least One of an upgrade package.
  31. 根据权利要求30所述的装置,其特征在于,所述查询请求中包含所述第一设备的设备型号信息;The device according to claim 30, wherein 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. 根据权利要求31所述的装置,其特征在于,所述查询请求中还包含目标桥接能力信息;所述目标桥接能力信息用于指示为目标设备提供桥接服务的能力;The device according to claim 31, wherein the query request also includes target bridging capability information; the target bridging capability information is used to indicate the ability to provide bridging services for the target device;
    所述查询结果中包含与所述第一设备的设备型号以及所述目标桥接能力信息匹配的所述至少一个升级包的信息。The query result includes information about the at least one upgrade package that matches the device model of the first device and the target bridging capability information.
  33. 根据权利要求30至32任一所述的装置,其特征在于,The device according to any one of claims 30 to 32, characterized in that:
    所述发送模块,还用于向所述服务器发送第二请求;所述第二请求用于为所述第一设备向所述服务器请求下载升级包的凭证;The sending module is also configured to send a second request to the server; the second request is used to request a certificate for the first device to download the upgrade package from the server;
    所述接收模块,还用于接收所述服务器发送的第一凭证;The receiving module is also used to receive the first certificate sent by the server;
    所述发送模块,还用于向所述第一设备发送所述第一凭证,所述第一凭证用于所述第一设备根据所述第一凭证从所述服务器下载所述目标升级包。The sending module is further configured to send the first voucher to the first device, where the first voucher is used for the first device to download the target upgrade package from the server according to the first voucher.
  34. 根据权利要求33所述的装置,其特征在于,所述第一凭证中包含凭证信息;所述凭证信息包括以下信息中的至少一项:The device according to claim 33, characterized in that the first voucher contains voucher information; the voucher 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. 根据权利要求34所述的装置,其特征在于,所述第一凭证是通过所述第一设备的公钥对所述凭证信息加密生成的凭证。The apparatus according to claim 34, wherein the first certificate is a certificate generated by encrypting the certificate information with the public key of the first device.
  36. 根据权利要求33至35任一所述的装置,其特征在于,The device according to any one of claims 33 to 35, characterized in that,
    所述发送模块,还用于向所述第一设备发送升级包指示信息;所述升级包指示信息包括以下信息中的至少一项:The sending module is also 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. 根据权利要求33至36任一所述的装置,其特征在于,The device according to any one of claims 33 to 36, characterized in that,
    所述发送模块,还用于向所述服务器发送所述第一设备的标识信息。The sending module is also configured to send the identification information of the first device to the server.
  38. 根据权利要求30至37任一所述的装置,其特征在于,The device according to any one of claims 30 to 37, characterized in that,
    所述接收模块,还用于接收所述第一设备发送的下载完成响应;所述下载确完成响应用于指示所述第一设备完成对所述目标升级包的下载;The receiving module is also configured to receive a download completion response sent by the first device; the download completion response is used to instruct the first device to complete the download of the target upgrade package;
    所述发送模块,还用于向所述第一设备发送升级指示,所述升级指示用于指示所述第一设备基于所述目标升级包升级桥接能力。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 the bridging capability based on the target upgrade package.
  39. 一种设备升级装置,其特征在于,所述装置包括:An equipment upgrade device, characterized in that the device includes:
    接收模块,用于接收配置设备发送的第一请求;所述第一请求是所述配置设备向服务器发送查询请求并接收所述服务器发送的查询结果后,根据目标升级包的信息发送的请求;所述查询请求用于查询升级包;所述升级包用于第一设备升级桥接能力;所述查询结果中包含至少一个升级包的信息;所述目标升级包是所述至少一个升级包中的一个;A receiving module, configured to receive the first request sent by the configuration device; the first request is a request sent according to 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 an upgrade package; the upgrade package is used to upgrade the bridging capability of 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. one;
    下载模块,用于根据所述第一请求,从所述服务器下载所述目标升级包。A download module, configured to download the target upgrade package from the server according to the first request.
  40. 根据权利要求39所述的装置,其特征在于,The device according to claim 39, characterized in that:
    所述接收模块,还用于接收所述配置设备发送的第一凭证;The receiving module is also configured to receive the first voucher sent by the configuration device;
    所述下载模块,用于根据所述第一请求,通过所述第一凭证从所述服务器下载所述目标升级包。The download module is configured to download the target upgrade package from the server through the first voucher according to the first request.
  41. 根据权利要求40所述的装置,其特征在于,所述第一凭证中包含凭证信息;所述凭证信息包括以 下信息中的至少一项:The device according to claim 40, wherein the first voucher contains voucher information; the voucher 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. 根据权利要求41所述的装置,其特征在于,第一凭证是通过所述第一设备的公钥对所述凭证信息加密生成的凭证;The device according to claim 41, wherein the first certificate is a certificate generated by encrypting the certificate information with the public key of the first device;
    所述下载模块,用于,The download module is used to,
    通过所述第一设备的公钥对所述第一凭证进行解密,获得所述凭证信息;Decrypt the first certificate using the public key of the first device to obtain the certificate information;
    通过所述服务器的公钥对所述凭证信息以及所述第一设备的标识信息进行加密,获得第二凭证;Encrypt the certificate information and the identification information of the first device with the public key of the server to obtain a second certificate;
    向所述服务器发送包含所述第二凭证的第一下载请求;Send a first download request containing the second voucher to the server;
    接收所述服务器发送的所述目标升级包。Receive the target upgrade package sent by the server.
  43. 根据权利要求42所述的装置,其特征在于,所述下载模块,用于,The device according to claim 42, characterized in that the download module is used to:
    对所述凭证信息进行合法性校验;Perform legality verification on the credential information;
    在对所述凭证信息合法性校验通过后,通过所述服务器的公钥对所述凭证信息以及所述第一设备的标识信息进行加密,获得所述第二凭证。After the validity verification of the credential information passes, 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. 根据权利要求40或41所述的装置,其特征在于,所述下载模块,用于,The device according to claim 40 or 41, characterized in that the download module is used to:
    向所述服务器发送包含所述第一凭证的第二下载请求;Send a second download request containing the first voucher to the server;
    接收所述服务器发送的所述目标升级包。Receive the target upgrade package sent by the server.
  45. 根据权利要求44所述的装置,其特征在于,所述第二下载请求中还包含所述目标升级包的标识信息。The device according to claim 44, wherein the second download request further includes identification information of the target upgrade package.
  46. 根据权利要求40至45任一所述的装置,其特征在于,所述装置还包括:The device according to any one of claims 40 to 45, characterized in that the device further includes:
    所述接收模块,还用于接收所述配置设备发送的升级包指示信息;所述升级包指示信息包括以下信息中的至少一项:所述目标升级包的下载地址;或者,所述目标升级包的标识信息;The receiving module is also configured to receive the upgrade package indication information sent by the configuration device; the upgrade package indication information includes at least one of the following information: the download address of the target upgrade package; or, the target upgrade Package identification information;
    所述下载模块,用于根据所述第一请求,通过所述升级包指示信息从所述服务器下载所述目标升级包。The download module is configured to download the target upgrade package from the server through the upgrade package indication information according to the first request.
  47. 根据权利要求39至46任一所述的装置,其特征在于,所述装置还包括:The device according to any one of claims 39 to 46, characterized in that the device further includes:
    升级模块,用于基于所述目标升级包升级桥接能力。The upgrade module is used to upgrade the bridging capability based on the target upgrade package.
  48. 根据权利要求47所述的装置,其特征在于,所述装置还包括:The device of claim 47, further comprising:
    发送模块,用于在完成对所述目标升级包的下载的情况下,向所述配置设备发送下载完成响应;A sending module, configured to send a download completion response to the configuration device when the download of the target upgrade package is completed;
    所述升级模块,用于在接收到所述配置设备发送的升级指示的情况下,运行所述目标升级包以进行设备升级。The upgrade module is configured to run the target upgrade package to upgrade the device upon receiving an upgrade instruction sent by the configuration device.
  49. 一种设备升级装置,其特征在于,所述装置包括:An equipment upgrade device, characterized in that the device includes:
    接收模块,用于接收配置设备发送的查询请求;所述查询请求用于查询升级包;所述升级包用于第一设备升级桥接能力;A receiving module, configured to receive a query request sent by the configuration device; the query request is used to query the upgrade package; the upgrade package is used to upgrade the bridging capability of the first device;
    发送模块,用于向所述配置设备发送查询结果;所述查询结果中包含至少一个升级包的信息;A sending module, configured to send query results to the configuration device; the query results include information on at least one upgrade package;
    所述发送模块,还用于在第一设备从所述服务器下载目标升级包时,向所述第一设备发送所述目标升级包;所述目标升级包由所述配置设备通过第一请求指示给所述第一设备,且所述目标升级包是所述至少一个升级包中的一个。The sending module is also 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 by the configuration device through the first request. to the first device, and the target upgrade package is one of the at least one upgrade package.
  50. 根据权利要求49所述的装置,其特征在于,所述查询请求中包含所述第一设备的设备型号信息;The device according to claim 49, wherein the query request includes device model information of the first device;
    所述发送模块,用于向所述配置设备发送与所述第一设备的设备型号匹配的所述至少一个升级包的信息。The sending module is configured to send information about the at least one upgrade package that matches the device model of the first device to the configuration device.
  51. 根据权利要求50所述的装置,其特征在于,所述查询请求中还包含目标桥接能力信息;所述目标桥接能力信息用于指示为目标设备提供桥接服务的能力;The device according to claim 50, wherein the query request further includes target bridging capability information; the target bridging capability information is used to indicate the ability to provide bridging services for the target device;
    所述发送模块,用于向所述配置设备发送与所述第一设备的设备型号以及所述目标桥接能力信息匹配的所述至少一个升级包的信息。The sending module is configured to send the 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. 根据权利要求49至51任一所述的装置,其特征在于,The device according to any one of claims 49 to 51, characterized in that,
    所述接收模块,还用于接收所述配置设备发送的第二请求;所述第二请求用于为所述第一设备向所述服务器请求下载升级包的凭证;The receiving module is also configured to receive a second request sent by the configuration device; the second request is used to request a certificate for the first device to download the upgrade package from the server;
    所述发送模块,还用于根据所述第二请求,向所述配置设备发送第一凭证;所述第一凭证用于由所述第一设备从所述第一服务器下载所述目标升级包。The sending module is further configured to send a first voucher to the configuration device according to the second request; the first voucher is used for the first device to download the target upgrade package from the first server. .
  53. 根据权利要求52所述的装置,其特征在于,所述第一凭证中包含凭证信息;所述凭证信息包括以下信息中的至少一项:The device according to claim 52, characterized in that the first voucher contains voucher information; the voucher 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. 根据权利要求53所述的装置,其特征在于,所述装置还包括:The device of claim 53, further comprising:
    加密模块,用于通过所述第一设备的公钥对所述凭证信息进行加密,获得所述第一凭证。An encryption module, configured to encrypt the credential information using the public key of the first device to obtain the first credential.
  55. 根据权利要求54所述的装置,其特征在于,The device according to claim 54, characterized in that:
    所述接收模块,还用于接收所述配置设备发送的,所述第一设备的设备标识;The receiving module is also configured to receive the device identification of the first device sent by the configuration device;
    所述装置还包括:The device also 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.
  56. 根据权利要求53至55任一所述的装置,其特征在于,所述发送模块,用于,The device according to any one of claims 53 to 55, characterized in that the sending module is used to,
    接收所述第一设备发送的第一下载请求;所述第一下载请求中包含第二凭证;Receive a first download request sent by the first device; the first download request includes a second voucher;
    通过所述服务器的公钥对所述第二凭证进行解密,获得所述凭证信息以及所述第一设备的标识信息;Decrypt the second certificate using the public key of the server to obtain the certificate information and the identification information of the first device;
    对所述凭证信息以及所述第一设备的标识信息进行合法性校验;Perform legality verification on the credential information and the identification information of the first device;
    在对所述凭证信息以及所述第一设备的标识信息的合法性校验通过后,向所述第一设备发送所述目标升级包。After the validity verification of the credential information and the identification information of the first device passes, the target upgrade package is sent to the first device.
  57. 根据权利要求53至55任一所述的装置,其特征在于,所述发送模块,用于,The device according to any one of claims 53 to 55, characterized in that the sending module is used to,
    接收所述第二设备发送的第二下载请求;所述第二下载请求中包含第一凭证;Receive a second download request sent by the second device; the second download request includes the first voucher;
    对所述第一凭证进行合法性校验;Perform legality verification on the first voucher;
    在对所述第一凭证的合法性校验通过后,向所述第一设备发送所述目标升级包。After the validity verification of the first certificate passes, the target upgrade package is sent to the first device.
  58. 根据权利要求57所述的装置,其特征在于,所述第二下载请求中还包含所述目标升级包的标识信息;所述装置还包括:The device according to claim 57, wherein the second download request also includes identification information of the target upgrade package; the device further includes:
    绑定信息生成模块,用于生成绑定信息,所述绑定信息用于指示所述第一设备的标识信息与所述目标升级包之间具有绑定关系;A binding information generation module, configured to 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, perform a legality 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 to the first device after the legality check of the first certificate passes and the legality check of the identification information of the target upgrade package passes. Bag.
  59. 一种计算机设备,其特征在于,所述计算机设备包括处理器、存储器和收发器;A computer device, characterized in that the computer device includes a processor, a memory and a transceiver;
    所述存储器中存储有计算机程序,所述处理器执行所述计算机程序,以使得所述计算机设备实现如上述权利要求1至29任一所述的设备升级方法。A computer program is stored in the memory, 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. 一种计算机可读存储介质,其特征在于,所述存储介质中存储有计算机程序,所述计算机程序用于被处理器执行,以实现如权利要求1至29任一所述的设备升级方法。A computer-readable storage medium, characterized in that a computer program is stored in the storage medium, and the computer program is used to be executed by a processor to implement the device upgrade method as described in any one of claims 1 to 29.
  61. 一种芯片,其特征在于,所述芯片用于在计算机设备中运行,以使得所述计算机设备执行如权利要求1至29任一所述的设备升级方法。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. 一种计算机程序产品,其特征在于,所述计算机程序产品包括计算机指令,所述计算机指令存储在计算机可读存储介质中;计算机设备的处理器从所述计算机可读存储介质读取所述计算机指令,并执行所述计算机指令,使得所述计算机设备执行如权利要求1至29任一所述的设备升级方法。A computer program product, characterized in that the computer program product includes computer instructions, and the computer instructions are stored in a computer-readable storage medium; and a processor of a computer device reads the computer instructions from the computer-readable storage medium. instructions, and execute the computer instructions, so that the computer device executes the device upgrade method according to any one of claims 1 to 29.
  63. 一种计算机程序,其特征在于,所述计算机程序由计算机设备的处理器执行,以实现如权利要求1至29任一所述的设备升级方法。A computer program, characterized in that the computer program is executed by a processor of a computer device to implement the device upgrade method as claimed in any one of claims 1 to 29.
PCT/CN2022/104971 2022-07-11 2022-07-11 Device upgrade method and apparatus, and device, storage medium and program product WO2024011366A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/104971 WO2024011366A1 (en) 2022-07-11 2022-07-11 Device upgrade method and apparatus, and device, storage medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/104971 WO2024011366A1 (en) 2022-07-11 2022-07-11 Device upgrade method and apparatus, and device, storage medium and program product

Publications (1)

Publication Number Publication Date
WO2024011366A1 true WO2024011366A1 (en) 2024-01-18

Family

ID=89535169

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/104971 WO2024011366A1 (en) 2022-07-11 2022-07-11 Device upgrade method and apparatus, and device, storage medium and program product

Country Status (1)

Country Link
WO (1) WO2024011366A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180217828A1 (en) * 2017-01-31 2018-08-02 Ford Global Technologies, Llc Over-the-air updates security
CN112817617A (en) * 2019-11-18 2021-05-18 华为技术有限公司 Software upgrading method, device and system
CN113031980A (en) * 2019-12-24 2021-06-25 华为技术有限公司 OTA system software upgrading control method and terminal equipment
CN113127020A (en) * 2019-12-30 2021-07-16 华为技术有限公司 Software upgrading method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180217828A1 (en) * 2017-01-31 2018-08-02 Ford Global Technologies, Llc Over-the-air updates security
CN112817617A (en) * 2019-11-18 2021-05-18 华为技术有限公司 Software upgrading method, device and system
CN113031980A (en) * 2019-12-24 2021-06-25 华为技术有限公司 OTA system software upgrading control method and terminal equipment
CN113127020A (en) * 2019-12-30 2021-07-16 华为技术有限公司 Software upgrading method and device

Similar Documents

Publication Publication Date Title
US9762392B2 (en) System and method for trusted provisioning and authentication for networked devices in cloud-based IoT/M2M platforms
JP6668183B2 (en) Communication device, communication method, communication system and program
US10630647B2 (en) Secure wireless communication between controllers and accessories
US20200287726A1 (en) Remote device control
US10951592B2 (en) Secure wireless communication between controllers and accessories
US20160234628A1 (en) Smart object identification in the digital home
WO2008095375A1 (en) System and method for configuring terminal device
TW201933848A (en) Device connection method, device and system
US10693633B2 (en) Timestamp based onboarding process for wireless devices
WO2020176356A1 (en) Server-based setup for connecting a device to a local area network
CN112198805A (en) Equipment control method, device, system, computing equipment and storage medium
WO2023151505A1 (en) Method, apparatus and system for obtaining identity authentication information, and storage medium
US11582210B2 (en) Method of enabling a secure communication to a target device over a network
WO2024011366A1 (en) Device upgrade method and apparatus, and device, storage medium and program product
US20190349348A1 (en) Registry apparatus, agent device, application providing apparatus and corresponding methods
US11962465B2 (en) Control system, electronic device, and control method
WO2022006825A1 (en) Device access method in internet of things, apparatus, computer device, and storage medium
WO2023141998A1 (en) Device authentication method and apparatus, and device, storage medium and program product
WO2023130405A1 (en) Device configuration method and apparatus, computer device, and storage medium
CN113242060B (en) Network access method and device, storage medium and electronic device
US20230006999A1 (en) Methods for authenticating and integrating user equipment into an information system, corresponding devices and computer programs
US11637822B2 (en) Onboarding for cloud-based management
WO2023015462A1 (en) Method and apparatus for connection establishment, device and storage medium
WO2023015574A1 (en) Method and apparatus for account association, and computer device and storage medium
CN117749623A (en) Control method of household equipment and radiator temperature control valve

Legal Events

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

Ref document number: 22950497

Country of ref document: EP

Kind code of ref document: A1