[go: up one dir, main page]

CN112015458B - Device upgrade method, terminal device, electronic device and storage medium - Google Patents

Device upgrade method, terminal device, electronic device and storage medium Download PDF

Info

Publication number
CN112015458B
CN112015458B CN202010773468.XA CN202010773468A CN112015458B CN 112015458 B CN112015458 B CN 112015458B CN 202010773468 A CN202010773468 A CN 202010773468A CN 112015458 B CN112015458 B CN 112015458B
Authority
CN
China
Prior art keywords
upgraded
upgrade
functional unit
module
unit
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.)
Active
Application number
CN202010773468.XA
Other languages
Chinese (zh)
Other versions
CN112015458A (en
Inventor
刘伟
万学靖
赵星
沈瑞
王雯芸
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Abup Intelligent Technology Co ltd
Original Assignee
Shanghai Abup Intelligent Technology Co ltd
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 Shanghai Abup Intelligent Technology Co ltd filed Critical Shanghai Abup Intelligent Technology Co ltd
Priority to CN202010773468.XA priority Critical patent/CN112015458B/en
Publication of CN112015458A publication Critical patent/CN112015458A/en
Application granted granted Critical
Publication of CN112015458B publication Critical patent/CN112015458B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention relates to the field of Internet of things and discloses a device upgrading method, terminal equipment, electronic equipment and a storage medium. In the invention, the communication unit is used for acquiring an upgrade package of the functional unit to be upgraded; storing the upgrade package into a memory space of the communication unit; and upgrading the functional unit to be upgraded through the communication unit according to the upgrade package. The upgrade of each unit is realized in the communication units with rich resources, the resources of other units are saved, and the upgrade speed of the equipment is improved.

Description

设备升级方法、终端设备、电子设备和存储介质Device upgrade method, terminal device, electronic device and storage medium

技术领域Technical Field

本发明实施例涉及物联网领域,特别涉及设备升级方法、终端设备、电子设备和存储介质。The embodiments of the present invention relate to the field of Internet of Things, and in particular to a device upgrading method, a terminal device, an electronic device and a storage medium.

背景技术Background Art

物联网即“万物相连的互联网”,是互联网基础上的延伸和扩展的网络,将各种信息传感设备与互联网结合起来而形成的一个巨大网络。这些由信息传感器组成的物联网设备通常具有内存空间较小,对功耗限制较多等特点。在物联网设备使用过程中,为了功能的更新必须要进行升级。而现有物联网设备升级方式一般为各组成单元分开完成升级,使用不同的升级逻辑,各自下载升级包至各自的组成单元。The Internet of Things, or "Internet of Everything", is an extension and expansion of the Internet. It is a huge network formed by combining various information sensor devices with the Internet. These IoT devices composed of information sensors usually have small memory space and more power consumption restrictions. During the use of IoT devices, they must be upgraded in order to update their functions. The existing IoT device upgrade method is generally to upgrade each component unit separately, using different upgrade logics, and downloading upgrade packages to each component unit.

发明人发现,现有技术中至少存在如下问题:一个设备每个单元升级都使用不同的升级方法,并各自下载升级包至相应的组成单元,占用物联网设备的组成单元中很多的资源和空间。The inventors have found that there are at least the following problems in the prior art: each unit of a device uses a different upgrade method to upgrade, and each unit downloads the upgrade package to the corresponding component unit, which occupies a lot of resources and space in the component units of the IoT device.

发明内容Summary of the invention

本发明实施方式的目的在于提供一种设备升级方法、终端设备、电子设备和存储介质,在资源较丰富的通信单元中实现各个单元的升级,有效的节省其他单元的资源,提高了设备的升级速度。The purpose of the embodiments of the present invention is to provide a device upgrade method, terminal device, electronic device and storage medium, which can realize the upgrade of each unit in a communication unit with richer resources, effectively save the resources of other units, and improve the upgrade speed of the device.

为解决上述技术问题,本发明的实施方式提供了一种设备升级方法,包括以下步骤:To solve the above technical problems, an embodiment of the present invention provides a device upgrading method, comprising the following steps:

通过所述通信单元获取待升级的所述功能单元的升级包;Acquire the upgrade package of the functional unit to be upgraded through the communication unit;

将所述升级包存储至所述通信单元的内存空间中;Storing the upgrade package in the memory space of the communication unit;

根据所述升级包通过所述通信单元对所述待升级的所述功能单元进行升级。The functional unit to be upgraded is upgraded through the communication unit according to the upgrade package.

本发明的实施方式还提供了一种终端设备,包括:An embodiment of the present invention further provides a terminal device, including:

接收模块,用于通过所述通信单元获取待升级的所述功能单元的升级包;A receiving module, used for obtaining an upgrade package of the functional unit to be upgraded through the communication unit;

存储模块,用于将所述升级包存储至所述通信单元的内存空间中;A storage module, used for storing the upgrade package in the memory space of the communication unit;

升级模块,用于根据所述升级包通过所述通信单元对所述待升级的所述功能单元进行升级。An upgrading module is used to upgrade the functional unit to be upgraded through the communication unit according to the upgrading package.

本发明的实施方式还提供了一种电子设备,包括:An embodiment of the present invention further provides an electronic device, including:

至少一个处理器;以及,at least one processor; and,

与所述至少一个处理器通信连接的存储器;其中,a memory communicatively connected to the at least one processor; wherein,

所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行任一所述的设备升级方式。The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform any of the device upgrade methods.

本发明的实施方式还提供了一种计算机可读存储介质,存储有计算机程序,包括:所述计算机程序被处理器执行时实现任一项所述的设备升级的方法。An embodiment of the present invention further provides a computer-readable storage medium storing a computer program, including: when the computer program is executed by a processor, implementing any one of the device upgrade methods.

本发明实施方式相对于现有技术而言,将不同功能单元的升级包存放至通信单元中,避免了占用其他功能单元的存储空间;将待升级的功能单元的数据转变为差分块数据,实现最小差异化升级,减少了升级的工作量,加快了设备升级的速度;由于本发明可以适用于所有功能单元的升级,统一了各功能单元的升级逻辑,将升级过程放在了资源更为丰富的通信单元中,节约了其他单元的资源与空间,使得升级效率更高,速度更快。Compared with the prior art, the embodiments of the present invention store the upgrade packages of different functional units in the communication unit, thereby avoiding occupying the storage space of other functional units; converting the data of the functional units to be upgraded into differential block data, realizing minimum differential upgrade, reducing the workload of upgrade, and accelerating the speed of equipment upgrade; since the present invention can be applied to the upgrade of all functional units, the upgrade logic of each functional unit is unified, and the upgrade process is placed in the communication unit with richer resources, saving resources and space of other units, making the upgrade more efficient and faster.

另外,本发明实施方式提供的设备升级方法,所述获取待升级的所述功能单元的升级包,具体包括:通过所述通信单元获取所述升级包;对所述获取过程进行标记生成标记点;当发生所述获取过程中断的情况,待所述获取恢复后从所述标记点继续所述获取的操作。通过设置标记点使得设备在发生传输中断的情况时无需担心重新传输会浪费过多的时间,待传输再次开始后,可从标记点继续进行传输,节省了传输流程,减少了传输时间。In addition, in the device upgrade method provided by the embodiment of the present invention, the acquisition of the upgrade package of the functional unit to be upgraded specifically includes: acquiring the upgrade package through the communication unit; marking the acquisition process to generate a marking point; when the acquisition process is interrupted, continuing the acquisition operation from the marking point after the acquisition is resumed. By setting the marking point, the device does not need to worry about wasting too much time on retransmission when transmission is interrupted. After the transmission starts again, the transmission can be continued from the marking point, which saves the transmission process and reduces the transmission time.

另外,本发明实施方式提供的设备升级方法,所述通过所述通信单元获取待升级的所述功能单元的升级包包括:发送所述待升级的所述功能单元的注册信息查询请求;接收返回的所述注册信息;发送所述待升级的所述功能单元的升级版本查询请求;接收所述升级版本的信息;发送所述待升级的所述功能单元的所述升级包的获取请求;接收所述升级包。通过获取待升级功能单元的信息与升级后功能单元的信息,可以在后续的步骤中根据获得到的信息生成包含对照信息的符号表,通过符号表最终实现差异部分升级,提高升级的速度。In addition, in the device upgrade method provided by the embodiment of the present invention, the acquisition of the upgrade package of the functional unit to be upgraded through the communication unit includes: sending a registration information query request of the functional unit to be upgraded; receiving the returned registration information; sending an upgrade version query request of the functional unit to be upgraded; receiving the information of the upgraded version; sending an acquisition request of the upgrade package of the functional unit to be upgraded; receiving the upgrade package. By acquiring the information of the functional unit to be upgraded and the information of the upgraded functional unit, a symbol table containing comparison information can be generated in subsequent steps based on the acquired information, and the difference part can be finally upgraded through the symbol table, thereby improving the upgrade speed.

另外,本发明实施方式提供的设备升级方法,所述根据所述升级包通过所述通信单元对所述待升级的所述功能单元进行升级包括:通过所述通信单元获取差分块数据,其中,所述差分块数据为所述待升级的所述功能单元的数据中,与升级后的所述功能单元数据的区别部分的数据;由所述通信单元根据所述差分块数据与所述升级包,对所述待升级的所述功能单元进行升级。根据生成的差分块数据与升级包进行功能单元的升级,是只针对差异部分进行升级的升级方法,减少了通信单元升级功能单元的时间。In addition, in the device upgrade method provided by the embodiment of the present invention, the upgrading of the functional unit to be upgraded through the communication unit according to the upgrade package includes: obtaining differential block data through the communication unit, wherein the differential block data is data of the functional unit to be upgraded, which is different from the data of the upgraded functional unit; and the communication unit upgrades the functional unit to be upgraded according to the differential block data and the upgrade package. The upgrading of the functional unit according to the generated differential block data and the upgrade package is an upgrading method that only upgrades the difference part, which reduces the time for the communication unit to upgrade the functional unit.

另外,本发明实施方式提供的设备升级方法,所述通过所述通信单元获取差分块数据,,具体包括:通过所述通信单元获取所述升级版本信息;通过所述通信单元生成符号表,其中,所述符号表包含所述升级版本信息与所述待升级的所述功能单元的版本信息的对照信息;根据所述符号表获取所述差分块数据;通过获取到的版本信息生成的符号表来获得差分块数据,使得功能单元可以实现最小差异化升级,提高通信单元对功能单元升级的效率。In addition, the device upgrade method provided by the embodiment of the present invention, wherein the differential block data is obtained through the communication unit, specifically includes: obtaining the upgrade version information through the communication unit; generating a symbol table through the communication unit, wherein the symbol table includes comparison information between the upgrade version information and the version information of the functional unit to be upgraded; obtaining the differential block data according to the symbol table; obtaining the differential block data through the symbol table generated by the obtained version information, so that the functional unit can achieve minimum differential upgrade, thereby improving the efficiency of the communication unit in upgrading the functional unit.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定,附图中具有相同参考数字标号的元件表示为类似的元件,除非有特别申明,附图中的图不构成比例限制。One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

图1是根据第一实施方式提供的设备升级方法的流程图一;FIG1 is a flowchart of a device upgrading method according to a first embodiment;

图2是根据第一实施方式提供的设备升级方法的流程图二;FIG2 is a second flowchart of the device upgrading method provided according to the first embodiment;

图3是根据第一实施方式提供的设备升级方法的流程图三;FIG3 is a flowchart of a third device upgrade method provided according to the first embodiment;

图4是根据第三实施方式提供的外设终端的结构示意图;4 is a schematic structural diagram of an external device terminal provided according to a third embodiment;

图5是根据第四实施方式提供的电子设备的结构示意图。FIG. 5 is a schematic structural diagram of an electronic device provided according to a fourth embodiment.

具体实施方式DETAILED DESCRIPTION

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合附图对本发明的各实施方式进行详细的阐述。然而,本领域的普通技术人员可以理解,在本发明各实施方式中,为了使读者更好地理解本申请而提出了许多技术细节。但是,即使没有这些技术细节和基于以下各实施方式的种种变化和修改,也可以实现本申请所要求保护的技术方案。In order to make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the following will be described in detail with reference to the accompanying drawings. However, it will be appreciated by those skilled in the art that in the various embodiments of the present invention, many technical details are provided in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can be implemented.

以下各个实施例的划分是为了描述方便,不应对本发明的具体实现方式构成任何限定,各个实施例在不矛盾的前提下可以相互结合相互引用。The following embodiments are divided for the convenience of description and shall not constitute any limitation on the specific implementation of the present invention. The embodiments may be combined with each other and referenced to each other without contradiction.

本发明的第一实施方式涉及一种设备升级方法,应用于电子设备中,电子设备包括:两个及以上功能单元,功能单元至少包括通信单元。具体流程如图1所示,包括:The first embodiment of the present invention relates to a device upgrade method, which is applied to an electronic device, wherein the electronic device includes: two or more functional units, and the functional units include at least a communication unit. The specific process is shown in FIG1, and includes:

步骤101,通过通信单元获取待升级的功能单元的升级包。Step 101: Obtain an upgrade package of a functional unit to be upgraded through a communication unit.

在本实施方式中,通信单元中至少包括升级能力模块(Upgrade Agent,UA)、升级控制模块(Upgrade Control,UC)和引导启动模块(BootLoader)。In this embodiment, the communication unit at least includes an upgrade capability module (Upgrade Agent, UA), an upgrade control module (Upgrade Control, UC) and a boot module (BootLoader).

其中,UA模块的功能为利用升级包、符号表对差分块数据进行升级并与ELB模块进行通信连接;通信单元的BootLoader模块用于引导启动UA升级功能;UC模块用于与网络平台进行通信连接。其中网络平台可以为物联网平台,此处仅为举例说明,不对网络平台进行限定。The function of the UA module is to use the upgrade package and symbol table to upgrade the differential block data and communicate with the ELB module; the BootLoader module of the communication unit is used to boot the UA upgrade function; the UC module is used to communicate with the network platform. The network platform can be an Internet of Things platform, which is only used as an example and is not limited to the network platform.

待升级的功能单元中至少包括ELB模块。其中,待升级的功能单元的ELB模块具有引导启动程序功能和与通信单元进行通信连接的功能。The function unit to be upgraded at least includes an ELB module, wherein the ELB module of the function unit to be upgraded has a function of booting a startup program and a function of establishing a communication connection with the communication unit.

上述通信连接方式可以是有线连接,也可以是无线连接,其中,无线连接可以为wifi、蓝牙、红外等等,此处不做一一赘述。The above communication connection method can be a wired connection or a wireless connection, wherein the wireless connection can be WiFi, Bluetooth, infrared, etc., which will not be described one by one here.

步骤101中获取升级包的过程为通信单元中的UC模块与网络平台进行交互,传输请求指令,接收升级包。具体流程如图2所示,包括:The process of obtaining the upgrade package in step 101 is that the UC module in the communication unit interacts with the network platform, transmits the request instruction, and receives the upgrade package. The specific process is shown in Figure 2, including:

步骤201,发送待升级的功能单元的注册信息查询请求。Step 201: Send a registration information query request for the functional unit to be upgraded.

步骤202,接收返回的注册信息。Step 202, receiving the returned registration information.

步骤203,发送待升级的功能单元的升级版本查询请求。Step 203: Send an upgrade version query request for the functional unit to be upgraded.

步骤204,接收升级版本的信息。Step 204, receiving information of the upgraded version.

步骤205,发送待升级的功能单元的升级包的获取请求。Step 205: Send a request for obtaining the upgrade package of the functional unit to be upgraded.

步骤206,接收升级包。Step 206: Receive the upgrade package.

通过上述步骤201-206实现从网络平台下载升级包。The upgrade package is downloaded from the network platform through the above steps 201-206.

在本实施方式中,获取的过程可能发生中断,中断原因可以为网络信号差,网络信号中断,断电等,此处只为举例,在实际过程中中断原因还有许多,此处不做一一赘述。In this embodiment, the acquisition process may be interrupted. The reasons for the interruption may be poor network signal, network signal interruption, power outage, etc. This is just an example. In the actual process, there are many other reasons for the interruption, which will not be described one by one here.

为了防止中断原因消除后重复进行传输,采用断点标记的方式。In order to prevent repeated transmission after the interruption cause is eliminated, the breakpoint marking method is adopted.

具体地,当发生获取中断的情况,对获取过程进行标记生成标记点,待恢复后从标记点继续进行获取的操作。其中,对获取过程进行标记生成标记点的方式有两种:Specifically, when an acquisition interruption occurs, the acquisition process is marked to generate a mark point, and the acquisition operation is continued from the mark point after recovery. There are two ways to mark the acquisition process to generate a mark point:

一种是,跟踪整个获取过程,无论是否有中断的情况发生,都对当前获取接收进度进行标记,生成标记点。One is to track the entire acquisition process, mark the current acquisition reception progress and generate a marking point regardless of whether there is an interruption.

另一种是,在发生中断事由时,弹出发生错误的指令,根据该指令对当前获取接收进度进行标记,生成标记点。The other is that when an interruption occurs, an instruction indicating that an error has occurred is popped up, and the current acquisition and receiving progress is marked according to the instruction to generate a marking point.

当然,以上两种方法仅为具体的举例说明,在实际的使用过程中,还可以通过其他方式对获取过程进行标记生成标记点,此处不做一一赘述。Of course, the above two methods are only specific examples. In actual use, the acquisition process can also be marked to generate marking points in other ways, which will not be described here one by one.

需要说明的是,所进行断点标记的获取过程可以为接收注册信息过程、接收升级版本信息过程、接收升级包过程,以及接下来的步骤提到的获取待升级的功能数据的过程等,此处不做一一赘述。It should be noted that the process of obtaining the breakpoint mark can be the process of receiving registration information, the process of receiving upgrade version information, the process of receiving upgrade package, and the process of obtaining the function data to be upgraded mentioned in the following steps, etc., which will not be described one by one here.

步骤102,将升级包存储至通信单元的内存空间中。Step 102: store the upgrade package in the memory space of the communication unit.

步骤103,根据升级包通过通信单元对待升级的功能单元进行升级。Step 103: upgrading the functional unit to be upgraded through the communication unit according to the upgrade package.

本实施方式中,步骤103的升级方式具体为:In this implementation, the upgrade method of step 103 is specifically as follows:

升级包下载完成后,UC模块向网络平台上报下载结果。After the upgrade package is downloaded, the UC module reports the download result to the network platform.

UC模块向待升级功能单元发送升级请求。The UC module sends an upgrade request to the functional unit to be upgraded.

UC模块接收返回的升级指令。The UC module receives the returned upgrade instruction.

UC模块转发升级指令至Bootloader模块。The UC module forwards the upgrade command to the Bootloader module.

通信单元通过Bootloader模块的引导功能引导执行UA模块升级功能。The communication unit guides the execution of the UA module upgrade function through the boot function of the Bootloader module.

同时,待升级功能单元通过ELB模块的引导功能进入升级程序,其中,升级程序包括接收刷写、重启升级等。At the same time, the functional unit to be upgraded enters the upgrade program through the boot function of the ELB module, wherein the upgrade program includes receiving flashing, restarting and upgrading, etc.

具体地,执行UA模块的升级功能的具体流程如图3所示:Specifically, the specific process of executing the upgrade function of the UA module is shown in Figure 3:

步骤301,获取待升级功能单元数据。Step 301: Acquire data of the functional unit to be upgraded.

步骤302,将获取到的升级功能单元存储至通信单元内存空间中。Step 302: Store the acquired upgraded functional unit into the memory space of the communication unit.

步骤303,获取符号表。Step 303, obtain a symbol table.

具体地,根据从网络平台获取的现有待升级功能单元的注册信息和升级后的版本信息生成符号表。其中,符号表为注册信息与版本信息的对照表。Specifically, a symbol table is generated according to the registration information of the existing function unit to be upgraded and the upgraded version information obtained from the network platform, wherein the symbol table is a comparison table of the registration information and the version information.

步骤304,根据符号表获取差分块数据。Step 304, obtaining differential block data according to the symbol table.

具体地,UA模块结合符号表内对照信息对待升级功能单元中的数据进行拆分,提取差分块数据。其中,差分块数据为待升级功能单元的数据中可进行升级的部分,差分块的数量可以为一个或多个。Specifically, the UA module splits the data in the function unit to be upgraded in combination with the comparison information in the symbol table to extract differential block data, wherein the differential block data is the upgradeable part of the data of the function unit to be upgraded, and the number of differential blocks can be one or more.

步骤305,根据升级包对差分块数据进行升级。Step 305: Upgrade the differential block data according to the upgrade package.

需要说明的是,升级包内存储的升级数据为升级版本的差分数据,即针对待升级功能单元数据的差分块进行升级的数据。It should be noted that the upgrade data stored in the upgrade package is differential data of the upgraded version, that is, data for upgrading the differential blocks of the functional unit data to be upgraded.

在对差分块数据升级完成后,向功能单元发送刷写请求。After the differential block data is upgraded, a flash request is sent to the functional unit.

UA模块接收到功能单元返回的刷写指令,对功能单元进行刷写。The UA module receives the flashing instruction returned by the functional unit and flashes the functional unit.

刷写完成后执行下一个差分块数据的升级,直至所有差分块升级完成升级。After the flash is completed, the next differential block data is upgraded until all differential blocks are upgraded.

通信单元UA模块向升级的功能单元的ELB模块发送升级完成通知。The communication unit UA module sends an upgrade completion notification to the ELB module of the upgraded functional unit.

升级的功能单元的ELB模块接收到升级完成通知后,执行ELB模块的引导功能,进行重启,完成功能单元的升级。After receiving the upgrade completion notification, the ELB module of the upgraded functional unit executes the boot function of the ELB module, restarts, and completes the upgrade of the functional unit.

升级的功能单元的ELB模块将功能单元升级结果发送至UC模块。The ELB module of the upgraded functional unit sends the functional unit upgrade result to the UC module.

UC模块转发升级结果至网络平台。The UC module forwards the upgrade results to the network platform.

本发明的第二实施方式涉及一种设备升级方法。第二实施方式与第一实施方式大致相同,The second embodiment of the present invention relates to a device upgrade method. The second embodiment is substantially the same as the first embodiment.

其区别之处在于,第一实施例中通信单元与待升级功能单元为两个单元,即通过通信单元对其他功能单元进行升级。而第二实施例为对通信单元本单元进行升级。The difference is that in the first embodiment, the communication unit and the function unit to be upgraded are two units, that is, the other function units are upgraded through the communication unit, while in the second embodiment, the communication unit itself is upgraded.

本实施方式中,由于升级的功能单元为通信单元,在步骤103的具体实施方式中无需再发送升级指令请求,接收并存储升级包后直接通过Bootloader模块的引导功能引导执行UA模块升级功能,其中UA模块的升级过程为图3的步骤301-304。In this implementation, since the upgraded functional unit is a communication unit, there is no need to send an upgrade instruction request in the specific implementation of step 103. After receiving and storing the upgrade package, the UA module upgrade function is directly guided and executed through the boot function of the Bootloader module, where the upgrade process of the UA module is steps 301-304 of Figure 3.

需要说明的是,步骤301和步骤303的获取对象为通信单元,区别于实施例一的通信单元以外的功能单元的ELB模块。It should be noted that the acquisition object in step 301 and step 303 is the communication unit, which is different from the ELB module of the functional unit other than the communication unit in the first embodiment.

上面各种方法的步骤划分,只是为了描述清楚,实现时可以合并为一个步骤或者对某些步骤进行拆分,分解为多个步骤,只要包括相同的逻辑关系,都在本专利的保护范围内;对算法中或者流程中添加无关紧要的修改或者引入无关紧要的设计,但不改变其算法和流程的核心设计都在该专利的保护范围内。The step division of the above methods is only for the purpose of clear description. When implemented, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they include the same logical relationship, they are all within the scope of protection of this patent; adding insignificant modifications to the algorithm or process or introducing insignificant designs without changing the core design of the algorithm and process are all within the scope of protection of this patent.

本发明第三实施方式涉及一种外设终端,如图4所示,包括:A third embodiment of the present invention relates to an external device terminal, as shown in FIG4 , comprising:

接收模块401,用于通过通信单元获取待升级的功能单元的升级包。The receiving module 401 is used to obtain the upgrade package of the functional unit to be upgraded through the communication unit.

存储模块402,用于将升级包存储至通信单元的内存空间中。The storage module 402 is used to store the upgrade package in the memory space of the communication unit.

升级模块403,用于根据所述升级包通过所述通信单元对所述待升级的所述功能单元进行升级。The upgrading module 403 is used to upgrade the functional unit to be upgraded through the communication unit according to the upgrading package.

不难发现,本实施方式为与第一实施方式相对应的系统实施例,本实施方式可与第一实施方式互相配合实施。第一实施方式中提到的相关技术细节在本实施方式中依然有效,为了减少重复,这里不再赘述。相应地,本实施方式中提到的相关技术细节也可应用在第一实施方式中。It is not difficult to find that this embodiment is a system embodiment corresponding to the first embodiment, and this embodiment can be implemented in conjunction with the first embodiment. The relevant technical details mentioned in the first embodiment are still valid in this embodiment, and in order to reduce repetition, they are not repeated here. Accordingly, the relevant technical details mentioned in this embodiment can also be applied in the first embodiment.

值得一提的是,本实施方式中所涉及到的各模块均为逻辑模块,在实际应用中,一个逻辑单元可以是一个物理单元,也可以是一个物理单元的一部分,还可以以多个物理单元的组合实现。此外,为了突出本发明的创新部分,本实施方式中并没有将与解决本发明所提出的技术问题关系不太密切的单元引入,但这并不表明本实施方式中不存在其它的单元。It is worth mentioning that all modules involved in this embodiment are logic modules. In practical applications, a logic unit can be a physical unit, a part of a physical unit, or a combination of multiple physical units. In addition, in order to highlight the innovative part of the present invention, this embodiment does not introduce units that are not closely related to solving the technical problem proposed by the present invention, but this does not mean that there are no other units in this embodiment.

本发明第四实施方式涉及一种电子设备,如图5所示,包括:A fourth embodiment of the present invention relates to an electronic device, as shown in FIG5 , comprising:

至少一个处理器501;以及,at least one processor 501; and,

与至少一个处理器501通信连接的存储器502;其中,A memory 502 is communicatively connected to at least one processor 501; wherein,

存储器502存储有可被至少一个处理器501执行的指令,指令被至少一个处理器501执行,以使至少一个处理器501能够执行本发明实施例第一至二的设备升级方式。The memory 502 stores instructions that can be executed by at least one processor 501. The instructions are executed by at least one processor 501 so that the at least one processor 501 can execute the first to second device upgrade methods of embodiments of the present invention.

其中,存储器和处理器采用总线方式连接,总线可以包括任意数量的互联的总线和桥,总线将一个或多个处理器和存储器的各种电路链接在一起。总线还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路链接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口在总线和收发机之间提供接口。收发机可以是一个元件,也可以是多个元件,比如多个接收器和发送器,提供用于在传输介质上与各种其他装置通信的单元。经处理器处理的数据通过天线在无线介质上进行传输,进一步,天线还接收数据并将数据传送给处理器。Among them, the memory and the processor are connected in a bus manner, and the bus may include any number of interconnected buses and bridges, and the bus links various circuits of one or more processors and memories together. The bus can also link various other circuits such as peripherals, voltage regulators, and power management circuits together, which are all well known in the art, so they are not further described in this article. The bus interface provides an interface between the bus and the transceiver. The transceiver can be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. The data processed by the processor is transmitted on a wireless medium through an antenna, and further, the antenna also receives data and transmits the data to the processor.

处理器负责管理总线和通常的处理,还可以提供各种功能,包括定时,外围接口,电压调节、电源管理以及其他控制功能。而存储器可以被用于存储处理器在执行操作时所使用的数据。The processor is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management, and other control functions. Memory can be used to store data used by the processor when performing operations.

本领域技术人员可以理解实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-OnlyMemory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。Those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

本领域的普通技术人员可以理解,上述各实施方式是实现本发明的具体实施例,而在实际应用中,可以在形式上和细节上对其作各种改变,而不偏离本发明的精神和范围。Those skilled in the art will appreciate that the above-mentioned embodiments are specific examples for implementing the present invention, and in actual applications, various changes may be made thereto in form and detail without departing from the spirit and scope of the present invention.

Claims (8)

1. A method for upgrading a device, the method being applied to an electronic device, the electronic device comprising: at least two functional units, the functional units comprising at least a communication unit, the method comprising:
Acquiring an upgrade package of the functional unit to be upgraded through the communication unit;
storing the upgrade package into a memory space of the communication unit;
obtaining a symbol table through the functional unit to be upgraded, wherein the symbol table comprises comparison information of upgrading version information and version information of the functional unit to be upgraded;
Obtaining differential block data according to the symbol table, wherein the differential block data is the data of a distinguishing part between the data of the functional unit to be upgraded and the data of the functional unit after the upgrading;
the communication unit upgrades the function unit to be upgraded according to the difference block data and the upgrade package;
The communication unit and the functional unit to be upgraded are two units, or the functional unit to be upgraded is the communication unit, the communication unit at least comprises an upgrade capability module, an upgrade control module and a guide starting module, the upgrade capability module is used for upgrading the differential block data by using the upgrade package and the symbol table and is in communication connection with an ELB module, the upgrade control module is used for being in communication connection with a network platform, the guide starting module is used for guiding and starting the upgrade capability module, the functional unit to be upgraded at least comprises the ELB module, and the ELB module has a guide starting program function and a function of being in communication connection with the communication unit.
2. The device upgrade method according to claim 1, wherein the obtaining, by the communication unit, an upgrade package of the functional unit to be upgraded specifically includes:
acquiring the upgrade package through the communication unit;
marking the acquisition process to generate marking points;
And when the acquisition process is interrupted, continuing the acquisition operation from the marked point after the acquisition is resumed.
3. The apparatus upgrade method according to claim 1, wherein the obtaining, by the communication unit, an upgrade package of the functional unit to be upgraded includes:
sending a registration information inquiry request of the functional unit to be upgraded;
receiving the returned registration information;
sending an upgrade version query request of the functional unit to be upgraded;
receiving the information of the upgrade version;
Sending an acquisition request of the upgrade package of the functional unit to be upgraded;
And receiving the upgrade package.
4. The apparatus upgrade method according to claim 1, wherein after the function unit to be upgraded is upgraded through the communication unit according to the upgrade package, further comprising:
After the upgrading is finished, the functional unit data are brushed;
and sending the data of the functional unit after the upgrading is completed back to the functional unit.
5. The device upgrade method of claim 4, wherein said sending the upgraded functional unit data back to the functional unit further comprises:
receiving the updated functional unit data;
Restarting the functional unit according to the updated functional unit data.
6. A terminal device, comprising:
the receiving module is used for acquiring an upgrade package of the functional unit to be upgraded through the communication unit;
The storage module is used for storing the upgrade package into a memory space of the communication unit;
The upgrading module is used for upgrading the functional unit to be upgraded through the communication unit according to the upgrading packet; wherein the upgrading the functional unit to be upgraded through the communication unit according to the upgrade package includes: obtaining a symbol table through the functional unit to be upgraded, wherein the symbol table comprises comparison information of upgrading version information and version information of the functional unit to be upgraded; obtaining differential block data according to the symbol table, wherein the differential block data is the data of a distinguishing part between the data of the functional unit to be upgraded and the data of the functional unit after the upgrading; the communication unit upgrades the functional unit to be upgraded according to the differential block data and the upgrade package, the communication unit and the functional unit to be upgraded are two units, or the functional unit to be upgraded is the communication unit, the communication unit at least comprises an upgrade capability module, an upgrade control module and a guide starting module, the upgrade capability module upgrades the differential block data by using the upgrade package and the symbol table and is in communication connection with the ELB module, the upgrade control module is in communication connection with a network platform, the guide starting module is used for guiding and starting the upgrade capability module, and the functional unit to be upgraded at least comprises the ELB module which has a guide starting program function and a communication connection function with the communication unit.
7. An electronic device, comprising:
At least one processor; and
A memory communicatively coupled to the at least one processor; wherein,
The memory stores instructions executable by the at least one processor to enable the at least one processor to perform the device upgrade method of any one of claims 1-5.
8. A computer readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the device upgrade method of any one of claims 1 to 5.
CN202010773468.XA 2020-08-04 2020-08-04 Device upgrade method, terminal device, electronic device and storage medium Active CN112015458B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010773468.XA CN112015458B (en) 2020-08-04 2020-08-04 Device upgrade method, terminal device, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010773468.XA CN112015458B (en) 2020-08-04 2020-08-04 Device upgrade method, terminal device, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN112015458A CN112015458A (en) 2020-12-01
CN112015458B true CN112015458B (en) 2024-11-05

Family

ID=73500006

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010773468.XA Active CN112015458B (en) 2020-08-04 2020-08-04 Device upgrade method, terminal device, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN112015458B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113110800A (en) * 2021-04-12 2021-07-13 百度在线网络技术(北京)有限公司 Data processing method and device, electronic equipment and storage medium
CN113485855B (en) * 2021-08-02 2024-05-10 安徽文香科技股份有限公司 Memory sharing method, device, electronic device and readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105610966A (en) * 2016-01-20 2016-05-25 深圳市中兴物联科技股份有限公司 Terminal of Internet of things and upgrading method thereof
CN111104149A (en) * 2018-10-25 2020-05-05 华为技术有限公司 Firmware upgrading method and device and terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101426710B1 (en) * 2006-07-14 2014-09-23 삼성전자주식회사 Apparatus and method for updating version information of a mobile terminal
CN110377307A (en) * 2019-07-18 2019-10-25 上海擎感智能科技有限公司 A kind of car body controller firmware upgrade method, terminal, system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105610966A (en) * 2016-01-20 2016-05-25 深圳市中兴物联科技股份有限公司 Terminal of Internet of things and upgrading method thereof
CN111104149A (en) * 2018-10-25 2020-05-05 华为技术有限公司 Firmware upgrading method and device and terminal

Also Published As

Publication number Publication date
CN112015458A (en) 2020-12-01

Similar Documents

Publication Publication Date Title
US20220317997A1 (en) Online Upgrade Method for Household Appliance Multi-MCU System, Electronic Device and Medium
CN111831309A (en) Method, device, device and medium for upgrading multiple MCUs with Internet of Things Wifi
CN111338662A (en) Firmware upgrading method and device for slave station and terminal
KR20070081095A (en) How to Boot a Multiprocessor System and Slave Systems
CN111107022B (en) Data transmission optimization method, device and readable storage medium
WO2017049550A1 (en) Adapter and adapter upgrade method
WO2011079794A1 (en) Method and communication equipment for obtaining software
CN112015458B (en) Device upgrade method, terminal device, electronic device and storage medium
CN105786542A (en) Intelligent device and system update method of the intelligent device
CN112732628A (en) Inter-core data processing method and system, system on chip and electronic equipment
CN113542022B (en) Networking management method and device of networking system, terminal equipment and storage medium
CN118349286B (en) Processor, instruction processing device, electronic equipment and instruction processing method
CN113064685A (en) H5 page loading method and device
CN115437696B (en) Self-adaptive configuration method and device for trusted platform
CN118642763B (en) Method and device for controlling starting of server, storage medium and electronic equipment
CN111736871A (en) FPGA chip upgrade method, device and system
CN114610366A (en) A differential package upgrade method, system, intelligent electronic device and storage medium
CN109617713A (en) Implementation method and server for resource distribution
US20140137126A1 (en) Technique for Task Sequence Execution
CN113259437B (en) Method and device for determining vehicle network protocol and storage medium
CN112118567A (en) Device upgrading method, electronic device and medium
CN114442765A (en) Fan control method for computer equipment, baseboard management controller and storage medium
CN111427603B (en) Application program upgrading method and device
CN112711602B (en) Method and device for running stored procedure, database system and storage medium
CN113923240A (en) System and method for dynamically upgrading equipment interface protocol in gateway of Internet of things by using local OTA method

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
GR01 Patent grant
GR01 Patent grant