Equipment upgrading method and related equipment

By downloading the upgrade program from the server side on the device side and performing corresponding data conversion and upgrades, the problem of low convenience of equipment upgrade is solved, and a simplified equipment upgrade process and improved convenience is achieved.

CN114489769BActive Publication Date: 2025-03-21CHONGQING AOPUTAI COMM TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210082630.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-24
Publication Date
2025-03-21
Estimated Expiration
2042-01-24

AI Technical Summary

Technical Problem

When upgrading existing equipment, upgrade data of Yang model and firmware needs to be downloaded separately, resulting in less convenience in upgrading.

Method used

After downloading the upgrade program from the server side on the device side, the upgrade program is controlled to read the first upgrade data and the second upgrade data, convert the first upgrade data into the third upgrade data required for Yang model upgrade, and upgrade the firmware based on the second upgrade data.

Benefits of technology

By obtaining the upgrade data of Yang model and firmware from the downloaded upgrade program, the steps of downloading upgrade data are avoided, which simplifies the upgrade process of the device and improves the upgrade convenience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114489769B_ABST
    Figure CN114489769B_ABST
Patent Text Reader

Abstract

The present invention provides a device upgrade method and related devices, the method comprising: after the device side downloads the upgrade program from the server side, controlling the upgrade program to run so as to read the first upgrade data and the second upgrade data from the upgrade program; converting the first upgrade data into the third upgrade data, the third upgrade data being the data required for the upgrade of the Yang model in the device side; upgrading the Yang model according to the third upgrade data, and upgrading the firmware in the device side according to the second upgrade data. In the present invention, by obtaining the upgrade data required for the Yang model and the upgrade data required for the firmware in the device from the downloaded upgrade program, the upgrade of the device does not need to download the upgrade data of the Yang model and the upgrade data of the firmware separately, which simplifies the upgrade process of the device and improves the convenience of the upgrade of the device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of equipment upgrading, and in particular to an equipment upgrading method and related equipment. Background Art

[0002] As the scale of networks continues to expand, network complexity and heterogeneity increase. Traditional network management protocols are too simple and have major defects in configuration management.

[0003] In this regard, the Internet Engineering Task Force (IETF) organization provides the NETCONF (Network Configuration Protocol, a network configuration and management protocol based on extensible markup language XML) network configuration management protocol, and Yang (a data modeling language) is used to model the status data and configuration data operated by the NETCONF protocol, that is, the device side performs configuration management through the Yang model.

[0004] Currently, when upgrading a device equipped with the Yang model, it is necessary to download the upgrade data of the Yang model and firmware in the device separately, which makes the device upgrade less convenient. Summary of the invention

[0005] The present invention provides a device upgrading method and related devices, which are used to solve the problem of low convenience in device upgrading.

[0006] In one aspect, the present invention provides a device upgrade method, applied to a device end, comprising:

[0007] After the device downloads the upgrade program from the server, controlling the upgrade program to run so as to read the first upgrade data and the second upgrade data from the upgrade program;

[0008] Converting the first upgrade data into third upgrade data, where the third upgrade data is data required for upgrading the internal Yang model of the device end;

[0009] The Yang model is upgraded according to the third upgrade data, and the firmware in the device end is upgraded according to the second upgrade data.

[0010] In one embodiment, the step of converting the first upgrade data into third upgrade data includes:

[0011] The first upgrade data is converted from a first format into a second format to obtain the third upgrade data, where the second format is a format of data in the Yang model.

[0012] In one embodiment, the step of controlling the upgrade program to run so as to read the first upgrade data from the upgrade program includes:

[0013] Reading hard-coded data from the upgrade program, where the hard-coded data is converted by the server according to fourth upgrade data required for Yang model upgrade;

[0014] The read data is determined as the first upgrade data.

[0015] In one embodiment, after the device downloads the upgrade program from the server, before the step of controlling the upgrade program to run to read the first upgrade data and the second upgrade data from the upgrade program, the step further includes:

[0016] When receiving the version update information of the device, outputting prompt information on whether to update the device;

[0017] When a determination operation triggered based on the prompt information is detected, a download request is sent to the server to download the upgrade program corresponding to the device from the server.

[0018] On the other hand, the present invention also provides a device upgrade method, applied to a server, comprising:

[0019] Upon receiving the second upgrade data and the fourth upgrade data required for the device upgrade, converting the fourth upgrade data into the first upgrade data;

[0020] encoding the second upgrade data and the first upgrade data to obtain an upgrade program;

[0021] The upgrade program is sent to the device end, the upgrade program is used by the device end to obtain the upgrade of the Yang model by the first upgrade data, and the upgrade program is used by the device end to obtain the firmware upgrade of the device by the second upgrade data.

[0022] In one embodiment, the step of converting the fourth upgrade data into the first upgrade data includes:

[0023] The fourth upgrade data is converted from the third format to the first format to obtain the first upgrade data.

[0024] In one embodiment, the step of sending the upgrade program to the device includes:

[0025] Sending device version update information to the device end;

[0026] When receiving the download request sent by the device end, the upgrade program is sent to the device end.

[0027] On the other hand, the present invention further provides a device end, comprising:

[0028] A control module, configured to control the upgrade program to run and read the first upgrade data and the second upgrade data from the upgrade program after the device downloads the upgrade program from the server;

[0029] A first conversion module, used to convert the first upgrade data into third upgrade data, where the third upgrade data is data required for upgrading the internal Yang model of the device end;

[0030] An upgrade module is used to upgrade the Yang model according to the third upgrade data, and to upgrade the firmware in the device end according to the second upgrade data.

[0031] On the other hand, the present invention also provides a server, comprising:

[0032] A second conversion module is used to convert the fourth upgrade data into the first upgrade data when receiving the second upgrade data and the fourth upgrade data required for the device upgrade;

[0033] An encoding module, used for encoding the second upgrade data and the first upgrade data to obtain an upgrade program;

[0034] The sending module is used to send the upgrade program to the device end, the upgrade program is used by the device end to obtain the upgrade of the Yang model by the first upgrade data, and the upgrade program is used by the device end to obtain the firmware upgrade of the device by the second upgrade data.

[0035] On the other hand, the present invention further provides a terminal device, comprising: a memory and a processor;

[0036] The memory stores computer-executable instructions;

[0037] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the device upgrade method as described above.

[0038] The device upgrade method and related device provided by the present invention, after the device end downloads the upgrade program from the server end, controls the upgrade program to run to read the first upgrade data and the second upgrade data from the upgrade program, and then converts the first upgrade data into the third upgrade data required for the Yang model upgrade, so as to upgrade the Yang model according to the third upgrade data, and upgrade the firmware of the device according to the second upgrade data. In the present invention, by obtaining the upgrade data required for the Yang model and the upgrade data required for the firmware in the device from the downloaded upgrade program, the upgrade of the device does not need to download the upgrade data of the Yang model and the upgrade data of the firmware separately, which simplifies the upgrade process of the device and improves the convenience of the device upgrade. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0040] Figure 1 A system architecture diagram for implementing a device upgrade method of the present invention;

[0041] Figure 2 This is a flow chart of a first embodiment of a device upgrading method of the present invention;

[0042] Figure 3 This is a detailed flow chart of step S10 in the second embodiment of the device upgrading method of the present invention;

[0043] Figure 4 This is a detailed flow chart of step S50 in the third embodiment of the device upgrading method of the present invention;

[0044] Figure 5 A schematic diagram of a flow chart of a fourth embodiment of a device upgrading method of the present invention;

[0045] Figure 6 This is a detailed flow chart of step S110 in the second embodiment of the device upgrading method of the present invention;

[0046] Figure 7 This is a detailed flow chart of step S120 in the third embodiment of the device upgrading method of the present invention;

[0047] Figure 8 It is a schematic diagram of the modules of the device end of the present invention;

[0048] Fig. 9 This is a schematic diagram of the modules of the server of the present invention;

[0049] Fig.10 Schematic diagram of the hardware structure of the device side / server side of the present invention.

[0050] The above drawings show clear embodiments of the present disclosure, which will be described in more detail below. These drawings and text descriptions are not intended to limit the scope of the present disclosure in any way, but to illustrate the concepts of the present disclosure to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0051] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0052] The present invention provides a device upgrade method, which can be Figure 1 The system architecture diagram shown in the figure is implemented. Figure 1 As shown, the device end 100 is in communication connection with the server end 200. When the server end 200 determines that the device is updated, it will send the version update information of the device to the device end 100. The device end 100 then downloads the upgrade program from the server end 200 and runs the upgrade program, thereby obtaining the upgrade data required for the device upgrade and the upgrade data required for the firmware from the upgrade program, and finally upgrades the Yang model and the fault, thereby completing the upgrade of the device.

[0053] The following specific embodiments are used to describe in detail the technical solutions of the present invention and how the technical solutions of the present application solve the above-mentioned technical problems. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present invention will be described below in conjunction with the accompanying drawings.

[0054] Reference Figure 2 , Figure 2 This is the first embodiment of the device upgrade method of the present invention, which is applied to the device side. The device upgrade method includes the following steps:

[0055] Step S10, after the device downloads the upgrade program from the server, the upgrade program is controlled to run to read the first upgrade data and the second upgrade data from the upgrade program.

[0056] In this embodiment, the execution subject is the device end. The device end stores the Yang model and firmware. The Yang model is obtained by modeling using the Yang language. The Yang model can be obtained by modeling configuration data, state data, remote procedure call data and network management protocol notification information using the Yang language.

[0057] The server stores an upgrade program for the device, which can be used to upgrade the Yang model and firmware on the device. When the device needs to be upgraded, the device downloads the upgrade program from the server, and then controls the upgrade program to run, thereby reading the first upgrade data and the second upgrade data from the upgrade program. The first upgrade data and the second upgrade data are located in the code of different positions of the upgrade program.

[0058] Step S20, converting the first upgrade data into third upgrade data, where the third upgrade data is data required for upgrading the internal Yang model of the device.

[0059] The device side needs to convert the first upgrade data into the third upgrade data, and the third upgrade data is the data required for the Yang model upgrade. The first upgrade data is obtained by the server side converting the fourth upgrade data, and the converted first upgrade data can be stored in the upgrade program. The conversion between the first upgrade data and the third upgrade data is a level conversion, that is, the conversion between the first upgrade data and the third upgrade data is lossless.

[0060] After the device obtains the first upgrade data from the upgrade program, it needs to convert the first upgrade data to obtain the third upgrade data required for the Yang model upgrade.

[0061] Step S30, upgrading the Yang model according to the third upgrading data, and upgrading the firmware in the device end according to the second upgrading data.

[0062] After obtaining the third upgrade data, the device end can upgrade the Yang model based on the third upgrade data. The second upgrade data is the upgrade data required for the firmware upgrade, and the device end upgrades the firmware based on the second upgrade data, thereby obtaining an upgraded device.

[0063] In this embodiment, the device side does not need to copy the upgrade files of the yang model and the firmware to the device separately. The purpose of simultaneously updating the yang model and the firmware in the device side can be achieved through the upgrade program, which simplifies the production process of the device side. In actual engineering applications, the on-site upgrade process of the device side can be simplified, and resource consumption can be reduced, thereby improving production efficiency.

[0064] In the technical solution provided in this embodiment, after the device downloads the upgrade program from the server, the upgrade program is controlled to run to read the first upgrade data and the second upgrade data from the upgrade program, and then the first upgrade data is converted into the third upgrade data required for the Yang model upgrade, so that the Yang model is upgraded according to the third upgrade data, and the firmware of the device is upgraded according to the second upgrade data. In the present invention, by obtaining the upgrade data required for the Yang model and the upgrade data required for the firmware in the device from the downloaded upgrade program, the upgrade of the device does not need to download the upgrade data of the Yang model and the upgrade data of the firmware separately, which simplifies the upgrade process of the device and improves the convenience of the upgrade of the device.

[0065] Reference Figure 3 , Figure 3 This is the second embodiment of the device upgrading method of the present invention. Based on the first embodiment, step S20 includes:

[0066] Step S21, converting the first upgrade data from a first format into a second format to obtain third upgrade data, where the second format is the format of data in the Yang model.

[0067] In this embodiment, the upgrade program includes a yin file converted into hexadecimal, and the upgrade program is binary-coded, so the server needs to convert the fourth upgrade data produced by the Yang model upgrade into the first upgrade data in XML format, and then encode the first upgrade data in XML format into the upgrade program. That is, the server converts the Yang file (fourth upgrade data) into the Yin file (first upgrade data).

[0068] After the device reads the first upgrade data from the upgrade program, the first upgrade data is converted from the first format to the second format to obtain the third upgrade data, which can be used as the data required for the Yang model upgrade. The first format is the XML format, and the second format is the format of the data required for the Yang model upgrade. The second format is a tree structure, that is, the device converts the first upgrade data into the third upgrade data in a tree structure to directly upgrade the Yang model.

[0069] In the technical solution provided in this embodiment, the device side converts the first upgrade data from the first format to the second format to obtain the third upgrade data, so that the device side can obtain the upgrade data required for the device upgrade from the upgrade program.

[0070] In one embodiment, step S10 includes:

[0071] Read the hard-coded data from the upgrade program. The hard-coded data is converted by the server according to the fourth upgrade data required for the Yang model upgrade;

[0072] The read data is determined as the first upgrade data.

[0073] In this embodiment, when the server obtains the fourth upgrade data of the Yang model in the device upgrade, it will convert the format of the fourth upgrade data to obtain the first upgrade data, and the first upgrade data can be encoded into the program by the server. The server encodes the first upgrade data into the preset program in a hard-coded manner, and encodes the second upgrade data into the preset program to obtain the upgrade program. Specifically, the server hard-codes the first upgrade data into the preset program in hexadecimal. The hard-coded method allows the device to directly locate the first upgrade data and the second upgrade data from the upgrade program, and then read the first upgrade data. That is, when the device is downloading the upgrade program, it reads the hard-coded data from the upgrade program, and the hard-coded data is the first upgrade data converted from the fourth upgrade data. The device determines the read data as the first upgrade data.

[0074] In the technical solution provided in this embodiment, the device end reads hard-coded data from the upgrade program, and the hard-coded data is the first upgrade data, that is, the device end can accurately obtain the first upgrade data.

[0075] Reference Figure 4 , Figure 4 This is a third embodiment of the device upgrading method of the present invention, based on the first or second embodiment, and before step S10, further comprising:

[0076] Step S40: upon receiving the version update information of the device, outputting prompt information on whether to update the device.

[0077] In this embodiment, after obtaining the second upgrade data required for the firmware upgrade in the device and the fourth upgrade data required for the Yang model upgrade in the device, the server converts the fourth upgrade data into the first upgrade data, then hard codes the first upgrade data into the preset program, and codes the second upgrade data into the preset program to obtain the upgrade program. The server sends the version update information of the device to the device to prompt the device that the device can be upgraded.

[0078] When the device receives the version update information of the device, it outputs a prompt message whether to update the device, thereby reminding the operator to update the device.

[0079] Step S50, when a determination operation triggered by the prompt information is detected, a download request is sent to the server to download the corresponding upgrade program of the device from the server.

[0080] If the operator agrees to update the device, a confirmation operation can be performed on the device side. That is, when the device side detects a confirmation operation triggered by the prompt information, it sends a download request to the server side to download the corresponding upgrade program of the device from the server side to upgrade the device.

[0081] In the technical solution provided in this embodiment, when the device receives the version update information of the device, it outputs prompt information on whether to update the device. When a determination operation triggered by the prompt information is detected, a download request is sent to the server to download the upgrade program corresponding to the device from the server.

[0082] Reference Figure 5 , Figure 5 This is the fourth embodiment of the device upgrade method of the present invention, which is applied to the server. The device upgrade method includes:

[0083] Step S100: upon receiving fourth upgrade data and third upgrade data required for device upgrade, converting the fourth upgrade data into first upgrade data.

[0084] In this embodiment, the execution subject is the server. After the Yang model is updated, the technician will upload the fourth upgrade data required for the upgrade of the Yang model in the device and the second upgrade data required for the upgrade of the firmware in the device to the server. The format of the fourth upgrade data is different from the data format in the upgrade program sent to the device. In order to be able to write the fourth upgrade data into the upgrade program, the server first converts the fourth upgrade data into the first upgrade data when receiving the fourth upgrade data and the second upgrade data required for the standby upgrade. The format of the first upgrade data is the same as the data format in the upgrade program.

[0085] Step S110, encoding the second upgrade data and the first upgrade data to obtain an upgrade program.

[0086] The first upgrade data can be encoded into the program by the server. The server stores the first upgrade data into the preset program in a hard-coded manner, and encodes the second upgrade data into the preset program to obtain the upgrade program. Specifically, the server hard-codes the first upgrade data into the preset program in hexadecimal. The hard-coded manner allows the device to directly determine the first upgrade data from the upgrade program and then read the first upgrade data. That is, when the device is downloading the upgrade program, the hard-coded data is the first upgrade data converted from the fourth upgrade data, and the device determines the read data as the first upgrade data.

[0087] Step S120, sending the upgrade program to the device side, the upgrade program is used for the device side to obtain the upgrade of the Yang model by the first upgrade data, and the upgrade program is used for the device side to obtain the second upgrade data device firmware upgrade.

[0088] After generating the upgrade program, the server sends the upgrade program to the device. After the device obtains the first upgrade data from the upgrade program, it needs to convert the first upgrade data to obtain the third upgrade data that can instantly upgrade the Yang model. The format of the third upgrade data is different from that of the fourth upgrade data. The format of the third upgrade data is a tree structure, which can be directly obtained by the device to upgrade the Yang model. The device then upgrades the firmware based on the second upgrade data to complete the upgrade of the device.

[0089] In the technical solution provided in this embodiment, when the server receives the fourth upgrade data and the second upgrade data required for device upgrade, the server converts the fourth upgrade data into the first upgrade data, encodes the first upgrade data and the second upgrade data in ascending order to obtain an upgrade program, and then sends the upgrade program to the device side, so that the device side can upgrade the Yang model and firmware based on the upgrade program, thereby improving the convenience of device side upgrade.

[0090] Reference Figure 6 , Figure 6 This is the fifth embodiment of the device upgrading method of the present invention. Based on the fifth embodiment, step S110 includes:

[0091] Step S111: convert the fourth upgrade data from the third format into the first format to obtain the first upgrade data.

[0092] In this embodiment, the upgrade program includes a yin file converted into hexadecimal, and the upgrade program is binary-coded, so the server needs to convert the fourth upgrade data produced by the Yang model upgrade into the first upgrade data in XML format, and then encode the first upgrade data in XML format into the upgrade program. That is, the server converts the third format of the Yang file (fourth upgrade data) into the first format to obtain the Yin file (first upgrade data).

[0093] After the device reads the first upgrade data from the upgrade program, the first upgrade data is converted from the first format to the second format to obtain the third upgrade data, which can be used as the data required for the Yang model upgrade. The first format is the XML format, and the second format is the format of the data required for the Yang model upgrade. The second format is a tree structure, that is, the device converts the first upgrade data into the third upgrade data in a tree structure to directly upgrade the Yang model.

[0094] In the technical solution provided in this embodiment, the server converts the fourth upgrade data from the third format into the first format to obtain the first upgrade data, so that the server can hard-code the first upgrade data into the upgrade program.

[0095] Reference Figure 7 , Figure 7 This is the sixth embodiment of the device upgrading method of the present invention, based on the fourth or fifth embodiment, step S120 includes:

[0096] Step S121, sending device version update information to the device end.

[0097] In this embodiment, after obtaining the second upgrade data required for the firmware upgrade in the device and the fourth upgrade data required for the Yang model upgrade in the device, the server converts the fourth upgrade data into the first upgrade data, hard codes the fourth upgrade data into the preset program, and codes the second upgrade data into the preset program to obtain the upgrade program. The server sends the version update information of the device to the device to prompt the device that the device can be upgraded.

[0098] Step S122, when receiving the download request sent by the device, the upgrade program is sent to the device.

[0099] When the device receives the version update information of the device, it outputs a prompt message whether to update the device, thereby reminding the operator to update the device.

[0100] If the operator agrees to update the device, a confirmation operation can be performed on the device side. That is, when the device side detects a confirmation operation triggered by the prompt information, it sends a download request to the server side to download the corresponding upgrade program of the device from the server side to upgrade the device.

[0101] In this embodiment, the server sends version update information of the device to the device, which then receives a download request sent by the device based on the version update information and sends the upgrade program to the device, so that the device upgrades the Yang model and firmware based on the upgrade program.

[0102] The present invention also provides a device end, referring to Figure 8 , the device end 800 includes:

[0103] The control module 810 is used to control the upgrade program to run and read the first upgrade data and the second upgrade data from the upgrade program after the device downloads the upgrade program from the server;

[0104] A first conversion module 820, configured to convert the first upgrade data into third upgrade data, where the third upgrade data is data required for upgrading the internal Yang model of the device end;

[0105] The upgrade module 830 is used to upgrade the Yang model according to the third upgrade data, and to upgrade the firmware in the device according to the second upgrade data.

[0106] In one embodiment, the device end 800 includes:

[0107] The first conversion module 820 is used to convert the first upgrade data from a first format into a second format to obtain third upgrade data, where the second format is a format of data in the Yang model.

[0108] In one embodiment, the device end 800 includes:

[0109] A reading module is used to read hard-coded data from the upgrade program, where the hard-coded data is converted by the server according to the fourth upgrade data required for the Yang model upgrade;

[0110] The determination module is used to determine the read data as the first upgrade data.

[0111] In one embodiment, the device end 800 includes:

[0112] An output module is used to output prompt information on whether to update the device when receiving version update information of the device;

[0113] The sending module is used to send a download request to the server to download the corresponding upgrade program of the device from the server when a determination operation triggered by the prompt information is detected.

[0114] The present invention also provides a server, referring to Fig. 9 , the server 900 includes:

[0115] The second conversion module 910 is used to convert the fourth upgrade data into the first upgrade data when receiving the second upgrade data and the fourth upgrade data required for the device upgrade;

[0116] An encoding module 920, configured to encode the second upgrade data and the first upgrade data to obtain an upgrade program;

[0117] The sending module 930 is used to send the upgrade program to the device end, the upgrade program is used for the device end to obtain the upgrade of the Yang model by the first upgrade data, and the upgrade program is used for the device end to obtain the firmware upgrade of the second upgrade data device.

[0118] In one embodiment, the server 900 includes:

[0119] The second conversion module 910 is configured to convert the fourth upgrade data from the third format into the first format to obtain the first upgrade data.

[0120] In one embodiment, the server 900 includes:

[0121] A sending module 930 is used to send device version update information to the device end;

[0122] The sending module 930 is used to send the upgrade program to the device end when receiving a download request sent by the device end.

[0123] Fig.10 The present invention is a hardware structure diagram of a device side / server side according to an exemplary embodiment.

[0124] Reference Fig.10 , the device / server 1000 may include: a processor 1001, such as a CPU, a memory 1002, and a transceiver 1003. Those skilled in the art will appreciate that Fig.10 The structure shown in the figure does not constitute a limitation on the device side / server side, and may include more or less components than shown in the figure, or combine certain components, or arrange components differently. The memory 1002 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as a static random access memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, a magnetic disk or an optical disk.

[0125] The processor 1001 may call a computer program stored in the memory 1002 to complete all or part of the steps of the above-mentioned device upgrading method.

[0126] The transceiver 1003 is used to receive information sent by an external device and send information to the external device.

[0127] A non-temporary computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a device end / server end, enables the device end / server end to execute the above-mentioned device upgrade method.

[0128] A computer program product includes a computer program. When the computer program is executed by a processor of a device end / server end, the device end / server end can execute the above-mentioned device upgrade method.

[0129] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be regarded as exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0130] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A device upgrade method, applied to a device end, characterized in that: include: After the device downloads the upgrade program from the server, controlling the upgrade program to run so as to read the first upgrade data and the second upgrade data from the upgrade program; The first upgrade data is hard-coded data read from the upgrade program, and the hard-coded data is converted by the server according to fourth upgrade data required for Yang model upgrade; Converting the first upgrade data into third upgrade data, where the third upgrade data is data required for upgrading the internal Yang model of the device end; The Yang model is upgraded according to the third upgrade data, and the firmware in the device end is upgraded according to the second upgrade data.

2. The device upgrade method according to claim 1, characterized in that: The step of converting the first upgrade data into third upgrade data comprises: The first upgrade data is converted from a first format into a second format to obtain the third upgrade data, where the second format is a format of data in the Yang model.

3. The device upgrading method according to claim 1 or 2, characterized in that: After the device downloads the upgrade program from the server, before the step of controlling the upgrade program to run so as to read the first upgrade data and the second upgrade data from the upgrade program, the method further includes: When receiving the version update information of the device, outputting prompt information on whether to update the device; When a determination operation triggered based on the prompt information is detected, a download request is sent to the server to download the upgrade program corresponding to the device from the server.

4. A device upgrade method, applied to a server, characterized in that: include: Upon receiving the second upgrade data and the fourth upgrade data required for the device upgrade, converting the fourth upgrade data into the first upgrade data; encoding the second upgrade data and the first upgrade data to obtain an upgrade program; The upgrade program is sent to the device end, the upgrade program is used by the device end to obtain the upgrade of the Yang model by the first upgrade data, and the upgrade program is used by the device end to obtain the firmware upgrade of the device by the second upgrade data.

5. The device upgrading method according to claim 4, characterized in that: The step of converting the fourth upgrade data into the first upgrade data comprises: The fourth upgrade data is converted from the third format to the first format to obtain the first upgrade data.

6. The device upgrading method according to claim 4 or 5, characterized in that: The step of sending the upgrade program to the device end includes: Sending device version update information to the device end; When receiving the download request sent by the device end, the upgrade program is sent to the device end.

7. A device end, characterized in that: include: A control module, configured to control the upgrade program to run and read the first upgrade data and the second upgrade data from the upgrade program after the device downloads the upgrade program from the server; The first upgrade data is hard-coded data read from the upgrade program, and the hard-coded data is converted by the server according to fourth upgrade data required for Yang model upgrade; A first conversion module, used to convert the first upgrade data into third upgrade data, where the third upgrade data is data required for upgrading the internal Yang model of the device end; An upgrade module is used to upgrade the Yang model according to the third upgrade data, and to upgrade the firmware in the device end according to the second upgrade data.

8. A server, characterized in that: include: A second conversion module is used to convert the fourth upgrade data into the first upgrade data when receiving the second upgrade data and the fourth upgrade data required for the device upgrade; An encoding module, used for encoding the second upgrade data and the first upgrade data to obtain an upgrade program; The sending module is used to send the upgrade program to the device end, the upgrade program is used by the device end to obtain the upgrade of the Yang model by the first upgrade data, and the upgrade program is used by the device end to obtain the firmware upgrade of the device by the second upgrade data.

9. A terminal device, characterized in that: include: Memory and processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor executes the device upgrading method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Firmware upgrading method, device, equipment and readable storage medium

    CN111884841A

  • Base station data upgrading method, base station and computer readable medium

    CN113760312A