CN1331365C - Automatic upgrading method and system of wireless communications system terminal software - Google Patents

Automatic upgrading method and system of wireless communications system terminal software Download PDF

Info

Publication number
CN1331365C
CN1331365C CN 02160289 CN02160289A CN1331365C CN 1331365 C CN1331365 C CN 1331365C CN 02160289 CN02160289 CN 02160289 CN 02160289 A CN02160289 A CN 02160289A CN 1331365 C CN1331365 C CN 1331365C
Authority
CN
China
Prior art keywords
code
upgrade
data
software
frame
Prior art date
Application number
CN 02160289
Other languages
Chinese (zh)
Other versions
CN1457201A (en
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 北京信威通信技术股份有限公司
Priority to CN 02160289 priority Critical patent/CN1331365C/en
Publication of CN1457201A publication Critical patent/CN1457201A/en
Application granted granted Critical
Publication of CN1331365C publication Critical patent/CN1331365C/en

Links

Abstract

本发明公开了一种可实现终端软件空中升级的无线通信系统及其方法,该系统包括网络管理系统、基站控制器、基站及每个基站上的多个用户终端,其中,网络管理系统管理待升级的软件代码,该网络管理系统将该软件代码分发到各个基站控制器,基站控制器将待升级的软件代码转发到其从属的基站,基站通过广播信道将软件代码广播到多个用户终端上,实现自动软件升级。 The present invention discloses a system and method for a wireless communication terminal may be implemented in software upgrade the air, the system comprising a plurality of user terminals on a network management system, a base station controller, a base station and each base station, wherein the network management system to be managed upgraded software code, the network management system to distribute the software code to each base station controller software code to be upgraded is forwarded to its subordinate base stations, the base station through a broadcast channel to broadcast the software code on a plurality of user terminals , automatic software upgrades.

Description

无线通信系统终端软件自动升级的方法及系统 The method of the radio communication system including a terminal and system for automatic software upgrade

技术领域 FIELD

本发明涉及一种无线通信系统中用户终端软件更新的方法,尤指一种终端软件能够通过无线传输,从基站空中升级的方法。 The present invention relates to a method in a wireless communication system, a user terminal software updates, particularly to a terminal through a wireless transmission software, the upgrade from the base station air method.

背景技术 Background technique

随着芯片处理速度的不断提高,越来越多的传统上由硬件实现的功能,现在改由软件来实现了,这样就给系统功能提供了许多柔性,这就是软件无线电的概念。 With the improvement of the processing speed of the chip, more and more traditionally implemented in hardware features, now replaced by software to achieve, and this gave the system provides a number of flexible features, this is the software radio concept. 同样,随着软件无线电技术的发展,无线通信系统的性能不仅依赖于其实现的硬件平台,而更主要的依赖于其软件实现的性能。 Also, with the development of software radio technology, wireless communication system performance depends not only on the hardware platform of its implementation, but more important depends on the performance of its software implementation. 基于相同的硬件平台,通过升级软件可以不断地提升系统的性能,增加或改进系统的功能。 Based on the same hardware platform, software upgrades can continue to improve system performance, increase or improve the functionality of the system. 但对于大量分布在个人用户手中的个人无线通信终端设备,要实现对其进行软件升级,如果要采用人工升级的方法,是一件非常繁琐的工作,对于运营商和用户来说都会带来很多的不便。 But for a lot of personal wireless communication terminal device located in the hands of individual users, to achieve its software upgrade, if you want to upgrade using artificial, it is a very tedious work, for operators and users, will bring a lot of inconvenience.

从近十年来GSM系统的运营和近年来CDMA系统的运营可以看到,控制在运营商手中的通信系统网络部分总是在不断地升级,不断地提高性能,提供更丰富的功能和服务。 Can be seen from recent operations and operations of CDMA systems over the past decade GSM system, control system, communications network in the hands of some operators are constantly upgrading, and continuously improve performance, provide a richer set of features and services. 但另一方面,现有用户如果想要享受更高的服务质量或新的服务项目,就不得不放弃旧的终端(如手机)设备,购置新的终端设备。 On the other hand, the existing user if you want to enjoy a higher quality of service or new services, would have to give up the old terminal (such as mobile phones) equipment, the purchase of new terminal equipment. 这对于用户和运营商来说都会造成损失,用户要花费额外的钱来更新自己的终端设备,运营商则有可能由于用户更新终端时选择别的运营商而失去用户。 This is for users and operators will result in the loss of users to spend extra money to update their terminal equipment, operators are likely due to choose another operator lost when the user updates the user terminal.

经验告诉我们,一方面,无线通信技术的理论和实践都处在快速发展的过程中,即使在相同的系统体制下,有时处理算法中部分参数的调整或一个算法的改进可以使通信的效果得到很大的提高;另一方面,软件的设计和实现难免存在缺陷,而这些缺陷很可能会对用户和运营商带来损失。 Experience tells us that, on the one hand, the theory and practice of wireless communication technologies are in the process of rapid development, even in the same system system, sometimes processing algorithms to adjust some parameters or an improved algorithm can get the effect of communication greatly improved; on the other hand, software design and implementation inevitably flawed, and these defects are likely to be users and operators to bring losses. 因此,局部更新终端设备中的数据或软件模块、算法单元是非常必要的。 Thus, local updating of the data terminal device or software module, the algorithm unit is necessary. 但是,采用以往的人工更新软件的方法,用户必须到运营商指定地点去更新软件,提高了运营商的运营成本,也浪费了用户的大量时间和精力。 However, the use of artificial methods to update the software in the past, the user must specify the location to the operator to update the software to improve the carrier's operating costs, but also waste a lot of time and energy users.

利用软件无线电技术是现代无线通信系统的共同特征,软件无线电技术使系统产品在不对硬件作任何改动的情况下,改善系统性能,改进和添加系统功能。 By software radio technology is a common feature of modern wireless communication systems, system software radio technology to make the product does not make any changes to the hardware of the system performance is improved, modifications and additions system functions. 例如,对软件算法(如基带处理算法、声码器算法、睡眠机制等)的改进往往可以大大提高系统的性能,有时甚至只是对个别门限参数、校准参数的修正就会起到显著的效果。 For example, improved software algorithms (e.g., baseband processing algorithms, vocoder algorithm, sleep mechanisms, etc.) often can greatly improve the performance of the system, sometimes just the individual threshold correction parameter calibration parameters will play a significant effect. 对于运营商控制下的系统网络部分的设备,其软件升级比较容易做到,但对于数量巨大的分散在广大用户手中的终端设备,其软件升级就比较难于操作和实现。 For devices network part of the system under operator control, the software upgrade relatively easy to do, but for the huge amount of dispersion in the hands of the majority of users of terminal equipment, upgrade its software is more difficult to implement and operate.

现代无线数字个人通信系统都具备了很强的数据通信能力,因此只要在系统的各个环节增加相应的处理功能模块,完全可能通过系统本身的机制,实现对终端设备的自动软件升级。 Modern wireless digital personal communications systems with a strong data communication capabilities, so long as the increase of the respective processing modules in all aspects of the system, the mechanism entirely possible by the system itself, the terminal device of the automatic software upgrade.

由上可知,现有通讯系统的软件升级方法存在诸多的缺陷,有进一步改进的必要。 From the above, there is an existing communication system software upgrade many defects, need for further improvement.

发明内容 SUMMARY

本发明的目的是提出一种对无线移动通讯终端设备实现软件升级的方法及系统,在无需用户作任何参与的情况下,实现无线通信终端软件的空中自动升级。 Object of the present invention is to propose a method and system for wireless mobile communication terminal device to implement a software upgrade, the user need not be involved in any case, to achieve air-radio communication terminal automatically upgrade the software.

为了实现上述目的,本发明提供了一种可实现终端软件空中升级的无线通信系统,包括网络管理系统、基站控制器、基站及每个基站上的多个用户终端,其中,网络管理系统管理待升级的软件代码,该网络管理系统将该软件代码分发到各个基站控制器,基站控制器将待升级的软件代码转发到其从属的基站,基站通过广播信道将软件代码广播到多个用户终端上,实现空中自动软件升级。 To achieve the above object, the present invention provides a wireless communication system that can realize the air terminal software upgrade, comprising a plurality of user terminals on a network management system, a base station controller, a base station and each base station, wherein the network management system to be managed upgraded software code, the network management system to distribute the software code to each base station controller software code to be upgraded is forwarded to its subordinate base stations, the base station through a broadcast channel to broadcast the software code on a plurality of user terminals , automatic air software upgrade.

如上所述的无线通信系统,其中,该基站软件的实现包括:一升级代码存储器,用于存储由基站控制器传送来的待升级软件代码;一成帧处理模块,用于形成初始化数据帧和将待升级的软件代码分割成多个代码数据帧;一帧数据存储器,用于存储该成帧处理模块形成的初始化数据帧和代码数码帧; The wireless communication system as described above, wherein the base software implemented includes: a promotion code memory for storing a base station controller transmits the software code to be upgraded; a framing processing module, for forming and initialization data frames the software codes may be upgraded code data into a plurality of frames; a data memory initialization data frame and the frame framing the digital codes formed for storing a processing module;

一日期时间设定控制模块,用于设定软件升级的有效起止日期和广播升级代码的时段;一广播模块,用于将帧数据存储器中的初始化数据帧和多个代码帧在有效的日期和时段内通过广播信道循环广播到该基站覆盖的小区。 A date and time setting control means for setting a period of the effective software upgrade a broadcast start and end dates and upgrade code; and a broadcasting module, initialization data for the data frames and a plurality of memory frames in the code and a valid date circulating through the broadcast channel within a period of the broadcast channel to a cell covered by the base station.

如上所述的无线通信系统,其中,该初始化数据帧包依次括本次软件升级的代号,终端厂商代号,终端型号,现有终端软件版本号,升级后的软件版本号,本次升级的规模级别,待升级代码数据的长度,超时时间。 The wireless communication system as described above, wherein the initialization data frame packets comprises sequentially This software upgrade code, the terminal code of the vendor, terminal model, the existing terminal software version number, the version number of the software upgrade, the upgrade scale level, the length of the code data to be upgraded, timeout.

如上所述的无线通信系统,其中,该代码数据帧依次包括本次升级的代号,本帧数据唯一的序列号,代码数据,CRC校验码。 The wireless communication system as described above, wherein the tag sequence comprises a data frame of the upgrade code, the present frame data unique serial number, code data, CRC checksum.

如上所述的无线通讯系统,其中,该用户终端软件的实现包括:一接收模块,用于从广播信道接收由基站广播的初始化数据帧和代码数据帧;一本机数据存储器,用于存储本机参数,包括本机软件版本号,本机产品厂商编号,本机产品信号;一代码记录表,用于存储接收模块接收到的多个代码数据帧,其数据格式为帧序列号、下载标记和代码数据;一升级进程控制表,用于记录升级进程中的各种状态数据,包括本次软件升级代号,本次软件升级的级别码,本次软件升级后的版本号,下载代码的长度(帧数),当前软件升级所处的状态,本次升级的超时时间;一分析处理模块,用于解码接收到的初始化数据帧和代码数据帧,并根据初始化数据帧的解码结果与该本机数据存储器中的信息进行比较,确认本机是否属于本次软件升级的范围,并负责初始化升 Wireless communication system as described above, wherein the user terminal software implemented includes: a receiving module for receiving a broadcast channel data and code the data frame by the base station initialization a broadcast frame; a machine data storage for storing the present machine parameters, including the native software version number, manufacturer ID of this machine, the machine product signal; a code recording sheet, for storing a plurality of code data frames received by the receiving module, the data format of a frame sequence number, a download flag and code data; a control table the upgrade process, various status data record for the upgrade process, including software upgrades this code, this code level of software upgrade, the length of this version of the software upgrade, code download (frames), in which the current state of the software upgrade, the upgrade timeout period; an analysis module for initializing data frames and decodes the received encoded data frame, and the decoding result according to the initialization data of the present frame and information data storage unit by comparing the unit to confirm whether the software update of this range, and is responsible for initializing liter 进程控制表和代码记录表;一升级控制模块,用于控制软件升级的整个过程,将本机软件代码升级为代码记录表中的待升级代码,并负责保证这两部分数据之一是完整的。 Process control table and the code table records; upgrade a control module for controlling the entire process of software upgrade, the upgraded software code to native code recording the code table to be upgraded, and is responsible for one of the two portions to ensure complete data .

本发明还提供了一种无线通信系统中终端软件空中升级的方法,用于将升级软件由基站通过广播信道空中升级到用户终端,实现自动空中升级,其中,包括如下步骤:基站对待升级的代码数据进行成帧处理;基站发送该成帧处理形成的多个数据帧; The present invention further provides a method for a wireless communication system, the air terminal software upgrade, upgrade software for air update broadcast channel to the user terminal, the base station automatically upgrade the air through, comprising the steps of: treating the base station code upgrade framing the data processed; base station transmits a plurality of data frames forming the framing process;

用户终端从广播信道接收基站广播发送的多个数据帧;用户终端升级处理用户端软件。 The user terminal receives a plurality of data transmitted from the base station broadcasts a broadcast channel frame; user terminal client software upgrade process.

如上所述的无线通信系统中终端软件空中升级的方法,其中,在成帧处理步骤之前,还包括如下步骤:将升级代码数据导入网络管理系统;网络管理系统将该升级代码数据分发到各个基站控制器;基站控制器将该升级代码数据转发到所属的基站。 The wireless communication system as described above the air terminal software upgrade method, wherein, prior to framing processing step, further comprising the steps of: introducing the upgrade code data network management system; the distributed network management system upgrade code data to the respective base station a controller; the base station controller to the base station forwards the data upgrade code belongs.

如上所述的无线通信系统中终端软件空中升级的方法,其中,成帧处理步骤还进一步包括如下步骤:形成初始化数据帧,该初始化数据帧包依次括本次软件升级的代号,终端厂商代号,终端型号,现有终端软件版本号,升级后的软件版本号,本次升级的规模级别,待升级代码数据的长度,超时时间;形成代码数据帧,该代码数据帧依次包括本次升级的代号,本帧数据唯一的序列号,代码数据,CRC校验码。 The wireless communication system as described above the air terminal software upgrade method, wherein the framing processing step further comprises the steps of: forming initial data frame, the data frame initialization packet comprises a sequence of this software upgrade code, the terminal code of the vendor, terminal model, the existing terminal software version number, the version number of the software upgrade, the upgrade level of scale, the length of the code data to be upgraded, timeout; forming frame code data, the code sequence comprises a data frame of the upgrade code the present frame data unique serial number, code data, CRC checksum.

如上所述的无线通信系统中终端软件空中升级的方法,其中,在基站发送数据帧之前,还包括如下步骤:判断当前日期和时间是否是有效的升级日期和发送时段;如果不是有效的升级日期和时间,则复位存储单元,结束升级;如果是有效的升级日期和时间,则基站通过广播信道发送所述的初始化帧和多个代码帧;循环发送该初始化数据帧和多个代码帧,直到当前时间超过设定的发送时段。 The wireless communication system as described above the air terminal software upgrade method, wherein, before the base station transmits a data frame, further comprising the steps of: determining whether the current date and time and the date are valid upgrade transmission period; if not valid upgrade date and time, the storage unit is reset, the upgrade; if it is a valid update date and time, the base station transmits the initialization of the frame and a plurality of codes through a broadcast channel frame; transmitting the initialization data frame cycle and the plurality of code frames, until transmitting the current time exceeds the set period.

如上所述的无线通信系统中终端软件空中升级的方法,其中,还包括一用户终端判断是否属于本次升级范围的步骤,该步骤进一步包括如下步骤:解码初始化数据帧;比较解码得到的升级条件是否于本用户终端存储的本机信息一致;如果不属于本次升级的范围,则直接退出;如果属于本次升级的范围,则初始化升级进程控制表和代码记录表;设置升级进程控制表的进程状态为代码下载状态。 The wireless communication system as described above the air terminal software upgrade method, wherein the user terminal further comprises a step of determining whether the present time belongs to the scope of the upgrade, the step further comprises the step of: decoding initialization data frame; upgrade decoding conditions are obtained whether the present user terminal stores the same native information; do not belong to this upgrade range, then exit; if they are this upgrade range, the initialization upgrade process control table and the code record table; disposed upgrade process control table the code download process status state.

如上所述的无线通信系统中终端软件空中升级的方法,其中,该代码记录表用于存储接收到的多个代码数据帧,其数据格式为帧序列号、下载标记和代码数据;该升级进程控制表,用于记录升级进程中的各种状态数据,包括本次软件升级代号,本次软件升级的级别码,本次软件升级后的版本号,下载代码的长度(帧数),当前软件升级所处的状态,本次升级的超时时间。 The wireless communication system as described above the air terminal software upgrade method, wherein the code recording table for storing the received code data to a plurality of frames, the data format of a frame sequence number, and a download flag code data; the upgrade process control table for recording the various status data upgrade process, including software upgrades this code, this code level of software upgrade, the current version number of the software update, downloaded the code length (number of frames), the current software a state in which the upgrade, the upgrade timeout.

如上所述的无线通信系统中终端软件空中升级的方法,其中,该用户终端接收基站发送的多个数据帧的步骤还包括如下详细步骤:处理接收代码数据帧;根据接收帧的序列号读取代码记录表中的下载标记;如果该下载标记指示该帧已经正确接收,则丢弃当前接收到的数据;如果该下载标记指示该帧未被接收,则将代码数据写入代码记录表中与该序列号对应的代码数据单元中;设置该序列号对应的代码记录表中的下载标记为正确读取标志。 The step of the wireless communication system as described above the air terminal software upgrade method, wherein the user terminal receives a plurality of base stations transmit a data frame further comprises the following detailed steps of: processing a received code data frames; read from the serial number of the received frame download code recording mark in the table; and if the download flag indicates that the frame was not received, then the code data written into the code in the record table; if the download flag indicates that the frame has been correctly received, the currently received data is discarded code sequence number corresponding data unit; download flag is provided corresponding to the serial number code recorded in the table to the correct read flag.

如上所述的无线通信系统中终端软件空中升级的方法,其中,用户终端升级处理用户端软件步骤还包括如下详细步骤:判断所有代码数据是否接收完毕;如果所有代码数据没有接收完毕,则返回代码接收步骤继续接收代码数据;如果所有代码数据接收完毕,则将升级状态控制表中的进程状态设置为内部处理状态;内部升级处理,将待升级代码替换原软件代码;将升级状态控制表中的进程状态设置为复位状态;复位进程控制表和代码记录表;将升级状态控制表中的进程状态设置为初始化状态。 The wireless communication system as described above the air terminal software upgrade method, wherein the user terminal UE software upgrade process further comprises the detailed steps of the step of: determining whether all code data has been received; If all code data is not received, the code is returned continue to receive code data receiving step; If all code data has been received, then the upgrade state of the control process status table is set to the internal processing state; internal upgrade process, the code to be upgraded to replace the original software code; upgrade state control table process state is set to reset state; reset process control table and the code table records; the state control table update process state is set to the initialization state.

本发明的有益效果是解决了现有无线通信系统中,由于终端数目庞大、分散,而无法实现对终端软件实现升级,提升系统性能和改进服务质量。 Advantageous effects of the present invention is to solve the existing wireless communication system, since a large number of terminals, a dispersion, and can not realize the terminal software upgrade, to enhance system performance and improve the quality of service. 本发明所设计的空中加载自动软件升级的基本方法,从安全性、可靠性和可操作性、有效性等方面保证了在无线个人通信系统中实现空中升级软件自动升级的可能性。 The basic method for automatic software upgrade of the present invention is designed to load the air, from the aspect of safety, reliability and operability, and the like to ensure the effectiveness of the air update possibility of achieving automatic software upgrade in a wireless personal communication system.

本发明基于软件无线电的概念和现代无线数字个人通信系统中的数据传送功能,提出了对无线个人通信系统终端软件实现空中自动升级的思想,并设计了一种安全、可靠的实现方法,包括基本处理流程和协议框架。 The present invention is based on the data transfer function and concept of modern wireless digital personal communications systems in software radio, proposed the idea to realize automatic upgrade air radio personal communications system terminal software, and design of a safe and reliable implementation, substantially comprising processes and protocol framework. 在不改变终端硬件的情况下,通过升级终端的软件,达到提升系统性能、改进或添加系统功能的目的。 In the terminal without changing the hardware, software upgrade of the terminal, to improve system performance, improve or add object system functions. 该方法利用无线数字个人通信系统中网络部分的数据传送信道和无线接口部分的广播信道,并在空中加载时采用分帧校验、序列号接收控制、周期循环广播等步骤,来保证下载数据的完整性;在终端通过一个基于非易失性存储器(如FLASH)存储的专用软件升级管理线程来保证升级的安全性。 The method utilizes data transmission channel of a wireless digital personal communications system network part and a broadcast channel of the wireless interface part, and using sub-frame check sequence number of the received control cycles broadcast and other steps in the air loading to ensure download data integrity; based on the terminal through a dedicated software upgrade management thread nonvolatile memory (e.g., FLASH) stored to guarantee the security upgrades.

本发明关于无线个人通信系统中终端软件的空中升级方法,基于该方法的对个人移动通信终端的软件模块、算法单元、关键参数的升级手段,解决了在现有的个人移动通信系统无法利用软件无线电的思想,从终端的角度来提升系统的功能,对已经发布的终端软件缺陷只能听之任之的局面,从而给用户和运营商都带来了利益。 The present invention relates to air update method for a wireless personal communication system terminal software upgrade means based on the personal mobile communication terminal, the method is a software module, an arithmetic unit, key parameters, can not be solved using the conventional personal mobile communication system software the idea of ​​radio, from the terminal to enhance the functionality of the system, has been released on the terminal software defects could be done about the situation, giving users and operators have brought benefits. 本方法所设计的基本协议结构和流程,有效地解决了无线个人通信系统中终端软件自动、安全升级的可能性。 The method of the present basic protocol designed structures and processes, to effectively solve the possibility of a wireless personal communication system terminal software automatically, security updates. 特别是针对个人移动通信终端普遍存在的切换、出服务区、关机、掉电等情况,该方法所设计的机制仍能有效、可靠地实现软件的自动升级。 Particularly for personal mobile communication terminal is ubiquitous handover, the service area, power off, power down, the process is designed mechanisms still effective, reliable automatic software upgrades.

下面结合附图和具体实施方式对本发明作进一步说明。 The present invention will be further described in conjunction with the accompanying drawings and specific embodiments.

附图说明 BRIEF DESCRIPTION

图1是本发明终端软件空中升级的系统结构及待更新代码数据流向示意图;图2是本发明用户终端接收代码数据帧的流程示意图;图3是本发明用户终端升级进程状态图;图4是本发明基站端空中软件升级的流程图;图5是本发明用户终端的空中软件升级的流程图;图6是本发明基站端逻辑结构图;图7是本发明用户终端的逻辑结构图。 1 is a schematic system configuration of a terminal software of the present invention upgrade the air and to be updated code data flow; FIG. 2 is a schematic flow chart of the code of the data frame a user of the present invention, a terminal receives; FIG. 3 is a user of the present invention, a terminal upgrade process state; Figure 4 is a base station side air flowchart upgrade software of the present invention; FIG. 5 is a flowchart of a user terminal-air software upgrade of the present invention; FIG. 6 is a base end of the logical structure of the present invention; FIG. 7 is a logic block diagram of a user terminal according to the present invention.

具体实施方式 Detailed ways

本发明提供了一种对无线通信系统终端软件进行可靠、安全自动升级的方法。 The present invention provides a reliable, safe method of automatically upgrading a wireless communication system for terminal software. 如图1所示,该方法对软件自动升级的基本实现步骤如下: As shown in FIG. 1, the basic method for automatic software upgrade implementation steps are as follows:

(1)、终端软件的自动升级通过网络管理系统(NMS)11来操作和控制,维护人员将升级代码数据导入NMS系统,配置相应的流程参数,然后启动软件升级流程。 (1), the terminal 11 automatically upgrade the software to operate and control through the network management system (NMS), the maintenance personnel upgrade code data import NMS system configured corresponding process parameters, and then start the software upgrade process.

(2)、NMS将升级软件代码加载到各个基站控制器(BSC)12。 (2), NMS upgrade the software code is loaded into the respective base station controller (BSC) 12.

(3)、BSC将待加载的软件代码转发到其从属的基站(BTS)13。 (3), BSC loaded software code to be forwarded to its subordinate base stations (BTS) 13.

(4)、BTS启动一个终端软件加载的任务,该任务首先对待加载的代码数据进行成帧处理,然后在设定的时间段内周期性循环地向其覆盖的小区内的用户广播待加载的数据帧序列。 (4), BTS starts terminal software loaded a task, the task is first treated framing code data loading process, and then cyclically broadcast to its users within the cell to be loaded during the time period covered by the set of periodic sequence of data frames. 广播数据帧序列中包括两种基本数据帧:初始化数据帧和代码数据帧。 A broadcast data frame comprising a sequence of two basic data frame: a data frame and the initialization code data frames.

(5)、终端14对广播信道上接收到的数据帧进行分析,通过接收到的初始化数据帧分析其终端型号(包括生产厂家和产品系列等)、软件版本号,确定该升级任务是否适合于本终端。 (5), terminal 14 receives the broadcast channel frame data analysis, analysis of which frame the terminal type (including manufacturer and product lines, etc.) by the initialization data received, the software version number to determine whether the task is adapted to upgrade this terminal.

(6)、确认本终端属于本次软件升级的对象范围后,根据初始化帧接收到的信息初始化软件升级流程,包括在非易失性存储器空间中配置升级进程控制表和配置代码记录表,然后进入数据接收过程。 (6), this terminal belongs to confirm this software upgrade target range, according to the initialization information received frame initialization software upgrade process, the upgrade process comprises a configuration memory space in the nonvolatile configuration code control table and a recording sheet, and entering the data receiving process.

(7)、终端对接收到的数据通过完整性校验检查后,启动基于非易失性存储器的正式代码的修改流程。 (7), the terminal data received by the integrity-check, modify the process based on formal start codes in the nonvolatile memory.

(8)、终端代码修改完成后,更新相应的软件版本号,复位相关的存储器单元。 (8) After completion of the terminal code changes, update the software version number, reset the associated memory cell.

(9)、本次软件升级完成。 (9) that this software upgrade is complete.

在上述步骤中,为了保证升级的快速安全可靠,本发明采用了下述关于无线通信系统空中软件自动升级的详细实现方法:1.在升级之前,首先要对升级规模进行划分。 In the above step, in order to ensure safe and reliable fast upgrade, the present invention adopts the following detailed implementation method of a wireless communication system on-air automatic software upgrade: 1. Prior to the upgrade, the upgrade must first be divided scale. 为了提高软件升级空中加载的效率,应该尽量减少升级代码的传输数据量。 In order to improve the efficiency of the air loaded software upgrade, you should minimize the amount of data transmission upgrade code. 因此,可以将软件升级的规模划分为以下三级:(1)功能模块升级,如基带处理模块、声码器模块、人机界面模块(MMI)、短消息处理模块等;(2)算法单元模块升级,指对某一个单元处理算法的更新;(3)局部功能参数的更新,如修改指定地址的参数值。 Thus, software upgrades can be divided into the following three scale: (1) upgrading the functional module, such as the baseband processing module, a vocoder module, a human interface module (the MMI), short message processing module and the like; (2) arithmetic unit upgrade module, a means for updating a processing algorithm unit; and (3) updating the local functional parameters, such as modifying parameter values ​​specified address. 不同级别的升级任务中,下载的代码可以采用不同的格式,以便于终端软件的处理。 Upgrade tasks in different levels, the code may be downloaded in different formats, the software for processing the terminal.

2.基于无线单向广播信道的数据传送。 2. The one-way wireless data transmission based on the broadcast channel.

由于无线通信系统中的终端数量巨大,采用广播的方式可以大大地提高传送效率。 Due to the large number of terminals in a wireless communication system using a broadcast manner can greatly improve the transmission efficiency. 基站在设定的时间范围内,通过广播信道向其覆盖范围内的所有终端设备发送软件加载升级的代码数据。 The base station within the time frame set load code data upgrade software is transmitted to all terminal devices within the coverage of its broadcast channel.

3.数据正确性和完整性的保证。 3. ensure data correctness and completeness.

由于空中信道的不确定性和用户终端存在的各种不确定性,本发明采用下述方法来保证数据传送的正确性和完整性:(1)分帧传送,采用短帧数据冗余校验(CRC)的方式发送数据。 Due to various uncertainties in the air channel and the uncertainty of the user terminal, the present invention employs a method to ensure the correctness and completeness of data transfer: (1) sub-frame transmission using a short frame data redundancy check transmission data (CRC) manner.

如果待加载代码数据长度为X字节,每帧发送的有效数据长度为N字节,则可以将代码数据拆分成M帧,然后按照一定的帧结构构成发送帧。 If the length of the code data to be loaded is X bytes, the effective length of each frame of data transmitted is N bytes, the code data may be split into M frames, and then transmits frame configuration according to a certain frame structure. 终端分别接收、校验和存储每一个代码帧,而不要求正确帧的连续性。 Terminals respectively receiving, storing a checksum for each code frame, without requiring the correct frame continuity. 任何一个正确接收的代码帧都可以补充到代码记录表中,当检测到所有帧都被正确接收后,停止代码接收并进入内部升级处理状态。 Any code a frame correctly received the code can be added to the record in the table, when all frames are detected correctly received, and receiving the stop code into the interior upgrade processing state. 其中,帧数M由下式计算:M=[XN]+1]]>(2)采用帧序列号来保证数据的完整性,在一次软件升级代码的加载过程中,保证所有帧的序列号互不相同。 Wherein, M number of frames is calculated by the following formula: M = [XN] +1]]> (2) using a frame sequence number used to ensure data integrity in the process of loading a software upgrade code, to ensure that the serial numbers of all frames different from each other. 接收端通过代码记录表中的代码帧接收标记来记录未正确接收的代码帧,并在以后的重复广播过程中进行补充。 Receiving end code recording code table to record the code marks the received frame is not a frame is correctly received, and the broadcast is repeated in subsequent supplementary process. 从而保证即使在代码接收过程中,由于用户呼叫、关机、意外掉电、出服务区等各种原因导致的下载中断都能在以前的基础上继续进行。 In order to ensure that even in the process of receiving the code, because the user calls, shut down, unexpected power failure, download a variety of reasons out of the service area as a result of the interruption can continue in the previous basis.

(3)周期性循环广播发送,确保终端设备有足够的机会来接收、补充完整的下载代码。 (3) periodically transmitting a broadcast cycle, ensure that the terminal device has sufficient opportunity to receive a complete complement download code.

4.终端采用一个专用的软件升级管理模块来管理软件的可升级性。 4. terminal using a dedicated software upgrade management module to manage the software scalability.

该软件管理升级模块具备以下特性:(1)该模块本身是不可升级的;(2)任何时候终端设备开机时都能激活该模块,包括由于异常中断,内部升级处理状态下,升级处理进程破坏了原来的程序数据的情况下,该模块仍能正常启动和运行;(3)该模块控制软件升级的整个过程,记录升级过程中的状态进度,保证在任何情况下发生的中断都能从中断所处的状态继续;(4)该模块同时管理升级前的代码数据和待升级的代码数据,并保证这两部分数据之一一定是完整的。 The management software upgrading module has the following characteristics: (1) The module itself is not upgraded; (2) any time activate the module when the terminal device is turned on, since the aborted comprising, at an internal processing state upgrade, the upgrade processing procedure destruction the case of the original program data, the module can still start and run properly; (3) the entire process control module software upgrade, recording status progress of the upgrade process, ensure an interrupt occurs in any situation from interrupt in which the state continues; (4) before the code data management module also updates and upgrades to be code data, one of two parts and to ensure that the data must be complete. 在进入内部升级处理状态之前,升级前的代码数据一定是完整的,在进入内部升级处理状态之后,待升级的代码数据一定是完整的。 Before entering the upgrading processing state code pre-upgrade data must be complete, after entering the state upgrading process, upgrading the code data must be complete. 只有当升级处理完成后,才将下载的更新代码清除。 Only when the upgrade process is completed, it will download the update code cleared.

5.小区切换、用户关机、异常掉电等处理方法。 The cell switching off the user, and other abnormal power down approach.

由于小区切换、用户关机、掉电等事件随时可能出现在终端软件升级的进程,因此,本发明提供了一个安全的管理方法。 Since the cell handover, the user off, power down and other events that may occur at any time in the process of terminal software upgrade, therefore, the present invention provides a safe method of management. 这一方法包括如下步骤:(1)代码接收过程化整为零的分帧处理步骤:终端设备在非易失性的存储器(如FLASH)中,根据初始化帧信息建立一个接收代码记录表, 表中用一个标识Flag来标记对应的帧是否已经被正确接收。 This method comprises the steps of: framing process step (1) code for receiving a piecemeal process: a terminal device in a nonvolatile memory (e.g., FLASH), the establishment of a received information frame according to the initialization code stored table, the table flag used to mark whether a frame identification corresponding has been received correctly. 这样,任何时候接收到一个正确的代码帧,只要记录表中的标记为0,都将记录到该表中,而无需连续地接收正确地数据帧。 Thus, any time a correct code is received frames, as long as the records in the table is marked as 0, are recorded in the table, without continuously receiving the data frame correctly. 通过不断补充正确帧,直到所有的帧接收标记置为1,表示代码已经完整地下载,如表1所示:表1:代码记录表数据结构 By constantly replenished correct frames until all frames received flag is set to 1, indicates a complete code has been downloaded, as shown in Table 1: Table 1: code recording table data structure

(2)保证下载的代码数据完整地记录在非易失性的存储器(如FLASH)中的步骤:如图2所示,在步骤21中,只要接收到一个完整且校验正确的代码帧,就按照图中所示的方法记录在该表格中,这时,在步骤22中,首先根据接收帧的序列号读取记录表中的Flag,如果该Flag值为零,说明该帧没有被记录在记录表中,这时,转入步骤23,将代码数据写入代码记录表中与该序列号对应的存储单元中,然后在步骤24中将Flag值修改为1;如果该Flag本来就是1,说明记录表已经将该帧代码完整地记录在了记录表中,这时,系统转入步骤25,直接将该帧接收到的数据丢弃。 (2) to ensure data integrity code to be downloaded in the step of non-volatile memory (e.g., FLASH) of the record: shown in FIG. 2, in step 21, just received a complete and correct code check frame, according to the method shown in FIG recorded in the table, then, in step 22, reads the first record in the table Flag according to the sequence number of the received frame, if the Flag value is zero, indicating that the frame is not recorded in the records in the table, then, proceeds to step 23, the code data written in the memory means records the code table corresponding to the sequence number, and then modify the value of Flag is 1 in step 24; if the originally Flag 1 , described the recording table has been recorded in the frame code integrity of the records in the table, then the system proceeds to step 25, the received data frame is discarded directly. 由于Flag是在数据记录完成后才被置为1,这样如果在代码存储过程中程序被中断,该帧将被视为没有正确接收,从而保证了表中记录的每一帧数据都是完整的。 Since Flag is completed before the data recording is set to 1, if the program is interrupted so that the code stored in the process, the frame is considered not received correctly, thus ensuring the data table records in each frame is complete . 当所有帧的正确接收标记都置为1时,表明已经正确接收到完整的代码,可以进入内部升级处理流程。 When the mark all frames received correctly are set to 1, it indicates that has correctly received the complete code, into the internal upgrading processes.

(3)保证任务的进程记录完整地记录在非易失性的存储器中的步骤。 (3) ensure the progress of the task complete recording step in the nonvolatile memory records.

如图3所示,软件升级任务的进程控制记录表将包括下述基本内容:本次软件升级的代号,本次软件升级的级别码,本次软件升级后的版本号,下载代码的长度(帧数),当前进程所处的状态,本次升级的超时时间等,而当前进程所处的状态包括初始化状态31、代码下载状态32、内部处理状态33和复位状态34。 3, the process control software upgrade task to record table comprises basic elements: This software upgrade code, this code level of software upgrade, the version number of this software upgrade, download the code length ( frames), in which the state of the current process, this upgrade timeout time, the state in which the current process comprises an initialization state 31, the state of codes 32, 33 internal processing state 34 and the reset state.

为了保证任何中断都不会破坏进程的继续执行,该升级进程控制表必须保存在非易失性的存储器中。 In order to ensure that any disruption will not continue to undermine the implementation process, the upgrade process control table must be saved in non-volatile memory. 并且必须在上一个状态的工作完全完成后,才更新状态标志,进入下一个状态。 And you must be in a state after working on fully completed before the update status flag, go to the next state. 如果在设定的时间(从初始化帧中得到)范围内,没有正确地接收到升级代码数据,则放弃本次升级流程,进入复位状态,这时可以将该失败信息通过LCD显示提示用户,并利用信令消息或短消息等机制发送到系统的网管中心。 If (obtained from the initialization frame) within a set time range, the upgrade is not correctly received code data is discarded this upgrade process, into the reset state, then the failure information may be displayed to prompt the user through the LCD, and sent to the network management center system employing the signaling mechanisms message or short message.

状态的转移是确保处理进程正确进行的关键环节。 Transition state is to ensure that the key to handling the process correctly. 例如,在初始化状态下,收到一个正确的初始化帧并判断适合于本终端的升级任务后,开始初始化进程记录表,完成记录写入操作后才更新状态标志,进入代码下载状态。 For example, after the initialization state, a received frame and determines the proper initialization of the terminal is adapted to update the task, the initialization process starts recording table, the write operation after completing the recording update state flag state enters Codes. 如果在记录写入过程中,进程被中断,则本次收到的初始化帧无效。 If the record is written process, the process is interrupted, the initialization of this received frame is invalid. 当下次进程启动后,必须收到一个新的初始化帧,重新修改进程记录表。 When the next time the process starts, it must receive a new initialization frame, re-edit process recording table. 这样,就保证了当状态进入到代码下载时,记录表中的数据是完整且可靠的。 Thus, it ensures that when the state enters Codes, data table records are complete and reliable.

6.初始化帧基本构成初始化帧用于终端用户识别本机是否属于本次升级的范围,并提供本次升级的基本信息,便于终端升级管理任务初始化一个升级流程。 6. Initialization Initialization frame basic configuration for the end user to identify the machine frame whether this upgrade range, and provide basic information this upgrade, upgrade the terminal to facilitate a management task initialization upgrade process. 初始化帧中将携带下述信息:本次软件升级的代号,终端厂商代号,终端型号,现有终端软件版本号,升级后的软件版本号,本次升级的规模级别,待升级代码数据的长度(即帧数),超时时间等。 During the initialization frame carries the following information: The software upgrade code, the terminal code of the vendor, terminal model, the existing terminal software version number, the version number of the software upgrade, the upgrade level of scale, the code length of the data to be upgraded (i.e. the number of frames), the timeout time.

7.代码数据帧的基本结构基站将来自网络管理系统NMS的升级代码数据(该数据已经按照对应的升级规模级别所定义的格式结构化)进行分帧处理,参考帧结构如下: 7. The basic configuration of base station frame code data to the code data upgrade from a network management system NMS (the format of the data has been structured in accordance with the size of the level corresponding to the defined upgrade) for framing process, the reference frame structure is as follows:

8.基站任务流程图和终端设备任务流程:如图4所示,是基站端的升级任务流程图,其中基站(BTS)接收到基站控制器(BSC)发送下来的升级代码下载数据后,启动一个终端软件升级模块,该模块的处理流程如图4所示。 The base station and terminal apparatus task task flow flowchart: shown in Figure 4, the base station is a flowchart upgrade tasks end, wherein the base station (BTS) receives a base station controller (BSC) sent down Codes upgrade data, a start terminal software upgrade module, the process flow block shown in FIG. 首先,在步骤41中对升级任务进行初始化,初始化处理主要包括,(1)构成下发的初始化帧;(2)分帧处理,将长度为X的代码数据才分成长度分别为N的M帧;(3)按照代码数据帧的格式,对每一个代码数据帧添加本次软件升级的代号和各帧唯一的序列号,并计算包括代码号、序列号和代码数据在内的CRC校验码,附在该帧的最后。 First, in step 41 upgrade task initialization, an initialization process including, (1) constituting issued initialization frame; (2) sub-frame processing, the length X of the code data only into lengths of N M frames ; (3) a data frame format according to the code, the code data for each frame and each frame code to add a unique serial number of this software upgrade, and comprising a code number is calculated, and the code data including the serial number of the CRC , attached to the last frame.

然后,在步骤42中,任务将通过判断当前时间与设置的有效升级时段来确定是否广播发送数据。 Then, in step 42, the task will be to determine whether the broadcast transmission data by determining a current time period and effective upgrading set. 时间设置可以包括:软件升级的起止日期,每天广播的时段(一般选择在业务量比较小的时段,如凌晨)。 Time settings may include: software upgrade beginning and ending dates, the broadcast times of day (typically a smaller traffic volume in the selected time period, such as in the morning). 如果是在有效日期的设定时段内,则在步骤43中首先发送初始化帧,然后在步骤44和45中将所有代码数据帧发送完毕;并且在有效的日期和发送时段内循环发送;如果是在有效日期的设定时间段以外或当前日期超出设定的日期后,在步骤46中,进程退出并复位相关的存储单元。 If within the set time period is a valid date, then transmits the initialization frame first in step 43, then frame transmission is completed in step 44 and 45 will all code data; and transmission cycle in the transmission period and a valid date; if outside the set period of time after the expiration date or the current date exceeds the date set, in step 46, and exits the process resets the relevant memory cell.

如图5所示,是本发明的终端流程图,其中在步骤51中,当终端接收到来自广播信道的一个软件升级初始化帧后,在步骤52中,通过解码该初始化帧得到本次软件升级的条件,包括产品厂商编号、产品型号、软件版本号等,并在步骤53中确定是否属于本终端升级的范围,当这些条件与本机存储的信息相符时,则本机属于本次软件升级的范围,并在步骤54中,开始初始化升级进程(即初始化进程控制表和代码记录表),然后在步骤55中设置进程控制表的当前状态为代码下载状态。 5 is a flowchart of a terminal according to the present invention, wherein in the step 51, when the terminal receives a software upgrade initialization frame from the broadcast channel, in step 52, the frame obtained by decoding the initialization of this software upgrade conditions, including product manufacturer number, product type, software version number, etc., and determine whether the present terminal upgraded range in step 53, when these conditions are consistent with the information stored in the computer, the machine is subject to this software upgrade range, and in step 54, the upgrade process starts initialization (i.e., initialization process control table, and records the code table), then the process in step 55 is provided for controlling the current condition table codes state.

在步骤56的代码下载状态中,终端分析接收每一个代码帧,当接收帧正确时,通过帧序列号检查该帧在代码记录表中是否已经存在,如果还没有,则将该帧写入记录表,并置对应的Flag为1;如果该帧代码已经正确记录在代码表中,则抛弃接收的数据,进入接收下一帧。 Codes in the state of step 56, the terminal analyzes the received code for each frame, when a frame is received correctly, the frame sequence number of the frame check code is recorded already exists in the table, if not, then the frame is written record table, and set the corresponding Flag to 1; if the frame code has been correctly recorded in the code table, discarding the received data into the receive the next frame. 当所有代码帧都接收正确后,在步骤57中将进程控制表的当前状态设置为内部处理状态。 When all the code frames are received correctly, step 57 in the process control table is set to the current state of the internal processing state.

在步骤58的内部升级处理步骤中,实现软件的真正升级,即软件升级管理模块利用下载的代码覆盖原来的代码,或者添加到原来的代码中。 In step inside the upgrade process in step 58, the software upgrade true, i.e., the management module software upgrade downloaded code coverage using the original code, or added to the original code. 如果在升级操作的中间,进程被中断,则在下一次进程启动时,重新执行覆盖或添加操作,而不管上一次操作被中断的位置。 If in the middle of the upgrade, the process is interrupted, when a process starts next, re-run coverage or add operation, regardless of the previous operation was interrupted position. 当升级处理顺利完成后,将软件版本号更新为当前的版本号,进入复位状态。 After the successful completion of the upgrade process, the software version number of the update to the current version number, enter the reset state.

在步骤59的复位步骤里,进程将清除并释放下载代码记录表,将进程控制表复位,回到初始化状态,等待下一次满足条件的升级任务。 In step reset step 59, the process will clear the record and release download the code table, the process control table reset back to the initialization state, waiting for the next upgrade tasks to meet the conditions.

本发明还提供了一种可实现终端软件空中升级的无线通信系统,如图1所示,包括网络管理系统11、基站控制器12、基站13及每个基站上的多个用户终端14,其中,网络管理系统管理待升级的软件代码,该网络管理系统将该软件代码升级到各个基站控制器,基站控制器将待升级的软件代码转发到其从属的基站,基站通过广播信道将软件代码广播到多个用户终端上,实现空中自动软件升级。 The present invention further provides a wireless communication system that can realize the air terminal software upgrade, shown in Figure 1, comprises a network management system 11, the base station controller 12, base station 13 and a plurality of user terminals 14 on each base station, wherein , the network management system management software code to be upgraded, the upgrade of the network management software code to each base station controller software code to be upgraded is forwarded to its subordinate base stations, the base station through a broadcast channel to broadcast the software code to a plurality of user terminals, automatic air software upgrades.

如图6所示,本发明的基站端包括一升级代码存储器61,用于存储由基站控制器传送来的待升级软件代码;一成帧处理模块62,用于形成初始化数据帧和将待升级的软件代码分割成多个代码数据帧;一帧数据存储器63,用于存储该成帧处理模块形成的初始化数据帧和代码数码帧;一日期时间设定控制模块64,用于设定软件升级的有效起止日期和广播升级代码的时段;一广播模块,用于将帧数据存储器中的初始化数据帧和多个代码帧在有效的日期和时段内通过广播信道循环广播到该基站覆盖的小区。 6, the base station side according to the present invention comprises a code memory 61 upgrade, upgrade the software code is stored to be used by the base station controller is transmitted; a framing processing module 62, initialization data for forming a frame to be upgraded and software code frames into a plurality of code data; a data memory 63, the initialization data frame and the frame framing the digital codes formed for storing processing module; a control module 64 to set the date and time, for setting a software upgrade effective start and end dates and times of broadcast upgrade code; a broadcasting module, initialization data for the data frames and a plurality of memory frames in the code valid date and time of the cell cycle to broadcast station by a broadcast channel coverage.

如图7所示,本发明的无线用户终端包括一接收模块71,用于从广播信道接收由基站广播的初始化数据帧和代码数据帧;一本机数据存储器73,用于存储本机参数,包括本机软件版本号,本机产品厂商编号,本机产品信号;一代码记录表74,用于存储接收模块接收到的多个代码数据帧,其数据格式为帧序列号、下载标记和代码数据;一升级进程控制表75,用于记录升级进程中的各种状态数据,包括本次软件升级代号,本次软件升级的级别码,本次软件升级后的版本号,下载代码的长度(帧数),当前软件升级所处的状态,本次升级的超时时间;一分析处理模块72,用于解码接收到的初始化数据帧,并根据解码结果与该本机数据存储器中的信息进行比较,确认本机是否属于本次软件升级的范围,并负责初始化升级进程控制表75和代码记录表74;一升级控制模 As shown in FIG. 7, the wireless user terminal according to the present invention comprises a receiving module 71 for receiving data from the base station and code initialization data frames broadcasted from the broadcast channel frame; a machine data memory 73, storing parameters for the machine, the machine comprises a software version number, manufacturer ID of this machine, the machine product signal; a code recording sheet 74, the receiving module for storing a plurality of code data of the received frame, the data format of a frame sequence number, and a download flag codes transactions; a table 75 control the upgrade process, various conditions for recording data upgrade process, including software upgrades this code, this code level of software upgrade, the current version number of the software update, downloaded the code length ( frames), in which the current state of a software upgrade, the upgrade timeout period; an evaluation module 72, initialization data for decoding the received frame, and compares to the decoding result based on the information present in the data storage unit , to confirm whether the unit scope of this software upgrade, and the upgrade process responsible for initializing code recording control table 75 and table 74; a control mode upgrade 76,用于控制软件升级的整个过程,将本机软件代码升级为代码记录表中的待升级代码,并负责保证这两部分数据之一是完整的。 76, for controlling the entire process of software upgrade, the upgraded software code to native code recording the code table to be upgraded, and is responsible for one of the two parts to ensure that the data is intact.

由上所述,本发明的终端软件空中升级的方法和系统,具有如下优点:1.本发明所提出的基于空中升级的终端软件自动升级思想,可以解决现有无线个人通信系统中,由于终端数目庞大、分散,而无法实现对终端软件实现升级,提升系统性能,改进服务质量的目的,从而充分发挥软件无线电在数字无线通信系统中的作用;2.本发明所设计的软件升级分级处理,可以提高软件自动升级控制的灵活性和效率;3.本发明所设计的各个基站采用空中广播信道分别周期性地循环发送升级代码数据的方法,既能提高效率,又能有效地支持对终端状态的不确定性的处理策略;4.本发明所设计的分帧校验、无序接收机制和对终端状态的不确定性处理策略,实现了空中代码升级的有效性和完整性保证。 From the above, a method and system for terminal software upgrade the air present invention has the following advantages: 1. The present invention is proposed by the terminal software to automatically upgrade the air Escalation based, can solve the conventional wireless personal communication system, since the terminal the number of large dispersion, can not be achieved to realize the terminal software upgrades, to improve system performance, the purpose of improving the quality of service, to maximize the role of software radio in a digital wireless communication system; 2 designed according to the present invention, software upgrade classification treatment, automatic software update control can improve flexibility and efficiency; 3 each base station of the present invention is designed in-air broadcast channels are periodically circulating code data upgrade method for transmitting, to enhance efficiency, and can effectively support the terminal state uncertainty processing strategy; 4 designed according to the invention a frame check points, random mechanism for receiving and processing strategies uncertainty of state of the terminal, to achieve the effectiveness and integrity assurance code upgrade the air.

5.本发明所提供的终端软件升级管理模块的设计思路,能有效地确保终端软件的安全升级;6.发明所设计的初始化帧和代码数据帧基本结构,可以有效地控制处于同一无线个人通信系统的不同厂商、不同系列、不同版本的终端软件升级。 Design ideas terminal software upgrading module 5. The present invention provides, effective in ensuring the safety of the terminal software upgrade; 6 initialization code data frames and the frame structure of the basic design of the invention, can be effectively controlled in the same wireless personal communication systems of different manufacturers, different series, different versions of the terminal software upgrade.

以上所述,仅是本发明的较佳实施例,所有依本发明内容所作出的等效变换,均包含在本发明的专利范围内。 The above are only preferred embodiments of the present invention, all equivalent transformation made under this Summary, are included within the scope of the present invention.

Claims (13)

1.一种可实现终端软件自动升级的无线通信系统,包括网络管理系统、基站控制器、基站及每个基站上的多个用户终端,其特征在于,网络管理系统管理待升级的软件代码,该网络管理系统将该软件代码分发到各个基站控制器,基站控制器将待升级的软件代码转发到其从属的基站,基站通过广播信道将软件代码广播到多个用户终端上,实现空中自动软件升级。 1. A wireless communication system terminal automatic software upgrade, comprising a plurality of user terminals on a network management system, a base station controller, a base station and each base station, wherein the network management system management software code to be upgraded, the network management system software code distributed to the respective base station controller software code to be upgraded is forwarded to its subordinate base stations, the base station through a broadcast channel to broadcast the software code to a plurality of user terminals, the software automatically air upgrade.
2.如权利要求1所述的无线通信系统,其特征在于,该基站包括:一升级代码存储器,用于存储由基站控制器传送来的待升级软件代码;一成帧处理模块,用于形成初始化数据帧和将待升级的软件代码分割成多个代码数据帧;一帧数据存储器,用于存储该成帧处理模块形成的初始化数据帧和代码数码帧;一日期时间设定控制模块,用于设定软件升级的有效起止日期和广播升级代码的时段;一广播模块,用于将帧数据存储器中的初始化数据帧和多个代码帧在有效的日期和时段内通过广播信道循环广播到该基站覆盖的小区。 2. The wireless communication system according to claim 1, characterized in that the base station comprising: a code memory upgrades for software upgrade code is stored to be transmitted from the base station to the controller; a framing processing module, for forming initialization data frame and software code to be upgraded code data into a plurality of frames; a data memory initialization data frame and the frame framing the digital codes formed for storing processing module; a date and time setting control module, with effective software upgrade to the set start and end dates of broadcasting and upgrade code period; a broadcast module, initialization data for the data frames and a plurality of memory frames in the code valid date and time via the broadcast channel to the broadcast cycle the base station cell coverage.
3.如权利要求2所述的无线通信系统,其特征在于,该初始化数据帧依次包括本次软件升级的代号,终端厂商代号,终端型号,现有终端软件版本号,升级后的软件版本号,本次升级的规模级别,待升级代码数据的长度,超时时间。 3. The wireless communication system according to claim 2, characterized in that, the initialization sequence comprises a data frame of this software upgrade code, the terminal code of the vendor, terminal model, the existing terminal software version number, the version number of the software upgrade , the size of the upgrade level, the length of the code data to be upgraded, timeout.
4.如权利要求2所述的无线通信系统,其特征在于,该代码数据帧依次包括本次升级的代号,本帧数据唯一的序列号,代码数据,CRC校验码。 The wireless communication system as claimed in claim 2 frame data unique serial number, code data, CRC check code, characterized in that the frame code data sequence comprising this upgrade code.
5.如权利要求1所述的无线通讯系统,其特征在于,该用户终端包括:一接收模块,用于从广播信道接收由基站广播的初始化数据帧和代码数据帧;一本机数据存储器,用于存储本机参数,包括本机软件版本号,本机产品厂商编号,本机产品信号;一代码记录表,用于存储接收模块接收到的多个代码数据帧,其数据格式为帧序列号、下载标记和代码数据;一升级进程控制表,用于记录升级进程中的各种状态数据,包括本次软件升级代号,本次软件升级的级别码,本次软件升级后的版本号,下载代码的长度(帧数),当前软件升级所处的状态,本次升级的超时时间;一分析处理模块,用于解码接收到的初始化数据帧,并根据解码结果与该本机数据存储器中的信息进行比较,确认本机是否属于本次软件升级的范围,并负责初始化升级进程控制表和代码记录 5. The wireless communication system according to claim 1, wherein the user terminal comprises: a receiving module for receiving data from the base station and code initialization data frames broadcasted from the broadcast channel frame; a data storage unit, storing parameters for the machine, the machine including the software version number, manufacturer ID of this machine, the machine product signal; a code recording table for storing a plurality of code data frames received by the receiving module, the data format of a sequence of frames number, and download the markup code data; a control table the upgrade process, various conditions for recording data upgrade process, including software upgrades this code, this code level of software upgrade, the current version number of the software upgrade, download the code length (number of frames), in which the current state of the software upgrade, the upgrade timeout period; an analysis module configured to decode the received initialization data frames, and in accordance with the decoded result in the machine data memory the information is compared confirm if the unit belongs to the scope of this software upgrade, and the upgrade process is responsible for initializing and code control table records ;一升级控制模块,用于控制软件升级的整个过程,将本机软件代码升级为代码记录表中的待升级代码,并负责保证这两部分数据之一是完整的。 ; Upgrade a control module for controlling the entire process of software upgrade, the upgraded software code to native code recording the code table to be upgraded, and is responsible for one of the two parts to ensure that the data is intact.
6.一种无线通信系统中终端软件空中升级的方法,用于将升级软件由基站通过广播信道空中升级到用户终端,实现自动空中升级,其特征在于,包括如下步骤:基站对待升级的代码数据进行成帧处理;基站发送该成帧处理形成多个数据帧;用户终端从广播信道接收基站广播发送的多个数据帧;用户终端升级处理用户端软件。 A method for a wireless communication system, the air terminal software upgrades, software upgrades for the broadcast channel by a base station air update to the user terminal by automatically upgrade the air, characterized by comprising the steps of: treating the base station code data upgrade framing process; the base station transmits a plurality of data frames framing process; the user terminal receives the plurality of data frames transmitted from the base station broadcasts a broadcast channel; user terminal client software upgrade process.
7.如权利要求6所述的无线通信系统中终端软件空中升级的方法,其特征在于,在成帧处理步骤之前,还包括如下步骤:将升级代码数据导入网络管理系统;网络管理系统将该升级代码数据分发到各个基站控制器;基站控制器将该升级代码数据转发到所述的基站。 7. The wireless communication system according to claim 6 in the air terminal software upgrade method, wherein, prior to framing processing step, further comprising the steps of: introducing the upgrade code data network management system; the Network Management System upgrade code data distributed to the respective base station controller; upgrade code the base station controller to the base station of the data forwarding.
8.如权利要求6所述的无线通信系统中终端软件空中升级的方法,其特征在于,成帧处理步骤还进一步包括如下步骤:形成初始化数据帧,该初始化数据帧依次包括本次软件升级的代号,终端厂商代号,终端型号,现有终端软件版本号,升级后的软件版本号,本次升级的规模级别,待升级代码数据的长度,超时时间;形成代码数据帧,该代码数据帧依次包括本次升级的代号,本帧数据唯一的序列号,代码数据,CRC校验码。 8. The wireless communication system of claim 6 in a method of upgrading the terminal software air claim, wherein the processing step further framing further comprises the steps of: forming initial data frame, the initialization sequence comprises a data frame of this software upgrade code, the terminal code of the vendor, terminal model, the existing terminal software version number, the version number of the software upgrade, the upgrade level of scale, the code length of the data to be upgraded, timeout; forming frame code data, the code data frames sequentially the upgrade comprises a code, the present frame data unique serial number, code data, CRC checksum.
9.如权利要求8所述的无线通信系统中终端软件空中升级的方法,其特征在于,在基站发送数据帧之前,还包括如下步骤:判断当前日期和时间是否是有效的升级日期和发送时段;如果不是有效的升级日期和时间,则复位存储单元,结束升级;如果是有效的升级日期和时间,则基站通过广播信道发送所述的初始化帧和多个代码帧;循环发送该初始化数据帧和多个代码帧,直到当前时间超过设定的发送时段。 The wireless communication system of claim 8, the air terminal software upgrade method, wherein, before the base station transmits a data frame, further comprising the steps of: determining whether the current date and time and the date are valid transmission period upgrade ; if not valid update date and time, the storage unit is reset, the upgrade; if it is a valid update date and time, the base station transmits a plurality of initialization codes and frames of the frame through a broadcast channel; transmitting the initialization data frame loop and a plurality of code frames, transmission time period until the current exceeds the set.
10.如权利要求8所述的无线通信系统中终端软件空中升级的方法,其特征在于,还包括一用户终端判断是否属于本次升级范围的步骤,该步骤进一步包括如下步骤:解码初始化数据帧;比较解码得到的升级条件是否于本用户终端存储的本机信息一致;如果不属于本次升级的范围,则直接退出;如果属于本次升级的范围,则初始化升级进程控制表和代码记录表;设置升级进程控制表的进程状态为代码下载状态。 10. The wireless communication system of claim 8, the air terminal software upgrade method, wherein the user terminal further comprises a step of determining whether the present time belongs to the scope of the upgrade, the step further comprises the step of: decoding initialization data frame ; upgrade conditions are obtained by decoding whether the present user terminal stores the same native information; do not belong to this upgrade range, then exit; if they are this upgrade range, the initialization upgrade process control table and the code record table ; control the upgrade process to set the table for the download process status state.
11.如权利要求10所述的无线通信系统中终端软件空中升级的方法,其特征在于,该代码记录表用于存储接收到的多个代码数据帧,其数据格式为帧序列号、下载标记和代码数据;该升级进程控制表,用于记录升级进程中的各种状态数据,包括本次软件升级代号,本次软件升级的级别码,本次软件升级后的版本号,下载代码的长度,当前软件升级所处的状态,本次升级的超时时间。 The wireless communication system 11. The method of claim 10, wherein the terminal software upgrade the air, characterized in that, the code table for recording a plurality of codes stored in the received data frames, the data format of a frame sequence number, a download flag and code data; upgrade the process control table for recording various status data upgrade process, including software upgrades this code, this code level of software upgrade, the length of this version of the software upgrade, code download , in which the current state of software upgrades, this upgrade timeout.
12.如权利要求11所述的无线通信系统中终端软件空中升级的方法,其特征在于,该用户终端接收基站发送的多个数据帧的步骤还包括如下详细步骤:处理接收代码数据帧;根据接收帧的序列号读取代码记录表中的下载标记;如果该下载标记指示该帧已经正确接收,则丢弃当前接收到的数据;如果该下载标记指示该帧未被接收,则将代码数据写入代码记录表中与该序列号对应的代码数据单元中;设置该序列号对应的代码记录表中的下载标记为正确读取标志。 The wireless communication system as claimed in claim 11, wherein the air terminal software upgrade method, wherein the step of the base station transmits a plurality of data frames to the user terminal receives detailed further comprising the steps of: processing a received code data frames; The Download marker sequence code reader records the received frame in the table; if the download flag indicates that the frame has been received correctly, then discard the data currently received; if the download flag indicates that the frame was not received, then the code data write code data into the code recording table unit corresponding to the serial number; download flag set to the serial number code corresponding record in the table is correctly read flag.
13.如权利要求12所述的无线通信系统中终端软件空中升级的方法,其特征在于,用户终端升级处理用户端软件步骤还包括如下详细步骤:判断所有代码数据是否接收完毕;如果所有代码数据没有接收完毕,则返回代码接收步骤继续接收代码数据;如果所有代码数据接收完毕,则将升级状态控制表中的进程状态设置为内部处理状态;内部升级处理,将待升级代码替换原软件代码;将升级状态控制表中的进程状态设置为复位状态;复位进程控制表和代码记录表;将升级状态控制表中的进程状态设置为初始化状态。 The wireless communication system as claimed in claim 12, wherein the air terminal software upgrade method, wherein the user terminal UE software upgrade process further comprises the detailed steps of the step of: determining whether all code data has been received; if all code data not been received, then the return code reception step to continue to receive code data; if all code data has been received, then the upgrade state of the control process status table is set to the internal processing state; internal upgrade process, the code to be upgraded to replace the original software code; the state control table update process state is set to reset state; reset process control table and the code table records; the state control table update process state is set to the initialization state.
CN 02160289 2002-12-31 2002-12-31 Automatic upgrading method and system of wireless communications system terminal software CN1331365C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 02160289 CN1331365C (en) 2002-12-31 2002-12-31 Automatic upgrading method and system of wireless communications system terminal software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 02160289 CN1331365C (en) 2002-12-31 2002-12-31 Automatic upgrading method and system of wireless communications system terminal software

Publications (2)

Publication Number Publication Date
CN1457201A CN1457201A (en) 2003-11-19
CN1331365C true CN1331365C (en) 2007-08-08

Family

ID=29410451

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 02160289 CN1331365C (en) 2002-12-31 2002-12-31 Automatic upgrading method and system of wireless communications system terminal software

Country Status (1)

Country Link
CN (1) CN1331365C (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101539885B (en) 2009-04-23 2011-06-08 大唐微电子技术有限公司 Soft ware autonomous air upgrading method of wireless communication module, device and system thereof

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1320801C (en) * 2004-10-09 2007-06-06 中国工商银行股份有限公司 Computer auxilary security method and system
EP1830567A4 (en) * 2004-12-21 2011-05-18 Zte Corp A method for upgrading software in the teleconference video terminal
JP2007184753A (en) 2006-01-06 2007-07-19 Sony Corp Reception display system, receiving device, and display terminal
CN101047544B (en) 2006-03-28 2011-04-27 华为技术有限公司 Radio gradual network structure and its allocation method
CN101119143B (en) 2006-08-01 2012-04-18 华为技术有限公司 Tower amplifier software updating method and system and tower amplifier
CN100452724C (en) 2006-10-19 2009-01-14 杭州华三通信技术有限公司 Method and apparatus for automatic selecting staging time
CN101286867B (en) 2007-05-29 2011-10-05 深圳市同洲电子股份有限公司 Software updating method and system of network equipment
CN101217401B (en) 2008-01-10 2010-11-10 华为技术有限公司 Base station controller upgrade, backup method and device
CN101686139B (en) 2008-09-22 2012-05-23 华为终端有限公司 Method, device and system of multicast upgrading
CN101695162A (en) * 2009-10-22 2010-04-14 中兴通讯股份有限公司; Method and device for upgrading aerial firmware on mobile terminal
TWI464566B (en) * 2009-12-17 2014-12-11 Toshiba Kk Semiconductor system, semiconductor device, and electronic device initializing method
US8893112B2 (en) * 2009-12-21 2014-11-18 Intel Corporation Providing software distribution and update services regardless of the state or physical location of an end point machine
CN102244761A (en) * 2010-05-12 2011-11-16 中兴通讯股份有限公司 System and method for upgrading software of video conference terminal
CN102402437B (en) * 2010-09-09 2015-03-04 联想(北京)有限公司 Data processing equipment and download control method thereof
CN103514417B (en) * 2012-06-25 2017-07-14 天津中兴智联科技有限公司 Method version information of an electronic tag updated equipment and systems
CN102833686A (en) * 2012-07-13 2012-12-19 中广传播集团有限公司 Over-the-air upgrading and loading method for terminal software
CN102799454B (en) * 2012-07-13 2018-05-01 中广传播集团有限公司 A method for the air terminal software upgrade and loading
CN106713047A (en) * 2017-01-12 2017-05-24 泰凌微电子(上海)有限公司 Node upgrading method and system in mesh network

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1082783A (en) * 1992-07-31 1994-02-23 莫托罗拉公司 Method and apparatus for over-the-air upgrading of radio modem application software
CN1249112A (en) * 1997-02-26 2000-03-29 艾利森电话股份有限公司 Method and apparatus for remotely upgrading control software in a cellular telephone
US6308061B1 (en) * 1996-08-07 2001-10-23 Telxon Corporation Wireless software upgrades with version control
CN1472970A (en) * 2002-07-29 2004-02-04 联想(北京)有限公司 Method for upgrading solid device of wireless communiation modules in use

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1082783A (en) * 1992-07-31 1994-02-23 莫托罗拉公司 Method and apparatus for over-the-air upgrading of radio modem application software
US6308061B1 (en) * 1996-08-07 2001-10-23 Telxon Corporation Wireless software upgrades with version control
CN1249112A (en) * 1997-02-26 2000-03-29 艾利森电话股份有限公司 Method and apparatus for remotely upgrading control software in a cellular telephone
CN1472970A (en) * 2002-07-29 2004-02-04 联想(北京)有限公司 Method for upgrading solid device of wireless communiation modules in use

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101539885B (en) 2009-04-23 2011-06-08 大唐微电子技术有限公司 Soft ware autonomous air upgrading method of wireless communication module, device and system thereof

Also Published As

Publication number Publication date
CN1457201A (en) 2003-11-19

Similar Documents

Publication Publication Date Title
US7190952B2 (en) Wireless communication apparatus, wireless communication network and software upgrading method
CN1168329C (en) Cellular radiotelephone system with remote programmable moving station
JP4607260B2 (en) Method and apparatus for updating mobile unit
CN101674170B (en) Method for processing received communication and user equipment
CN100477850C (en) Method and system for maximizing standby time in monitoring control channel
US8364159B2 (en) Method and apparatus for monitoring a channel during an active session in a wireless communication system
CN1082326C (en) Power saving in cellular dadiotelephone apparatus
CA2318293C (en) Method for terminal assisted menu presentation of value added services in mobile communication systems
KR100771335B1 (en) A communication control method and wireless communication apparatus
US20040068721A1 (en) Network for updating firmware and / or software in wireless communication devices
US9031550B2 (en) Method for configuring a radio terminal through a radio communication network, related network and computer program product therefor
US6493549B1 (en) Over the air parameter administration for mobile telecommunications stations
US20060200658A1 (en) Agent framework for mobile devices
US7752618B2 (en) Apparatus and method for remote DLL linking of software upgrades for a wireless mobile station
US20120015642A1 (en) Firmware update method for mobile terminal and mobile terminal using the same
US6615038B1 (en) System and method for automatically creating and updating a mobile station configuration database in a wireless network
US8572597B2 (en) Apparatus and method for performing an over-the-air software update in a dual processor mobile station
US7149508B2 (en) System and method for delta-based over-the-air software upgrades for a wireless mobile station
US8875116B2 (en) Network for updating firmware and / or software in wireless communication devices
EP0820614B1 (en) Remote patching of operating code in a mobile unit
CN1305331C (en) Method for realizing handover step of general purpose global wireless access network inner-system
US20020086688A1 (en) Method for processing messages in a cellular base station system
EP0959635A1 (en) Connectionless downloading of software to wireless terminals
KR100566224B1 (en) Apparatus and method for upgrading software of a wireless mobile station
US6618589B1 (en) Method for performing cell and URA updates in a radio access network

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C14 Grant of patent or utility model
ERR Gazette correction
PLDC Enforcement, change and cancellation of contracts on pledge of patent right or utility model