CN111190628B - Base station upgrading method, device, equipment and storage medium - Google Patents
Base station upgrading method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN111190628B CN111190628B CN201911420254.8A CN201911420254A CN111190628B CN 111190628 B CN111190628 B CN 111190628B CN 201911420254 A CN201911420254 A CN 201911420254A CN 111190628 B CN111190628 B CN 111190628B
- Authority
- CN
- China
- Prior art keywords
- base station
- file
- upgrade
- version
- software version
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0608—Saving storage space on storage systems
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0646—Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
- G06F3/0652—Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
- G06F3/0673—Single storage device
- G06F3/0679—Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Software Systems (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
技术领域Technical field
本申请涉及移动通信技术领域,特别是涉及了一种基站升级方法、装置、设备和存储介质。The present application relates to the field of mobile communication technology, and in particular, to a base station upgrade method, device, equipment and storage medium.
背景技术Background technique
基站作为无线通讯中的重要组成环节,在基站的运营和维护过程中,通常会新增基站的功能,或者修复基站现有软件缺陷,新增功能或修复软件缺陷时,需要对基站进行版本升级。Base stations are an important part of wireless communications. During the operation and maintenance of base stations, new base station functions are usually added, or existing software defects of the base station are repaired. When new functions are added or software defects are repaired, the base station needs to be upgraded. .
在对基站进行版本升级时,通常服务器会向基站发送升级压缩包,基站接收到上述升级压缩包之后,通过解压上述升级压缩包得到升级文件,实现基站的升级。然而,一些存储量小的基站,例如分布式基站、企业级基站和家庭网关等小基站,其内存空间较小。当上述小基站的语音业务和数据业务占用大量内存空间,需要对上述小基站进行升级时,容易出现内存空间不够而导致的升级失败。When upgrading the version of the base station, the server usually sends an upgrade compressed package to the base station. After receiving the upgrade compressed package, the base station decompresses the upgrade compressed package to obtain the upgrade file, thereby upgrading the base station. However, some base stations with small storage capacity, such as small base stations such as distributed base stations, enterprise base stations, and home gateways, have smaller memory spaces. When the voice service and data service of the above-mentioned small base station occupy a large amount of memory space, and the above-mentioned small base station needs to be upgraded, the upgrade may fail due to insufficient memory space.
发明内容Contents of the invention
基于此,有必要针对升级基站时容易出现内存空间不够而导致的升级失败的问题,提供了一种基站升级方法、装置、设备和存储介质。Based on this, it is necessary to provide a base station upgrade method, device, equipment and storage medium in order to solve the problem of upgrade failure caused by insufficient memory space when upgrading the base station.
第一方面,一种基站升级方法,该方法包括:In a first aspect, a base station upgrade method includes:
在接收到服务器发送的升级请求时,删除专业镜像文件;专业镜像文件为基站上电启动时解压得到的文件;When receiving the upgrade request sent by the server, delete the professional image file; the professional image file is the file decompressed when the base station is powered on and started;
向服务器发送下载请求;下载请求用于指示获取基站升级所需的升级文件;Send a download request to the server; the download request is used to indicate obtaining the upgrade files required for base station upgrade;
接收服务器根据下载请求返回的升级文件,并根据升级文件升级基站。Receive the upgrade file returned by the server based on the download request, and upgrade the base station based on the upgrade file.
在其中一个实施例中,上述接收到服务器发送的升级请求之后,该方法还包括:In one embodiment, after receiving the upgrade request sent by the server, the method further includes:
转移基站的当前业务;Transfer the current business of the base station;
删除当前业务对应的协议栈进程,释放协议栈进程对应的内存空间。Delete the protocol stack process corresponding to the current service and release the memory space corresponding to the protocol stack process.
在其中一个实施例中,上述转移基站的当前业务包括:In one embodiment, the current services of the transfer base station include:
若当前业务为数据传输任务,将基站的当前数据传输任务切换至其他基站;If the current business is a data transmission task, switch the current data transmission task of the base station to another base station;
若当前业务为用户终端接入基站,将用户终端接入其他基站。If the current service is for the user terminal to access the base station, connect the user terminal to other base stations.
在其中一个实施例中,上述转移基站的当前业务之后,该方法包括:In one embodiment, after the above-mentioned transfer of the current service of the base station, the method includes:
获取当前业务接入其他基站的接入信息;Obtain the access information of the current service to other base stations;
若接入信息指示当前业务成功接入其他基站,根据升级文件升级基站。If the access information indicates that the current service is successfully connected to other base stations, upgrade the base station according to the upgrade file.
在其中一个实施例中,该方法还包括:In one embodiment, the method further includes:
关闭协议栈进程的告警开关。Turn off the alarm switch of the protocol stack process.
在其中一个实施例中,上述根据升级文件升级基站,包括:In one embodiment, the above-mentioned upgrade of the base station according to the upgrade file includes:
获取升级文件的配置信息,配置信息用于指示升级文件对应的软件版本;Obtain the configuration information of the upgrade file. The configuration information is used to indicate the software version corresponding to the upgrade file;
若升级文件的软件版本与基站的当前软件版本不一致,则根据升级文件升级基站。If the software version of the upgrade file is inconsistent with the current software version of the base station, upgrade the base station according to the upgrade file.
在其中一个实施例中,上述配置信息还用于指示升级文件对应的设备型号;根据升级文件升级基站还包括:In one embodiment, the above configuration information is also used to indicate the device model corresponding to the upgrade file; upgrading the base station according to the upgrade file also includes:
若升级文件对应的设备型号与基站的设备型号匹配时,根据升级文件升级基站。If the device model corresponding to the upgrade file matches the device model of the base station, upgrade the base station according to the upgrade file.
在其中一个实施例中,升级文件为压缩文件,上述根据升级文件升级基站包括:In one embodiment, the upgrade file is a compressed file. Upgrading the base station according to the upgrade file includes:
解压升级文件,得到解压后的升级文件;Unzip the upgrade file and obtain the decompressed upgrade file;
根据解压后的升级文件升级基站。Upgrade the base station according to the decompressed upgrade file.
在其中一个实施例中,上述根据升级文件升级基站,包括:In one embodiment, the above-mentioned upgrade of the base station according to the upgrade file includes:
通过升级文件更新基站版本,得到更新后的基站版本;Update the base station version through the upgrade file to obtain the updated base station version;
更新基站的运行参数,得到更新后的运行参数;Update the operating parameters of the base station and obtain the updated operating parameters;
通过调用更新后的运行参数,运行更新后的基站版本。Run the updated base station version by calling the updated operating parameters.
在其中一个实施例中,上述通过升级文件升级基站版本,得到更新后的基站版本之前,该方法还包括:In one embodiment, before upgrading the base station version through the upgrade file and obtaining the updated base station version, the method further includes:
将基站的初始运行参数存储在备份区域;初始运行参数为基站在升级前运行时所调用的参数;Store the initial operating parameters of the base station in the backup area; the initial operating parameters are the parameters called when the base station was running before the upgrade;
对应地,更新基站的运行参数,得到更新后的运行参数,包括:Correspondingly, update the operating parameters of the base station to obtain updated operating parameters, including:
调用初始运行参数,对初始运行参数进行更新,得到更新后的运行参数。Call the initial operating parameters, update the initial operating parameters, and obtain the updated operating parameters.
在其中一个实施例中,升级文件包括应用层版本文件、内核版本文件和根文件中的至少一种;其中,升级应用层版本的优先级最低,内核版本文件的优先级最高。In one embodiment, the upgrade file includes at least one of an application layer version file, a kernel version file, and a root file; wherein, upgrading the application layer version has the lowest priority, and the kernel version file has the highest priority.
在其中一个实施例中,该方法还包括:In one embodiment, the method further includes:
获取应用层版本文件、内核版本文件和根文件的配置信息,应用层版本文件的配置信息用于指示应用层版本文件的软件版本,内核版本文件的配置信息用于指示内核版本文件的软件版本,根文件的配置信息用于指示根文件的软件版本;Obtain the configuration information of the application layer version file, kernel version file and root file. The configuration information of the application layer version file is used to indicate the software version of the application layer version file. The configuration information of the kernel version file is used to indicate the software version of the kernel version file. The configuration information of the root file is used to indicate the software version of the root file;
根据应用层版本文件、内核版本文件和根文件的配置信息升级基站。Upgrade the base station according to the configuration information of the application layer version file, kernel version file and root file.
在其中一个实施例中,上述根据应用层版本文件、内核版本文件和根文件的配置信息升级基站,包括:In one embodiment, the above-mentioned upgrade of the base station based on the configuration information of the application layer version file, kernel version file and root file includes:
若应用层版本文件的软件版本、内核版本文件的软件版本和根文件的软件版本中的一个或几个与基站当前的对应软件版本一致,则删除升级文件中与基站当前的对应软件版本一致的软件版本,并根据升级文件中剩余的版本文件升级基站。If one or more of the software version of the application layer version file, the software version of the kernel version file, and the software version of the root file are consistent with the current corresponding software version of the base station, delete the software version in the upgrade file that is consistent with the current corresponding software version of the base station. software version, and upgrade the base station based on the remaining version files in the upgrade file.
第二方面,一种基站升级装置,该装置包括:In a second aspect, a base station upgrade device includes:
删除模块,用于在接收到服务器发送的升级请求时,删除专业镜像文件;专业镜像文件为基站上电启动时解压得到的文件;The deletion module is used to delete the professional image file when receiving an upgrade request sent by the server; the professional image file is a file decompressed when the base station is powered on and started;
请求模块,用于向服务器发送下载请求;下载请求用于指示获取基站升级所需的升级文件;The request module is used to send a download request to the server; the download request is used to instruct to obtain the upgrade file required for base station upgrade;
升级模块,用于接收服务器根据下载请求返回的升级文件,并根据升级文件升级基站。The upgrade module is used to receive the upgrade file returned by the server based on the download request, and upgrade the base station based on the upgrade file.
第三方面,一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现上述基站升级方法所述的方法步骤。In a third aspect, a computer device includes a memory and a processor. The memory stores a computer program. When the processor executes the computer program, it implements the method steps described in the above base station upgrade method.
第四方面,一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述基站升级方法所述的方法步骤。A fourth aspect is a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method steps described in the above base station upgrade method are implemented.
上述基站升级方法、装置、设备和存储介质,在接收到服务器发送的升级请求时,删除专业镜像文件,其中,专业镜像文件为基站上电启动时解压得到的文件,进而服务器发送下载请求,其中,下载请求用于指示获取基站升级所需的升级文件,再接收服务器根据下载请求返回的升级文件,并根据升级文件升级基站,使得在基站在接收服务器返回的升级文件之前,已经删除了专业镜像文件,释放出专业镜像文件对应的内存空间,避免了内存空间不够的情况,进而避免了内存空间不够导致升级失败的问题。The above-mentioned base station upgrade method, device, equipment and storage medium delete the professional image file when receiving the upgrade request sent by the server. The professional image file is a file decompressed when the base station is powered on and started, and then the server sends a download request, where , the download request is used to instruct to obtain the upgrade file required for base station upgrade, then receive the upgrade file returned by the server according to the download request, and upgrade the base station according to the upgrade file, so that the professional image has been deleted before the base station receives the upgrade file returned by the server. file, releasing the memory space corresponding to the professional image file, avoiding the situation of insufficient memory space, and thus avoiding the problem of insufficient memory space causing upgrade failure.
附图说明Description of the drawings
图1为一个实施例中基站升级方法的应用环境的示意图;Figure 1 is a schematic diagram of the application environment of the base station upgrade method in one embodiment;
图2为一个实施例中基站升级方法的流程示意图;Figure 2 is a schematic flowchart of a base station upgrade method in an embodiment;
图3为另一个实施例中基站升级方法的流程示意图;Figure 3 is a schematic flowchart of a base station upgrade method in another embodiment;
图4为另一个实施例中基站升级方法的流程示意图;Figure 4 is a schematic flow chart of a base station upgrade method in another embodiment;
图5为另一个实施例中基站升级方法的流程示意图;Figure 5 is a schematic flowchart of a base station upgrade method in another embodiment;
图6为另一个实施例中基站升级方法的流程示意图;Figure 6 is a schematic flowchart of a base station upgrade method in another embodiment;
图7为另一个实施例中基站升级方法的流程示意图;Figure 7 is a schematic flowchart of a base station upgrade method in another embodiment;
图8为另一个实施例中基站升级方法的流程示意图;Figure 8 is a schematic flow chart of a base station upgrade method in another embodiment;
图9为另一个实施例中基站升级方法的流程示意图;Figure 9 is a schematic flowchart of a base station upgrade method in another embodiment;
图10为一个实施例中提供的基站升级装置的结构示意图;Figure 10 is a schematic structural diagram of a base station upgrade device provided in one embodiment;
图11为另一个实施例中提供的基站升级装置的结构示意图;Figure 11 is a schematic structural diagram of a base station upgrade device provided in another embodiment;
图12为另一个实施例中提供的基站升级装置的结构示意图;Figure 12 is a schematic structural diagram of a base station upgrade device provided in another embodiment;
图13为另一个实施例中提供的基站升级装置的结构示意图;Figure 13 is a schematic structural diagram of a base station upgrade device provided in another embodiment;
图14为一个实施例中计算机设备的内部结构图。Figure 14 is an internal structure diagram of a computer device in one embodiment.
具体实施方式Detailed ways
本申请提供的基站升级方法、装置、设备和存储介质,旨在解决小基站进行升级时,容易出现内存空间不够而导致的升级失败的问题。下面将通过实施例并结合附图具体地对本申请的技术方案以及本申请的技术方案如何解决上述技术问题进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。The base station upgrade method, device, equipment and storage medium provided by this application are designed to solve the problem of upgrade failure caused by insufficient memory space when small base stations are upgraded. The technical solution of the present application and how the technical solution of the present application solves the above technical problems will be described in detail below through embodiments and in conjunction with the accompanying drawings. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.
本实施例提供的基站升级方法,可以适用于如图1所示的应用环境中。其中基站102通过网络与服务器104进行通信。基站102可以但不限于是分布式基站、企业级基站和家庭网关。服务器104可以可以用独立的服务器或者是多个服务器组成的服务器集群来实现。The base station upgrade method provided in this embodiment can be applied to the application environment as shown in Figure 1. The base station 102 communicates with the server 104 through the network. The base station 102 may be, but is not limited to, a distributed base station, an enterprise-level base station, and a home gateway. The server 104 can be implemented as an independent server or a server cluster composed of multiple servers.
需要说明的是,本申请实施例提供的基站升级方法,其执行主体可以是基站升级装置,该装置可以通过软件、硬件或者软硬件结合的方式实现成为基站升级的终端部分或者全部。It should be noted that the execution subject of the base station upgrade method provided by the embodiments of the present application may be a base station upgrade device. The device may be implemented as part or all of the terminal for base station upgrade through software, hardware, or a combination of software and hardware.
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments These are part of the embodiments of this application, but not all of them.
图2为一个实施例中基站升级方法的流程示意图。本实施例涉及的是如何通过删除专业镜像文件来实现基站升级的具体过程。如图2所示,该方法包括以下步骤:Figure 2 is a schematic flowchart of a base station upgrade method in an embodiment. This embodiment involves the specific process of how to upgrade the base station by deleting professional image files. As shown in Figure 2, the method includes the following steps:
S101、在接收到服务器发送的升级请求时,删除专业镜像文件;专业镜像文件为基站上电启动时解压得到的文件。S101. When receiving the upgrade request sent by the server, delete the professional image file; the professional image file is a file decompressed when the base station is powered on and started.
其中,当需要升级基站时,服务器向基站发送升级请求。当基站接收到上述升级请求时,可以删除专业镜像文件。其中,专业镜像文件可以是基站上电启动时解压得到的文件,其可以是基站中应用程序的安装文件,也可以是基站上一次升级时的升级文件,本申请实施例对此不做限制。专业镜像文件通过是在基站上电启动是解压得到的文件,而基站完成升级后,一般都需要上电重启,在升级完成后,基站会自动的再次解压得到专业镜像文件,因此,在基站升级时删除上述专业镜像文件并不影响基站的正常使用。一般而言,上述专业镜像文件通常会占用40MB左右的内存空间,通过删除上述专业镜像文件,可以释放出40MB左右的内存空间。When the base station needs to be upgraded, the server sends an upgrade request to the base station. When the base station receives the above upgrade request, it can delete the professional image file. The professional image file can be a file decompressed when the base station is powered on, it can be an installation file for an application in the base station, or it can be an upgrade file from the last upgrade of the base station. The embodiments of this application do not limit this. The professional image file is a file obtained by decompressing the base station when it is powered on. After the base station is upgraded, it generally needs to be powered on and restarted. After the upgrade is completed, the base station will automatically decompress it again to obtain the professional image file. Therefore, it is necessary to upgrade the base station. Deleting the above professional image files will not affect the normal use of the base station. Generally speaking, the above-mentioned professional image files usually occupy about 40MB of memory space. By deleting the above-mentioned professional image files, about 40MB of memory space can be released.
S102、向服务器发送下载请求;下载请求用于指示获取基站升级所需的升级文件。S102. Send a download request to the server; the download request is used to instruct to obtain the upgrade file required for base station upgrade.
其中,基站在删除上述专业镜像文件之后,确认上述专业镜像文件对应的内存空间已经被释放,其中,该内存空间可以是随机存取存储器(random-access memory,ram)空间。基站中存在可以用于升级基站的内存空间时,基站可以向服务器发送用于指示获取基站升级所需的升级文件的下载请求。一般而言,例如,升级文件在28MB左右。After deleting the above-mentioned professional image file, the base station confirms that the memory space corresponding to the above-mentioned professional image file has been released, wherein the memory space may be a random-access memory (random-access memory, ram) space. When there is memory space in the base station that can be used to upgrade the base station, the base station can send a download request to the server indicating to obtain an upgrade file required for base station upgrade. Generally speaking, for example, the upgrade file is around 28MB.
S103、接收服务器根据下载请求返回的升级文件,并根据升级文件升级基站。S103. Receive the upgrade file returned by the server according to the download request, and upgrade the base station according to the upgrade file.
其中,当服务器接收到基站发送的下载请求之后,可以向基站返回对应的升级文件,基站可以通过开启ftp服务器,接收服务器返回的升级文件。当接收到上述升级文件时,可以将上述升级文件缓存在原专业镜像文件对应的内存空间中,并在接收升级文件完成时,根据升级文件升级基站。在具体的根据升级文件升级基站时,可以先判断升级文件升级的版本是否是本次要升级的版本,并在确认升级版本正确时,再升级基站;也可以是先升级基站的内核版本和根文件版本,再升级应用层版本,本申请实施例对此不做限制。Among them, when the server receives the download request sent by the base station, it can return the corresponding upgrade file to the base station. The base station can receive the upgrade file returned by the server by opening the ftp server. When the above upgrade file is received, the above upgrade file can be cached in the memory space corresponding to the original professional image file, and when the upgrade file is received, the base station is upgraded according to the upgrade file. When upgrading the base station based on the upgrade file, you can first determine whether the upgraded version of the upgrade file is the version to be upgraded this time, and then upgrade the base station after confirming that the upgraded version is correct; you can also upgrade the kernel version and root version of the base station first. file version, and then upgrade the application layer version. This application embodiment does not limit this.
上述基站升级方法,在接收到服务器发送的升级请求时,删除专业镜像文件,其中,专业镜像文件为基站上电启动时解压得到的文件,进而服务器发送下载请求,其中,下载请求用于指示获取基站升级所需的升级文件,再接收服务器根据下载请求返回的升级文件,并根据升级文件升级基站,使得在基站在接收服务器返回的升级文件之前,已经删除了专业镜像文件,释放出专业镜像文件对应的内存空间,避免了内存空间不够的情况,进而避免了内存空间不够导致升级失败的问题。同时,在一些场景下,避免了由于基站内存空间不够导致基站扩容的情况,进而避免了基站扩容而增加的成本。The above base station upgrade method deletes the professional image file when receiving the upgrade request sent by the server. The professional image file is a file decompressed when the base station is powered on and started, and then the server sends a download request, where the download request is used to indicate the acquisition The upgrade file required for the base station upgrade is then received by the server based on the download request, and the base station is upgraded based on the upgrade file, so that before the base station receives the upgrade file returned by the server, the professional image file has been deleted and the professional image file is released. The corresponding memory space avoids the situation of insufficient memory space, thereby avoiding the problem of insufficient memory space causing upgrade failure. At the same time, in some scenarios, base station expansion due to insufficient base station memory space is avoided, thereby avoiding the increased cost of base station expansion.
在一个实施例中,基站还可以通过转移当前业务,使得当前业务对应的协议栈进程关闭并删除来释放出更多的内存空间,用于基站升级。下面通过图3来详细描述。In one embodiment, the base station can also transfer the current service so that the protocol stack process corresponding to the current service is closed and deleted to release more memory space for base station upgrade. The following is described in detail through Figure 3.
图3为另一个实施例中基站升级方法的流程示意图,本实施例涉及的是基站在接收到服务器发送的升级请求之后,还可以将当前业务转移出去,进一步地释放出更多的内存空间的具体过程,如图3所示,该方法还包括以下步骤:Figure 3 is a schematic flowchart of a base station upgrade method in another embodiment. This embodiment involves a method in which the base station can also transfer the current business to further release more memory space after receiving the upgrade request sent by the server. The specific process is shown in Figure 3. The method also includes the following steps:
S201、转移基站的当前业务。S201. Transfer the current business of the base station.
由上述实施例可知,通过删除专业镜像文件可以释放出40MB左右的内存空间,升级文件通常会占用28MB左右的内存空间。在一种极端的情况下,基站处于满负荷运行,剩余可用内存空间只有20MB左右,基站升级过程最大需要占用90MB的内存空间,因此需要转移基站的当前业务,以保证基站升级所需的内存空间。其中,基站的当前业务可以是指基站正在进行中的业务,例如,当前业务可以是数据传输任务,也可以是用户终端接入基站的业务,本申请实施例对此不做限制。在上述实施例的基础上,当基站需要升级时,可以将当前业务转移出去,进一步的释放内存空间,用于基站升级。基站可以在接收到服务器发送的升级请求时立即转移基站的当前业务,也可以在基站删除专业镜像文件之后,在再转移基站的当前业务,本申请实施例对此不做限制。一般而言,基站会发送去激活命令给上层协议软件L3,并通过L3将基站的当前业务转移出去。It can be seen from the above embodiment that about 40 MB of memory space can be released by deleting the professional image file, and the upgrade file usually occupies about 28 MB of memory space. In an extreme case, the base station is operating at full capacity and the remaining available memory space is only about 20MB. The base station upgrade process requires a maximum of 90MB of memory space. Therefore, the current business of the base station needs to be transferred to ensure the memory space required for the base station upgrade. . The current service of the base station may refer to the ongoing service of the base station. For example, the current service may be a data transmission task or a service of the user terminal accessing the base station. This embodiment of the present application does not limit this. Based on the above embodiment, when the base station needs to be upgraded, the current services can be transferred out to further free up memory space for base station upgrade. The base station can transfer the current services of the base station immediately upon receiving the upgrade request sent by the server, or can transfer the current services of the base station after the base station deletes the professional image file. The embodiments of this application do not limit this. Generally speaking, the base station will send a deactivation command to the upper layer protocol software L3, and transfer the current business of the base station out through L3.
可选地,若当前业务为数据传输任务,将基站的当前数据传输任务切换至其他基站;若当前业务为用户终端接入基站,将用户终端接入其他基站。Optionally, if the current service is a data transmission task, switch the current data transmission task of the base station to another base station; if the current service is a user terminal accessing the base station, connect the user terminal to other base stations.
其中,若当前业务为数据传输任务,可以将基站的当前数据传输任务直接切换至相同覆盖范围内的其他基站。例如,基站的覆盖范围为区域1,一般而言,在网络规划时,通常会规划与基站的覆盖范围相同的其他基站,也即存在覆盖范围为区域1的其他基站,若当前业务为数据传输任务,基站可以将当前数据传输任务直接切换至相同覆盖范围内的其他基站。若当前业务为用户终端接入基站,基站可以先将上述用户终端释放到宏网中,并重新为用户终端分配接入的其他基站,将用户终端接入其他基站。Among them, if the current service is a data transmission task, the current data transmission task of the base station can be directly switched to other base stations within the same coverage area. For example, the coverage area of a base station is Area 1. Generally speaking, during network planning, other base stations with the same coverage area as the base station are usually planned. That is, there are other base stations with coverage area 1. If the current business is data transmission task, the base station can directly switch the current data transmission task to other base stations within the same coverage area. If the current service is for the user terminal to access the base station, the base station can first release the user terminal to the macro network, re-allocate other base stations for the user terminal to access, and connect the user terminal to other base stations.
S202、删除当前业务对应的协议栈进程,释放协议栈进程对应的内存空间。S202. Delete the protocol stack process corresponding to the current service and release the memory space corresponding to the protocol stack process.
当基站的当前业务转移到其他基站时,基站可以删除当前业务对应的协议栈进程,释放该协议栈进程对应的内存空间。一般而言,当前业务对应的协议栈进程为上层协议软件进程,通过把上层协议软件进程删除,释放120M左右内存空间,通过删除的ram内存空间的镜像文件和删除相关进程,释放出足够的存储空间进行基站的升级。When the current service of the base station is transferred to another base station, the base station can delete the protocol stack process corresponding to the current service and release the memory space corresponding to the protocol stack process. Generally speaking, the protocol stack process corresponding to the current business is the upper-layer protocol software process. By deleting the upper-layer protocol software process, about 120M of memory space is released. By deleting the image file of the ram memory space and deleting related processes, sufficient storage is released. Base station upgrades in space.
上述基站升级方法,基站通过转移基站的当前业务,并删除当前业务对应的协议栈进程,释放协议栈进程对应的内存空间,使得基站中可以用于升级的内存空间更多,进一步地避免了基站的内存空间不足而导致的升级失败的情况。In the above base station upgrade method, the base station transfers the current business of the base station, deletes the protocol stack process corresponding to the current business, and releases the memory space corresponding to the protocol stack process, so that more memory space can be used for upgrade in the base station, further avoiding the base station The upgrade fails due to insufficient memory space.
可选地,关闭协议栈进程的告警开关。Optionally, turn off the alarm switch of the protocol stack process.
通常,协议栈进行被关闭删除之后,基站会发送告警信息给服务器,以使服务器记录该基站的工作状态是否正常。在上述实施例的基础上,基站将当前业务转移出去,会关闭并删除协议栈进程,并不是基站发生故障时关闭并删除协议栈进程。因此可以通过关闭协议栈进程的告警开关,以使基站不向服务器上报协议栈关闭并删除的信息。Usually, after the protocol stack is closed and deleted, the base station will send alarm information to the server so that the server can record whether the working status of the base station is normal. Based on the above embodiment, when the base station transfers the current service, it will close and delete the protocol stack process. It does not mean that the base station closes and deletes the protocol stack process when a failure occurs. Therefore, you can turn off the alarm switch of the protocol stack process so that the base station does not report information about the shutdown and deletion of the protocol stack to the server.
上述基站升级方法,通过关闭协议栈进程的告警开关,使得基站的升级时关闭并删除的协议栈进程不上报服务器,进而避免了服务器记录由于基站升级而导致协议栈进程关闭并删除的信息。The above base station upgrade method turns off the alarm switch of the protocol stack process so that the protocol stack processes that are closed and deleted during the base station upgrade are not reported to the server, thus preventing the server from recording information that the protocol stack process is closed and deleted due to the base station upgrade.
在上述实施例的基础上,当基站将当前业务转移出去之后,还可以通过获取接入信息,确定当前业务是否成功接入其他基站,并在确认当前业务成功接入其他基站之后,再升级基站,以确保不影响当前业务,下面通过图4来详细说明。Based on the above embodiment, after the base station transfers the current service, it can also determine whether the current service has successfully accessed other base stations by obtaining access information, and after confirming that the current service has successfully accessed other base stations, upgrade the base station , to ensure that the current business is not affected, the following is explained in detail through Figure 4.
图4为另一个实施例中基站升级方法的流程示意图,本实施例涉及的是基站确认当前业务已经接入其他基站之后,再升级基站的具体过程,如图4所示,该方法还包括以下步骤:Figure 4 is a schematic flow chart of a base station upgrade method in another embodiment. This embodiment involves the specific process of upgrading the base station after the base station confirms that the current service has been accessed by other base stations. As shown in Figure 4, the method also includes the following step:
S301、获取当前业务接入其他基站的接入信息。S301. Obtain the access information of the current service access to other base stations.
S302、若接入信息指示当前业务成功接入其他基站,根据升级文件升级基站。S302. If the access information indicates that the current service is successfully accessed to other base stations, upgrade the base station according to the upgrade file.
其中,接入信息用于指示当前业务是否成功接入其他基站,若当前业务接入其他基站之后,其他基站向基站返回用于指示当前业务是否成功接入其他基站的接入信息。若接入信息指示当前业务已经成功接入其他基站,则基站开始根据升级文件升级基站。The access information is used to indicate whether the current service successfully accesses other base stations. If the current service accesses other base stations, the other base stations return access information to the base station indicating whether the current service successfully accesses other base stations. If the access information indicates that the current service has been successfully accessed to other base stations, the base station starts upgrading the base station according to the upgrade file.
上述基站升级方法,基站获取当前业务接入其他基站的接入信息,若接入信息指示当前业务成功接入其他基站,根据升级文件升级基站,确保基站在升级时,当前业务已经成功接入其他基站,避免了基站升级时,当前业务未能接入其他基站而导致的业务中断的情况。In the above base station upgrade method, the base station obtains the access information of the current service to other base stations. If the access information indicates that the current service has successfully accessed other base stations, it upgrades the base station according to the upgrade file to ensure that when the base station is upgraded, the current service has successfully accessed other base stations. The base station avoids service interruption caused by the current service failing to access other base stations when the base station is upgraded.
上述实施例重点描述了在接收到升级请求之后,基站如何释放出内存空间用于升级基站的具体过程,下面通过图5-7所示的实施例来详细说明基站如何升级。The above embodiment focuses on describing the specific process of how the base station releases memory space for upgrading the base station after receiving the upgrade request. The following describes how the base station upgrades in detail through the embodiment shown in Figure 5-7.
图5为另一个实施例中基站升级方法的流程示意图,本实施例涉及的是根据升级文件升级基站的具体过程,如图5所示,上述S103“根据升级文件升级基站”一种可能的实现方法还包括以下步骤:Figure 5 is a schematic flowchart of a base station upgrade method in another embodiment. This embodiment involves the specific process of upgrading the base station according to the upgrade file. As shown in Figure 5, a possible implementation of the above S103 "Upgrade the base station according to the upgrade file" The method also includes the following steps:
S401、获取升级文件的配置信息,配置信息用于指示升级文件对应的软件版本。S401. Obtain the configuration information of the upgrade file. The configuration information is used to indicate the software version corresponding to the upgrade file.
S402、若升级文件的软件版本与基站的当前软件版本不一致,则根据升级文件升级基站。S402. If the software version of the upgrade file is inconsistent with the current software version of the base station, upgrade the base station according to the upgrade file.
其中,基站在接收到服务器返回的升级文件时,可以获取升级文件中携带的升级文件的配置信息,该配置信息用于指示上述升级文件对应的软件版本。当升级文件的配置信息指示的升级文件的软件版本与基站的当前软件版本一致时,基站不进行升级,并取消升级的提示,例如可以通过显示“升级文件版本与基站当前版本一致”提醒用户取消升级;当升级文件的配置信息指示的升级文件的软件版本与基站的当前软件版本不一致时,基站根据该升级文件升级基站。需要说明的是,升级文件的配置信息指示的升级文件的软件版本与基站的当前软件版本不一致可以是升级文件的软件版本高于基站的当前软件版本,也可以是升级文件的软件版本低于基站的当前软件版本,本申请实施例对此不做限制。上述基站升级方法,避免了升级文件的软件版本与基站的当前软件版本一致时,重复升级基站的情况。When receiving the upgrade file returned by the server, the base station can obtain the configuration information of the upgrade file carried in the upgrade file. The configuration information is used to indicate the software version corresponding to the above-mentioned upgrade file. When the software version of the upgrade file indicated by the configuration information of the upgrade file is consistent with the current software version of the base station, the base station will not upgrade and cancel the upgrade prompt. For example, the user can be reminded to cancel by displaying "The upgrade file version is consistent with the current version of the base station." Upgrade; when the software version of the upgrade file indicated by the configuration information of the upgrade file is inconsistent with the current software version of the base station, the base station upgrades the base station according to the upgrade file. It should be noted that the software version of the upgrade file indicated by the configuration information of the upgrade file is inconsistent with the current software version of the base station. It may be that the software version of the upgrade file is higher than the current software version of the base station, or it may be that the software version of the upgrade file is lower than the base station. The current software version, the embodiment of this application does not limit this. The above base station upgrade method avoids the situation of repeatedly upgrading the base station when the software version of the upgrade file is consistent with the current software version of the base station.
在一个实施例中,上述配置信息还用于指示升级文件对应的设备型号。可选地,若升级文件对应的设备型号与基站的设备型号匹配时,根据升级文件升级基站。In one embodiment, the above configuration information is also used to indicate the device model corresponding to the upgrade file. Optionally, if the device model corresponding to the upgrade file matches the device model of the base station, upgrade the base station according to the upgrade file.
在上述实施例的基础上,配置信息还用于指示升级文件对应的设备信号,当配置信息指示的升级文件对应的设备型号与基站的设备型号匹配时,基站根据该升级文件升级基站;当配置信息指示的升级文件对应的设备型号与基站的设备型号不匹配时,则不升级基站。Based on the above embodiment, the configuration information is also used to indicate the device signal corresponding to the upgrade file. When the device model corresponding to the upgrade file indicated by the configuration information matches the device model of the base station, the base station upgrades the base station according to the upgrade file; when the configuration If the device model corresponding to the upgrade file indicated by the information does not match the device model of the base station, the base station will not be upgraded.
上述基站升级方法,使得基站升级时所使用的升级文件对应的设备信号,是与基站的设备型号相匹配的升级文件,避免了使用不与基站的设备型号相匹配的升级文件升级基站的情况,进而避免了错误的基站升级。The above base station upgrade method enables the device signal corresponding to the upgrade file used when upgrading the base station to be an upgrade file that matches the equipment model of the base station, avoiding the situation of using an upgrade file that does not match the equipment model of the base station to upgrade the base station. This avoids incorrect base station upgrades.
在一个实施例中,升级文件为压缩文件,基站还可以通过解压升级文件来升级基站。可选地,如图6所示,上述S103“根据升级文件升级基站”一种可能的实现方法包括以下步骤:In one embodiment, the upgrade file is a compressed file, and the base station can also upgrade the base station by decompressing the upgrade file. Optionally, as shown in Figure 6, a possible implementation method of the above S103 "Upgrade the base station according to the upgrade file" includes the following steps:
S501、解压升级文件,得到解压后的升级文件。S501. Decompress the upgrade file and obtain the decompressed upgrade file.
S502、根据解压后的升级文件升级基站。S502. Upgrade the base station according to the decompressed upgrade file.
上述基站升级方法,服务器返回的升级文件为压缩文件,基站接收到上述升级文件之后,解压升级文件,得到解压后的升级文件,根据解压后的升级文件升级基站。使得服务器与基站之间的数据传输量较少,提高了获取升级文件的效率。In the above base station upgrade method, the upgrade file returned by the server is a compressed file. After receiving the above upgrade file, the base station decompresses the upgrade file to obtain the decompressed upgrade file, and upgrades the base station according to the decompressed upgrade file. This reduces the amount of data transmission between the server and the base station, improving the efficiency of obtaining upgrade files.
图7为另一个实施例中基站升级方法的流程示意图,本实施例涉及的是根据升级文件升级基站的具体过程,如图7所示,上述S103“根据升级文件升级基站”一种可能的实现方法还包括以下步骤:Figure 7 is a schematic flow chart of a base station upgrade method in another embodiment. This embodiment involves the specific process of upgrading the base station according to the upgrade file. As shown in Figure 7, a possible implementation of the above S103 "Upgrade the base station according to the upgrade file" The method also includes the following steps:
S601、通过升级文件更新基站版本,得到更新后的基站版本。S601. Update the base station version through the upgrade file to obtain the updated base station version.
在上述实施例的基础上,升级文件中通常会包括用于更新基站版本的软件版本,基站在接收到服务器返回的升级文件之后,可以通过调用升级文件中的用于更新基站版本的软件版本,升级基站版本,得到更新后的基站版本。Based on the above embodiment, the upgrade file usually includes a software version for updating the base station version. After receiving the upgrade file returned by the server, the base station can call the software version in the upgrade file for updating the base station version. Upgrade the base station version to get the updated base station version.
S602、更新基站的运行参数,得到更新后的运行参数。S602. Update the operating parameters of the base station and obtain the updated operating parameters.
在上述实施例的基础上,升级文件中还可能包括基站的运行参数,其中,运行参数是基站在工作中所需调用的参数。在基站升级基站版本之后,还可以从升级文件中调用其中包括的新的运行参数,得到更新后的运行参数。在一种可能的情况下,还可以通过升级后的基站版本运行初始的运行参数,得到更新后的运行参数。可选地,可以通过图8所示实施例来获取更新后的运行参数。Based on the above embodiment, the upgrade file may also include operating parameters of the base station, where the operating parameters are parameters that the base station needs to call during operation. After the base station upgrades the base station version, the new operating parameters included in the upgrade file can also be called to obtain the updated operating parameters. In a possible case, you can also run the initial operating parameters through the upgraded base station version to obtain the updated operating parameters. Optionally, the updated operating parameters can be obtained through the embodiment shown in FIG. 8 .
图8为另一个实施例中基站升级方法的流程示意图,本实施例涉及的是在通过升级文件升级基站版本,得到更新后的基站版本之前,先备份基站的初始运行参数,再进行升级的具体过程,如图8所示,该方法还包括以下步骤:Figure 8 is a schematic flow chart of a base station upgrade method in another embodiment. This embodiment involves the specific steps of backing up the initial operating parameters of the base station before upgrading the base station version through the upgrade file to obtain the updated base station version, and then performing the upgrade. The process, as shown in Figure 8, also includes the following steps:
S701、将基站的初始运行参数存储在备份区域;初始运行参数为基站在升级前运行时所调用的参数。S701. Store the initial operating parameters of the base station in the backup area; the initial operating parameters are the parameters called when the base station is running before upgrading.
S702、调用初始运行参数,对初始运行参数进行更新,得到更新后的运行参数。S702: Call the initial operating parameters, update the initial operating parameters, and obtain the updated operating parameters.
其中,初始运行参数是基站在升级前运行时所调用的参数,当需要对基站进行升级时,可以先将基站的初始运行参数存储在备份区域,例如,可以通过把当前运行区数据库备份成一份data.xml的配置文件到flash目录中。当基站的版本升级完成之后,在重启基站时,把备份到flash中的数据库配置文件data.xml导入到升级后的当前运行区数据库文件中,得到更新后的运行参数,保证基站升级前后运行参数的一致性。Among them, the initial operating parameters are parameters called when the base station is running before upgrading. When the base station needs to be upgraded, the initial operating parameters of the base station can be stored in the backup area. For example, the current operating area database can be backed up into a copy. data.xml configuration file to the flash directory. After the base station version upgrade is completed, when restarting the base station, import the database configuration file data. consistency.
S603、通过调用更新后的运行参数,运行更新后的基站版本。S603. Run the updated base station version by calling the updated operating parameters.
可选地,上述升级文件包括应用层版本文件、内核版本文件和根文件中的至少一种;其中,升级应用层版本的优先级最低,内核版本文件的优先级最高。Optionally, the above-mentioned upgrade file includes at least one of an application layer version file, a kernel version file, and a root file; wherein, upgrading the application layer version has the lowest priority, and the kernel version file has the highest priority.
其中,应用层版本文件用于升级基站中的应用软件,内核版本文件用于升级基站的内核版本,根文件用于升级基站的根文件版本。Among them, the application layer version file is used to upgrade the application software in the base station, the kernel version file is used to upgrade the kernel version of the base station, and the root file is used to upgrade the root file version of the base station.
当升级文件中只包括应用层版本文件时,则根据升级文件,升级基站中的应用软件完成对基站的升级,当升级文件中还包括内核版本文件和/或根文件时,可以根据各软件版本文件的优先级,确定各软件版本的升级顺序。例如,当升级文件中包括内核版本文件、根文件和应用层版本文件时,应先升级内核版本,再升级根文件版本,最后升级应用层版本。When the upgrade file only includes the application layer version file, the application software in the base station is upgraded according to the upgrade file to complete the upgrade of the base station. When the upgrade file also includes the kernel version file and/or root file, the base station can be upgraded according to each software version. The priority of files determines the upgrade order of each software version. For example, when the upgrade file includes a kernel version file, a root file, and an application layer version file, the kernel version should be upgraded first, then the root file version, and finally the application layer version.
基于此,在一个实施例中,如图9所示,该方法还包括以下步骤:Based on this, in one embodiment, as shown in Figure 9, the method further includes the following steps:
S801、获取应用层版本文件、内核版本文件和根文件的配置信息。S801. Obtain the configuration information of the application layer version file, kernel version file and root file.
其中,应用层版本文件的配置信息用于指示应用层版本文件的软件版本,内核版本文件的配置信息用于指示内核版本文件的软件版本,根文件的配置信息用于指示根文件的软件版本。The configuration information of the application layer version file is used to indicate the software version of the application layer version file, the configuration information of the kernel version file is used to indicate the software version of the kernel version file, and the configuration information of the root file is used to indicate the software version of the root file.
S802、根据应用层版本文件、内核版本文件和根文件的配置信息升级基站。S802. Upgrade the base station according to the configuration information of the application layer version file, kernel version file and root file.
在上述实施例的基础上,当获取了应用层版本文件的配置信息、内核版本文件和根文件的配置信息时,即可确定应用层版本文件的软件版本、内核版本文件的软件版本和根文件的软件版本。基于此,在升级基站时,可以先对比应用层版本文件的软件版本是否与基站当前的应用层版本一致;内核版本文件的软件版本是否与基站当前的内核版本一致;根文件的软件版本是否与基站当前的根文件的软件版本一致。当其中一项不一致时,再根据不一致的应用层版本文件、内核版本文件或根文件来升级基站。例如,升级文件中包括应用层版本文件和内核版本文件,若内核版本文件的软件版本与基站当前的内核版本一致,应用层版本文件与基站当前的应用层版本不一致时,根据应用层版本文件升级基站。可选地,删除内核版本文件,释放基站的内存空间。Based on the above embodiment, when the configuration information of the application layer version file, the kernel version file and the root file are obtained, the software version of the application layer version file, the software version of the kernel version file and the root file can be determined software version. Based on this, when upgrading the base station, you can first compare whether the software version of the application layer version file is consistent with the current application layer version of the base station; whether the software version of the kernel version file is consistent with the current kernel version of the base station; whether the software version of the root file is consistent with the current kernel version of the base station; The software version of the current root file of the base station is consistent. When one of them is inconsistent, the base station is upgraded based on the inconsistent application layer version file, kernel version file, or root file. For example, the upgrade file includes an application layer version file and a kernel version file. If the software version of the kernel version file is consistent with the current kernel version of the base station, and if the application layer version file is inconsistent with the current application layer version of the base station, upgrade according to the application layer version file. base station. Optionally, delete the kernel version file to free up the base station’s memory space.
可选地,若应用层版本文件的软件版本、内核版本文件的软件版本和根文件的软件版本中的一个或几个与基站当前的对应软件版本一致,则删除升级文件中与基站当前的对应软件版本一致的软件版本,并根据升级文件中剩余的版本文件升级基站。Optionally, if one or more of the software version of the application layer version file, the software version of the kernel version file, and the software version of the root file are consistent with the current corresponding software version of the base station, delete the current corresponding software version of the base station in the upgrade file. The software version is consistent with the software version, and the base station is upgraded based on the remaining version files in the upgrade file.
当应用层版本文件的软件版本、内核版本文件的软件版本和根文件的软件版本中的一个或几个与基站当前的对应的软件版本一致,其可以是应用层版本文件的软件版本与基站当前的应用层版本一致,也可以是内核版本文件与基站当前的内核版本一致,还可以是根文件的软件版本与基站当前的跟文件的软件版本一致。进一步地,还可以是应用层版本文件的软件版本与基站当前的应用层版本一致的同时,内核版本文件与基站当前的内核版本一致;或者,应用层版本文件的软件版本与基站当前的应用层版本一致的同时,根文件的软件版本与基站当前的跟文件的软件版本一致;又或者,当内核版本文件与基站当前的内核版本一致的同时,根文件的软件版本与基站当前的跟文件的软件版本一致;本申请实施例对此不做限制。当应用层版本文件的软件版本、内核版本文件的软件版本和根文件的软件版本中的一个或几个与基站当前的对应的软件版本一致时,则删除与基站当前的对应的软件版本一致的软件版本,并根据剩余的版本文件升级基站。例如,当内核版本文件与基站当前的内核版本一致时,根文件的软件版本也与基站当前的跟文件的软件版本一致,则删除内核版本文件和根文件,并根据应用层版本文件升级基站。When one or more of the software version of the application layer version file, the software version of the kernel version file, and the software version of the root file are consistent with the current corresponding software version of the base station, it may be that the software version of the application layer version file is consistent with the current corresponding software version of the base station. The application layer version must be consistent, or the kernel version file may be consistent with the current kernel version of the base station, or the software version of the root file may be consistent with the base station's current file software version. Furthermore, the software version of the application layer version file may be consistent with the current application layer version of the base station, and the kernel version file may be consistent with the current kernel version of the base station; or, the software version of the application layer version file may be consistent with the current application layer version of the base station. When the version is consistent, the software version of the root file is consistent with the base station's current software version of the file; or, when the kernel version file is consistent with the base station's current kernel version, the software version of the root file is consistent with the base station's current file version. The software versions are consistent; the embodiments of this application do not limit this. When one or more of the software version of the application layer version file, the software version of the kernel version file, and the software version of the root file are consistent with the current corresponding software version of the base station, delete the software version that is consistent with the current corresponding software version of the base station. software version, and upgrade the base station based on the remaining version files. For example, when the kernel version file is consistent with the current kernel version of the base station, and the software version of the root file is also consistent with the software version of the base station's current root file, the kernel version file and the root file are deleted, and the base station is upgraded based on the application layer version file.
上述基站升级方法,通过获取应用层版本文件的配置信息,和,内核版本文件和/或根文件的配置信息,其中,应用层版本文件的配置信息用于指示应用层版本文件的软件版本,内核版本文件的配置信息用于指示内核版本文件的软件版本,根文件的配置信息用于指示根文件的软件版本,并根据应用层版本文件的配置信息、内核版本文件和/或根文件的配置信息升级基站。使得在升级基站的过程中,若出现应用层版本文件、内核版本文件或根文件中的任一个的版本重复时,可以删除对应的文件,进一步地释放内存空间,也即是进一步地避免了由于基站内存空间不够导致基站扩容的情况,从而避免了基站扩容而增加的成本。The above base station upgrade method obtains the configuration information of the application layer version file and the configuration information of the kernel version file and/or the root file, where the configuration information of the application layer version file is used to indicate the software version of the application layer version file, the kernel The configuration information of the version file is used to indicate the software version of the kernel version file, and the configuration information of the root file is used to indicate the software version of the root file. According to the configuration information of the application layer version file, the kernel version file and/or the configuration information of the root file Upgrade the base station. In the process of upgrading the base station, if there is a duplicate version of any of the application layer version file, kernel version file or root file, the corresponding file can be deleted to further free up the memory space, that is, to further avoid the problem due to Insufficient base station memory space leads to base station expansion, thereby avoiding the increased cost of base station expansion.
应该理解的是,虽然图2-9的流程图中的各个步骤按照箭头的指示,依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2-9中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the steps in the flowcharts of Figures 2-9 are shown in sequence as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated in this article, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least some of the steps in Figures 2-9 may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but may be executed at different times. These sub-steps or stages The order of execution is not necessarily sequential, but may be performed in turn or alternately with other steps or sub-steps of other steps or at least part of the stages.
图10为一个实施例中提供的基站升级装置的结构示意图,如图10所示,该基站升级装置包括:删除模块10、请求模块20和升级模块30,其中:Figure 10 is a schematic structural diagram of a base station upgrade device provided in an embodiment. As shown in Figure 10, the base station upgrade device includes: a deletion module 10, a request module 20 and an upgrade module 30, wherein:
删除模块10,用于在接收到服务器发送的升级请求时,删除专业镜像文件;专业镜像文件为基站上电启动时解压得到的文件;The deletion module 10 is used to delete the professional image file when receiving an upgrade request sent by the server; the professional image file is a file decompressed when the base station is powered on and started;
请求模块20,用于向服务器发送下载请求;下载请求用于指示获取基站升级所需的升级文件;The request module 20 is used to send a download request to the server; the download request is used to indicate obtaining the upgrade file required for base station upgrade;
升级模块30,用于接收服务器根据下载请求返回的升级文件,并根据升级文件升级基站。The upgrade module 30 is used to receive the upgrade file returned by the server according to the download request, and upgrade the base station according to the upgrade file.
本申请实施例提供的基站升级装置,可以执行上述方法实施例,其实现原理和技术效果类似,在此不再赘述。The base station upgrade device provided by the embodiments of the present application can execute the above method embodiments. Its implementation principles and technical effects are similar and will not be described again here.
图11为另一个实施例中提供的基站升级装置的结构示意图,在图10所示实施例的基础上,如图11所示,该基站升级装置还包括:转移模块40,其中:Figure 11 is a schematic structural diagram of a base station upgrade device provided in another embodiment. Based on the embodiment shown in Figure 10, as shown in Figure 11, the base station upgrade device also includes: a transfer module 40, wherein:
转移模块40具体用于转移基站的当前业务;删除当前业务对应的协议栈进程,释放协议栈进程对应的内存空间。The transfer module 40 is specifically used to transfer the current service of the base station; delete the protocol stack process corresponding to the current service and release the memory space corresponding to the protocol stack process.
在一个实施例中,转移模块40具体用于若当前业务为数据传输任务,将基站的当前数据传输任务切换至其他基站;若当前业务为用户终端接入基站,将用户终端接入其他基站。In one embodiment, the transfer module 40 is specifically configured to switch the current data transmission task of the base station to another base station if the current service is a data transmission task; if the current service is a user terminal accessing the base station, connect the user terminal to other base stations.
本申请实施例提供的基站升级装置,可以执行上述方法实施例,其实现原理和技术效果类似,在此不再赘述。The base station upgrade device provided by the embodiments of the present application can execute the above method embodiments. Its implementation principles and technical effects are similar and will not be described again here.
图12为另一个实施例中提供的基站升级装置的结构示意图,在图10或图11所示实施例的基础上,如图12所示,该基站升级装置还包括:确认模块50,其中:Figure 12 is a schematic structural diagram of a base station upgrade device provided in another embodiment. Based on the embodiment shown in Figure 10 or Figure 11, as shown in Figure 12, the base station upgrade device also includes: a confirmation module 50, wherein:
确认模块50用于获取当前业务接入其他基站的接入信息;若接入信息指示当前业务成功接入其他基站,根据升级文件升级基站。The confirmation module 50 is used to obtain the access information of the current service accessing other base stations; if the access information indicates that the current service successfully accesses other base stations, the base station is upgraded according to the upgrade file.
需要说明的是,图12是基于图11的基础上进行示出的,当然图12也可以基于图10的基础进行示出,这里仅是一种示例。It should be noted that FIG. 12 is shown based on FIG. 11 . Of course, FIG. 12 can also be shown based on FIG. 10 . This is just an example.
本申请实施例提供的基站升级装置,可以执行上述方法实施例,其实现原理和技术效果类似,在此不再赘述。The base station upgrade device provided by the embodiments of the present application can execute the above method embodiments. Its implementation principles and technical effects are similar and will not be described again here.
图13为另一个实施例中提供的基站升级装置的结构示意图,在图10-12任一项所示实施例的基础上,如图13所示,该基站升级装置还包括:告警模块60,其中:Figure 13 is a schematic structural diagram of a base station upgrade device provided in another embodiment. Based on the embodiment shown in any one of Figures 10-12, as shown in Figure 13, the base station upgrade device also includes: an alarm module 60, in:
告警模块60,用于关闭协议栈进程的告警开关。The alarm module 60 is used to turn off the alarm switch of the protocol stack process.
在一个实施例中,升级模块30具体用于获取升级文件的配置信息,配置信息用于指示升级文件对应的软件版本;若升级文件的软件版本与基站的当前软件版本不一致,则根据升级文件升级基站。In one embodiment, the upgrade module 30 is specifically used to obtain the configuration information of the upgrade file. The configuration information is used to indicate the software version corresponding to the upgrade file; if the software version of the upgrade file is inconsistent with the current software version of the base station, upgrade according to the upgrade file. base station.
在一个实施例中,上述配置信息还用于指示升级文件对应的设备型号;升级模块30具体用于若升级文件对应的设备型号与基站的设备型号匹配时,根据升级文件升级基站。In one embodiment, the above configuration information is also used to indicate the equipment model corresponding to the upgrade file; the upgrade module 30 is specifically configured to upgrade the base station according to the upgrade file if the equipment model corresponding to the upgrade file matches the equipment model of the base station.
在一个实施例中,升级文件为压缩文件,升级模块30具体用于解压升级文件,得到解压后的升级文件;根据解压后的升级文件升级基站。In one embodiment, the upgrade file is a compressed file, and the upgrade module 30 is specifically configured to decompress the upgrade file to obtain the decompressed upgrade file; and upgrade the base station according to the decompressed upgrade file.
在一个实施例中,升级模块30具体用于通过升级文件更新基站版本,得到更新后的基站版本;更新基站的运行参数,得到更新后的运行参数;通过调用更新后的运行参数,运行更新后的基站版本。In one embodiment, the upgrade module 30 is specifically configured to update the base station version through the upgrade file to obtain the updated base station version; update the operating parameters of the base station to obtain the updated operating parameters; and run the updated operating parameters by calling the updated operating parameters. base station version.
在一个实施例中,升级模块30具体用于将基站的初始运行参数存储在备份区域;初始运行参数为基站在升级前运行时所调用的参数;调用初始运行参数,对初始运行参数进行更新,得到更新后的运行参数。In one embodiment, the upgrade module 30 is specifically configured to store the initial operating parameters of the base station in the backup area; the initial operating parameters are the parameters called when the base station is running before the upgrade; call the initial operating parameters to update the initial operating parameters, Get updated operating parameters.
在一个实施例中,上述升级文件包括应用层版本文件、内核版本文件和根文件中的至少一种;其中,升级应用层版本的优先级最低,内核版本文件的优先级最高。In one embodiment, the above-mentioned upgrade file includes at least one of an application layer version file, a kernel version file, and a root file; wherein, upgrading the application layer version has the lowest priority, and the kernel version file has the highest priority.
在一个实施例中,升级模块30具体用于获取应用层版本文件、内核版本文件和根文件的配置信息,应用层版本文件的配置信息用于指示应用层版本文件的软件版本,内核版本文件的配置信息用于指示内核版本文件的软件版本,根文件的配置信息用于指示根文件的软件版本;根据应用层版本文件、内核版本文件和根文件的配置信息升级基站。In one embodiment, the upgrade module 30 is specifically used to obtain the configuration information of the application layer version file, the kernel version file and the root file. The configuration information of the application layer version file is used to indicate the software version of the application layer version file. The configuration information is used to indicate the software version of the kernel version file, and the configuration information of the root file is used to indicate the software version of the root file; the base station is upgraded according to the configuration information of the application layer version file, kernel version file, and root file.
在一个实施例中,升级模块30具体用于若应用层版本文件的软件版本、内核版本文件的软件版本和根文件的软件版本中的一个或几个与基站当前的对应软件版本一致,则删除升级文件中与基站当前的对应软件版本一致的软件版本,并根据升级文件中剩余的版本文件升级基站。In one embodiment, the upgrade module 30 is specifically configured to delete one or more of the software version of the application layer version file, the software version of the kernel version file, and the software version of the root file if they are consistent with the current corresponding software version of the base station. Upgrade the software version in the file that is consistent with the current corresponding software version of the base station, and upgrade the base station based on the remaining version files in the upgrade file.
需要说明的是,图13是基于图12的基础上进行示出的,当然图13也可以基于图10或图11的基础进行示出,这里仅是一种示例。It should be noted that FIG. 13 is shown based on FIG. 12 . Of course, FIG. 13 can also be shown based on FIG. 10 or FIG. 11 . This is just an example.
本申请实施例提供的基站升级装置,可以执行上述方法实施例,其实现原理和技术效果类似,在此不再赘述。The base station upgrade device provided by the embodiments of the present application can execute the above method embodiments. Its implementation principles and technical effects are similar and will not be described again here.
关于一种基站升级装置的具体限定可以参见上文中对基站升级方法的限定,在此不再赘述。上述基站升级装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For specific limitations on a base station upgrade device, please refer to the above limitations on the base station upgrade method, which will not be described again here. Each module in the above base station upgrade device can be implemented in whole or in part by software, hardware and combinations thereof. Each of the above modules may be embedded in or independent of the processor of the computer device in the form of hardware, or may be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
在一个实施例中,提供了一种计算机设备,该计算机设备可以是终端设备,其内部结构图可以如图14所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口、显示屏和输入装置。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种基站升级方法。该计算机设备的显示屏可以是液晶显示屏或者电子墨水显示屏,该计算机设备的输入装置可以是显示屏上覆盖的触摸层,也可以是计算机设备外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。In one embodiment, a computer device is provided. The computer device may be a terminal device, and its internal structure diagram may be as shown in Figure 14. The computer equipment includes a processor, memory, network interface, display screen and input device connected by a system bus. Wherein, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes non-volatile storage media and internal memory. The non-volatile storage medium stores operating systems and computer programs. This internal memory provides an environment for the execution of operating systems and computer programs in non-volatile storage media. The network interface of the computer device is used to communicate with external terminals through a network connection. The computer program, when executed by the processor, implements a base station upgrade method. The display screen of the computer device may be a liquid crystal display or an electronic ink display. The input device of the computer device may be a touch layer covered on the display screen, or may be a button, trackball or touch pad provided on the computer device shell. , it can also be an external keyboard, trackpad or mouse, etc.
本领域技术人员可以理解,图14中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in Figure 14 is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied. Specific computer equipment can May include more or fewer parts than shown, or combine certain parts, or have a different arrangement of parts.
在一个实施例中,提供了一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现以下步骤:In one embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program. When the processor executes the computer program, the following steps are implemented:
在接收到服务器发送的升级请求时,删除专业镜像文件;专业镜像文件为基站上电启动时解压得到的文件;When receiving the upgrade request sent by the server, delete the professional image file; the professional image file is the file decompressed when the base station is powered on and started;
向服务器发送下载请求;下载请求用于指示获取基站升级所需的升级文件;Send a download request to the server; the download request is used to indicate obtaining the upgrade files required for base station upgrade;
接收服务器根据下载请求返回的升级文件,并根据升级文件升级基站。Receive the upgrade file returned by the server based on the download request, and upgrade the base station based on the upgrade file.
在一个实施例中,上述接收到服务器发送的升级请求之后,处理器执行计算机程序时还实现以下步骤:转移基站的当前业务;删除当前业务对应的协议栈进程,释放协议栈进程对应的内存空间。In one embodiment, after receiving the upgrade request sent by the server, the processor also implements the following steps when executing the computer program: transfer the current service of the base station; delete the protocol stack process corresponding to the current service, and release the memory space corresponding to the protocol stack process .
在一个实施例中,处理器执行计算机程序时还实现以下步骤:若当前业务为数据传输任务,将基站的当前数据传输任务切换至其他基站;若当前业务为用户终端接入基站,将用户终端接入其他基站。In one embodiment, the processor also implements the following steps when executing the computer program: if the current service is a data transmission task, switch the current data transmission task of the base station to another base station; if the current service is a user terminal accessing the base station, switch the user terminal to the base station. Connect to other base stations.
在一个实施例中,上述转移基站的当前业务之后,处理器执行计算机程序时还实现以下步骤:获取当前业务接入其他基站的接入信息;若接入信息指示当前业务成功接入其他基站,根据升级文件升级基站。In one embodiment, after the above-mentioned transfer of the current service of the base station, the processor also implements the following steps when executing the computer program: obtaining access information for the current service to access other base stations; if the access information indicates that the current service successfully accesses other base stations, Upgrade the base station according to the upgrade file.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:关闭协议栈进程的告警开关。In one embodiment, when the processor executes the computer program, the following steps are also implemented: turning off the alarm switch of the protocol stack process.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:获取升级文件的配置信息,配置信息用于指示升级文件对应的软件版本;若升级文件的软件版本与基站的当前软件版本不一致,则根据升级文件升级基站。In one embodiment, the processor also implements the following steps when executing the computer program: obtaining configuration information of the upgrade file, and the configuration information is used to indicate the software version corresponding to the upgrade file; if the software version of the upgrade file is inconsistent with the current software version of the base station, Then upgrade the base station according to the upgrade file.
在一个实施例中,上述配置信息还用于指示升级文件对应的设备型号;处理器执行计算机程序时还实现以下步骤:若升级文件对应的设备型号与基站的设备型号匹配时,根据升级文件升级基站。In one embodiment, the above configuration information is also used to indicate the device model corresponding to the upgrade file; when the processor executes the computer program, the following steps are also implemented: if the device model corresponding to the upgrade file matches the device model of the base station, upgrade according to the upgrade file base station.
在一个实施例中,升级文件为压缩文件,处理器执行计算机程序时还实现以下步骤:解压升级文件,得到解压后的升级文件;根据解压后的升级文件升级基站。In one embodiment, the upgrade file is a compressed file. When the processor executes the computer program, it also implements the following steps: decompressing the upgrade file to obtain the decompressed upgrade file; and upgrading the base station according to the decompressed upgrade file.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:通过升级文件更新基站版本,得到更新后的基站版本;更新基站的运行参数,得到更新后的运行参数;通过调用更新后的运行参数,运行更新后的基站版本。In one embodiment, the processor also implements the following steps when executing the computer program: updating the base station version through the upgrade file to obtain the updated base station version; updating the operating parameters of the base station to obtain the updated operating parameters; calling the updated operation parameters to run the updated base station version.
在一个实施例中,上述通过升级文件升级基站版本,得到更新后的基站版本之前,处理器执行计算机程序时还实现以下步骤:将基站的初始运行参数存储在备份区域;初始运行参数为基站在升级前运行时所调用的参数;调用初始运行参数,对初始运行参数进行更新,得到更新后的运行参数。In one embodiment, before upgrading the base station version through the upgrade file and obtaining the updated base station version, the processor also implements the following steps when executing the computer program: storing the initial operating parameters of the base station in the backup area; the initial operating parameters of the base station are Parameters called during runtime before upgrading; call the initial running parameters, update the initial running parameters, and obtain the updated running parameters.
在一个实施例中,升级文件包括应用层版本文件、内核版本文件和根文件中的至少一种;其中,升级应用层版本的优先级最低,内核版本文件的优先级最高。In one embodiment, the upgrade file includes at least one of an application layer version file, a kernel version file, and a root file; wherein, upgrading the application layer version has the lowest priority, and the kernel version file has the highest priority.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:获取应用层版本文件、内核版本文件和根文件的配置信息,应用层版本文件的配置信息用于指示应用层版本文件的软件版本,内核版本文件的配置信息用于指示内核版本文件的软件版本,根文件的配置信息用于指示根文件的软件版本;根据应用层版本文件、内核版本文件和根文件的配置信息升级基站。In one embodiment, when the processor executes the computer program, the following steps are also implemented: obtaining configuration information of the application layer version file, the kernel version file, and the root file. The configuration information of the application layer version file is used to indicate the software version of the application layer version file. , the configuration information of the kernel version file is used to indicate the software version of the kernel version file, and the configuration information of the root file is used to indicate the software version of the root file; the base station is upgraded according to the configuration information of the application layer version file, kernel version file and root file.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:若应用层版本文件的软件版本、内核版本文件的软件版本和根文件的软件版本中的一个或几个与基站当前的对应软件版本一致,则删除升级文件中与基站当前的对应软件版本一致的软件版本,并根据升级文件中剩余的版本文件升级基站。In one embodiment, when the processor executes the computer program, the following steps are also implemented: if one or more of the software version of the application layer version file, the software version of the kernel version file, and the software version of the root file are the same as the current corresponding software of the base station If the versions are consistent, delete the software version in the upgrade file that is consistent with the current corresponding software version of the base station, and upgrade the base station based on the remaining version files in the upgrade file.
本实施例提供的计算机设备,其实现原理和技术效果与上述方法实施例类似,在此不再赘述。The implementation principles and technical effects of the computer equipment provided by this embodiment are similar to those of the above method embodiments, and will not be described again here.
在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现以下步骤:In one embodiment, a computer-readable storage medium is provided with a computer program stored thereon. When the computer program is executed by a processor, the following steps are implemented:
在接收到服务器发送的升级请求时,删除专业镜像文件;专业镜像文件为基站上电启动时解压得到的文件;When receiving the upgrade request sent by the server, delete the professional image file; the professional image file is the file decompressed when the base station is powered on and started;
向服务器发送下载请求;下载请求用于指示获取基站升级所需的升级文件;Send a download request to the server; the download request is used to indicate obtaining the upgrade files required for base station upgrade;
接收服务器根据下载请求返回的升级文件,并根据升级文件升级基站。Receive the upgrade file returned by the server based on the download request, and upgrade the base station based on the upgrade file.
在一个实施例中,上述接收到服务器发送的升级请求之后,计算机程序被处理器执行时实现以下步骤:转移基站的当前业务;删除当前业务对应的协议栈进程,释放协议栈进程对应的内存空间。In one embodiment, after receiving the upgrade request sent by the server, the computer program implements the following steps when executed by the processor: transfer the current service of the base station; delete the protocol stack process corresponding to the current service, and release the memory space corresponding to the protocol stack process .
在一个实施例中,计算机程序被处理器执行时实现以下步骤:若当前业务为数据传输任务,将基站的当前数据传输任务切换至其他基站;若当前业务为用户终端接入基站,将用户终端接入其他基站。In one embodiment, when the computer program is executed by the processor, the following steps are implemented: if the current service is a data transmission task, switch the current data transmission task of the base station to another base station; if the current service is a user terminal accessing the base station, switch the user terminal to the base station. Connect to other base stations.
在一个实施例中,上述转移基站的当前业务之后,计算机程序被处理器执行时实现以下步骤:获取当前业务接入其他基站的接入信息;若接入信息指示当前业务成功接入其他基站,根据升级文件升级基站。In one embodiment, after the above-mentioned transfer of the current service of the base station, the computer program implements the following steps when executed by the processor: obtain access information of the current service to other base stations; if the access information indicates that the current service successfully accesses other base stations, Upgrade the base station according to the upgrade file.
在一个实施例中,计算机程序被处理器执行时实现以下步骤:关闭协议栈进程的告警开关。In one embodiment, when the computer program is executed by the processor, the following steps are implemented: turning off the alarm switch of the protocol stack process.
在一个实施例中,计算机程序被处理器执行时实现以下步骤:获取升级文件的配置信息,配置信息用于指示升级文件对应的软件版本;若升级文件的软件版本与基站的当前软件版本不一致,则根据升级文件升级基站。In one embodiment, when the computer program is executed by the processor, the following steps are implemented: obtain the configuration information of the upgrade file, and the configuration information is used to indicate the software version corresponding to the upgrade file; if the software version of the upgrade file is inconsistent with the current software version of the base station, Then upgrade the base station according to the upgrade file.
在一个实施例中,上述配置信息还用于指示升级文件对应的设备型号;计算机程序被处理器执行时实现以下步骤:若升级文件对应的设备型号与基站的设备型号匹配时,根据升级文件升级基站。In one embodiment, the above configuration information is also used to indicate the equipment model corresponding to the upgrade file; when the computer program is executed by the processor, the following steps are implemented: if the equipment model corresponding to the upgrade file matches the equipment model of the base station, upgrade according to the upgrade file base station.
在一个实施例中,升级文件为压缩文件,计算机程序被处理器执行时实现以下步骤:解压升级文件,得到解压后的升级文件;根据解压后的升级文件升级基站。In one embodiment, the upgrade file is a compressed file. When the computer program is executed by the processor, the following steps are implemented: decompress the upgrade file to obtain the decompressed upgrade file; and upgrade the base station according to the decompressed upgrade file.
在一个实施例中,计算机程序被处理器执行时实现以下步骤:通过升级文件更新基站版本,得到更新后的基站版本;更新基站的运行参数,得到更新后的运行参数;通过调用更新后的运行参数,运行更新后的基站版本。In one embodiment, when the computer program is executed by the processor, the following steps are implemented: update the base station version through the upgrade file to obtain the updated base station version; update the operating parameters of the base station to obtain the updated operating parameters; call the updated operation parameters to run the updated base station version.
在一个实施例中,上述通过升级文件升级基站版本,得到更新后的基站版本之前,计算机程序被处理器执行时实现以下步骤:将基站的初始运行参数存储在备份区域;初始运行参数为基站在升级前运行时所调用的参数;调用初始运行参数,对初始运行参数进行更新,得到更新后的运行参数。In one embodiment, before upgrading the base station version through the upgrade file and obtaining the updated base station version, the computer program implements the following steps when executed by the processor: store the initial operating parameters of the base station in the backup area; the initial operating parameters of the base station are Parameters called during runtime before upgrading; call the initial running parameters, update the initial running parameters, and obtain the updated running parameters.
在一个实施例中,升级文件包括应用层版本文件、内核版本文件和根文件中的至少一种;其中,升级应用层版本的优先级最低,内核版本文件的优先级最高。In one embodiment, the upgrade file includes at least one of an application layer version file, a kernel version file, and a root file; wherein, upgrading the application layer version has the lowest priority, and the kernel version file has the highest priority.
在其中一个实施例中,计算机程序被处理器执行时实现以下步骤:获取应用层版本文件、内核版本文件和根文件的配置信息,应用层版本文件的配置信息用于指示应用层版本文件的软件版本,内核版本文件的配置信息用于指示内核版本文件的软件版本,根文件的配置信息用于指示根文件的软件版本;根据应用层版本文件、内核版本文件和根文件的配置信息升级基站。In one embodiment, when the computer program is executed by the processor, the following steps are implemented: obtaining configuration information of the application layer version file, the kernel version file, and the root file. The configuration information of the application layer version file is used to indicate the software of the application layer version file. version, the configuration information of the kernel version file is used to indicate the software version of the kernel version file, and the configuration information of the root file is used to indicate the software version of the root file; the base station is upgraded according to the configuration information of the application layer version file, kernel version file, and root file.
在一个实施例中,计算机程序被处理器执行时实现以下步骤:若应用层版本文件的软件版本、内核版本文件的软件版本和根文件的软件版本中的一个或几个与基站当前的对应软件版本一致,则删除升级文件中与基站当前的对应软件版本一致的软件版本,并根据升级文件中剩余的版本文件升级基站。In one embodiment, when the computer program is executed by the processor, the following steps are implemented: if one or more of the software version of the application layer version file, the software version of the kernel version file, and the software version of the root file are the same as the current corresponding software of the base station If the versions are consistent, delete the software version in the upgrade file that is consistent with the current corresponding software version of the base station, and upgrade the base station based on the remaining version files in the upgrade file.
本实施例提供的计算机可读存储介质,其实现原理和技术效果与上述方法实施例类似,在此不再赘述。The implementation principles and technical effects of the computer-readable storage medium provided by this embodiment are similar to those of the above method embodiments, and will not be described again here.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、接口动态随机存储器(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage. In the media, when executed, the computer program may include the processes of the above method embodiments. Any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and/or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Synchlink DRAM (SLDRAM), interface dynamic random access memory (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above-described embodiments can be combined in any way. To simplify the description, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, All should be considered to be within the scope of this manual.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-described embodiments only express several implementation modes of the present application, and their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of the invention patent. It should be noted that, for those of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all fall within the protection scope of the present application. Therefore, the protection scope of this patent application should be determined by the appended claims.
Claims (15)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911420254.8A CN111190628B (en) | 2019-12-31 | 2019-12-31 | Base station upgrading method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911420254.8A CN111190628B (en) | 2019-12-31 | 2019-12-31 | Base station upgrading method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111190628A CN111190628A (en) | 2020-05-22 |
CN111190628B true CN111190628B (en) | 2023-10-20 |
Family
ID=70707975
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911420254.8A Active CN111190628B (en) | 2019-12-31 | 2019-12-31 | Base station upgrading method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111190628B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113867749A (en) * | 2020-06-30 | 2021-12-31 | Oppo广东移动通信有限公司 | Data upgrade method, electronic device and storage medium |
CN113296824B (en) * | 2020-07-29 | 2024-07-12 | 合肥移瑞通信技术有限公司 | Error code acquisition method |
CN114697310B (en) * | 2020-12-30 | 2023-04-28 | 大唐移动通信设备有限公司 | Upgrade file distribution method, scheduling server, device and storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101867694A (en) * | 2010-05-21 | 2010-10-20 | 中兴通讯股份有限公司 | Method and system for upgrading interactive internet protocol television (IPTV) set top box (STB) |
CN101888653A (en) * | 2009-05-15 | 2010-11-17 | 中兴通讯股份有限公司 | Firmware updating method, base station and network management center |
CN102915249A (en) * | 2012-11-02 | 2013-02-06 | 苏州科达科技股份有限公司 | Method and device for remotely realizing firmware updating |
CN103685552A (en) * | 2013-12-25 | 2014-03-26 | 烽火通信科技股份有限公司 | Software upgrading method for small memory device |
CN103761106A (en) * | 2014-02-07 | 2014-04-30 | 张战 | Process control method and process engine |
CN104063257A (en) * | 2014-07-23 | 2014-09-24 | 武汉邮电科学研究院 | System and method for FPGA automatic loading |
CN105373410A (en) * | 2015-12-22 | 2016-03-02 | 京信通信技术(广州)有限公司 | Differential upgrading method and device for base station software |
CN109391497A (en) * | 2017-08-10 | 2019-02-26 | 大唐移动通信设备有限公司 | A kind of method, base station and the management station of version file upgrading |
CN109831394A (en) * | 2017-11-23 | 2019-05-31 | 杭州华为数字技术有限公司 | Data processing method, terminal and computer storage medium |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2541412A4 (en) * | 2010-02-23 | 2013-04-10 | Fujitsu Ltd | UPDATE METHOD, UPDATE DEVICE, AND UPDATE PROGRAM |
US8997085B2 (en) * | 2011-06-24 | 2015-03-31 | International Business Machines Corporation | Image delta-based upgrade of complex stack in software appliance |
-
2019
- 2019-12-31 CN CN201911420254.8A patent/CN111190628B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101888653A (en) * | 2009-05-15 | 2010-11-17 | 中兴通讯股份有限公司 | Firmware updating method, base station and network management center |
CN101867694A (en) * | 2010-05-21 | 2010-10-20 | 中兴通讯股份有限公司 | Method and system for upgrading interactive internet protocol television (IPTV) set top box (STB) |
CN102915249A (en) * | 2012-11-02 | 2013-02-06 | 苏州科达科技股份有限公司 | Method and device for remotely realizing firmware updating |
CN103685552A (en) * | 2013-12-25 | 2014-03-26 | 烽火通信科技股份有限公司 | Software upgrading method for small memory device |
CN103761106A (en) * | 2014-02-07 | 2014-04-30 | 张战 | Process control method and process engine |
CN104063257A (en) * | 2014-07-23 | 2014-09-24 | 武汉邮电科学研究院 | System and method for FPGA automatic loading |
CN105373410A (en) * | 2015-12-22 | 2016-03-02 | 京信通信技术(广州)有限公司 | Differential upgrading method and device for base station software |
CN109391497A (en) * | 2017-08-10 | 2019-02-26 | 大唐移动通信设备有限公司 | A kind of method, base station and the management station of version file upgrading |
CN109831394A (en) * | 2017-11-23 | 2019-05-31 | 杭州华为数字技术有限公司 | Data processing method, terminal and computer storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN111190628A (en) | 2020-05-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111666080B (en) | Micro service cluster deployment method and device, computer equipment and storage medium | |
CN100541430C (en) | Software updating method, device and system | |
CN101931944B (en) | Method, device and system for updating terminal patches on line | |
CN111190628B (en) | Base station upgrading method, device, equipment and storage medium | |
US8539471B2 (en) | Updating firmware of an electronic device | |
US7793283B2 (en) | Communication terminal software updating method, communication terminal, and software updating method | |
US20070226334A1 (en) | Mobile terminal and software update method | |
JP2001331324A (en) | Method and device for processing information and recording medium | |
CN109634638B (en) | A cluster software upgrade method, device, equipment and medium | |
CN106557347A (en) | Software updating method and device | |
CN113590169B (en) | Application deployment method, application deployment system, and computer-readable storage medium | |
CN112463170B (en) | Method, device and equipment for making mirror image on cloud platform and storage medium | |
CN116450244A (en) | Chip startup method, device, computer equipment and storage medium | |
US7222338B2 (en) | Method for upgrading data | |
CN111683022B (en) | White box switch, method for upgrading forwarding function of white box switch and readable storage medium | |
WO2012077604A1 (en) | Processing device, program update method, and program | |
WO2022047725A1 (en) | Mobile platform firmware upgrade method, mount platform, and terminal device | |
US20100145906A1 (en) | Storage method | |
JP4483239B2 (en) | Differential rewriting system, method, portable terminal and program for portable terminal software | |
WO2019237222A1 (en) | System upgrading method, smart device, and server | |
JP2001067214A (en) | Computer system and program file updating method | |
CN114020292B (en) | Virtual NAS system upgrading method, device, equipment and storage medium | |
CN120371358B (en) | Data interaction method, device, equipment, medium and product during online upgrading | |
CN113961206A (en) | Patch package installation method, device, electronic device and storage medium | |
CN114327576A (en) | Upgrade implementation method, device, system and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 510663 Shenzhou Road 10, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangzhou, Guangdong Applicant after: Jingxin Network System Co.,Ltd. Address before: 510663 Shenzhou Road 10, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangzhou, Guangdong Applicant before: COMBA TELECOM SYSTEMS (CHINA) Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |