CN114296751A - Program upgrade method, device and storage medium - Google Patents
Program upgrade method, device and storage medium Download PDFInfo
- Publication number
- CN114296751A CN114296751A CN202111361504.2A CN202111361504A CN114296751A CN 114296751 A CN114296751 A CN 114296751A CN 202111361504 A CN202111361504 A CN 202111361504A CN 114296751 A CN114296751 A CN 114296751A
- Authority
- CN
- China
- Prior art keywords
- upgraded
- upgrade
- program
- configuration information
- target
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 32
- 238000004590 computer program Methods 0.000 claims description 8
- 238000004458 analytical method Methods 0.000 claims description 2
- 230000006870 function Effects 0.000 description 15
- 230000008569 process Effects 0.000 description 7
- 230000002159 abnormal effect Effects 0.000 description 6
- 230000005856 abnormality Effects 0.000 description 3
- 230000003068 static effect Effects 0.000 description 2
- 230000003321 amplification Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000003199 nucleic acid amplification method Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Images
Landscapes
- Stored Programmes (AREA)
Abstract
Description
技术领域technical field
本申请涉及计算机领域,特别是涉及一种程序升级方法、装置和存储介质。The present application relates to the field of computers, and in particular, to a program upgrading method, device and storage medium.
背景技术Background technique
功放设备由数字板和模拟板组成,数字板负责信号的处理,模拟板负责射频信号的放大和发射,两者共同组成了功放整机。每个数字板需要匹配合适的功放板射频单元才能工作,使用错误的硬件搭配或者使用了错误的升级包程序,可能会导致功放的功率过大超过门限而烧毁。但是实际操作过程中,很难保证升级包升级的是对应的设备。The power amplifier equipment consists of a digital board and an analog board. The digital board is responsible for signal processing, and the analog board is responsible for the amplification and transmission of radio frequency signals. The two together constitute the power amplifier. Each digital board needs to be matched with a suitable RF unit of the power amplifier board to work. Using the wrong hardware combination or using the wrong upgrade package program may cause the power of the power amplifier to exceed the threshold and burn out. However, in the actual operation process, it is difficult to ensure that the upgrade package upgrades the corresponding device.
发明内容SUMMARY OF THE INVENTION
基于此,有必要针对上述技术问题,提供一种程序升级方法、装置和存储介质。Based on this, it is necessary to provide a program upgrade method, device and storage medium for the above technical problems.
第一方面,本发明实施例提出一种程序升级方法,用于对待升级设备程序升级包括:In a first aspect, an embodiment of the present invention provides a program upgrade method, which is used for program upgrade of a device to be upgraded, including:
获取升级文件,所述升级文件中包含升级程序以及目标设备的配置信息;Obtain an upgrade file, the upgrade file contains the upgrade program and the configuration information of the target device;
解析所述升级文件,获取升级程序以及目标设备的配置信息;Parse the upgrade file to obtain the upgrade program and configuration information of the target device;
在所述升级文件中的目标设备的配置信息与待升级设备的配置信息相匹配的情况下,利用升级程序对所述待升级设备进行程序升级。Under the condition that the configuration information of the target device in the upgrade file matches the configuration information of the device to be upgraded, an upgrade program is used to upgrade the device to be upgraded.
在一实施例中,所述目标设备的配置信息包括设备类型,在所述升级文件中的目标设备的设备类型与待升级设备的设备类型相匹配的情况下,利用升级程序对所述待升级设备进行程序升级。In an embodiment, the configuration information of the target device includes a device type, and in the case that the device type of the target device in the upgrade file matches the device type of the device to be upgraded, the upgrade program is used to update the device to be upgraded. Equipment for program upgrade.
在一实施例中,所述目标设备的配置信息还包括设备功率,在所述升级文件中的目标设备的设备类型与待升级设备的设备类型相匹配,且所述升级文件中的目标设备的设备功率与待升级设备的设备功率相匹配的情况下,利用升级程序对所述待升级设备进行程序升级。In an embodiment, the configuration information of the target device further includes device power, the device type of the target device in the upgrade file matches the device type of the device to be upgraded, and the target device in the upgrade file is Under the condition that the device power matches the device power of the device to be upgraded, the device to be upgraded is upgraded by using an upgrade program.
在一实施例中,所述目标设备的配置信息还包括功能码,在所述升级文件中的目标设备的设备类型与待升级设备的设备类型相匹配,且所述升级文件中的目标设备的设备功率与待升级设备的设备功率相匹配,且所述升级文件中的目标设备的功能码与待升级设备的功能码相匹配的情况下,利用升级程序对所述待升级设备进行程序升级。In an embodiment, the configuration information of the target device further includes a function code, the device type of the target device in the upgrade file matches the device type of the device to be upgraded, and the target device in the upgrade file When the device power matches the device power of the device to be upgraded, and the function code of the target device in the upgrade file matches the function code of the device to be upgraded, the upgrade program is used to upgrade the device to be upgraded.
在一实施例中,还包括:In one embodiment, it also includes:
在所述升级文件中的目标设备的配置信息与待升级设备的配置信息不相匹配的情况下,不利用升级程序对所述待升级设备进行程序升级。In the case that the configuration information of the target device in the upgrade file does not match the configuration information of the device to be upgraded, the upgrade program is not used to upgrade the device to be upgraded.
第二方面,本发明实施例提出一种程序升级装置,用于对待升级设备程序升级,包括:In a second aspect, an embodiment of the present invention provides a program upgrading apparatus for upgrading a program of a device to be upgraded, including:
获取模块,用于获取升级文件,所述升级文件中包含升级程序以及目标设备的配置信息;an acquisition module for acquiring an upgrade file, the upgrade file including the upgrade program and the configuration information of the target device;
解析模块,用于解析所述升级文件,获取升级程序以及目标设备的配置信息;a parsing module for parsing the upgrade file to obtain the upgrade program and configuration information of the target device;
升级模块,用于在所述升级文件中的目标设备的配置信息与待升级设备的配置信息相匹配的情况下,利用升级程序对所述待升级设备进行程序升级。The upgrade module is configured to use an upgrade program to upgrade the program of the device to be upgraded under the condition that the configuration information of the target device in the upgrade file matches the configuration information of the device to be upgraded.
在一实施例中,所述目标设备的配置信息包括设备类型,在所述升级文件中的目标设备的设备类型与待升级设备的设备类型相匹配的情况下,利用升级程序对所述待升级设备进行程序升级。In an embodiment, the configuration information of the target device includes a device type, and in the case that the device type of the target device in the upgrade file matches the device type of the device to be upgraded, the upgrade program is used to update the device to be upgraded. Equipment for program upgrade.
在一实施例中,所述目标设备的配置信息还包括设备功率,在所述升级文件中的目标设备的设备类型与待升级设备的设备类型相匹配,且所述升级文件中的目标设备的设备功率与待升级设备的设备功率相匹配的情况下,利用升级程序对所述待升级设备进行程序升级。In an embodiment, the configuration information of the target device further includes device power, the device type of the target device in the upgrade file matches the device type of the device to be upgraded, and the target device in the upgrade file is Under the condition that the device power matches the device power of the device to be upgraded, the device to be upgraded is upgraded by using an upgrade program.
在一实施例中,所述目标设备的配置信息还包括设备功率,在所述升级文件中的目标设备的设备类型与待升级设备的设备类型相匹配,且所述升级文件中的目标设备的设备功率与待升级设备的设备功率相匹配,且所述升级文件中的目标设备的功能码与待升级设备的功能码相匹配的情况下,利用升级程序对所述待升级设备进行程序升级。In an embodiment, the configuration information of the target device further includes device power, the device type of the target device in the upgrade file matches the device type of the device to be upgraded, and the target device in the upgrade file is When the device power matches the device power of the device to be upgraded, and the function code of the target device in the upgrade file matches the function code of the device to be upgraded, the upgrade program is used to upgrade the device to be upgraded.
第三方面,本发明实施例提出一种计算机可读存储介质,其上存储有计算机程序,所述处理器执行所述计算机程序时实现以下步骤:In a third aspect, an embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored, and the processor implements the following steps when executing the computer program:
获取升级文件,所述升级文件中包含升级程序以及目标设备的配置信息;Obtain an upgrade file, the upgrade file contains the upgrade program and the configuration information of the target device;
解析所述升级文件,获取升级程序以及目标设备的配置信息;Parse the upgrade file to obtain the upgrade program and configuration information of the target device;
在所述升级文件中的目标设备的配置信息与待升级设备的配置信息相匹配的情况下,利用升级程序对所述待升级设备进行程序升级。Under the condition that the configuration information of the target device in the upgrade file matches the configuration information of the device to be upgraded, an upgrade program is used to upgrade the device to be upgraded.
上述方法、装置和存储介质,通过获取升级文件,所述升级文件中包含升级程序以及目标设备的配置信息,解析所述升级文件,获取升级程序以及目标设备的配置信息,在所述升级文件中的目标设备的配置信息与待升级设备的配置信息相匹配的情况下,利用升级程序对所述待升级设备进行程序升级,避免了在程序升级时升级程序与升级设备的不对应,防止由于升级设备的不匹配造成异常损毁,也防止误升级升级程序造成的设备异常损毁。The above method, device and storage medium, by acquiring an upgrade file, the upgrade file contains the configuration information of the upgrade program and the target device, parse the upgrade file, and obtain the upgrade program and the configuration information of the target device, in the upgrade file In the case where the configuration information of the target device matches the configuration information of the device to be upgraded, the upgrade program is used to upgrade the device to be upgraded, so as to avoid the mismatch between the upgrade program and the upgraded device during the program upgrade, and prevent the upgrade due to the upgrade. The mismatch of equipment causes abnormal damage, and it also prevents abnormal equipment damage caused by incorrect upgrade of the upgrade program.
附图说明Description of drawings
图1为背景技术中程序升级方法的流程示意图;1 is a schematic flowchart of a program upgrade method in the background technology;
图2为一个实施例中程序升级方法的流程示意图;2 is a schematic flowchart of a program upgrade method in one embodiment;
图3为一个实施例中配置信息匹配方法的流程示意图;3 is a schematic flowchart of a configuration information matching method in one embodiment;
图4为一个实施例中程序升级装置的结构示意图。FIG. 4 is a schematic structural diagram of a program upgrade apparatus in an embodiment.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.
现有的升级过程如图1所示。升级包通过网关上传到设备上,通过进行强制升级和非强制升级的选择进行升级,当选择为非强制升级的时候,数字板设备会进行升级包类型的校验,只有当数字板设备的type类型和升级包名上的type类型一致时候才会进行升级操作,否则返回升级失败。当选择为强制升级时候,不会进行升级包类型的校验,直接解压包到相应的目录下。The existing upgrade process is shown in Figure 1. The upgrade package is uploaded to the device through the gateway, and the upgrade is performed by choosing between mandatory upgrade and non-mandatory upgrade. When the non-mandatory upgrade is selected, the digital board device will check the upgrade package type. Only when the type of the digital board device is selected The upgrade operation will be performed only when the type is the same as the type on the upgrade package name, otherwise the upgrade failure will be returned. When the option is forced to upgrade, the upgrade package type will not be checked, and the package will be directly decompressed to the corresponding directory.
由上图可以看出来,无论是否校验设备,后面对功放程序的升级都是无法校验到的,功放程序是一个bin格式的可执行文件,ARM数字板直接通过485总线对功放设备进行IAP升级,如果使用了错误的升级包或者使用了错误的设备,很有可能会造成功放设备损坏,所以对于可执行文件的升级需要进行方法改进。As can be seen from the above figure, no matter whether the device is verified or not, the subsequent upgrade of the power amplifier program cannot be verified. The power amplifier program is an executable file in bin format, and the ARM digital board directly performs the power amplifier device through the 485 bus. IAP upgrade, if the wrong upgrade package or the wrong device is used, it is likely to cause damage to the amplifier device, so the upgrade of the executable file needs to be improved.
为解决上述技术问题,在一实施例中,如图2所示,提供了一种程序升级方法,以该方法应用于图1中的系统为例进行说明,包括以下步骤:In order to solve the above-mentioned technical problem, in one embodiment, as shown in FIG. 2, a program upgrading method is provided, and the method is applied to the system in FIG. 1 as an example for description, including the following steps:
S202:获取升级文件,所述升级文件中包含升级程序以及目标设备的配置信息。S202: Obtain an upgrade file, where the upgrade file includes an upgrade program and configuration information of a target device.
在本实施例中,将目标设备的配置信息合并到升级程序中,得到升级文件。需要说明的是,升级文件的数据结构可以根据实际需要进行定义。In this embodiment, the configuration information of the target device is merged into the upgrade program to obtain the upgrade file. It should be noted that the data structure of the upgrade file can be defined according to actual needs.
其中,目标设备可以是功放设备,也可以是其他智能设备。The target device may be a power amplifier device or other smart devices.
在一示例实施例中,目标设备是功放设备。采用通过485总线对功放设备进行升级,使用的是可执行的bin文件,数字板无法判断出具体升级的是哪个设备的功放程序,所以需要对bin文件进行组合,把记录功放设备的配置信息存储到bin文件的指定地址中。In an example embodiment, the target device is a power amplifier device. The power amplifier device is upgraded through the 485 bus, and the executable bin file is used. The digital board cannot determine which device's power amplifier program is specifically upgraded. Therefore, it is necessary to combine the bin files and store the configuration information of the recorded power amplifier device. to the specified address of the bin file.
Bin文件是一种二进制文件,起始地址是0,数字板读取二进制文件时候就是从地址0依次读取直到末尾,每次数字版读取4K大小的字节数组,写到PA(功放板)的Flash去,直到读取到末尾。将另一端包含功放程序信息info.bin文件与pa.bin文件合并成一个out.bin的可执行升级文件。info.bin的起始地址是0,大小为4K字节,每帧数据按照如表1的协议进行解析:Bin file is a binary file, the starting address is 0. When the digital board reads the binary file, it reads from address 0 to the end in sequence. Each time the digital board reads a 4K byte array and writes it to the PA (power amplifier board) ) to the Flash until the end is read. Combine the info.bin file and the pa.bin file containing the power amplifier program information at the other end into an executable upgrade file of out.bin. The starting address of info.bin is 0, the size is 4K bytes, and each frame of data is parsed according to the protocol in Table 1:
表1Table 1
以连续的两个字节7E作为帧的起始头,依次填写设备类型,设备功率,功能码(id),数据倍率,数据长度还有数据和校验码。其中,设备类型,设备功率,功能码(id)是目标设备的配置信息。数据倍率,数据长度还有数据和校验码是升级程序。Take two consecutive bytes 7E as the starting header of the frame, fill in the device type, device power, function code (id), data magnification, data length and data and check code in turn. The device type, device power, and function code (id) are configuration information of the target device. Data magnification, data length and data and checksum are upgrade procedures.
S204:解析所述升级文件,获取升级程序以及目标设备的配置信息。S204: Parse the upgrade file to obtain the upgrade program and configuration information of the target device.
根据升级文件的数据结构进行解析,得到升级程序以及目标设备的配置信息。Analysis is performed according to the data structure of the upgrade file to obtain the upgrade program and the configuration information of the target device.
S206:在所述升级文件中的目标设备的配置信息与待升级设备的配置信息相匹配的情况下,利用升级程序对所述待升级设备进行程序升级。S206: In the case that the configuration information of the target device in the upgrade file matches the configuration information of the device to be upgraded, use an upgrade program to perform program upgrade on the device to be upgraded.
在所述升级文件中的目标设备的配置信息与待升级设备的配置信息相匹配的情况下,利用升级程序对所述待升级设备进行程序升级,避免了在程序升级时升级程序与升级设备的不对应,防止由于升级设备的不匹配造成异常损毁,也防止误升级升级包造成的设备异常损毁。Under the condition that the configuration information of the target device in the upgrade file matches the configuration information of the device to be upgraded, the upgrade program is used to upgrade the program of the device to be upgraded, so as to avoid the upgrade program and the upgrade device during the program upgrade. It does not correspond to prevent abnormal damage caused by the mismatch of upgraded equipment, and also prevents abnormal equipment damage caused by mistakenly upgrading the upgrade package.
在一实施例中,目标设备的配置信息包括设备类型,在所述升级文件中的目标设备的设备类型与待升级设备的设备类型相匹配的情况下,利用升级程序对所述待升级设备进行程序升级,避免了在程序升级时升级程序与升级设备的类型不对应。In one embodiment, the configuration information of the target device includes the device type, and in the case that the device type of the target device in the upgrade file matches the device type of the device to be upgraded, the upgrade program is used to perform the upgrade process on the device to be upgraded. The program upgrade avoids that the upgrade program does not correspond to the type of the upgrade equipment when the program is upgraded.
在一实施例中,目标设备的配置信息还包括设备功率,在所述升级文件中的目标设备的设备类型与待升级设备的设备类型相匹配,且所述升级文件中的目标设备的设备功率与待升级设备的设备功率相匹配的情况下,利用升级程序对所述待升级设备进行程序升级。在上述实施例的基础上,防止相同硬件下,由于程序问题导致的带升级设备功率过大超过门限,发生上电即烧毁的异常。In one embodiment, the configuration information of the target device further includes device power, the device type of the target device in the upgrade file matches the device type of the device to be upgraded, and the device power of the target device in the upgrade file Under the condition that the device power of the device to be upgraded is matched, an upgrade program is used to upgrade the program of the device to be upgraded. On the basis of the above embodiment, under the same hardware, the power of the upgraded device due to the program problem is too large to exceed the threshold, and the abnormality of burning after power-on is prevented.
在一实施例中,目标设备的配置信息还包括功能码,在所述升级文件中的目标设备的设备类型与待升级设备的设备类型相匹配,且所述升级文件中的目标设备的设备功率与待升级设备的设备功率相匹配,且所述升级文件中的目标设备的功能码与待升级设备的功能码相匹配的情况下,利用升级程序对所述待升级设备进行程序升级。在上述实施例的基础上,避免了功能的升级错误。In an embodiment, the configuration information of the target device further includes a function code, the device type of the target device in the upgrade file matches the device type of the device to be upgraded, and the device power of the target device in the upgrade file matches. When the device power of the device to be upgraded matches, and the function code of the target device in the upgrade file matches the function code of the device to be upgraded, the upgrade program is used to upgrade the device to be upgraded. On the basis of the above-mentioned embodiment, the upgrade error of the function is avoided.
需要说明的是,在所述升级文件中的目标设备的配置信息与待升级设备的配置信息不相匹配的情况下,不利用升级程序对所述待升级设备进行程序升级,并通过指示灯闪烁或者蜂鸣器滴叫等操作提示升级失败。It should be noted that, in the case that the configuration information of the target device in the upgrade file does not match the configuration information of the device to be upgraded, the upgrade program is not used to upgrade the device to be upgraded, and the indicator light flashes. Or the buzzer beeps and other operations prompt that the upgrade fails.
在一示例实施例中,整体升级过程如图3所示,数字板设备升级后先从地址0开始依次读取得到功放板信息,根据设备类型等参数判断是否需要进行功放板的升级。在执行485总线升级前,数字板(ARM)会判断设备类型与本机是否匹配,如果匹配说明升级程序和本机的硬件是匹配的,可以排除硬件不匹配造成的异常。之后进行设备功率的比较,防止相同硬件下,由于程序问题导致的功放设备功率过大超过门限,发生上电即烧毁的异常。最好还需要对功能码进行比较,避免了功能的升级错误。当各个条件都匹配时候,数字板设备才会进行升级操作,否则终止升级过程,向外界发送异常信号,异常信息可以为指示灯闪烁或者蜂鸣器滴叫等操作,这里不做详细说明。In an exemplary embodiment, the overall upgrade process is shown in Figure 3. After the digital board device is upgraded, the power amplifier board information is sequentially read from address 0, and whether the power amplifier board needs to be upgraded is determined according to parameters such as the device type. Before performing the 485 bus upgrade, the digital board (ARM) will judge whether the device type matches the local machine. If it matches, the upgrade program and the local hardware are matched, and the abnormality caused by the hardware mismatch can be excluded. Then compare the power of the equipment to prevent the power of the power amplifier equipment from being too large and exceeding the threshold due to program problems under the same hardware, and the abnormality of burning after power-on occurs. It is better to compare the function codes, so as to avoid function upgrade errors. When all conditions are matched, the digital board device will perform the upgrade operation, otherwise the upgrade process will be terminated, and an abnormal signal will be sent to the outside world. The abnormal information can be operations such as the flashing of the indicator light or the beeping of the buzzer.
应该理解的是,上述流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,上述流程图中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that the steps in the above flow chart are displayed in sequence according to the arrows, but these steps are not necessarily executed in the sequence indicated by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited to the order, and these steps may be performed in other orders. Moreover, at least a part of the steps in the above flow chart may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same time, but may be executed at different times. The execution sequence of these steps or stages It is also not necessarily performed sequentially, but may be performed alternately or alternately with other steps or at least a portion of a step or phase within the other steps.
在一实施例中,如图4所示,本发明提供了一种程序升级装置,用于对待升级设备程序升级包括:In one embodiment, as shown in FIG. 4 , the present invention provides a program upgrade apparatus, which is used for program upgrade of the equipment to be upgraded, including:
获取模块402,用于获取升级文件,所述升级文件中包含升级程序以及目标设备的配置信息;an obtaining
解析模块404,用于解析所述升级文件,获取升级程序以及目标设备的配置信息;A
升级模块406,用于在所述升级文件中的目标设备的配置信息与待升级设备的配置信息相匹配的情况下,利用升级程序对所述待升级设备进行程序升级。The
在一实施例中,所述目标设备的配置信息包括设备类型,在所述升级文件中的目标设备的设备类型与待升级设备的设备类型相匹配的情况下,利用升级程序对所述待升级设备进行程序升级。In an embodiment, the configuration information of the target device includes a device type, and in the case that the device type of the target device in the upgrade file matches the device type of the device to be upgraded, the upgrade program is used to update the device to be upgraded. Equipment for program upgrade.
在一实施例中,所述目标设备的配置信息还包括设备功率,在所述升级文件中的目标设备的设备类型与待升级设备的设备类型相匹配,且所述升级文件中的目标设备的设备功率与待升级设备的设备功率相匹配的情况下,利用升级程序对所述待升级设备进行程序升级。In an embodiment, the configuration information of the target device further includes device power, the device type of the target device in the upgrade file matches the device type of the device to be upgraded, and the target device in the upgrade file is Under the condition that the device power matches the device power of the device to be upgraded, the device to be upgraded is upgraded by using an upgrade program.
在一实施例中,所述目标设备的配置信息还包括设备功率,在所述升级文件中的目标设备的设备类型与待升级设备的设备类型相匹配,且所述升级文件中的目标设备的设备功率与待升级设备的设备功率相匹配,且所述升级文件中的目标设备的功能码与待升级设备的功能码相匹配的情况下,利用升级程序对所述待升级设备进行程序升级。In an embodiment, the configuration information of the target device further includes device power, the device type of the target device in the upgrade file matches the device type of the device to be upgraded, and the target device in the upgrade file is When the device power matches the device power of the device to be upgraded, and the function code of the target device in the upgrade file matches the function code of the device to be upgraded, the upgrade program is used to upgrade the device to be upgraded.
关于程序升级装置的具体限定可以参见上文中对于程序升级方法的限定,在此不再赘述。上述程序升级装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific limitation of the program updating apparatus, reference may be made to the limitation of the program updating method above, which will not be repeated here. Each module in the above-mentioned program upgrading apparatus may be implemented in whole or in part by software, hardware and combinations thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
在一实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现程序升级方法实施例中的步骤:In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps in the program upgrading method embodiment are implemented:
获取升级文件,所述升级文件中包含升级程序以及目标设备的配置信息;Obtain an upgrade file, the upgrade file contains the upgrade program and the configuration information of the target device;
解析所述升级文件,获取升级程序以及目标设备的配置信息;Parse the upgrade file to obtain the upgrade program and configuration information of the target device;
在所述升级文件中的目标设备的配置信息与待升级设备的配置信息相匹配的情况下,利用升级程序对所述待升级设备进行程序升级。Under the condition that the configuration information of the target device in the upgrade file matches the configuration information of the device to be upgraded, an upgrade program is used to upgrade the device to be upgraded.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和易失性存储器中的至少一种。非易失性存储器可包括只读存储器(Read-Only Memory,ROM)、磁带、软盘、闪存或光存储器等。易失性存储器可包括随机存取存储器(Random Access Memory,RAM)或外部高速缓冲存储器。作为说明而非局限,RAM可以是多种形式,比如静态随机存取存储器(Static Random Access Memory,SRAM)或动态随机存取存储器(Dynamic Random Access Memory,DRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage In the medium, when the computer program is executed, it may include the processes of the above-mentioned method embodiments. Wherein, any reference to memory, storage, database or other media used in the various embodiments provided in this application may include at least one of non-volatile and volatile memory. The non-volatile memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, and the like. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, the RAM may be in various forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM).
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. In order to make the description simple, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features It is considered to be the range described in this specification.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only represent several embodiments of the present application, and the descriptions thereof are specific and detailed, but should not be construed as a limitation on the scope of the invention patent. It should be pointed out that for those skilled in the art, without departing from the concept of the present application, several modifications and improvements can be made, which all belong to the protection scope of the present application. Therefore, the scope of protection of the patent of the present application shall be subject to the appended claims.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111361504.2A CN114296751A (en) | 2021-11-17 | 2021-11-17 | Program upgrade method, device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111361504.2A CN114296751A (en) | 2021-11-17 | 2021-11-17 | Program upgrade method, device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114296751A true CN114296751A (en) | 2022-04-08 |
Family
ID=80965576
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111361504.2A Pending CN114296751A (en) | 2021-11-17 | 2021-11-17 | Program upgrade method, device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114296751A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115987976A (en) * | 2023-03-20 | 2023-04-18 | 北京集度科技有限公司 | Method and equipment for upgrading node |
CN116880878A (en) * | 2023-07-18 | 2023-10-13 | 上海正泰智能科技有限公司 | Upgrading method, device, equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106502718A (en) * | 2016-09-22 | 2017-03-15 | 珠海格力电器股份有限公司 | Program upgrading method and device and controller |
CN107943499A (en) * | 2017-11-27 | 2018-04-20 | 深圳创维数字技术有限公司 | A kind of method for upgrading system, device, terminal and storage medium |
CN113407205A (en) * | 2021-05-25 | 2021-09-17 | 海南视联通信技术有限公司 | Equipment upgrading method, device, equipment and readable storage medium |
-
2021
- 2021-11-17 CN CN202111361504.2A patent/CN114296751A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106502718A (en) * | 2016-09-22 | 2017-03-15 | 珠海格力电器股份有限公司 | Program upgrading method and device and controller |
CN107943499A (en) * | 2017-11-27 | 2018-04-20 | 深圳创维数字技术有限公司 | A kind of method for upgrading system, device, terminal and storage medium |
CN113407205A (en) * | 2021-05-25 | 2021-09-17 | 海南视联通信技术有限公司 | Equipment upgrading method, device, equipment and readable storage medium |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115987976A (en) * | 2023-03-20 | 2023-04-18 | 北京集度科技有限公司 | Method and equipment for upgrading node |
CN115987976B (en) * | 2023-03-20 | 2023-06-13 | 北京集度科技有限公司 | Method and equipment for upgrading node |
CN116880878A (en) * | 2023-07-18 | 2023-10-13 | 上海正泰智能科技有限公司 | Upgrading method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106250192B (en) | Software upgrading method and system of upper computer | |
CN108459962B (en) | Code normalization detection method and device, terminal equipment and storage medium | |
CN114296751A (en) | Program upgrade method, device and storage medium | |
US20070294685A1 (en) | Program upgrade system and method for ota-capable portable device | |
WO2017036228A1 (en) | Method and apparatus for implementing system upgrading | |
CN112445490B (en) | File sequence processing method, device, terminal equipment and storage medium | |
WO2016202000A1 (en) | Differential rollback upgrading method and apparatus | |
CN110543427B (en) | Test case storage method and device, electronic equipment and storage medium | |
CN106874173B (en) | Page template testing method and device | |
CN113384896A (en) | Unity-based resource packaging method, device, equipment and medium | |
DE102007061414A1 (en) | Electronic device, firmware download system and firmware update process | |
CN112052032A (en) | Brush writing method and device for electronic control unit | |
KR20080083512A (en) | FOTA system | |
CN115421745A (en) | Equipment remote upgrading method, device, terminal and storage medium | |
CN110704076A (en) | Data processing method and device, vehicle-mounted controller and computer-readable storage medium | |
CN103685471B (en) | Method and system for updating software client sides in monopoly mode | |
CN114302427A (en) | Configuration parameter updating method and device and related equipment | |
US11494262B2 (en) | Electronic device having one-time-programmable (OTP) memory and method for writing and reading OTP memory | |
CN107783778B (en) | Increment upgrading method based on characteristic value table look-up method | |
TWI653578B (en) | Image file making method and device thereof | |
CN115695570A (en) | Conversion method, device, equipment and storage medium of medical image scanning protocol | |
CN112328287B (en) | Method, device, equipment and storage medium for updating embedded equipment system | |
CN112433743B (en) | File updating method and device, electronic equipment and storage medium | |
US20100064196A1 (en) | Data processing systems and methods for loading data from non volatile memory to a memory | |
CN108415814B (en) | Method for automatically recording field change, application server and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |