WO2015143816A1 - Method and device for updating software version and related storage media - Google Patents

Method and device for updating software version and related storage media Download PDF

Info

Publication number
WO2015143816A1
WO2015143816A1 PCT/CN2014/084136 CN2014084136W WO2015143816A1 WO 2015143816 A1 WO2015143816 A1 WO 2015143816A1 CN 2014084136 W CN2014084136 W CN 2014084136W WO 2015143816 A1 WO2015143816 A1 WO 2015143816A1
Authority
WO
WIPO (PCT)
Prior art keywords
software
program area
outdoor unit
software version
boot program
Prior art date
Application number
PCT/CN2014/084136
Other languages
French (fr)
Chinese (zh)
Inventor
陈江波
谢蔑努申夫亚历山大
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2015143816A1 publication Critical patent/WO2015143816A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping

Landscapes

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

Abstract

A method for updating a software version. The method comprises: receiving a software version update request message; switching to a bootstrap program zone to work, and performing service maintenance in the bootstrap program zone; and updating software contents. Meanwhile, further disclosed are a device for updating the software version, another method for updating the software version and related computer storage media.

Description

软件版本更新的方法、 装置及相关存储介质 技术领域  Method, device and related storage medium for software version update
本发明涉及软件技术领域, 尤其涉及软件版本更新的方法、 装置及相 关计算机存储介质。 背景技术  The present invention relates to the field of software technologies, and in particular, to a method, an apparatus, and an associated computer storage medium for software version update. Background technique
数字微波传输设备分为室内单元( In Door Unit, 简称 IDU )和室外单 元( Out Door Unit, 简称 ODU ) 两个部分, 两部分由各自的软件支撑。 室 外单元架于高空铁塔上, 架设成功以后一般不再移动或拆卸。 因为业务扩 展, 故障修复, 性能优化等需要, 现场已安装的设备存在在线更新软件版 本的需求。 一般情况下, 为避免更新软件版本导致业务中断进而影响用户 使用感受, 设备供应商和运营商会安排在凌晨时段对设备进行版本更新。  The digital microwave transmission equipment is divided into two parts: an In Door Unit (IDU) and an Out Door Unit (ODU). The two parts are supported by their respective software. The outdoor unit is mounted on a high-altitude iron tower and is generally not moved or disassembled after successful erection. Due to business expansion, fault repair, performance optimization, etc., there is a need to update the software version of the online installed equipment. In general, in order to avoid business interruption caused by updating the software version and affecting the user experience, the equipment supplier and operator will arrange to update the device in the early morning hours.
现有技术中为了避免更新软件版本过程中的业务中断, 业界通常把室 外单元软件分主备两个程序存储区处理, 更新软件版本的时候, 先更新备 用程序存储区, 同时保证主程序存储区程序正常工作。 然后从主程序存储 区切换到备用程序存储区工作, 再更新主程序存储区程序。 尽管利用主备 程序存储区的方法已经大大减小了更新软件版本过程中的业务中断时长, 但依然存在若干秒甚至分钟级的业务中断。 发明内容  In the prior art, in order to avoid service interruption during the process of updating the software version, the industry usually divides the outdoor unit software into two program storage areas, and when updating the software version, first updates the spare program storage area, and at the same time ensures the main program storage area. The program works fine. Then switch from the main program memory area to the spare program memory area and then update the main program memory area program. Although the method of utilizing the main program storage area has greatly reduced the length of service interruption during the process of updating the software version, there are still several seconds or even minutes of business interruption. Summary of the invention
为解决现有存在的技术问题, 本发明实施例提供的软件版本更新的方 法、 装置及相关计算机存储介质, 在软件版本更新过程中不会造成业务的 中断。  In order to solve the existing technical problems, the method and device for updating the software version and the related computer storage medium provided by the embodiments of the present invention do not cause service interruption during the software version update process.
本发明实施例的技术方案是这样实现的: 一方面, 本发明实施例提供了一种软件版本更新的方法, 所述方法包 括: The technical solution of the embodiment of the present invention is implemented as follows: In one aspect, an embodiment of the present invention provides a method for updating a software version, where the method includes:
接收软件版本更新请求消息;  Receiving a software version update request message;
切入引导程序区工作, 在引导程序区进行业务维持;  Cut into the boot program area to perform business maintenance in the boot program area;
进行软件内容更新。  Perform software content updates.
另一方面, 本发明实施例提供了一种软件版本更新方法, 所述方法包 括:  In another aspect, an embodiment of the present invention provides a software version update method, where the method includes:
室外单元接收来自室内单元的软件版本更新请求消息;  The outdoor unit receives a software version update request message from the indoor unit;
室外单元切入引导程序区工作, 在引导程序区进行业务维持; 进行软件内容更新。  The outdoor unit cuts into the boot program area, performs service maintenance in the boot program area, and performs software content update.
第三方面, 本发明实施例还公开了一种软件版本更新的装置, 所述装 置包括:  In a third aspect, an embodiment of the present invention further provides an apparatus for updating a software version, where the apparatus includes:
接收模块, 配置为接收软件版本更新的请求消息;  a receiving module, configured to receive a request message for a software version update;
维持模块, 配置为在切入引导程序区工作时, 进行业务维持; 更新模块, 配置为进行软件内容更新。  The maintenance module is configured to perform service maintenance when working in the bootstrapping area; the update module is configured to perform software content update.
第四方面, 本发明实施例还公开了一种计算机存储介质, 所述计算机 存储介质中存储有第一组计算机可执行指令, 所述计算机可执行指令用于 执行前述的方法。  In a fourth aspect, an embodiment of the present invention further discloses a computer storage medium, where the computer storage medium stores a first set of computer executable instructions, and the computer executable instructions are used to execute the foregoing method.
第五方面, 本发明实施例还公开了一种计算机存储介质, 所述计算机 存储介质中存储有第二组计算机可执行指令, 所述计算机可执行指令用于 执行前述的方法。  In a fifth aspect, an embodiment of the present invention further discloses a computer storage medium, where the computer storage medium stores a second set of computer executable instructions, and the computer executable instructions are used to execute the foregoing method.
本发明实施例提供的软件版本更新方法、 装置及相关计算机存储介质, 解决了软件版本更新过程中业务中断的问题。 附图说明  The software version update method, device and related computer storage medium provided by the embodiments of the present invention solve the problem of service interruption in the software version update process. DRAWINGS
图 1是本发明实施例提供的软件版本更新方法的主流程图; 图 2是本发明实施例提供的室外单元进行软件版本更新的方法的流程 图; 现流程图; 1 is a main flowchart of a software version update method according to an embodiment of the present invention; 2 is a flowchart of a method for performing software version update of an outdoor unit according to an embodiment of the present invention;
图 4是本发明实施例提供的软件版本更新的装置的组成结构示意图。 具体实施方式  FIG. 4 is a schematic structural diagram of a device for updating a software version according to an embodiment of the present invention. detailed description
以下结合附图对本发明的优选实施例进行详细说明, 应当理解, 以下 所说明的优选实施例仅用于说明和解释本发明, 并不用于限定本发明。  The preferred embodiments of the present invention are described in detail below with reference to the accompanying drawings.
在本发明实施例中, 室外单元有两种工作模式, 一种是主程序区工作 模式, 在该模式下运行时室外单元具有响应室内单元的命令, 可以实时调 节功率, 检测告警, 实时上报接收电平等功能; 另一种是引导程序区工作 模式, 在该模式下室外单元的功能相对简单, 主要有引导功能、 下载版本 功能及维持功率调节功能。 引导程序区工作模式是室外单元进入主程序区 工作模式的一个过渡模式, 或者进行相应的业务维持、 软件版本更新, 两 种模式之间的切换通过跳转指令实现。 所述的跳转指令是通过修改处理器 的程序计数寄存器(PC寄存器, Program Counter Register )来实现跳转的。 设备在需要跳转的时候, 把相应目标程序指令的地址传输给中央处理器 ( CPU, Central Processing Unit )的程序计数寄存器, 设备就可以实现从目 标程序相应的地址开始执行。  In the embodiment of the present invention, the outdoor unit has two working modes, one is a main program area working mode, and the outdoor unit has a command to respond to the indoor unit when operating in the mode, and can adjust power in real time, detect alarms, and report in real time. The electric equal function; the other is the boot program area working mode, in which the functions of the outdoor unit are relatively simple, mainly including the boot function, the download version function, and the maintenance power adjustment function. The working mode of the boot program area is a transition mode in which the outdoor unit enters the working mode of the main program area, or performs corresponding service maintenance and software version update, and the switching between the two modes is realized by the jump instruction. The jump instruction is implemented by modifying the processor's program counter register (PC register, Program Counter Register). When the device needs to jump, the address of the corresponding target program command is transmitted to the program count register of the central processing unit (CPU), and the device can start execution from the corresponding address of the target program.
设备的每一次启动包括重启, 室外单元都会先进入引导程序区工作模 式, 接着会进行判断以确定室外单元的启动类型, 以确定是否需要继续维 持在引导程序区工作, 当需要维持在引导程序区工作时, 在该模式下完成 软件内容的更新, 更新完毕再次重启, 最后进入主程序区正常运行。 当室 外单元从引导程序区切入主程序区工作前, 室外单元会对外设进行初始化。 若当次启动的类型为正常启动时, 室外单元对所有的外设全部初始化一遍, 重新配置外设的输入输出口 10口属性, 重新配置外设的寄存器, 把所有的 衰减器设置成最大衰减, 所有的频率初始化为 0; 若当次启动的类型为由版 本更新引起的重启时, 室外单元进行软重启。 Each startup of the device includes a restart, and the outdoor unit first enters the boot program area working mode, and then determines to determine the startup type of the outdoor unit to determine whether it needs to continue to work in the boot program area, when it needs to be maintained in the boot program area. When working, the software content is updated in this mode, the update is restarted again, and finally the main program area runs normally. The outdoor unit initializes the peripheral unit before the outdoor unit cuts into the main program area from the boot program area. If the type of the current startup is normal startup, the outdoor unit initializes all the peripherals. Reconfigure the peripheral's I/O port 10-port properties, reconfigure the peripheral registers, set all attenuators to maximum attenuation, and all frequencies are initialized to 0; if the current startup type is a reboot caused by a version update , the outdoor unit performs a soft restart.
本发明实施例提供的软件版本更新方法中, 室外单元在正常运行过程 中接收到版本更新请求信息后, 切入引导程序区工作, 维持基本业务的同 时进行主程序内容更新, 内容更新完毕, 室外单元进行软重启。 因为在更 新的过程和在因更新引起的重启中, 关键控制信息保留在内存保留区, 室 外单元能将正在进行的业务维持, 不会出现任何业务的中断。  In the software version update method provided by the embodiment of the present invention, after receiving the version update request information in the normal operation process, the outdoor unit cuts into the boot program area work, maintains the basic service content while maintaining the basic service, and the content update is completed, the outdoor unit Perform a soft restart. Because the critical control information remains in the memory reservation area during the update process and in the restart caused by the update, the outdoor unit can maintain the ongoing service without any interruption of the service.
具体的实现方法步骤如附图 1所示, 包括:  The specific implementation steps are as shown in FIG. 1, and include:
步骤 101, 接收软件版本更新请求消息;  Step 101: Receive a software version update request message.
步骤 102, 切入引导程序区工作, 在引导程序区进行业务维持, 并进行 软件内容更新;  Step 102, cutting into the boot program area, performing service maintenance in the boot program area, and performing software content update;
优选的, 所述方法还包括: 进行软重启。  Preferably, the method further includes: performing a soft restart.
本发明实施例还提供了一种计算机存储介质, 所述计算机存储介质中 存储有第一组计算机可执行指令, 所述计算机可执行指令用于执行前述的 软件版本更新的方法。 第一实施例如图 2所示, 对室外单元进行软件版本更新的方法, 包括: 步骤 201、 室外单元接收软件版本更新请求消息;  The embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores a first set of computer executable instructions, and the computer executable instructions are used to execute the foregoing software version update method. The first embodiment is as shown in FIG. 2, and the method for performing software version update on the outdoor unit includes: Step 201: The outdoor unit receives a software version update request message;
室外单元在正常的运行过程中, 接收到室内单元的软件版本更新请求 消息后, 将需要版本更新的状态信息报告给室内单元, 同时室外单元会设 定标志位 A表示当前的室外单元处于 "版本更新状态"并且需要更新版本, 将无法响应室内单元的功率、 频率等新的配置命令并且不能接受新的业务。 如果是用户对室外单元进行参数配置等操作, 室内单元提示用户当前室外 单元处于版本更新状态, 要求用户稍后配置。 步骤 202、 室外单元切入到引导程序区工作, 在引导程序区进行业务维 持, 并进行软件内容更新; During normal operation, the outdoor unit reports the status information of the version update to the indoor unit after receiving the software version update request message of the indoor unit, and the outdoor unit sets the flag bit A to indicate that the current outdoor unit is in the "version". Update status "and need to update the version, will not be able to respond to new configuration commands such as power, frequency, etc. of the indoor unit and cannot accept new services. If the user performs parameter configuration operations on the outdoor unit, the indoor unit prompts the user that the current outdoor unit is in the version update state, and requires the user to configure it later. Step 202: The outdoor unit cuts into the boot program area, performs service maintenance in the boot program area, and performs software content update.
室外单元将状态信息报告给室内单元后, 通过跳转实现从主程序区工 作模式切入引导程序区工作模式。 在进入引导程序区工作模式后, 室外单 元首先根据标志位 A判断启动的类型, 若判断为正常的启动, 则直接跳入 主程序区工作, 若判断为需要更新版本导致的启动, 则继续维持在引导程 序区工作模式, 此时的室外单元会根据当前的接收信号大小实时调整内部 的链路衰减器, 如果发现接收信号小了, 就减小接收链路的衰减。 反之如 果发现接收信号过大了, 就增加接收链路的衰减。 室外单元通过控制器调 节数模转换芯片的输出电压控制衰减器实现衰减调节。 室外单元接收到射 频信号之后, 通过衰减器、 放大器、 变频器等一系列组件把射频信号转换 成 140MHZ (兆赫兹) 的低频信号发送给室内单元。 室外单元发送给室内 单元的 140MHZ信号是有功率大小要求的。 一般规定是在 -lOdBm水平上。 室外单元在输出口有检波器, 当检测到功率小了, 就减小衰减, 反之就增 加衰减。 比如室外单元检测到当前衰减是 -20dBm, 那么需要增加 10dB 的 衰减。 室外单元会从校准数据表中去查找在当前的衰减水平上再增加 lOdBm控制器需要输出多大值的电压。 校准数据表是一张电压和衰减水平 的对应表格, 是由室外单元的生产商在设备出厂的时候确定的。 如室外单 元读取当前的控制电压是 2V, 通过查找校准数据表发现 2V对应 5dB, 说 明此时衰减器提供 5dB的衰减, 但是衰减需要再增加 10dB, 所以衰减要达 到 15dB, 查找校准数据表发现 15dB对应 2.8V, 那么此时室外单元的数模 转换芯片需要输出 2.8V即可实现对增益的调节。 同时室外单元会把当前新 生成的关键控制信息更新到内存保留区中, 其中, 所述关键控制信息比如 版本下载前的信号频率, 版本下载前的衰减器控制量, 功率控制值等等。 室外单元开始调节衰减的时候, 调节起点一定是当前的状态, 而不是从初 始状态开始, 而当前的状态如衰减器的控制电压值等是在前面的业务进行 过程中保存在内存保留区的。 After the outdoor unit reports the status information to the indoor unit, the working mode is switched from the main program area working mode to the boot program area by the jump. After entering the working mode of the boot program area, the outdoor unit first judges the type of startup according to the flag bit A. If it is determined that the normal start, it jumps directly into the main program area, and if it is determined that the startup is required to be updated, the maintenance continues. In the boot program area working mode, the outdoor unit at this time adjusts the internal link attenuator in real time according to the current received signal size. If the received signal is found to be small, the attenuation of the receiving link is reduced. On the other hand, if the received signal is found to be too large, the attenuation of the receiving link is increased. The outdoor unit controls the attenuation of the digital-to-analog converter chip by the controller to control the attenuation. After receiving the RF signal, the outdoor unit converts the RF signal into a low frequency signal of 140 MHz (megahertz) through a series of components such as an attenuator, amplifier, and frequency converter, and sends it to the indoor unit. The 140 MHz signal sent by the outdoor unit to the indoor unit is required to have power requirements. The general rule is at the -10 dBm level. The outdoor unit has a detector at the output port. When the detected power is small, the attenuation is reduced, and vice versa. For example, if the outdoor unit detects that the current attenuation is -20dBm, then it needs to increase the attenuation by 10dB. The outdoor unit will look up the calibration data table to find the voltage at which the controller needs to output a large value at the current attenuation level. The calibration data sheet is a correspondence table of voltage and attenuation levels that is determined by the manufacturer of the outdoor unit when the equipment is shipped from the factory. If the current unit reads the current control voltage is 2V, find 2V corresponding to 5dB by looking up the calibration data table, indicating that the attenuator provides 5dB attenuation, but the attenuation needs to increase by 10dB, so the attenuation should reach 15dB. Find the calibration data table and find 15dB corresponds to 2.8V, then the digital-to-analog converter chip of the outdoor unit needs to output 2.8V to adjust the gain. At the same time, the outdoor unit updates the currently newly generated key control information into the memory reserved area, wherein the key control information is, for example, the signal frequency before the version is downloaded, the attenuator control amount before the version is downloaded, the power control value, and the like. When the outdoor unit starts to adjust the attenuation, the adjustment starting point must be the current state, not from the beginning. The start state begins, and the current state, such as the control voltage value of the attenuator, is stored in the memory reserved area during the previous business process.
室外单元在引导程序区工作模式下, 对发射链路不进行调节。 室外单 元通过控制器控制数模转换芯片输出电压控制衰减器。 室外单元还通过控 制器的数字输入输出 10口控制滤波器开关。 数模转换芯片和数字 10口具 有保持特性, 版本下载前的衰减器的控制电压或状态是多少, 只要室外单 元不通过控制器发出新的信号控制数模转换芯片和 10口, 版本下载后的衰 减器的控制电压或状态就维持不变。 室外单元通过这种不控制的方式就可 以保持发射链路的状态, 实现发射链路的维持。 室外单元在该模式下只对 接收进行调节而不对发射进行调节, 是因为工作过程中, 空间传输条件如 果发生变化, 对端的整机因为在正常工作, 对端会自动调节自身的接收自 适应。 但是在对端的发射功率不变的情况下, 如果空间传输条件发生了大 的变化, 这时候正在升级的本端整机需要用实时调节避免影响业务。 所述 的数模转换芯片和数字 10口的保持特性是指在控制器通知该芯片输出一个 新的电压或状态之前, 只要他们没有断电, 他们的输出电压或状态就会一 直维持。  The outdoor unit does not adjust the transmit link in the boot program area operating mode. The outdoor unit controls the digital-analog converter chip output voltage control attenuator through the controller. The outdoor unit also controls the filter switch through the digital input and output of the controller. The digital-to-analog conversion chip and the digital 10-port have retention characteristics. What is the control voltage or state of the attenuator before the version is downloaded, as long as the outdoor unit does not send a new signal through the controller to control the digital-to-analog conversion chip and 10 ports, after the version is downloaded The control voltage or state of the attenuator remains unchanged. In this uncontrolled manner, the outdoor unit can maintain the state of the transmitting link and maintain the transmitting link. In this mode, the outdoor unit only adjusts the reception without adjusting the transmission. Because the space transmission condition changes during the working process, the opposite end automatically adjusts its receiving adaptation because it is working normally. However, if the transmission power of the opposite end does not change, if the space transmission condition changes greatly, the local machine that is being upgraded at this time needs real-time adjustment to avoid affecting the service. The digital-to-analog conversion chip and the digital 10-port hold characteristic mean that their output voltage or state is maintained as long as they are not powered off before the controller notifies the chip to output a new voltage or state.
室外单元切入引导程序区工作模式后, 维持上述功能的同时, 室外单 元通过另一个线程不断的从室内单元获取新版本软件内容信息, 并利用控 制器自带的在线编写 flash功能刷新主程序。 每一次室外单元向室内单元请 求 250个字节的新版本数据, 接收成功后, 在线写入主程序区。 反复请求, 直到所有数据全部传输完毕。  After the outdoor unit cuts into the working mode of the boot program area, while maintaining the above functions, the outdoor unit continuously obtains the new version of the software content information from the indoor unit through another thread, and refreshes the main program by using the online flash function of the controller. Each outdoor unit requests 250 bytes of new version data from the indoor unit. After receiving successfully, it is written online to the main program area. Repeated requests until all data has been transferred.
所述的从室内单元获取新版本内容信息, 并利用控制器自带的在线编 写 flash功能刷新主程序也可以为室外单元从室内单元获取完新版本所有内 容后再写入主程序区。  The new version of the content information is obtained from the indoor unit, and the main program is refreshed by using the online flash function of the controller. The outdoor unit can also write all the contents of the new version from the indoor unit and then write to the main program area.
软件内容更新完毕, 室外单元设置标志位 B表明重启时不需要进行全 新的初始化, 并同时清除标志位 A。 After the software content is updated, the outdoor unit setting flag bit B indicates that it is not necessary to perform the full restart. New initialization, and clear flag A at the same time.
步骤 203、 室外单元进行软重启;  Step 203: The outdoor unit performs a soft restart.
室外单元完成所有的版本内容更新之后, 重启一次, 程序从程序空间 的第一个地址开始执行。 室外单元会重新运行引导程序, 进入更新之后的 主程序。  After the outdoor unit completes all version content updates, it restarts once and the program starts from the first address in the program space. The outdoor unit will re-run the boot program and enter the main program after the update.
室外单元进入引导程序区工作模式后, 同样先进行是否需要更新版本 的判断, 若判断为因需要更新版本导致的启动, 则继续维持在引导程序区 工作模式, 同样进行相应业务的维持和软件版本更新。 如果不需要更新版 本内容, 室外单元直接进入主程序区工作模式。  After the outdoor unit enters the boot program area working mode, it also judges whether the version needs to be updated first. If it is determined that the startup is caused by the need to update the version, the operation mode in the boot program area is maintained, and the maintenance and software version of the corresponding service are also performed. Update. If the version content is not required to be updated, the outdoor unit directly enters the main program area working mode.
室外单元在切换到主程序区工作模式的时候, 先利用标志位 B判断这 次切换是不是因更新版本引起的。 如果从引导程序区工作模式切换到主程 序区工作模式是因更新版本引起的, 室外单元进行特殊的初始化: 室外单 元从内存保留区中读取关键控制信息, 比如版本下载前的频率, 版本下载 前的衰减器控制量, 功率控制值等等。 读取之后, 室外单元衰减器初始化 为读取的值, 把频率初始化为所读取到的频率值。 这样室外单元切入到新 的版本进入主程序区工作模式后, 所有的状态跟版本下载前几乎保持一样 的状态, 从而避免了对业务的影响。  When the outdoor unit switches to the working mode of the main program area, it first uses the flag bit B to judge whether the switching is caused by the updated version. If switching from the boot program working mode to the main program working mode is caused by the updated version, the outdoor unit performs special initialization: The outdoor unit reads key control information from the memory reserved area, such as the frequency before the version is downloaded, version download The previous attenuator control amount, power control value, and so on. After reading, the outdoor unit attenuator is initialized to the read value, and the frequency is initialized to the read frequency value. After the outdoor unit is cut into the new version and enters the main program area working mode, all the statuses are almost the same as before the version is downloaded, thereby avoiding the impact on the business.
在室外单元正常运行过程中, 关键控制信息如各个衰减器的电压控制 量, 各个滤波器的开关控制等信息在发生变化时, 将最新状态存入 "内存 保留区" 中定义的结构体中。  During the normal operation of the outdoor unit, key control information such as the voltage control amount of each attenuator, the switch control of each filter, etc., when the information changes, the latest state is stored in the structure defined in the "memory reserved area".
步骤 204、 室外单元发送版本更新完成消息通知室内单元。  Step 204: The outdoor unit sends a version update completion message to notify the indoor unit.
室外单元正常工作后告知室内单元, 室外单元的版本已经更新完毕。 此时室内单元放开对室外单元的配置限制, 同时检查室外单元的功率, 频 率等状态是否和重启前一致, 如果不一致重新配置相关信息。  After the outdoor unit is working normally, the indoor unit is notified, and the version of the outdoor unit has been updated. At this time, the indoor unit releases the configuration restriction on the outdoor unit, and checks whether the power of the outdoor unit, the frequency, and the like are consistent with those before the restart. If the information is not consistent, the related information is reconfigured.
图 2所示的步骤可以按照图 3所示的流程进行。 由于实现本发明实施例的步骤需要利用独立的内存保留区保存关键控 制信息, 从而实现不影响业务的版本更新, 所以对内存保留区的划分进行 如下说明: 在编译程序之前, 在内存配置文件中规划处理器内存, 分配程 序的 "堆空间" 和 "内存保留区"。 为 "堆空间" 和 "内存保留区" 安排不 相重叠的地址空间, 避免程序运行数据影响 "内存保留区"。 内存保留区是 用来实现切换版本时关键控制信息的存储和读取的。 The steps shown in Figure 2 can be performed in accordance with the flow shown in Figure 3. Since the steps of the embodiment of the present invention need to use the independent memory reserved area to save the key control information, so as to implement the version update that does not affect the service, the division of the memory reserved area is as follows: Before compiling the program, in the memory configuration file Plan processor memory, allocate "heap space" and "memory reserved area" for the program. Arrange non-overlapping address spaces for "heap space" and "memory reserved area" to prevent program running data from affecting "memory reserved area". The memory reserved area is used to store and read key control information when switching versions.
关键控制信息的存储和读取详细流程如下:  The detailed process of storing and reading key control information is as follows:
定义结构体并通过代码指定该结构体存储在内存保留区中, 结构体定 义如下, 这里涵盖的成员就是前述的关键控制信息。  The structure is defined and specified by code. The structure is stored in the memory reserved area. The structure is defined as follows. The members covered here are the key control information mentioned above.
typedef struct  Typedef struct
{  {
BYTE auc eserved[31]; ^ Reserved */  BYTE auc eserved[31]; ^ Reserved */
BYTE ucModem; '* Modem type control */  BYTE ucModem; '* Modem type control */
WORD 16 wAlarms; /* Alarms reported to IDU */  WORD 16 wAlarms; /* Alarms reported to IDU */
WORD 16 wAt3Ctl; /* AT3 attenuator setting (in 10th of dB) */ WORD 16 wAt4Ctl; /* AT4 attenuator setting (in 10th of dB) */ WORD 16 wAr2Ctl: /* AR2 attenuator setting (in 10th of dB)  WORD 16 wAt3Ctl; /* AT3 attenuator setting (in 10th of dB) */ WORD 16 wAt4Ctl; /* AT4 attenuator setting (in 10th of dB) */ WORD 16 wAr2Ctl: /* AR2 attenuator setting (in 10th of dB)
WORD 16 wAr3Ctl; z* AR3 attenuator setting (in 10th of dB) WORD 16 wAr3Ctl; z* AR3 attenuator setting (in 10th of dB)
WORD32 dwTxFreqCtl; ,* Tx frequency (in KHz) */ WORD32 dwTxFreqCtl; ,* Tx frequency (in KHz) */
WORD32 dw xFreqCtl; z* X frequency (in KHz) */  WORD32 dw xFreqCtl; z* X frequency (in KHz) */
WORD 16 w eserved; /* Reserved */  WORD 16 w eserved; /* Reserved */
SWORD 16 sTxPwrCtl; /* TX power control (in 10th of dBm) V  SWORD 16 sTxPwrCtl; /* TX power control (in 10th of dBm) V
BYTE ucTxMuteCtl; z* TX mute control */  BYTE ucTxMuteCtl; z* TX mute control */
BYTE ucBandwidth; '* Bandwidth control */  BYTE ucBandwidth; '* Bandwidth control */
BYTE ucModulationTx: /* TX modulation control */ BYTE ucModulationRx; /* X modulation control */ BYTE ucDpdEnableCtl; /* DPD control */ BYTE ucModulationTx: /* TX modulation control */ BYTE ucModulationRx; /* X modulation control */ BYTE ucDpdEnableCtl; /* DPD control */
BYTE ucAcmEnableCtl /* ASM control */  BYTE ucAcmEnableCtl /* ASM control */
BYTE ucUartld; /* UART ID to be used by BOOT for software upgrade */  BYTE ucUartld; /* UART ID to be used by BOOT for software upgrade */
BYTE ucDwldType; /* Type of download to be used by BOOT for software upgrade */  BYTE ucDwldType; /* Type of download to be used by BOOT for software upgrade */
CHAR acBootNote[32]; /* Boot note */  CHAR acBootNote[32]; /* Boot note */
WORD 16 wBootMode; /* Boot mode */  WORD 16 wBootMode; /* Boot mode */
} SRAM— RESERVED— DATA;  } SRAM— RESERVED— DATA;
SRAM— RESERVED— DATAs—SramPreserved  SRAM — RESERVED — DATAs—SramPreserved
attribute一 ((section(" .preserved")));  Attribute one ((section(" .preserved")));
本发明实施例还提供了一种计算机存储介质, 所述计算机存储介质中 存储有第二组计算机可执行指令, 所述计算机可执行指令用于执行如步骤 An embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores a second set of computer executable instructions, where the computer executable instructions are used to perform steps such as
201〜步骤 204所述的软件版本更新的方法。 The method of updating the software version described in 201 to 204.
第二实施例如图 4所示, 软件版本更新的装置包括以下模块: 接收模块 11, 配置为接收软件版本更新请求消息;  The second embodiment is shown in FIG. 4. The device for software version update includes the following modules: The receiving module 11 is configured to receive a software version update request message;
维持模块 12, 配置为在切入引导程序区工作时, 进行业务维持; 更新模块 13, 配置为进行软件内容更新。  The maintenance module 12 is configured to perform service maintenance when working in the cut-in boot area; the update module 13 is configured to perform software content update.
在实际应用中, 接收模块 11、 维持模块 12、 更新模块 13均可由中央 处理单元(CPU, Central Processing Unit ), 或数字信号处理(DSP, Digital Signal Processor ), 或微处理器(MPU, Micro Processor Unit )、 或现场可编 程门阵列 (FPGA, Field Programmable Gate Array )等来实现; 所述 CPU、 DSP, MPU、 FPGA均可内置于室外单元中。  In practical applications, the receiving module 11, the maintaining module 12, and the updating module 13 may each be a central processing unit (CPU), or a digital signal processor (DSP), or a microprocessor (MPU, Micro Processor). Units, or Field Programmable Gate Arrays (FPGAs), etc.; the CPU, DSP, MPU, and FPGA can all be built into the outdoor unit.
本领域技术人员应当理解, 图 4 中所示的软件版本更新装置中的各处 理模块的实现功能可参照前述软件版本更新方法的相关描述而理解。 本领 域技术人员应当理解, 图 4所示的软件版本更新装置中各处理单元的功能 可通过运行于处理器上的程序而实现, 也可通过具体的逻辑电路而实现。 通过具体实施方式的说明, 应当可对本发明为达成预定目的所釆取的 技术手段及功效得以更加深入且具体的了解, 然而附图所示仅是提供参考 与说明之用, 并非用来对本发明加以限制。 同时在不冲突的情况下, 实施 例和实施例中的特征可以相互组合。 Those skilled in the art should understand that the implementation functions of the processing modules in the software version updating apparatus shown in FIG. 4 can be understood by referring to the related description of the foregoing software version updating method. Those skilled in the art should understand that the functions of the processing units in the software version updating apparatus shown in FIG. It can be implemented by a program running on the processor, or by a specific logic circuit. The technical means and functions of the present invention for achieving the intended purpose can be more deeply and specifically understood by the description of the embodiments, but the drawings are only for the purpose of reference and description, and are not intended to be Limit it. At the same time, in the case of no conflict, the features in the embodiments and the embodiments can be combined with each other.
本领域内的技术人员应明白, 本发明的实施例可提供为方法、 系统、 或计算机程序产品。 因此, 本发明可釆用硬件实施例、 软件实施例、 或结 合软件和硬件方面的实施例的形式。 而且, 本发明可釆用在一个或多个其 中包含有计算机可用程序代码的计算机可用存储介质 (包括但不限于磁盘 存储器和光学存储器等 )上实施的计算机程序产品的形式。  Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment of a combination of software and hardware. Moreover, the invention can be embodied in the form of a computer program product embodied on one or more computer usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、 设备(系统)、 和计算机程序 产品的流程图和 /或方框图来描述的。 应理解可由计算机程序指令实现流程 图和 /或方框图中的每一流程和 /或方框、以及流程图和 /或方框图中的流程和 /或方框的结合。 可提供这些计算机程序指令到通用计算机、 专用计算机、 嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器, 使得 在流程图一个流程或多个流程和 /或方框图一个方框或多个方框中指定的功 能的装置。  The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart and/or block diagrams, and combinations of flow and / or blocks in the flowcharts and / or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to a general purpose computer, a special purpose computer, an embedded processor or other programmable data processing device processor to produce a machine such that a flow or a block diagram of a flow or a block diagram or A device that has multiple functions specified in the box.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理 设备以特定方式工作的计算机可读存储器中, 使得存储在该计算机可读存 储器中的指令产生包括指令装置的制造品, 该指令装置实现在流程图一个 流程或多个流程和 /或方框图一个方框或多个方框中指定的功能。  The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备 上, 使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机 实现的处理, 从而在计算机或其他可编程设备上执行的指令提供用于实现 在流程图一个流程或多个流程和 /或方框图一个方框或多个方框中指定的功 能的步骤。 These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. Instructions are provided for implementation The steps of a function specified in a block or blocks of a flow or a flow and/or a block diagram of a flow chart.
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围。  The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.

Claims

权利要求书 claims
1、 一种软件版本更新的方法, 所述方法包括: 1. A method for updating software version, the method includes:
接收软件版本更新请求消息; Receive software version update request messages;
切入引导程序区工作, 在引导程序区进行业务维持; Cut into the boot program area to work and perform business maintenance in the boot program area;
进行软件内容更新。 Perform software content updates.
2、 根据权利要求 1所述的方法, 其中, 在进行软件内容更新之后, 所 述方法还包括: 2. The method according to claim 1, wherein after updating the software content, the method further includes:
进行软重启。 Perform a soft reboot.
3、 根据权利要求 2所述的方法, 其中, 所述切入引导程序区工作, 在 引导程序区进行业务维持, 包括: 3. The method according to claim 2, wherein said cutting into the boot program area to work and performing business maintenance in the boot program area includes:
切入引导程序区工作, 进行业务维持, 并将生成的与所述业务相关的 关键控制信息保存在内存保留区。 Cut into the boot program area to work, perform business maintenance, and save the generated key control information related to the business in the memory reserved area.
4、根据权利要求 1所述的方法, 其中, 所述进行软件内容更新, 包括: 先获取新版本软件的全部内容, 再写入主程序区。 4. The method according to claim 1, wherein the updating of software content includes: first obtaining the entire content of the new version of the software, and then writing it into the main program area.
5、根据权利要求 1所述的方法, 其中, 所述进行软件内容更新, 包括: 先获取新版本软件的部分内容, 再写入主程序区, 直到所有内容全部 写入至主程序区。 5. The method according to claim 1, wherein the updating of software content includes: first obtaining part of the content of the new version of the software, and then writing it into the main program area until all the content is written into the main program area.
6、 根据权利要求 2或 3所述的方法, 其中, 所述进行软重启, 包括: 当不需要全新初始化时, 利用内存保留区保存的关键控制信息进行初 始化。 6. The method according to claim 2 or 3, wherein the soft restart includes: when a new initialization is not required, initialization is performed using key control information saved in the memory reserved area.
7、 根据权利要求 2或 3所述的方法, 其中, 所述方法还包括: 在进行软重启后, 发送版本更新完成消息。 7. The method according to claim 2 or 3, wherein the method further includes: sending a version update completion message after performing a soft restart.
8、 一种软件版本更新方法, 所述方法包括: 8. A software version update method, the method includes:
室外单元接收来自室内单元的软件版本更新请求消息; 室外单元切入引导程序区工作, 在引导程序区进行业务维持; 进行软件内容更新。 The outdoor unit receives the software version update request message from the indoor unit; The outdoor unit switches to the boot program area to work, maintains services in the boot program area, and updates software content.
9、 一种软件版本更新装置, 所述装置包括: 9. A software version update device, the device includes:
接收模块, 配置为接收软件版本更新请求消息; A receiving module configured to receive software version update request messages;
维持模块, 配置为在切入引导程序区工作时, 进行业务维持; 更新模块, 配置为软件内容更新。 The maintenance module is configured to perform business maintenance when working in the boot program area; the update module is configured to update software content.
10、 一种计算机存储介质, 所述计算机存储介质中存储有第一组计算 机可执行指令, 所述计算机可执行指令用于执行权利要求 1至 7任一项所 述的方法。 10. A computer storage medium, the computer storage medium stores a first set of computer executable instructions, the computer executable instructions are used to execute the method according to any one of claims 1 to 7.
11、 一种计算机存储介质, 所述计算机存储介质中存储有第二组计算 机可执行指令, 所述计算机可执行指令用于执行权利要求 8所述的方法。 11. A computer storage medium, the computer storage medium stores a second set of computer executable instructions, the computer executable instructions are used to execute the method of claim 8.
PCT/CN2014/084136 2014-03-26 2014-08-11 Method and device for updating software version and related storage media WO2015143816A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410117864.1 2014-03-26
CN201410117864.1A CN104951318A (en) 2014-03-26 2014-03-26 Method and device for software version updating

Publications (1)

Publication Number Publication Date
WO2015143816A1 true WO2015143816A1 (en) 2015-10-01

Family

ID=54165989

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/084136 WO2015143816A1 (en) 2014-03-26 2014-08-11 Method and device for updating software version and related storage media

Country Status (2)

Country Link
CN (1) CN104951318A (en)
WO (1) WO2015143816A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017156939A (en) * 2016-03-01 2017-09-07 ヤンマー株式会社 Terminal device and software rewriting program
CN108874452A (en) * 2018-06-05 2018-11-23 深圳市锐钜科技有限公司 A kind of embedded software Bootloader method of not Interrupt Control System operation

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6957328B2 (en) * 2001-01-05 2005-10-18 International Business Machines Corporation System and method using a first counter and a second counter to select a code image during a reboot routine
CN101631044A (en) * 2009-08-24 2010-01-20 中兴通讯股份有限公司 Smooth upgrading method and smooth upgrading system of communication equipment
CN102110005A (en) * 2011-02-28 2011-06-29 上海华为技术有限公司 Software upgrading method, device and system
CN103517303A (en) * 2012-06-25 2014-01-15 中兴通讯股份有限公司 Microwave transmission apparatus, and data processing method and device for the same

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101555210B1 (en) * 2009-01-30 2015-09-23 삼성전자주식회사 Apparatus and method for downloadin contents using movinand in portable terminal
CN103019788A (en) * 2012-12-14 2013-04-03 上海邮政科学研究院 Remote online upgrading method based on CAN (Controller Area Network) bus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6957328B2 (en) * 2001-01-05 2005-10-18 International Business Machines Corporation System and method using a first counter and a second counter to select a code image during a reboot routine
CN101631044A (en) * 2009-08-24 2010-01-20 中兴通讯股份有限公司 Smooth upgrading method and smooth upgrading system of communication equipment
CN102110005A (en) * 2011-02-28 2011-06-29 上海华为技术有限公司 Software upgrading method, device and system
CN103517303A (en) * 2012-06-25 2014-01-15 中兴通讯股份有限公司 Microwave transmission apparatus, and data processing method and device for the same

Also Published As

Publication number Publication date
CN104951318A (en) 2015-09-30

Similar Documents

Publication Publication Date Title
US8527981B2 (en) Storage device and method of instructing to update firmware
CN102023908B (en) Method and device for backing up boot program
CN112667266B (en) Firmware upgrading method, device, equipment and storage medium
US10698679B2 (en) Server with double-firmware storage space and firmware update method therefor
KR20040071063A (en) System and Method for Delta-based Over-The-Air Software Upgrades for a Wireless Mobile Station
US8447346B2 (en) SDR terminal and reconfiguration method
WO2020228377A1 (en) Method and device for configuring mirror memory and computer storage medium
WO2021136200A1 (en) Bootloader loading method, storage medium, and embedded terminal
US20190205109A1 (en) Computer system, baseboard management controller, and os installation method
WO2015143816A1 (en) Method and device for updating software version and related storage media
CN111812987B (en) Terminal equipment and execution method thereof, and intelligent home equipment and execution method thereof
US11487552B2 (en) Blade server
CN110505097B (en) Forwarding plane upgrading method and device, electronic equipment and storage medium
CN117289963A (en) Method and equipment for online updating target area of server platform service firmware
CN102083099A (en) Base station and method and a device for electrifying same in single station mode
WO2019047519A1 (en) Method and apparatus for upgrading narrowband internet of things and system
US11567747B2 (en) System and method for dynamic configuration setting update of a bios firmware image
CN115328559A (en) Service management method, device, equipment and readable storage medium
CN105260212B (en) Breaker controller and its method for upgrading software, a kind of breaker
CN108595193B (en) Firmware updating method of baseboard management controller for fan rotating speed control
CN112152832B (en) Management object processing method and device, related equipment and storage medium
US9146754B2 (en) Booting method and computer system thereof
CN107710681B (en) Method and apparatus for upgrading multi-dwelling unit
JP2003337702A (en) Dynamic change system for module structure of software wireless device
CN107608699B (en) Fine-grained software version upgrading method based on magic partition

Legal Events

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

Ref document number: 14887500

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14887500

Country of ref document: EP

Kind code of ref document: A1