CN111459514B - A terminal upgrade processing method, server and base station - Google Patents

A terminal upgrade processing method, server and base station Download PDF

Info

Publication number
CN111459514B
CN111459514B CN201910047318.8A CN201910047318A CN111459514B CN 111459514 B CN111459514 B CN 111459514B CN 201910047318 A CN201910047318 A CN 201910047318A CN 111459514 B CN111459514 B CN 111459514B
Authority
CN
China
Prior art keywords
terminal
upgrade
version number
terminal type
data packet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910047318.8A
Other languages
Chinese (zh)
Other versions
CN111459514A (en
Inventor
李俊
徐宏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Potevio Information Technology Co Ltd
Original Assignee
Potevio Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Potevio Information Technology Co Ltd filed Critical Potevio Information Technology Co Ltd
Priority to CN201910047318.8A priority Critical patent/CN111459514B/en
Publication of CN111459514A publication Critical patent/CN111459514A/en
Application granted granted Critical
Publication of CN111459514B publication Critical patent/CN111459514B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention provides a terminal upgrading processing method, a server and a base station, wherein the method comprises the following steps: sending an upgrade command to a base station so that the base station generates first package information after receiving the upgrade command, and periodically sending a first page carrying the first package information to a terminal; receiving a return message which is forwarded by a base station and returned by a terminal corresponding to the terminal type and indicates that the upgrade data packet is received, and determining whether all terminals corresponding to the terminal type have received the upgrade data packet according to the quantity of all return messages; if yes, sending an update effective instruction to the base station so that the base station generates second package information, and sending a second page carrying the second package information to each terminal corresponding to the terminal type; the server executes the method; the base station performs another method. The method, the server and the base station provided by the embodiment of the invention can effectively control the terminal.

Description

一种终端升级的处理方法、服务器及基站A terminal upgrade processing method, server and base station

技术领域technical field

本发明实施例涉及终端管控技术领域,尤其涉及一种终端升级的处理方法、服务器及基站。Embodiments of the present invention relate to the technical field of terminal management and control, and in particular, relate to a terminal upgrade processing method, a server, and a base station.

背景技术Background technique

为了网管服务器(以下简称“服务器”)对终端进行有效管控,通常需要对终端进行升级,而终端升级的升级方式对于服务器有效管控终端显得尤为重要。In order for the network management server (hereinafter referred to as "server") to effectively manage and control the terminal, it is usually necessary to upgrade the terminal, and the upgrading method of the terminal is particularly important for the server to effectively control the terminal.

现有技术通常采用服务器定期指定一个或少量几个未升级的指定终端同时进行升级,升级过程中每个终端占用一个子带或一个通道,但是,在需要升级的终端数量较多的情况下,采用这种升级方式需要长时间占用频谱资源,而且,影响正常业务的传输。In the prior art, the server usually designates one or a small number of non-upgraded designated terminals to be upgraded at the same time. During the upgrade process, each terminal occupies a subband or a channel. However, when there are a large number of terminals that need to be upgraded, Adopting this upgrade method needs to occupy spectrum resources for a long time, and affects the transmission of normal services.

因此,如何避免上述缺陷,采用合理的终端升级方式有效管控终端,进而减少终端由于升级占用频谱资源的时间,使得终端可以有更多的时间用来进行业务传输,并提高时频资源利用率,成为亟须解决的问题。Therefore, how to avoid the above defects, adopt a reasonable terminal upgrade method to effectively control the terminal, and then reduce the time that the terminal occupies spectrum resources due to the upgrade, so that the terminal can have more time for service transmission, and improve the utilization rate of time-frequency resources, become an urgent problem to be solved.

发明内容Contents of the invention

针对现有技术存在的问题,本发明实施例提供一种终端升级的处理方法、服务器及基站。Aiming at the problems existing in the prior art, embodiments of the present invention provide a terminal upgrade processing method, a server, and a base station.

本发明实施例提供一种终端升级的处理方法,包括:An embodiment of the present invention provides a terminal upgrade processing method, including:

发送升级命令至基站,以供所述基站在接收到所述升级命令之后,生成第一打包信息,并周期性向终端发送携带有所述第一打包信息的第一寻呼;其中,所述第一打包信息包括升级版本号、承载升级数据包的指定子带的起始子带号、指示更新命令的第一标记位和需要升级终端的终端类型;所述升级命令携带有所述第一标记位和所述终端类型;sending an upgrade command to the base station, so that the base station generates first packaging information after receiving the upgrade command, and periodically sends a first paging carrying the first packaging information to the terminal; wherein, the first A packaged information includes the upgrade version number, the starting subband number of the specified subband carrying the upgrade data packet, the first flag bit indicating the update command, and the terminal type of the terminal that needs to be upgraded; the upgrade command carries the first flag bit and the terminal type;

接收所述基站转发的、由与所述终端类型对应的终端返回的表示升级数据包已接收完成的返回消息,并根据所有返回消息的数量,确定所述终端类型对应的所有终端是否都已接收到所述升级数据包;其中,所述终端类型对应的终端根据所述第一标记位,比对所述升级版本号和本地升级版本号,若比对结果不同,则根据所述起始子带号接收所述升级数据包;receiving the return message indicating that the upgrade data packet has been received and returned by the terminal corresponding to the terminal type forwarded by the base station, and determining whether all terminals corresponding to the terminal type have received it according to the number of all returned messages to the upgrade data packet; wherein, the terminal corresponding to the terminal type compares the upgrade version number with the local upgrade version number according to the first flag bit, and if the comparison results are different, the Receive the upgrade data packet with a number;

若确定为是,则发送更新生效指令至所述基站,以供所述基站生成第二打包信息,并向与所述终端类型对应的每个终端发送携带有所述第二打包信息的第二寻呼;其中,每个终端根据指示更新生效指令的第二标记位,比对所述升级版本号和待更新生效的升级版本号,若比对结果相同,则执行使所述升级版本号生效的指令;所述第二打包信息包括所述第二标记位、待更新生效的升级版本号和生效时间;所述生效时间用于控制与所述终端类型对应的每个终端在接收到所述第二标记位之后执行所述更新生效指令的延时时长。If it is determined to be yes, then send an update validation instruction to the base station, so that the base station can generate second packaging information, and send a second packet carrying the second packaging information to each terminal corresponding to the terminal type. Paging; where, each terminal compares the upgrade version number with the upgrade version number to be updated and take effect according to the second flag bit of the instruction to update and take effect, and if the comparison results are the same, execute the upgrade version number to take effect instruction; the second packaging information includes the second flag bit, the upgrade version number to be updated and take effect, and the effective time; the effective time is used to control each terminal corresponding to the terminal type when receiving the The delay time for executing the update validation instruction after the second flag bit.

本发明实施例还提供一种终端升级的处理方法,所述方法包括:The embodiment of the present invention also provides a terminal upgrade processing method, the method comprising:

接收服务器发送的升级命令,生成第一打包信息;其中,所述第一打包信息包括升级版本号、承载升级数据包的指定子带的起始子带号、指示更新命令的第一标记位和需要升级终端的终端类型;所述升级命令携带有所述第一标记位和所述终端类型;receiving the upgrade command sent by the server, and generating first packaging information; wherein, the first packaging information includes the upgrade version number, the starting subband number of the specified subband carrying the upgrade data packet, the first flag indicating the update command, and The terminal type of the terminal needs to be upgraded; the upgrade command carries the first flag bit and the terminal type;

周期性向终端发送携带有所述第一打包信息的第一寻呼;periodically sending the first paging carrying the first packetized information to the terminal;

接收由与所述终端类型对应的终端返回的表示升级数据包已接收完成的返回消息,并转发所有返回消息至所述服务器,以供所述服务器根据所有返回消息的数量,确定所述终端类型对应的所有终端是否都已接收到所述升级数据包;其中,所述终端类型对应的终端根据所述第一标记位,比对所述升级版本号和本地升级版本号,若比对结果不同,则根据所述起始子带号接收所述升级数据包;receiving a return message indicating that the upgrade data package has been received and completed returned by the terminal corresponding to the terminal type, and forwarding all return messages to the server, so that the server can determine the terminal type according to the number of all return messages Whether all corresponding terminals have received the upgrade data packet; wherein, the terminal corresponding to the terminal type compares the upgrade version number with the local upgrade version number according to the first flag bit, and if the comparison results are different , then receive the upgrade data packet according to the starting subband number;

接收所述服务器在确定为是时发送的更新生效指令,生成第二打包信息,并向与所述终端类型对应的每个终端发送携带有所述第二打包信息的第二寻呼;其中,每个终端根据指示更新生效指令的第二标记位,比对所述升级版本号和待更新生效的升级版本号,若比对结果相同,则执行使所述升级版本号生效的指令;所述第二打包信息包括所述第二标记位、待更新生效的升级版本号和生效时间;所述生效时间用于控制与所述终端类型对应的每个终端在接收到所述第二标记位之后执行所述更新生效指令的延时时长。Receiving the update validation instruction sent by the server when it is determined to be yes, generating second packaging information, and sending a second paging carrying the second packaging information to each terminal corresponding to the terminal type; wherein, Each terminal compares the upgrade version number with the upgrade version number to be updated according to the second flag bit of the instruction to update and take effect, and if the comparison results are the same, execute the instruction to make the upgrade version number take effect; The second packaging information includes the second flag bit, the upgrade version number to be updated and take effect, and the effective time; the effective time is used to control each terminal corresponding to the terminal type after receiving the second flag bit The delay time for executing the update effective instruction.

本发明实施例提供一种服务器,包括:An embodiment of the present invention provides a server, including:

第一发送模块,用于发送升级命令至基站,以供所述基站在接收到所述升级命令之后,生成第一打包信息,并周期性向终端发送携带有所述第一打包信息的第一寻呼;其中,所述第一打包信息包括升级版本号、承载升级数据包的指定子带的起始子带号、指示更新命令的第一标记位和需要升级终端的终端类型;所述升级命令携带有所述第一标记位和所述终端类型;The first sending module is configured to send an upgrade command to the base station, so that the base station generates first packaging information after receiving the upgrade command, and periodically sends a first page carrying the first packaging information to the terminal Call; wherein, the first packaging information includes the upgrade version number, the starting subband number of the specified subband carrying the upgrade data packet, the first flag indicating the update command and the terminal type of the terminal that needs to be upgraded; the upgrade command carrying the first flag bit and the terminal type;

确定模块,用于接收所述基站转发的、由与所述终端类型对应的终端返回的表示升级数据包已接收完成的返回消息,并根据所有返回消息的数量,确定所述终端类型对应的所有终端是否都已接收到所述升级数据包;其中,所述终端类型对应的终端根据所述第一标记位,比对所述升级版本号和本地升级版本号,若比对结果不同,则根据所述起始子带号接收所述升级数据包;A determining module, configured to receive a return message indicating that the upgrade data packet has been received and returned by a terminal corresponding to the terminal type forwarded by the base station, and determine all the corresponding information of the terminal type according to the number of all returned messages. Whether all terminals have received the upgrade data packet; wherein, the terminal corresponding to the terminal type compares the upgrade version number with the local upgrade version number according to the first flag bit, and if the comparison results are different, then according to The starting subband number receives the upgrade data packet;

第二发送模块,用于若确定为是,则发送更新生效指令至所述基站,以供所述基站生成第二打包信息,并向与所述终端类型对应的每个终端发送携带有所述第二打包信息的第二寻呼;其中,每个终端根据指示更新生效指令的第二标记位,比对所述升级版本号和待更新生效的升级版本号,若比对结果相同,则执行使所述升级版本号生效的指令;所述第二打包信息包括所述第二标记位、待更新生效的升级版本号和生效时间;所述生效时间用于控制与所述终端类型对应的每个终端在接收到所述第二标记位之后执行所述更新生效指令的延时时长。The second sending module is configured to send an update validation instruction to the base station if it is determined to be yes, so that the base station can generate second packaging information, and send each terminal corresponding to the terminal type carrying the The second paging of the second packaged information; wherein, each terminal compares the upgrade version number with the upgrade version number to be updated and validated according to the second flag bit indicating the update validation instruction, and if the comparison results are the same, execute An instruction to make the upgrade version number take effect; the second packaging information includes the second flag bit, the upgrade version number to be updated and become effective, and the effective time; the effective time is used to control each terminal corresponding to the terminal type The delay time for a terminal to execute the update validation instruction after receiving the second flag bit.

本发明实施例提供一种电子设备,包括:第一处理器、第一存储器和第一总线,其中,An embodiment of the present invention provides an electronic device, including: a first processor, a first memory, and a first bus, wherein,

所述第一处理器和所述第一存储器通过所述第一总线完成相互间的通信;The first processor and the first memory complete mutual communication through the first bus;

所述第一存储器存储有可被所述第一处理器执行的程序指令,所述第一处理器调用所述程序指令能够执行如下方法:The first memory stores program instructions executable by the first processor, and the first processor calls the program instructions to perform the following methods:

发送升级命令至基站,以供所述基站在接收到所述升级命令之后,生成第一打包信息,并周期性向终端发送携带有所述第一打包信息的第一寻呼;其中,所述第一打包信息包括升级版本号、承载升级数据包的指定子带的起始子带号、指示更新命令的第一标记位和需要升级终端的终端类型;所述升级命令携带有所述第一标记位和所述终端类型;sending an upgrade command to the base station, so that the base station generates first packaging information after receiving the upgrade command, and periodically sends a first paging carrying the first packaging information to the terminal; wherein, the first A packaged information includes the upgrade version number, the starting subband number of the specified subband carrying the upgrade data packet, the first flag bit indicating the update command, and the terminal type of the terminal that needs to be upgraded; the upgrade command carries the first flag bit and the terminal type;

接收所述基站转发的、由与所述终端类型对应的终端返回的表示升级数据包已接收完成的返回消息,并根据所有返回消息的数量,确定所述终端类型对应的所有终端是否都已接收到所述升级数据包;其中,所述终端类型对应的终端根据所述第一标记位,比对所述升级版本号和本地升级版本号,若比对结果不同,则根据所述起始子带号接收所述升级数据包;receiving the return message indicating that the upgrade data packet has been received and returned by the terminal corresponding to the terminal type forwarded by the base station, and determining whether all terminals corresponding to the terminal type have received it according to the number of all returned messages to the upgrade data packet; wherein, the terminal corresponding to the terminal type compares the upgrade version number with the local upgrade version number according to the first flag bit, and if the comparison results are different, the Receive the upgrade data packet with a number;

若确定为是,则发送更新生效指令至所述基站,以供所述基站生成第二打包信息,并向与所述终端类型对应的每个终端发送携带有所述第二打包信息的第二寻呼;其中,每个终端根据指示更新生效指令的第二标记位,比对所述升级版本号和待更新生效的升级版本号,若比对结果相同,则执行使所述升级版本号生效的指令;所述第二打包信息包括所述第二标记位、待更新生效的升级版本号和生效时间;所述生效时间用于控制与所述终端类型对应的每个终端在接收到所述第二标记位之后执行所述更新生效指令的延时时长。If it is determined to be yes, then send an update validation instruction to the base station, so that the base station can generate second packaging information, and send a second packet carrying the second packaging information to each terminal corresponding to the terminal type. Paging; where, each terminal compares the upgrade version number with the upgrade version number to be updated and take effect according to the second flag bit of the instruction to update and take effect, and if the comparison results are the same, execute the upgrade version number to take effect instruction; the second packaging information includes the second flag bit, the upgrade version number to be updated and take effect, and the effective time; the effective time is used to control each terminal corresponding to the terminal type when receiving the The delay time for executing the update validation instruction after the second flag bit.

本发明实施例提供一种非暂态计算机可读存储介质,包括:An embodiment of the present invention provides a non-transitory computer-readable storage medium, including:

所述非暂态计算机可读存储介质存储计算机指令,所述计算机指令使所述计算机执行如下方法:The non-transitory computer-readable storage medium stores computer instructions, and the computer instructions cause the computer to perform the following method:

发送升级命令至基站,以供所述基站在接收到所述升级命令之后,生成第一打包信息,并周期性向终端发送携带有所述第一打包信息的第一寻呼;其中,所述第一打包信息包括升级版本号、承载升级数据包的指定子带的起始子带号、指示更新命令的第一标记位和需要升级终端的终端类型;所述升级命令携带有所述第一标记位和所述终端类型;sending an upgrade command to the base station, so that the base station generates first packaging information after receiving the upgrade command, and periodically sends a first paging carrying the first packaging information to the terminal; wherein, the first A packaged information includes the upgrade version number, the starting subband number of the specified subband carrying the upgrade data packet, the first flag bit indicating the update command, and the terminal type of the terminal that needs to be upgraded; the upgrade command carries the first flag bit and the terminal type;

接收所述基站转发的、由与所述终端类型对应的终端返回的表示升级数据包已接收完成的返回消息,并根据所有返回消息的数量,确定所述终端类型对应的所有终端是否都已接收到所述升级数据包;其中,所述终端类型对应的终端根据所述第一标记位,比对所述升级版本号和本地升级版本号,若比对结果不同,则根据所述起始子带号接收所述升级数据包;receiving the return message indicating that the upgrade data packet has been received and returned by the terminal corresponding to the terminal type forwarded by the base station, and determining whether all terminals corresponding to the terminal type have received it according to the number of all returned messages to the upgrade data packet; wherein, the terminal corresponding to the terminal type compares the upgrade version number with the local upgrade version number according to the first flag bit, and if the comparison results are different, the Receive the upgrade data packet with a number;

若确定为是,则发送更新生效指令至所述基站,以供所述基站生成第二打包信息,并向与所述终端类型对应的每个终端发送携带有所述第二打包信息的第二寻呼;其中,每个终端根据指示更新生效指令的第二标记位,比对所述升级版本号和待更新生效的升级版本号,若比对结果相同,则执行使所述升级版本号生效的指令;所述第二打包信息包括所述第二标记位、待更新生效的升级版本号和生效时间;所述生效时间用于控制与所述终端类型对应的每个终端在接收到所述第二标记位之后执行所述更新生效指令的延时时长。If it is determined to be yes, then send an update validation instruction to the base station, so that the base station can generate second packaging information, and send a second packet carrying the second packaging information to each terminal corresponding to the terminal type. Paging; where, each terminal compares the upgrade version number with the upgrade version number to be updated and take effect according to the second flag bit of the instruction to update and take effect, and if the comparison results are the same, execute the upgrade version number to take effect instruction; the second packaging information includes the second flag bit, the upgrade version number to be updated and take effect, and the effective time; the effective time is used to control each terminal corresponding to the terminal type when receiving the The delay time for executing the update validation instruction after the second flag bit.

本发明实施例提供一种基站,包括:An embodiment of the present invention provides a base station, including:

第一生成单元,用于接收服务器发送的升级命令,生成第一打包信息;其中,所述第一打包信息包括升级版本号、承载升级数据包的指定子带的起始子带号、指示更新命令的第一标记位和需要升级终端的终端类型;所述升级命令携带有所述第一标记位和所述终端类型;The first generation unit is configured to receive the upgrade command sent by the server, and generate the first packaging information; wherein, the first packaging information includes the upgrade version number, the starting subband number of the specified subband carrying the upgrade data packet, and the instruction update The first flag bit of the command and the terminal type of the terminal to be upgraded; the upgrade command carries the first flag bit and the terminal type;

发送单元,用于周期性向终端发送携带有所述第一打包信息的第一寻呼;a sending unit, configured to periodically send the first paging carrying the first packetized information to the terminal;

转发单元,用于接收由与所述终端类型对应的终端返回的表示升级数据包已接收完成的返回消息,并转发所有返回消息至所述服务器,以供所述服务器根据所有返回消息的数量,确定所述终端类型对应的所有终端是否都已接收到所述升级数据包;其中,所述终端类型对应的终端根据所述第一标记位,比对所述升级版本号和本地升级版本号,若比对结果不同,则根据所述起始子带号接收所述升级数据包;A forwarding unit, configured to receive a return message indicating that the upgrade data packet has been received and completed returned by a terminal corresponding to the terminal type, and forward all return messages to the server, so that the server can, according to the number of all return messages, determining whether all terminals corresponding to the terminal type have received the upgrade data packet; wherein, the terminal corresponding to the terminal type compares the upgrade version number with the local upgrade version number according to the first flag bit, If the comparison results are different, the upgrade data packet is received according to the starting subband number;

第二生成单元,用于接收所述服务器在确定为是时发送的更新生效指令,生成第二打包信息,并向与所述终端类型对应的每个终端发送携带有所述第二打包信息的第二寻呼;其中,每个终端根据指示更新生效指令的第二标记位,比对所述升级版本号和待更新生效的升级版本号,若比对结果相同,则执行使所述升级版本号生效的指令;所述第二打包信息包括所述第二标记位、待更新生效的升级版本号和生效时间;所述生效时间用于控制与所述终端类型对应的每个终端在接收到所述第二标记位之后执行所述更新生效指令的延时时长。The second generating unit is configured to receive an update validation instruction sent by the server when it is determined to be yes, generate second packaging information, and send an instruction carrying the second packaging information to each terminal corresponding to the terminal type The second paging; wherein, each terminal compares the upgrade version number with the upgrade version number to be updated according to the second flag bit of the command indicating that the update becomes effective, and if the comparison results are the same, execute the upgrade version No. effective instruction; the second packaging information includes the second flag bit, the upgrade version number to be updated and effective time; the effective time is used to control each terminal corresponding to the terminal type when receiving The delay time for executing the update validation instruction after the second flag bit.

本发明实施例提供一种电子设备,包括:第二处理器、第二存储器和第二总线,其中,An embodiment of the present invention provides an electronic device, including: a second processor, a second memory, and a second bus, wherein,

所述第二处理器和所述第二存储器通过所述第二总线完成相互间的通信;The second processor and the second memory complete mutual communication through the second bus;

所述第二存储器存储有可被所述第二处理器执行的程序指令,所述第二处理器调用所述程序指令能够执行如下方法:The second memory stores program instructions executable by the second processor, and the second processor calls the program instructions to perform the following methods:

接收服务器发送的升级命令,生成第一打包信息;其中,所述第一打包信息包括升级版本号、承载升级数据包的指定子带的起始子带号、指示更新命令的第一标记位和需要升级终端的终端类型;所述升级命令携带有所述第一标记位和所述终端类型;receiving the upgrade command sent by the server, and generating first packaging information; wherein, the first packaging information includes the upgrade version number, the starting subband number of the specified subband carrying the upgrade data packet, the first flag indicating the update command, and The terminal type of the terminal needs to be upgraded; the upgrade command carries the first flag bit and the terminal type;

周期性向终端发送携带有所述第一打包信息的第一寻呼;periodically sending the first paging carrying the first packetized information to the terminal;

接收由与所述终端类型对应的终端返回的表示升级数据包已接收完成的返回消息,并转发所有返回消息至所述服务器,以供所述服务器根据所有返回消息的数量,确定所述终端类型对应的所有终端是否都已接收到所述升级数据包;其中,所述终端类型对应的终端根据所述第一标记位,比对所述升级版本号和本地升级版本号,若比对结果不同,则根据所述起始子带号接收所述升级数据包;receiving a return message indicating that the upgrade data package has been received and completed returned by the terminal corresponding to the terminal type, and forwarding all return messages to the server, so that the server can determine the terminal type according to the number of all return messages Whether all corresponding terminals have received the upgrade data packet; wherein, the terminal corresponding to the terminal type compares the upgrade version number with the local upgrade version number according to the first flag bit, and if the comparison results are different , then receive the upgrade data packet according to the starting subband number;

接收所述服务器在确定为是时发送的更新生效指令,生成第二打包信息,并向与所述终端类型对应的每个终端发送携带有所述第二打包信息的第二寻呼;其中,每个终端根据指示更新生效指令的第二标记位,比对所述升级版本号和待更新生效的升级版本号,若比对结果相同,则执行使所述升级版本号生效的指令;所述第二打包信息包括所述第二标记位、待更新生效的升级版本号和生效时间;所述生效时间用于控制与所述终端类型对应的每个终端在接收到所述第二标记位之后执行所述更新生效指令的延时时长。Receiving the update validation instruction sent by the server when it is determined to be yes, generating second packaging information, and sending a second paging carrying the second packaging information to each terminal corresponding to the terminal type; wherein, Each terminal compares the upgrade version number with the upgrade version number to be updated according to the second flag bit of the instruction to update and take effect, and if the comparison results are the same, execute the instruction to make the upgrade version number take effect; The second packaging information includes the second flag bit, the upgrade version number to be updated and take effect, and the effective time; the effective time is used to control each terminal corresponding to the terminal type after receiving the second flag bit The delay time for executing the update effective instruction.

本发明实施例提供一种非暂态计算机可读存储介质,包括:An embodiment of the present invention provides a non-transitory computer-readable storage medium, including:

所述非暂态计算机可读存储介质存储计算机指令,所述计算机指令使所述计算机执行如下方法:The non-transitory computer-readable storage medium stores computer instructions, and the computer instructions cause the computer to perform the following method:

接收服务器发送的升级命令,生成第一打包信息;其中,所述第一打包信息包括升级版本号、承载升级数据包的指定子带的起始子带号、指示更新命令的第一标记位和需要升级终端的终端类型;所述升级命令携带有所述第一标记位和所述终端类型;receiving the upgrade command sent by the server, and generating first packaging information; wherein, the first packaging information includes the upgrade version number, the starting subband number of the specified subband carrying the upgrade data packet, the first flag indicating the update command, and The terminal type of the terminal needs to be upgraded; the upgrade command carries the first flag bit and the terminal type;

周期性向终端发送携带有所述第一打包信息的第一寻呼;periodically sending the first paging carrying the first packetized information to the terminal;

接收由与所述终端类型对应的终端返回的表示升级数据包已接收完成的返回消息,并转发所有返回消息至所述服务器,以供所述服务器根据所有返回消息的数量,确定所述终端类型对应的所有终端是否都已接收到所述升级数据包;其中,所述终端类型对应的终端根据所述第一标记位,比对所述升级版本号和本地升级版本号,若比对结果不同,则根据所述起始子带号接收所述升级数据包;receiving a return message indicating that the upgrade data package has been received and completed returned by the terminal corresponding to the terminal type, and forwarding all return messages to the server, so that the server can determine the terminal type according to the number of all return messages Whether all corresponding terminals have received the upgrade data packet; wherein, the terminal corresponding to the terminal type compares the upgrade version number with the local upgrade version number according to the first flag bit, and if the comparison results are different , then receive the upgrade data packet according to the starting subband number;

接收所述服务器在确定为是时发送的更新生效指令,生成第二打包信息,并向与所述终端类型对应的每个终端发送携带有所述第二打包信息的第二寻呼;其中,每个终端根据指示更新生效指令的第二标记位,比对所述升级版本号和待更新生效的升级版本号,若比对结果相同,则执行使所述升级版本号生效的指令;所述第二打包信息包括所述第二标记位、待更新生效的升级版本号和生效时间;所述生效时间用于控制与所述终端类型对应的每个终端在接收到所述第二标记位之后执行所述更新生效指令的延时时长。Receiving the update validation instruction sent by the server when it is determined to be yes, generating second packaging information, and sending a second paging carrying the second packaging information to each terminal corresponding to the terminal type; wherein, Each terminal compares the upgrade version number with the upgrade version number to be updated according to the second flag bit of the instruction to update and take effect, and if the comparison results are the same, execute the instruction to make the upgrade version number take effect; The second packaging information includes the second flag bit, the upgrade version number to be updated and take effect, and the effective time; the effective time is used to control each terminal corresponding to the terminal type after receiving the second flag bit The delay time for executing the update effective instruction.

本发明实施例提供的终端升级的处理方法、服务器及基站,先通过发送第一打包信息的方式,使得需要升级终端的终端类型对应的终端在接收完成升级数据包之后发送返回消息,再根据返回消息的数量确定所有终端在接收完成升级数据包之后,再通过发送第二打包信息的方式,使得所有终端中的升级版本号生效,能够采用合理的终端升级方式有效管控终端,进而减少终端由于升级占用频谱资源的时间,使得终端可以有更多的时间用来进行业务传输,并提高时频资源利用率。The terminal upgrade processing method, server, and base station provided by the embodiments of the present invention first send the first packaged information, so that the terminal corresponding to the terminal type that needs to upgrade the terminal sends a return message after receiving the upgrade data packet, and then according to the return The number of messages determines that all terminals send the second packaged information after receiving the upgrade data package, so that the upgrade version number in all terminals takes effect, and a reasonable terminal upgrade method can be used to effectively control the terminal, thereby reducing the number of terminals due to upgrade. Occupying the time of spectrum resources enables the terminal to have more time for service transmission and improves the utilization rate of time-frequency resources.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1为本发明终端升级的处理方法实施例流程图;FIG. 1 is a flow chart of an embodiment of a processing method for terminal upgrade of the present invention;

图2为本发明终端升级的处理方法另一实施例流程图;FIG. 2 is a flow chart of another embodiment of the processing method for terminal upgrade of the present invention;

图3为本发明终端升级的处理方法另一实施例流程图;FIG. 3 is a flow chart of another embodiment of the processing method for terminal upgrade of the present invention;

图4为本发明实施例服务器结构示意图;FIG. 4 is a schematic structural diagram of a server according to an embodiment of the present invention;

图5为本发明实施例提供的电子设备实体结构示意图;FIG. 5 is a schematic diagram of the physical structure of an electronic device provided by an embodiment of the present invention;

图6为本发明实施例基站结构示意图;FIG. 6 is a schematic structural diagram of a base station according to an embodiment of the present invention;

图7为本发明实施例提供的电子设备实体结构示意图。FIG. 7 is a schematic diagram of a physical structure of an electronic device provided by an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

图1为本发明终端升级的处理方法实施例流程图,如图1所示,本发明实施例提供的一种终端升级的处理方法,包括以下步骤:Fig. 1 is a flowchart of an embodiment of a method for processing a terminal upgrade according to the present invention. As shown in Fig. 1 , a method for processing a terminal upgrade provided by an embodiment of the present invention includes the following steps:

S101:发送升级命令至基站,以供所述基站在接收到所述升级命令之后,生成第一打包信息,并周期性向终端发送携带有所述第一打包信息的第一寻呼;其中,所述第一打包信息包括升级版本号、承载升级数据包的指定子带的起始子带号、指示更新命令的第一标记位和需要升级终端的终端类型;所述升级命令携带有所述第一标记位和所述终端类型。S101: Send an upgrade command to the base station, so that the base station generates first packaging information after receiving the upgrade command, and periodically sends a first page carrying the first packaging information to the terminal; wherein, the The first packaging information includes the upgrade version number, the starting subband number of the specified subband carrying the upgrade data packet, the first flag bit indicating the update command, and the terminal type of the terminal that needs to be upgraded; the upgrade command carries the first A flag bit and the terminal type.

具体的,服务器发送升级命令至基站,以供所述基站在接收到所述升级命令之后,生成第一打包信息,并周期性向终端发送携带有所述第一打包信息的第一寻呼;其中,所述第一打包信息包括升级版本号、承载升级数据包的指定子带的起始子带号、指示更新命令的第一标记位和需要升级终端的终端类型;所述升级命令携带有所述第一标记位和所述终端类型。升级版本号可以具体为需要部署在终端中的软件的升降版本号,例如V1.1。承载升级数据包的指定子带的起始子带号中的“指定子带”可以根据实际情况选择,例如可选为广播子带、逻辑子带、驻留子带等,表示承载升级数据包所占用的频域资源。指示更新命令的第一标记位可以理解为通知终端接收升级数据包的命令标记位,可以用零表示该标记位。需要升级终端的终端类型可以理解为本次升级的那一类终端的终端类型。Specifically, the server sends an upgrade command to the base station, so that the base station generates first packaging information after receiving the upgrade command, and periodically sends a first page carrying the first packaging information to the terminal; wherein , the first packaging information includes the upgrade version number, the starting subband number of the specified subband carrying the upgrade data packet, the first flag bit indicating the update command, and the terminal type of the terminal that needs to be upgraded; the upgrade command carries all the first flag bit and the terminal type. The upgrade version number may specifically be the up and down version number of the software that needs to be deployed in the terminal, such as V1.1. The "designated subband" in the starting subband number of the designated subband carrying the upgrade data package can be selected according to the actual situation, for example, it can be selected as a broadcast subband, a logical subband, a resident subband, etc., which means that the upgrade data package is carried Frequency domain resource occupied. The first flag bit indicating the update command can be understood as a command flag bit notifying the terminal to receive the upgrade data packet, and zero can be used to represent the flag bit. The terminal type of the terminal to be upgraded can be understood as the terminal type of the type of terminal to be upgraded this time.

图2为本发明终端升级的处理方法另一实施例流程图,如图2所示,服务器对应图2中的“网管”、可以采用第一预设格式表示第一打包信息,第一预设格式对应图2中的“DCI1”。周期性发送第一寻呼的发送周期数值可以根据实际情况自主设置。需要说明的是:如果在一次发送周期时,恰好有终端正在进行业务传输,此时无法响应这个发送周期的第一寻呼,该终端在完成当前业务传输返回驻留子带后继续监听第一寻呼,当再次发送第一寻呼时,该终端就可以响应该第一寻呼。Fig. 2 is a flow chart of another embodiment of the processing method for terminal upgrade of the present invention. As shown in Fig. 2, the server corresponds to the "network management" in Fig. The format corresponds to "DCI1" in Figure 2. The value of the sending period for periodically sending the first paging can be set independently according to the actual situation. It should be noted that if a terminal happens to be transmitting services during a transmission period and cannot respond to the first paging of this transmission period at this time, the terminal will continue to monitor the first page after completing the current service transmission and returning to the resident subband. paging, when the first paging is sent again, the terminal can respond to the first paging.

S102:接收所述基站转发的、由与所述终端类型对应的终端返回的表示升级数据包已接收完成的返回消息,并根据所有返回消息的数量,确定所述终端类型对应的所有终端是否都已接收到所述升级数据包;其中,所述终端类型对应的终端根据所述第一标记位,比对所述升级版本号和本地升级版本号,若比对结果不同,则根据所述起始子带号接收所述升级数据包。S102: Receive the return message that is forwarded by the base station and returned by the terminal corresponding to the terminal type indicating that the upgrade data packet has been received, and determine whether all terminals corresponding to the terminal type have The upgrade data packet has been received; wherein, the terminal corresponding to the terminal type compares the upgrade version number with the local upgrade version number according to the first flag bit, and if the comparison results are different, then according to the starting The first subband number receives the upgrade data packet.

具体的,服务器接收所述基站转发的、由与所述终端类型对应的终端返回的表示升级数据包已接收完成的返回消息,并根据所有返回消息的数量,确定所述终端类型对应的所有终端是否都已接收到所述升级数据包;其中,所述终端类型对应的终端根据所述第一标记位,比对所述升级版本号和本地升级版本号,若比对结果不同,则根据所述起始子带号接收所述升级数据包。该返回消息可以采用如图2所示的MAC控制单元的方式返回至基站。举例说明如下:终端类型包括A型和B型,A型终端类型对应的所有终端为50个;B型终端类型对应的所有终端为100个;步骤S101中周期性向终端发送第一寻呼中的“终端”可以是A型和B型终端数量之和150个,如果上述升级命令中携带的终端类型为A型,则A型的终端在接收到第一寻呼后,识别出该终端类型为A型,而自身的终端类型也为A型,比对结果相一致,才执行根据所述第一标记位,比对所述升级版本号和本地升级版本号的步骤;如果B型的终端在接收到第一寻呼后,识别出该终端类型为A型,而自身的终端类型为B型,比对结果不一致,不执行根据所述第一标记位,比对所述升级版本号和本地升级版本号的步骤,可以理解的是:A型终端根据第一标记位,可以确认服务器下发的指令是指示更新命令,因此,再进行升级版本号和本地升级版本号的比对,升级版本号如果高于本地升级版本号,说明该终端需要升级;升级版本号如果等于本地升级版本号,说明该终端不需要升级;通常情况下,不会出现升级版本号小于本地升级版本号的情况。Specifically, the server receives the return message indicating that the upgrade data package has been received and is forwarded by the base station and returned by the terminal corresponding to the terminal type, and determines all terminals corresponding to the terminal type according to the number of all returned messages Whether the upgrade data packet has been received; wherein, the terminal corresponding to the terminal type compares the upgrade version number with the local upgrade version number according to the first flag bit, and if the comparison results are different, then according to the The upgrade data packet is received at the starting subband number. The return message may be returned to the base station in the form of a MAC control unit as shown in FIG. 2 . An example is as follows: the terminal types include Type A and Type B, and there are 50 terminals corresponding to the Type A terminal type; 100 terminals corresponding to the Type B terminal type; in step S101, the terminal is periodically sent to the terminal in the first paging "Terminal" can be the sum of 150 Type A and Type B terminals. If the terminal type carried in the above upgrade command is Type A, then after receiving the first paging, the Type A terminal will recognize that the terminal type is Type A, and its own terminal type is also type A, and the comparison results are consistent, and then the step of comparing the upgrade version number and the local upgrade version number according to the first mark bit is performed; if the terminal of type B is in After receiving the first paging, it is recognized that the terminal type is type A, while its own terminal type is type B, the comparison results are inconsistent, and the comparison between the upgrade version number and the local The steps of upgrading the version number can be understood as follows: the type A terminal can confirm that the instruction issued by the server is an update command according to the first mark bit, therefore, the upgrade version number is compared with the local upgrade version number, and the upgrade version If the number is higher than the local upgrade version number, it means that the terminal needs to be upgraded; if the upgrade version number is equal to the local upgrade version number, it means that the terminal does not need to be upgraded; usually, the upgrade version number will not be smaller than the local upgrade version number.

进一步地,该步骤可以具体为:若判断获知所述数量与所有终端数量相等,则确定所有终端都已接收到所述升级数据包。参照上述举例,当服务器中的返回消息的数量为50个时,即等于A型终端的总数50,则确定A型所有终端都已接收到所述升级数据包,进一步还可以通过在返回消息中携带终端标识,以供服务器识别哪些终端已经发送了返回消息,哪些终端还没有发送返回消息。Further, this step may specifically be: if it is determined that the number is equal to the number of all terminals, then determine that all terminals have received the upgrade data package. With reference to the above example, when the number of return messages in the server is 50, which is equal to the total number of Type A terminals 50, then it is determined that all terminals of Type A have received the upgrade data packet, and further can be passed in the return message The terminal identification is carried for the server to identify which terminals have sent the return message and which terminals have not sent the return message.

若判断获知所述数量与所有终端数量不相等,则确定所有终端没有都接收到所述升级数据包。参照上述举例,当服务器中的返回消息的数量不足50个时,即不等于A型终端的总数50(通常情况下,不会出现多于50个的情况),则确定A型所有终端没有都接收到所述升级数据包。需要说明的是:终端如果接收到升级数据包,并发送了返回消息,但可能由于网络故障等因素,服务器并没有接收到该返回消息,因此,可以进一步监控消息收发对象之间的网络状态,并当出现故障时,及时处理故障。If it is determined that the number is not equal to the number of all terminals, it is determined that all terminals have not received the upgrade data packet. With reference to the above example, when the number of returned messages in the server is less than 50, that is, it is not equal to the total number of Type A terminals 50 (usually, there will be no more than 50), then it is determined that all terminals of Type A are not The upgrade data package is received. It should be noted that if the terminal receives the upgrade data packet and sends a return message, but the server may not receive the return message due to factors such as network failure, so the network status between message sending and receiving objects can be further monitored, And when there is a failure, deal with it in time.

S103:若确定为是,则发送更新生效指令至所述基站,以供所述基站生成第二打包信息,并向与所述终端类型对应的每个终端发送携带有所述第二打包信息的第二寻呼;其中,每个终端根据指示更新生效指令的第二标记位,比对所述升级版本号和待更新生效的升级版本号,若比对结果相同,则执行使所述升级版本号生效的指令;所述第二打包信息包括所述第二标记位、待更新生效的升级版本号和生效时间;所述生效时间用于控制与所述终端类型对应的每个终端在接收到所述第二标记位之后执行所述更新生效指令的延时时长。S103: If it is determined to be yes, send an update validation instruction to the base station for the base station to generate second packaging information, and send a message carrying the second packaging information to each terminal corresponding to the terminal type The second paging; wherein, each terminal compares the upgrade version number with the upgrade version number to be updated according to the second flag bit of the command indicating that the update becomes effective, and if the comparison results are the same, execute the upgrade version No. effective instruction; the second packaging information includes the second flag bit, the upgrade version number to be updated and effective time; the effective time is used to control each terminal corresponding to the terminal type when receiving The delay time for executing the update validation instruction after the second flag bit.

具体的,服务器若确定为是,则发送更新生效指令至所述基站,以供所述基站生成第二打包信息,并向与所述终端类型对应的每个终端发送携带有所述第二打包信息的第二寻呼;其中,每个终端根据指示更新生效指令的第二标记位,比对所述升级版本号和待更新生效的升级版本号,若比对结果相同,则执行使所述升级版本号生效的指令;所述第二打包信息包括所述第二标记位、待更新生效的升级版本号和生效时间;所述生效时间用于控制与所述终端类型对应的每个终端在接收到所述第二标记位之后执行所述更新生效指令的延时时长。可以采用第二预设格式表示第二打包信息,第二预设格式对应图2中的“DCI2”。参照上述举例,可以理解的是:每个A型终端根据第二标记位,可以确认服务器下发的指令是指示更新生效指令,因此,再进行升级版本号和待更新生效的升级版本号的比对(即保证之前接收到的升级数据包的版本号与待更新生效的版本号相一致),如果比对结果相同,则进一步可以通过将表示升级状态的标志位置于1的方式来表示已使升级数据包对应的升级版本号生效。生效时间可以根据实际情况自主设置,可选为1分钟。Specifically, if the server determines that it is yes, then the server sends an update validation instruction to the base station, so that the base station can generate the second package information, and send the information carrying the second package information to each terminal corresponding to the terminal type. The second paging of information; wherein, each terminal compares the upgrade version number with the upgrade version number to be updated according to the second flag bit of the command indicating that the update becomes effective, and if the comparison results are the same, execute the An instruction for the upgrade version number to take effect; the second packaging information includes the second flag bit, the upgrade version number to be updated and take effect, and the effective time; the effective time is used to control each terminal corresponding to the terminal type in The delay time for executing the update validation instruction after receiving the second flag bit. The second packaged information may be expressed in a second preset format, and the second preset format corresponds to "DCI2" in FIG. 2 . With reference to the above examples, it can be understood that: each Type A terminal can confirm that the command issued by the server is an instruction to indicate that the update takes effect according to the second flag bit, so the comparison between the upgrade version number and the upgrade version number to be updated takes effect Yes (that is, to ensure that the version number of the upgrade data package received before is consistent with the version number to be updated), if the comparison results are the same, it can be further indicated by setting the flag indicating the upgrade status to 1. The upgrade version number corresponding to the upgrade data package takes effect. The effective time can be set independently according to the actual situation, and the optional time is 1 minute.

本发明实施例提供的终端升级的处理方法,先通过发送第一打包信息的方式,使得需要升级终端的终端类型对应的终端在接收完成升级数据包之后发送返回消息,再根据返回消息的数量确定所有终端在接收完成升级数据包之后,再通过发送第二打包信息的方式,使得所有终端中的升级版本号生效,能够采用合理的终端升级方式有效管控终端,进而减少终端由于升级占用频谱资源的时间,使得终端可以有更多的时间用来进行业务传输,并提高时频资源利用率。The terminal upgrade processing method provided by the embodiment of the present invention first sends the first packaged information, so that the terminal corresponding to the terminal type that needs to be upgraded sends a return message after receiving the upgrade data packet, and then determines according to the number of return messages After receiving the upgrade data packet, all terminals send the second packaged information to make the upgrade version numbers in all terminals take effect, and a reasonable terminal upgrade method can be used to effectively control the terminals, thereby reducing the frequency spectrum resources occupied by the terminals due to the upgrade. Time, so that the terminal can have more time for service transmission, and improve the utilization rate of time-frequency resources.

在上述实施例的基础上,所述根据所有返回消息的数量,确定所述终端类型对应的所有终端是否都已接收到所述升级数据包,包括:On the basis of the above embodiments, the determining whether all terminals corresponding to the terminal type have received the upgrade data package according to the number of all returned messages includes:

若判断获知所述数量与所有终端数量相等,则确定所有终端都已接收到所述升级数据包。If it is determined that the number is equal to the number of all terminals, it is determined that all terminals have received the upgrade data package.

具体的,服务器若判断获知所述数量与所有终端数量相等,则确定所有终端都已接收到所述升级数据包。可参照上述实施例,不再赘述。Specifically, if the server determines that the number is equal to the number of all terminals, it determines that all terminals have received the upgrade data package. Reference may be made to the foregoing embodiments, and details are not repeated here.

若判断获知所述数量与所有终端数量不相等,则确定所有终端没有都接收到所述升级数据包。If it is determined that the number is not equal to the number of all terminals, it is determined that all terminals have not received the upgrade data packet.

具体的,服务器若判断获知所述数量与所有终端数量不相等,则确定所有终端没有都接收到所述升级数据包。可参照上述实施例,不再赘述。Specifically, if the server determines that the number is not equal to the number of all terminals, it determines that all terminals have not received the upgrade data package. Reference may be made to the foregoing embodiments, and details are not repeated here.

本发明实施例提供的终端升级的处理方法,进一步能够采用合理的终端升级方式有效管控终端,进而减少终端由于升级占用频谱资源的时间,使得终端可以有更多的时间用来进行业务传输,并提高时频资源利用率。The terminal upgrade processing method provided by the embodiment of the present invention can further adopt a reasonable terminal upgrade method to effectively manage and control the terminal, thereby reducing the time for the terminal to occupy spectrum resources due to the upgrade, so that the terminal can have more time for service transmission, and Improve time-frequency resource utilization.

图3为本发明终端升级的处理方法另一实施例流程图,如图3所示,本发明实施例提供的一种终端升级的处理方法,包括以下步骤:Fig. 3 is a flow chart of another embodiment of the processing method for terminal upgrade according to the present invention. As shown in Fig. 3 , a processing method for terminal upgrade provided by the embodiment of the present invention includes the following steps:

S301:接收服务器发送的升级命令,生成第一打包信息;其中,所述第一打包信息包括升级版本号、承载升级数据包的指定子带的起始子带号、指示更新命令的第一标记位和需要升级终端的终端类型;所述升级命令携带有所述第一标记位和所述终端类型。S301: Receive an upgrade command sent by the server, and generate first packaging information; wherein, the first packaging information includes an upgrade version number, a starting subband number of a specified subband carrying an upgrade data packet, and a first flag indicating an update command bit and the terminal type of the terminal to be upgraded; the upgrade command carries the first flag bit and the terminal type.

具体的,基站接收服务器发送的升级命令,生成第一打包信息;其中,所述第一打包信息包括升级版本号、承载升级数据包的指定子带的起始子带号、指示更新命令的第一标记位和需要升级终端的终端类型;所述升级命令携带有所述第一标记位和所述终端类型。可以采用第一预设格式表示所述第一打包信息,第一预设格式(DCI1)具体可以如下:Specifically, the base station receives the upgrade command sent by the server, and generates first packaging information; wherein, the first packaging information includes the upgrade version number, the starting subband number of the specified subband carrying the upgrade data packet, and the first subband indicating the update command. A flag bit and the terminal type of the terminal to be upgraded; the upgrade command carries the first flag bit and the terminal type. The first packaged information may be expressed in a first preset format, and the first preset format (DCI1) may specifically be as follows:

DCI1:(更新DCI)DCI1: (Update DCI)

flag:DCI1中flag为零,表示指示更新命令的第一标记位;1bit;flag: The flag in DCI1 is zero, indicating the first flag bit indicating the update command; 1bit;

subbandIdx:承载升级数据包的指定子带的起始子带号,(指定子带可选为广播子带、逻辑子带、驻留子带);取值[0,477];9bit;subbandIdx: The starting subband number of the specified subband carrying the upgrade data packet, (the specified subband can be selected as broadcast subband, logical subband, or resident subband); value [0,477]; 9bit;

updateVersion:DCI1中的升级版本号,用来与终端保存的版本号对比是否需要升级;1bit:updateVersion: The upgrade version number in DCI1, which is used to compare with the version number saved in the terminal whether it needs to be upgraded; 1bit:

需要升级终端的终端类型:取值范围:0表示串口LCM、1表示网口LCM、2表示芯片、3表示CPE;2bit。Terminal type that needs to be upgraded: value range: 0 means serial port LCM, 1 means network port LCM, 2 means chip, 3 means CPE; 2bit.

S302:周期性向终端发送携带有所述第一打包信息的第一寻呼。S302: Periodically send the first paging carrying the first packetized information to the terminal.

具体的,基站周期性向终端发送携带有所述第一打包信息的第一寻呼。发送周期的具体数值可以根据实际情况自主设置。Specifically, the base station periodically sends the first paging carrying the first packetized information to the terminal. The specific value of the sending cycle can be set independently according to the actual situation.

S303:接收由与所述终端类型对应的终端返回的表示升级数据包已接收完成的返回消息,并转发所有返回消息至所述服务器,以供所述服务器根据所有返回消息的数量,确定所述终端类型对应的所有终端是否都已接收到所述升级数据包;其中,所述终端类型对应的终端根据所述第一标记位,比对所述升级版本号和本地升级版本号,若比对结果不同,则根据所述起始子带号接收所述升级数据包。S303: Receive a return message from the terminal corresponding to the terminal type indicating that the upgrade data package has been received, and forward all the return messages to the server, so that the server can determine the Whether all terminals corresponding to the terminal type have received the upgrade data packet; wherein, the terminal corresponding to the terminal type compares the upgrade version number with the local upgrade version number according to the first flag bit, if compared If the results are different, the upgrade data packet is received according to the starting subband number.

具体的,基站接收由与所述终端类型对应的终端返回的表示升级数据包已接收完成的返回消息,并转发所有返回消息至所述服务器,以供所述服务器根据所有返回消息的数量,确定所述终端类型对应的所有终端是否都已接收到所述升级数据包;其中,所述终端类型对应的终端根据所述第一标记位,比对所述升级版本号和本地升级版本号,若比对结果不同,则根据所述起始子带号接收所述升级数据包。可参照上述图2的说明,不再赘述。Specifically, the base station receives the return message indicating that the upgrade data package has been received and is returned by the terminal corresponding to the terminal type, and forwards all the return messages to the server, so that the server can determine according to the number of all return messages Whether all terminals corresponding to the terminal type have received the upgrade data packet; wherein, the terminal corresponding to the terminal type compares the upgrade version number with the local upgrade version number according to the first flag bit, if If the comparison results are different, the upgrade data packet is received according to the starting subband number. Reference may be made to the description of FIG. 2 above, and details are not repeated here.

S304:接收所述服务器在确定为是时发送的更新生效指令,生成第二打包信息,并向与所述终端类型对应的每个终端发送携带有所述第二打包信息的第二寻呼;其中,每个终端根据指示更新生效指令的第二标记位,比对所述升级版本号和待更新生效的升级版本号,若比对结果相同,则执行使所述升级版本号生效的指令;所述第二打包信息包括所述第二标记位、待更新生效的升级版本号和生效时间;所述生效时间用于控制与所述终端类型对应的每个终端在接收到所述第二标记位之后执行所述更新生效指令的延时时长。S304: Receive an update validation instruction sent by the server when it is determined to be yes, generate second packaging information, and send a second paging carrying the second packaging information to each terminal corresponding to the terminal type; Wherein, each terminal compares the upgrade version number with the upgrade version number to be updated according to the second flag bit of the instruction to update and take effect, and if the comparison results are the same, execute the instruction to make the upgrade version number take effect; The second packaging information includes the second flag bit, the upgrade version number to be updated and become effective, and the effective time; the effective time is used to control each terminal corresponding to the terminal type when receiving the second flag The delay time for executing the update effective instruction after the bit.

具体的,基站接收所述服务器在确定为是时发送的更新生效指令,生成第二打包信息,并向与所述终端类型对应的每个终端发送携带有所述第二打包信息的第二寻呼;其中,每个终端根据指示更新生效指令的第二标记位,比对所述升级版本号和待更新生效的升级版本号,若比对结果相同,则执行使所述升级版本号生效的指令;所述第二打包信息包括所述第二标记位、待更新生效的升级版本号和生效时间;所述生效时间用于控制与所述终端类型对应的每个终端在接收到所述第二标记位之后执行所述更新生效指令的延时时长。可以采用第二预设格式表示所述第二打包信息,第二预设格式(DCI2)具体可以如下:Specifically, the base station receives the update validation instruction sent by the server when it is determined to be yes, generates second packaging information, and sends a second page carrying the second packaging information to each terminal corresponding to the terminal type. Call; where, each terminal compares the upgrade version number with the upgrade version number to be updated and take effect according to the second flag bit of the instruction to update and take effect, and if the comparison results are the same, execute the method of making the upgrade version number take effect instruction; the second packaging information includes the second flag bit, the upgrade version number to be updated and take effect, and the effective time; the effective time is used to control each terminal corresponding to the terminal type when receiving the first The delay time for executing the update effective instruction after the two flag bits. The second packaged information may be expressed in a second preset format, and the second preset format (DCI2) may specifically be as follows:

DCI2:(更新生效DCI)DCI2: (Update effective DCI)

flag:DCI2中的flag为1,表示指示更新生效指令的第二标记位;1bit;flag: The flag in DCI2 is 1, which indicates the second flag bit indicating the update effective command; 1bit;

updateVersion:DCI2中的待更新生效的升级版本号,用来与终端中的原DCI1中的升级版本号对比是否需要生效;1bit;updateVersion: The upgrade version number in DCI2 to be updated to take effect, which is used to compare with the upgrade version number in the original DCI1 in the terminal whether it needs to take effect; 1bit;

InUseTime:生效时间;即终端收到第二标记位后的第几分钟执行更新操作。可选为1,3,5,10;单位:min;3bit。InUseTime: effective time; that is, the terminal executes the update operation in a few minutes after receiving the second flag bit. The options are 1, 3, 5, 10; unit: min; 3bit.

下面结合图2,对本发明实施例的全流程作简要说明:The following is a brief description of the whole process of the embodiment of the present invention in conjunction with FIG. 2:

1、网管(服务器)发送升级命令给基站。1. The network management (server) sends an upgrade command to the base station.

2、基站从本地FTP获取升级数据包,下发对某类终端的寻呼(更新DCI,即DCI1)。2. The base station obtains the upgrade data packet from the local FTP, and issues paging (updating DCI, DCI1) to a certain type of terminal.

3、空闲态的终端监听寻呼;有业务的终端在完成当前业务传输后,返回驻留子带监听寻呼。3. The terminal in the idle state monitors paging; the terminal with service returns to the resident subband to monitor paging after completing the current service transmission.

4、基站周期性发送寻呼,在指定子带发送升级数据包。4. The base station periodically sends paging, and sends an upgrade data packet in a designated subband.

5、终端监听到寻呼后,用P-RNTI和G-RNTI两种方式解扰;如果是P-RNTI,则进入普通寻呼流程;如果是G-RNTI,则为升级寻呼,此时,比对本地升级版本号与寻呼中携带的升级版本号,如果不一致,进行如下升级流程。5. After the terminal monitors the paging, it uses P-RNTI and G-RNTI to descramble; if it is P-RNTI, it enters the normal paging process; if it is G-RNTI, it is upgraded paging. At this time , compare the local upgrade version number with the upgrade version number carried in the paging, if they are inconsistent, perform the following upgrade process.

6、终端在指定子带接收升级数据包,完成后返回驻留子带,通过发送MAC控制单元的方式发送返回消息至基站。6. The terminal receives the upgrade data packet in the designated subband, returns to the resident subband after completion, and sends a return message to the base station by sending a MAC control unit.

7、基站每接收到一个返回消息后,就把它转发给网管以统计升级百分比。7. Each time the base station receives a return message, it forwards it to the network management to count the upgrade percentage.

8、网管在升级百分比达到百分百后(即所有终端均正确接收完升级数据包后),发送更新生效指令给基站,基站收到该指令后在指定子带下发更新生效DCI(DCI 2)。8. After the upgrade percentage reaches 100% (that is, after all terminals have correctly received the upgrade data package), the network management system sends an update effective command to the base station. After receiving the instruction, the base station sends an update effective DCI (DCI 2 ).

9、终端继续监听寻呼以获取DCI2;同时监听是否有下行业务,如果有下行业务,则按正常下行业务流程处理,有上行业务则直接发送SR。9. The terminal continues to monitor paging to obtain DCI2; at the same time, it monitors whether there is downlink service. If there is downlink service, it will be processed according to the normal downlink service process. If there is uplink service, it will directly send SR.

10、终端在业务处理完成后,比对升级版本号与DCI2中的待更新生效的升级版本号是否一致,如果一致,则完成升级操作。10. After the service processing is completed, the terminal compares whether the upgrade version number is consistent with the upgrade version number in DCI2 to be updated, and if they are consistent, the upgrade operation is completed.

本发明实施例提供的终端升级的处理方法,先通过发送第一打包信息的方式,使得需要升级终端的终端类型对应的终端在接收完成升级数据包之后发送返回消息,再根据返回消息的数量确定所有终端在接收完成升级数据包之后,再通过发送第二打包信息的方式,使得所有终端中的升级版本号生效,能够采用合理的终端升级方式有效管控终端,进而减少终端由于升级占用频谱资源的时间,使得终端可以有更多的时间用来进行业务传输,并提高时频资源利用率。The terminal upgrade processing method provided by the embodiment of the present invention first sends the first packaged information, so that the terminal corresponding to the terminal type that needs to be upgraded sends a return message after receiving the upgrade data packet, and then determines according to the number of return messages After receiving the upgrade data packet, all terminals send the second packaged information to make the upgrade version numbers in all terminals take effect, and a reasonable terminal upgrade method can be used to effectively control the terminals, thereby reducing the frequency spectrum resources occupied by the terminals due to the upgrade. Time, so that the terminal can have more time for service transmission, and improve the utilization rate of time-frequency resources.

在上述实施例的基础上,所述方法还包括:On the basis of the foregoing embodiments, the method further includes:

采用第一预设格式和第二预设格式分别表示所述第一打包信息和所述第二打包信息。A first preset format and a second preset format are used to represent the first packaging information and the second packaging information respectively.

具体的,基站采用第一预设格式和第二预设格式分别表示所述第一打包信息和所述第二打包信息。可参照上述实施例的说明,不再赘述。Specifically, the base station uses a first preset format and a second preset format to represent the first packet information and the second packet information respectively. Reference may be made to the descriptions of the foregoing embodiments, and details are not repeated here.

本发明实施例提供的终端升级的处理方法,能够更加直观、方便地表示出第一打包信息和第二打包信息。The terminal upgrade processing method provided by the embodiment of the present invention can display the first package information and the second package information more intuitively and conveniently.

在上述实施例的基础上,所述第一预设格式为:flag-subbandIdx-updateVersion需要升级终端的终端类型;其中,当flag为零时,表示指示更新命令的第一标记位;subbandIdx表示承载升级数据包的指定子带的起始子带号;updateVersion表示升级版本号;所述第二预设格式为:flag-updateVersion-InUseTime;其中,当flag为1时,表示指示更新生效指令的第二标记位;updateVersion表示待更新生效的升级版本号;InUseTime表示所述生效时间。On the basis of the above embodiments, the first preset format is: flag-subbandIdx-updateVersion The terminal type of the terminal that needs to be upgraded; wherein, when the flag is zero, it indicates the first flag bit indicating the update command; subbandIdx indicates the bearer The starting subband number of the specified subband of the upgrade data packet; updateVersion represents the upgrade version number; the second preset format is: flag-updateVersion-InUseTime; wherein, when the flag is 1, it indicates that the first instruction to update the effective command Two flags; updateVersion indicates the upgrade version number to be updated; InUseTime indicates the effective time.

具体的,基站中的所述第一预设格式为:flag-subbandIdx-updateVersion需要升级终端的终端类型;其中,当flag为零时,表示指示更新命令的第一标记位;subbandIdx表示承载升级数据包的指定子带的起始子带号;updateVersion表示升级版本号;所述第二预设格式为:flag-updateVersion-InUseTime;其中,当flag为1时,表示指示更新生效指令的第二标记位;updateVersion表示待更新生效的升级版本号;InUseTime表示所述生效时间。可参照上述实施例的说明,不再赘述。Specifically, the first preset format in the base station is: flag-subbandIdx-updateVersion The terminal type of the terminal that needs to be upgraded; wherein, when the flag is zero, it indicates the first flag bit indicating the update command; subbandIdx indicates the carrying upgrade data The starting sub-band number of the specified sub-band of the package; updateVersion indicates the upgrade version number; the second preset format is: flag-updateVersion-InUseTime; wherein, when the flag is 1, it indicates the second flag indicating the update effective instruction bit; updateVersion indicates the upgrade version number to be updated; InUseTime indicates the effective time. Reference may be made to the descriptions of the foregoing embodiments, and details are not repeated here.

本发明实施例提供的终端升级的处理方法,进一步能够更加直观、方便地表示出第一打包信息和第二打包信息。The terminal upgrade processing method provided by the embodiment of the present invention can further display the first packaged information and the second packaged information more intuitively and conveniently.

图4为本发明实施例服务器结构示意图,如图4所示,本发明实施例提供了一种服务器,包括第一发送模块401、确定模块402和第二发送模块403,其中:FIG. 4 is a schematic structural diagram of a server according to an embodiment of the present invention. As shown in FIG. 4 , an embodiment of the present invention provides a server, including a first sending module 401, a determination module 402, and a second sending module 403, wherein:

第一发送模块401用于发送升级命令至基站,以供所述基站在接收到所述升级命令之后,生成第一打包信息,并周期性向终端发送携带有所述第一打包信息的第一寻呼;其中,所述第一打包信息包括升级版本号、承载升级数据包的指定子带的起始子带号、指示更新命令的第一标记位和需要升级终端的终端类型;所述升级命令携带有所述第一标记位和所述终端类型;确定模块402用于接收所述基站转发的、由与所述终端类型对应的终端返回的表示升级数据包已接收完成的返回消息,并根据所有返回消息的数量,确定所述终端类型对应的所有终端是否都已接收到所述升级数据包;其中,所述终端类型对应的终端根据所述第一标记位,比对所述升级版本号和本地升级版本号,若比对结果不同,则根据所述起始子带号接收所述升级数据包;第二发送模块403用于若确定为是,则发送更新生效指令至所述基站,以供所述基站生成第二打包信息,并向与所述终端类型对应的每个终端发送携带有所述第二打包信息的第二寻呼;其中,每个终端根据指示更新生效指令的第二标记位,比对所述升级版本号和待更新生效的升级版本号,若比对结果相同,则执行使所述升级版本号生效的指令;所述第二打包信息包括所述第二标记位、待更新生效的升级版本号和生效时间;所述生效时间用于控制与所述终端类型对应的每个终端在接收到所述第二标记位之后执行所述更新生效指令的延时时长。The first sending module 401 is configured to send an upgrade command to the base station, so that the base station generates first packaging information after receiving the upgrade command, and periodically sends a first packet carrying the first packaging information to the terminal. Call; wherein, the first packaging information includes the upgrade version number, the starting subband number of the specified subband carrying the upgrade data packet, the first flag indicating the update command and the terminal type of the terminal that needs to be upgraded; the upgrade command Carrying the first flag bit and the terminal type; the determining module 402 is configured to receive a return message indicating that the upgrade data packet has been received and completed, which is forwarded by the base station and returned by the terminal corresponding to the terminal type, and according to The number of all returned messages determines whether all terminals corresponding to the terminal type have received the upgrade data packet; wherein, the terminal corresponding to the terminal type compares the upgrade version number according to the first flag bit and the local upgrade version number, if the comparison result is different, the upgrade data packet is received according to the initial subband number; the second sending module 403 is configured to send an update validation instruction to the base station if it is determined to be yes, For the base station to generate the second packaged information, and send the second paging carrying the second packaged information to each terminal corresponding to the terminal type; wherein, each terminal updates the first page of the effective instruction according to the instruction Two mark bits, compare the upgrade version number and the upgrade version number to be updated and take effect, if the comparison results are the same, execute the instruction to make the upgrade version number effective; the second packaging information includes the second mark bit, the upgrade version number to be updated and take effect, and the take effect time; the take effect time is used to control the delay time for each terminal corresponding to the terminal type to execute the update take effect instruction after receiving the second flag bit .

具体的,第一发送模块401用于发送升级命令至基站,以供所述基站在接收到所述升级命令之后,生成第一打包信息,并周期性向终端发送携带有所述第一打包信息的第一寻呼;其中,所述第一打包信息包括升级版本号、承载升级数据包的指定子带的起始子带号、指示更新命令的第一标记位和需要升级终端的终端类型;所述升级命令携带有所述第一标记位和所述终端类型;确定模块402用于接收所述基站转发的、由与所述终端类型对应的终端返回的表示升级数据包已接收完成的返回消息,并根据所有返回消息的数量,确定所述终端类型对应的所有终端是否都已接收到所述升级数据包;其中,所述终端类型对应的终端根据所述第一标记位,比对所述升级版本号和本地升级版本号,若比对结果不同,则根据所述起始子带号接收所述升级数据包;第二发送模块403用于若确定为是,则发送更新生效指令至所述基站,以供所述基站生成第二打包信息,并向与所述终端类型对应的每个终端发送携带有所述第二打包信息的第二寻呼;其中,每个终端根据指示更新生效指令的第二标记位,比对所述升级版本号和待更新生效的升级版本号,若比对结果相同,则执行使所述升级版本号生效的指令;所述第二打包信息包括所述第二标记位、待更新生效的升级版本号和生效时间;所述生效时间用于控制与所述终端类型对应的每个终端在接收到所述第二标记位之后执行所述更新生效指令的延时时长。Specifically, the first sending module 401 is configured to send an upgrade command to the base station, so that the base station generates first packaging information after receiving the upgrade command, and periodically sends a message carrying the first packaging information to the terminal. The first paging; wherein, the first packaging information includes the upgrade version number, the starting subband number of the specified subband carrying the upgrade data packet, the first flag bit indicating the update command, and the terminal type of the terminal that needs to be upgraded; The upgrade command carries the first flag bit and the terminal type; the determination module 402 is configured to receive a return message indicating that the upgrade data packet has been received and completed, which is forwarded by the base station and returned by the terminal corresponding to the terminal type , and according to the number of all returned messages, determine whether all terminals corresponding to the terminal type have received the upgrade data packet; wherein, the terminal corresponding to the terminal type compares the The upgrade version number and the local upgrade version number, if the comparison results are different, then receive the upgrade data packet according to the initial sub-band number; the second sending module 403 is used to send the update effective instruction to the The base station, so that the base station generates the second packaging information, and sends the second paging carrying the second packaging information to each terminal corresponding to the terminal type; wherein, each terminal takes effect according to the instruction update The second mark bit of the instruction is to compare the upgrade version number with the upgrade version number to be updated, and if the comparison results are the same, execute the instruction to make the upgrade version number effective; the second packaging information includes the The second flag bit, the upgrade version number to be updated and become effective, and the effective time; the effective time is used to control each terminal corresponding to the terminal type to execute the update effective instruction after receiving the second flag bit Delay duration.

本发明实施例提供的服务器,先通过发送第一打包信息的方式,使得需要升级终端的终端类型对应的终端在接收完成升级数据包之后发送返回消息,再根据返回消息的数量确定所有终端在接收完成升级数据包之后,再通过发送第二打包信息的方式,使得所有终端中的升级版本号生效,能够采用合理的终端升级方式有效管控终端,进而减少终端由于升级占用频谱资源的时间,使得终端可以有更多的时间用来进行业务传输,并提高时频资源利用率。The server provided by the embodiment of the present invention first sends the first packaged information, so that the terminal corresponding to the terminal type that needs to be upgraded sends a return message after receiving the upgrade data package, and then determines all terminals according to the number of returned messages. After the upgrade data package is completed, the upgrade version number in all terminals will take effect by sending the second packaged information, and a reasonable terminal upgrade method can be used to effectively control the terminal, thereby reducing the time for the terminal to occupy spectrum resources due to the upgrade, making the terminal More time can be used for service transmission, and the utilization rate of time-frequency resources can be improved.

本发明实施例提供的服务器具体可以用于执行上述各方法实施例的处理流程,其功能在此不再赘述,可以参照上述方法实施例的详细描述。The server provided by the embodiments of the present invention can be specifically used to execute the processing procedures of the foregoing method embodiments, and its functions will not be described in detail here, and reference can be made to the detailed description of the foregoing method embodiments.

图5为本发明实施例提供的电子设备实体结构示意图,如图5所示,所述电子设备包括:第一处理器(processor)501、第一存储器(memory)502和第一总线503;FIG. 5 is a schematic diagram of the physical structure of an electronic device provided by an embodiment of the present invention. As shown in FIG. 5 , the electronic device includes: a first processor (processor) 501, a first memory (memory) 502, and a first bus 503;

其中,所述第一处理器501、第一存储器502通过第一总线503完成相互间的通信;Wherein, the first processor 501 and the first memory 502 complete mutual communication through the first bus 503;

所述第一处理器501用于调用所述第一存储器502中的程序指令,以执行上述各方法实施例所提供的方法,例如包括:发送升级命令至基站,以供所述基站在接收到所述升级命令之后,生成第一打包信息,并周期性向终端发送携带有所述第一打包信息的第一寻呼;其中,所述第一打包信息包括升级版本号、承载升级数据包的指定子带的起始子带号、指示更新命令的第一标记位和需要升级终端的终端类型;所述升级命令携带有所述第一标记位和所述终端类型;接收所述基站转发的、由与所述终端类型对应的终端返回的表示升级数据包已接收完成的返回消息,并根据所有返回消息的数量,确定所述终端类型对应的所有终端是否都已接收到所述升级数据包;其中,所述终端类型对应的终端根据所述第一标记位,比对所述升级版本号和本地升级版本号,若比对结果不同,则根据所述起始子带号接收所述升级数据包;若确定为是,则发送更新生效指令至所述基站,以供所述基站生成第二打包信息,并向与所述终端类型对应的每个终端发送携带有所述第二打包信息的第二寻呼;其中,每个终端根据指示更新生效指令的第二标记位,比对所述升级版本号和待更新生效的升级版本号,若比对结果相同,则执行使所述升级版本号生效的指令;所述第二打包信息包括所述第二标记位、待更新生效的升级版本号和生效时间;所述生效时间用于控制与所述终端类型对应的每个终端在接收到所述第二标记位之后执行所述更新生效指令的延时时长。The first processor 501 is used to call the program instructions in the first memory 502 to execute the methods provided in the above method embodiments, for example, including: sending an upgrade command to the base station for the base station to receive After the upgrade command, generate the first packaging information, and periodically send the first paging carrying the first packaging information to the terminal; wherein, the first packaging information includes the upgrade version number, the designation of carrying the upgrade data packet The starting subband number of the subband, the first flag indicating the update command and the terminal type of the terminal that needs to be upgraded; the upgrade command carries the first flag and the terminal type; receiving the forwarded by the base station, A return message indicating that the upgrade data package has been received is returned by the terminal corresponding to the terminal type, and according to the number of all returned messages, it is determined whether all terminals corresponding to the terminal type have received the upgrade data package; Wherein, the terminal corresponding to the terminal type compares the upgrade version number with the local upgrade version number according to the first flag bit, and if the comparison results are different, receives the upgrade data according to the initial subband number package; if it is determined to be yes, then send an update validation instruction to the base station for the base station to generate second packaging information, and send a message carrying the second packaging information to each terminal corresponding to the terminal type The second paging; wherein, each terminal compares the upgrade version number with the upgrade version number to be updated according to the second flag bit of the command indicating that the update becomes effective, and if the comparison results are the same, execute the upgrade version No. effective instruction; the second packaging information includes the second flag bit, the upgrade version number to be updated and effective time; the effective time is used to control each terminal corresponding to the terminal type when receiving The delay time for executing the update validation instruction after the second flag bit.

本实施例公开一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,计算机能够执行上述各方法实施例所提供的方法,例如包括:发送升级命令至基站,以供所述基站在接收到所述升级命令之后,生成第一打包信息,并周期性向终端发送携带有所述第一打包信息的第一寻呼;其中,所述第一打包信息包括升级版本号、承载升级数据包的指定子带的起始子带号、指示更新命令的第一标记位和需要升级终端的终端类型;所述升级命令携带有所述第一标记位和所述终端类型;接收所述基站转发的、由与所述终端类型对应的终端返回的表示升级数据包已接收完成的返回消息,并根据所有返回消息的数量,确定所述终端类型对应的所有终端是否都已接收到所述升级数据包;其中,所述终端类型对应的终端根据所述第一标记位,比对所述升级版本号和本地升级版本号,若比对结果不同,则根据所述起始子带号接收所述升级数据包;若确定为是,则发送更新生效指令至所述基站,以供所述基站生成第二打包信息,并向与所述终端类型对应的每个终端发送携带有所述第二打包信息的第二寻呼;其中,每个终端根据指示更新生效指令的第二标记位,比对所述升级版本号和待更新生效的升级版本号,若比对结果相同,则执行使所述升级版本号生效的指令;所述第二打包信息包括所述第二标记位、待更新生效的升级版本号和生效时间;所述生效时间用于控制与所述终端类型对应的每个终端在接收到所述第二标记位之后执行所述更新生效指令的延时时长。This embodiment discloses a computer program product, the computer program product includes a computer program stored on a non-transitory computer-readable storage medium, the computer program includes program instructions, and when the program instructions are executed by the computer, the computer The methods provided by the above method embodiments can be executed, for example, including: sending an upgrade command to the base station, so that the base station generates first packaging information after receiving the upgrade command, and periodically sends to the terminal carrying the The first paging of the first packaging information; wherein, the first packaging information includes the upgrade version number, the starting subband number of the specified subband carrying the upgrade data packet, the first flag bit indicating the update command, and the terminal that needs to be upgraded the terminal type; the upgrade command carries the first flag bit and the terminal type; receive the return message indicating that the upgrade data packet has been received and completed, which is forwarded by the base station and returned by the terminal corresponding to the terminal type , and according to the number of all returned messages, determine whether all terminals corresponding to the terminal type have received the upgrade data packet; wherein, the terminal corresponding to the terminal type compares the The upgrade version number and the local upgrade version number, if the comparison results are different, then receive the upgrade data packet according to the starting subband number; if it is determined to be yes, then send an update validation command to the base station for the The base station generates second packaging information, and sends a second paging carrying the second packaging information to each terminal corresponding to the terminal type; wherein each terminal updates the second flag bit of the effective instruction according to the instruction, Comparing the upgrade version number and the upgrade version number to be updated, if the comparison results are the same, then execute the instruction to make the upgrade version number effective; the second packaging information includes the second flag, the update Effective upgrade version number and effective time; the effective time is used to control the delay time for each terminal corresponding to the terminal type to execute the update effective instruction after receiving the second flag bit.

本实施例提供一种非暂态计算机可读存储介质,所述非暂态计算机可读存储介质存储计算机指令,所述计算机指令使所述计算机执行上述各方法实施例所提供的方法,例如包括:发送升级命令至基站,以供所述基站在接收到所述升级命令之后,生成第一打包信息,并周期性向终端发送携带有所述第一打包信息的第一寻呼;其中,所述第一打包信息包括升级版本号、承载升级数据包的指定子带的起始子带号、指示更新命令的第一标记位和需要升级终端的终端类型;所述升级命令携带有所述第一标记位和所述终端类型;接收所述基站转发的、由与所述终端类型对应的终端返回的表示升级数据包已接收完成的返回消息,并根据所有返回消息的数量,确定所述终端类型对应的所有终端是否都已接收到所述升级数据包;其中,所述终端类型对应的终端根据所述第一标记位,比对所述升级版本号和本地升级版本号,若比对结果不同,则根据所述起始子带号接收所述升级数据包;若确定为是,则发送更新生效指令至所述基站,以供所述基站生成第二打包信息,并向与所述终端类型对应的每个终端发送携带有所述第二打包信息的第二寻呼;其中,每个终端根据指示更新生效指令的第二标记位,比对所述升级版本号和待更新生效的升级版本号,若比对结果相同,则执行使所述升级版本号生效的指令;所述第二打包信息包括所述第二标记位、待更新生效的升级版本号和生效时间;所述生效时间用于控制与所述终端类型对应的每个终端在接收到所述第二标记位之后执行所述更新生效指令的延时时长。This embodiment provides a non-transitory computer-readable storage medium, the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions cause the computer to execute the methods provided in the above method embodiments, for example, including : sending an upgrade command to the base station, so that the base station generates first packaging information after receiving the upgrade command, and periodically sends a first paging carrying the first packaging information to the terminal; wherein, the The first packaging information includes the upgrade version number, the starting subband number of the specified subband carrying the upgrade data packet, the first flag bit indicating the update command, and the terminal type of the terminal that needs to be upgraded; the upgrade command carries the first Flag bit and the terminal type; receiving a return message from the terminal corresponding to the terminal type forwarded by the base station indicating that the upgrade data packet has been received, and determining the terminal type according to the number of all returned messages Whether all corresponding terminals have received the upgrade data packet; wherein, the terminal corresponding to the terminal type compares the upgrade version number with the local upgrade version number according to the first flag bit, and if the comparison results are different , then receive the upgrade data packet according to the starting sub-band number; if it is determined to be yes, then send an update validation instruction to the base station for the base station to generate second packaging information, and send it to the terminal type Each corresponding terminal sends a second paging carrying the second packaged information; wherein, each terminal compares the upgrade version number with the upgrade version to be updated and validated according to the second flag bit of the command indicating that the update takes effect number, if the comparison results are the same, then execute the instruction to make the upgrade version number effective; the second packaging information includes the second flag bit, the upgrade version number to be updated and effective time; the effective time is used is used to control the delay time for each terminal corresponding to the terminal type to execute the update validation instruction after receiving the second flag bit.

图6为本发明实施例基站结构示意图,如图6所示,本发明实施例提供了一种基站,包括第一生成单元601、发送单元602、转发单元603和第二生成单元604,其中:FIG. 6 is a schematic structural diagram of a base station according to an embodiment of the present invention. As shown in FIG. 6 , an embodiment of the present invention provides a base station, including a first generating unit 601, a sending unit 602, a forwarding unit 603, and a second generating unit 604, wherein:

第一生成单元601用于接收服务器发送的升级命令,生成第一打包信息;其中,所述第一打包信息包括升级版本号、承载升级数据包的指定子带的起始子带号、指示更新命令的第一标记位和需要升级终端的终端类型;所述升级命令携带有所述第一标记位和所述终端类型;发送单元602用于周期性向终端发送携带有所述第一打包信息的第一寻呼;转发单元603用于接收由与所述终端类型对应的终端返回的表示升级数据包已接收完成的返回消息,并转发所有返回消息至所述服务器,以供所述服务器根据所有返回消息的数量,确定所述终端类型对应的所有终端是否都已接收到所述升级数据包;其中,所述终端类型对应的终端根据所述第一标记位,比对所述升级版本号和本地升级版本号,若比对结果不同,则根据所述起始子带号接收所述升级数据包;第二生成单元604用于接收所述服务器在确定为是时发送的更新生效指令,生成第二打包信息,并向与所述终端类型对应的每个终端发送携带有所述第二打包信息的第二寻呼;其中,每个终端根据指示更新生效指令的第二标记位,比对所述升级版本号和待更新生效的升级版本号,若比对结果相同,则执行使所述升级版本号生效的指令;所述第二打包信息包括所述第二标记位、待更新生效的升级版本号和生效时间;所述生效时间用于控制与所述终端类型对应的每个终端在接收到所述第二标记位之后执行所述更新生效指令的延时时长。The first generation unit 601 is used to receive the upgrade command sent by the server, and generate the first package information; wherein, the first package information includes the upgrade version number, the starting subband number of the specified subband carrying the upgrade data packet, and the instruction update The first flag bit of the command and the terminal type of the terminal that needs to be upgraded; the upgrade command carries the first flag bit and the terminal type; the sending unit 602 is configured to periodically send the first packet information to the terminal The first paging; the forwarding unit 603 is configured to receive a return message indicating that the upgrade data packet has been received and completed returned by the terminal corresponding to the terminal type, and forward all the return messages to the server for the server to use according to all return the number of messages, and determine whether all terminals corresponding to the terminal type have received the upgrade data packet; wherein, the terminal corresponding to the terminal type compares the upgrade version number with the Local upgrade version number, if the comparison result is different, then receive the upgrade data packet according to the initial subband number; the second generation unit 604 is used to receive the update effective instruction sent by the server when it is determined to be yes, and generate second packaging information, and send a second paging carrying the second packaging information to each terminal corresponding to the terminal type; wherein, each terminal updates the second flag bit of the effective instruction according to the instruction, and compares The upgrade version number and the upgrade version number to be updated to take effect, if the comparison result is the same, execute the instruction to make the upgrade version number take effect; the second packaging information includes the second flag bit, the update to take effect An upgrade version number and an effective time; the effective time is used to control the delay time for each terminal corresponding to the terminal type to execute the update effective instruction after receiving the second flag bit.

具体的,第一生成单元601用于接收服务器发送的升级命令,生成第一打包信息;其中,所述第一打包信息包括升级版本号、承载升级数据包的指定子带的起始子带号、指示更新命令的第一标记位和需要升级终端的终端类型;所述升级命令携带有所述第一标记位和所述终端类型;发送单元602用于周期性向终端发送携带有所述第一打包信息的第一寻呼;转发单元603用于接收由与所述终端类型对应的终端返回的表示升级数据包已接收完成的返回消息,并转发所有返回消息至所述服务器,以供所述服务器根据所有返回消息的数量,确定所述终端类型对应的所有终端是否都已接收到所述升级数据包;其中,所述终端类型对应的终端根据所述第一标记位,比对所述升级版本号和本地升级版本号,若比对结果不同,则根据所述起始子带号接收所述升级数据包;第二生成单元604用于接收所述服务器在确定为是时发送的更新生效指令,生成第二打包信息,并向与所述终端类型对应的每个终端发送携带有所述第二打包信息的第二寻呼;其中,每个终端根据指示更新生效指令的第二标记位,比对所述升级版本号和待更新生效的升级版本号,若比对结果相同,则执行使所述升级版本号生效的指令;所述第二打包信息包括所述第二标记位、待更新生效的升级版本号和生效时间;所述生效时间用于控制与所述终端类型对应的每个终端在接收到所述第二标记位之后执行所述更新生效指令的延时时长。Specifically, the first generating unit 601 is configured to receive the upgrade command sent by the server, and generate the first package information; wherein, the first package information includes the upgrade version number, the starting subband number of the specified subband carrying the upgrade data packet , indicating the first flag bit of the update command and the terminal type of the terminal that needs to be upgraded; the upgrade command carries the first flag bit and the terminal type; the sending unit 602 is configured to periodically send to the terminal carrying the first The first paging of packaged information; the forwarding unit 603 is configured to receive a return message indicating that the upgrade data package has been received and completed returned by the terminal corresponding to the terminal type, and forward all return messages to the server for the The server determines whether all terminals corresponding to the terminal type have received the upgrade data packet according to the number of all returned messages; wherein, the terminal corresponding to the terminal type compares the upgrade The version number and the local upgrade version number, if the comparison results are different, the upgrade data packet is received according to the initial subband number; the second generation unit 604 is configured to receive the update sent by the server when it is determined to be yes An instruction to generate second packaging information, and send a second paging carrying the second packaging information to each terminal corresponding to the terminal type; wherein, each terminal updates the second flag bit of the effective instruction according to the instruction , comparing the upgrade version number with the upgrade version number to be updated, and if the comparison results are the same, execute the instruction to make the upgrade version number effective; the second packaging information includes the second flag bit, the pending Update the effective upgrade version number and effective time; the effective time is used to control the delay time for each terminal corresponding to the terminal type to execute the update effective instruction after receiving the second flag bit.

本发明实施例提供的基站,先通过发送第一打包信息的方式,使得需要升级终端的终端类型对应的终端在接收完成升级数据包之后发送返回消息,再根据返回消息的数量确定所有终端在接收完成升级数据包之后,再通过发送第二打包信息的方式,使得所有终端中的升级版本号生效,能够采用合理的终端升级方式有效管控终端,进而减少终端由于升级占用频谱资源的时间,使得终端可以有更多的时间用来进行业务传输,并提高时频资源利用率。The base station provided by the embodiment of the present invention first sends the first packaged information, so that the terminal corresponding to the terminal type that needs to be upgraded sends a return message after receiving the upgrade data packet, and then determines all terminals according to the number of returned messages. After the upgrade data package is completed, the upgrade version number in all terminals will take effect by sending the second packaged information, and a reasonable terminal upgrade method can be used to effectively control the terminal, thereby reducing the time for the terminal to occupy spectrum resources due to the upgrade, making the terminal More time can be used for service transmission, and the utilization rate of time-frequency resources can be improved.

本发明实施例提供的基站具体可以用于执行上述各方法实施例的处理流程,其功能在此不再赘述,可以参照上述方法实施例的详细描述。The base station provided by the embodiments of the present invention can be specifically used to execute the processing procedures of the foregoing method embodiments, and its functions will not be repeated here, and reference can be made to the detailed description of the foregoing method embodiments.

图7为本发明实施例提供的电子设备实体结构示意图,如图7所示,所述电子设备包括:第二处理器(processor)701、第二存储器(memory)702和第二总线703;FIG. 7 is a schematic diagram of the physical structure of an electronic device provided by an embodiment of the present invention. As shown in FIG. 7, the electronic device includes: a second processor (processor) 701, a second memory (memory) 702, and a second bus 703;

其中,所述第二处理器701、第二存储器702通过第二总线703完成相互间的通信;Wherein, the second processor 701 and the second memory 702 complete mutual communication through the second bus 703;

所述第二处理器701用于调用所述第二存储器702中的程序指令,以执行上述各方法实施例所提供的方法,例如包括:接收服务器发送的升级命令,生成第一打包信息;其中,所述第一打包信息包括升级版本号、承载升级数据包的指定子带的起始子带号、指示更新命令的第一标记位和需要升级终端的终端类型;所述升级命令携带有所述第一标记位和所述终端类型;周期性向终端发送携带有所述第一打包信息的第一寻呼;接收由与所述终端类型对应的终端返回的表示升级数据包已接收完成的返回消息,并转发所有返回消息至所述服务器,以供所述服务器根据所有返回消息的数量,确定所述终端类型对应的所有终端是否都已接收到所述升级数据包;其中,所述终端类型对应的终端根据所述第一标记位,比对所述升级版本号和本地升级版本号,若比对结果不同,则根据所述起始子带号接收所述升级数据包;接收所述服务器在确定为是时发送的更新生效指令,生成第二打包信息,并向与所述终端类型对应的每个终端发送携带有所述第二打包信息的第二寻呼;其中,每个终端根据指示更新生效指令的第二标记位,比对所述升级版本号和待更新生效的升级版本号,若比对结果相同,则执行使所述升级版本号生效的指令;所述第二打包信息包括所述第二标记位、待更新生效的升级版本号和生效时间;所述生效时间用于控制与所述终端类型对应的每个终端在接收到所述第二标记位之后执行所述更新生效指令的延时时长。The second processor 701 is used to call the program instructions in the second memory 702 to execute the methods provided by the above method embodiments, for example, including: receiving an upgrade command sent by the server, and generating first packaging information; , the first packaging information includes the upgrade version number, the starting subband number of the specified subband carrying the upgrade data packet, the first flag bit indicating the update command, and the terminal type of the terminal that needs to be upgraded; the upgrade command carries all The first flag bit and the terminal type; Periodically send the first paging carrying the first packaging information to the terminal; Receive the return indicating that the upgrade data package has been received and completed returned by the terminal corresponding to the terminal type message, and forward all return messages to the server, so that the server can determine whether all terminals corresponding to the terminal type have received the upgrade data package according to the number of all return messages; wherein, the terminal type The corresponding terminal compares the upgrade version number with the local upgrade version number according to the first flag bit, and if the comparison results are different, then receives the upgrade data packet according to the starting subband number; receives the server The update validation instruction sent when it is determined to be yes, generates second packaging information, and sends a second paging carrying the second packaging information to each terminal corresponding to the terminal type; wherein each terminal according to Indicate the second flag bit of the update effective instruction, compare the upgrade version number and the upgrade version number to be updated, and if the comparison results are the same, execute the instruction to make the upgrade version number effective; the second packaging information Including the second flag bit, the upgrade version number to be updated and take effect, and the effective time; the effective time is used to control each terminal corresponding to the terminal type to perform the update after receiving the second flag bit The delay time for the effective command.

本实施例公开一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,计算机能够执行上述各方法实施例所提供的方法,例如包括:接收服务器发送的升级命令,生成第一打包信息;其中,所述第一打包信息包括升级版本号、承载升级数据包的指定子带的起始子带号、指示更新命令的第一标记位和需要升级终端的终端类型;所述升级命令携带有所述第一标记位和所述终端类型;周期性向终端发送携带有所述第一打包信息的第一寻呼;接收由与所述终端类型对应的终端返回的表示升级数据包已接收完成的返回消息,并转发所有返回消息至所述服务器,以供所述服务器根据所有返回消息的数量,确定所述终端类型对应的所有终端是否都已接收到所述升级数据包;其中,所述终端类型对应的终端根据所述第一标记位,比对所述升级版本号和本地升级版本号,若比对结果不同,则根据所述起始子带号接收所述升级数据包;接收所述服务器在确定为是时发送的更新生效指令,生成第二打包信息,并向与所述终端类型对应的每个终端发送携带有所述第二打包信息的第二寻呼;其中,每个终端根据指示更新生效指令的第二标记位,比对所述升级版本号和待更新生效的升级版本号,若比对结果相同,则执行使所述升级版本号生效的指令;所述第二打包信息包括所述第二标记位、待更新生效的升级版本号和生效时间;所述生效时间用于控制与所述终端类型对应的每个终端在接收到所述第二标记位之后执行所述更新生效指令的延时时长。This embodiment discloses a computer program product, the computer program product includes a computer program stored on a non-transitory computer-readable storage medium, the computer program includes program instructions, and when the program instructions are executed by the computer, the computer The methods provided by the above method embodiments can be executed, for example, including: receiving an upgrade command sent by the server, and generating first packaging information; wherein, the first packaging information includes the upgrade version number, the specified subband carrying the upgrade data packet The starting subband number, the first flag indicating the update command, and the terminal type of the terminal that needs to be upgraded; the upgrade command carries the first flag and the terminal type; periodically sends to the terminal carrying the first The first paging of packaging information; receiving a return message indicating that the upgrade data package has been received and completed returned by the terminal corresponding to the terminal type, and forwarding all return messages to the server for the server to use according to all return messages to determine whether all terminals corresponding to the terminal type have received the upgrade data packet; wherein, the terminal corresponding to the terminal type compares the upgrade version number with the local upgrade Version number, if the comparison results are different, then receive the upgrade data packet according to the initial sub-band number; receive the update effective instruction sent by the server when it is determined to be yes, generate the second packaging information, and send it to the Each terminal corresponding to the above-mentioned terminal type sends a second paging carrying the second packaged information; wherein, each terminal compares the upgrade version number with the update-to-be-validated If the comparison results are the same, execute the instruction to make the upgrade version number effective; the second packaging information includes the second flag bit, the upgrade version number to be updated and effective time; the The effective time is used to control the delay time for each terminal corresponding to the terminal type to execute the update effective instruction after receiving the second flag bit.

本实施例提供一种非暂态计算机可读存储介质,所述非暂态计算机可读存储介质存储计算机指令,所述计算机指令使所述计算机执行上述各方法实施例所提供的方法,例如包括:接收服务器发送的升级命令,生成第一打包信息;其中,所述第一打包信息包括升级版本号、承载升级数据包的指定子带的起始子带号、指示更新命令的第一标记位和需要升级终端的终端类型;所述升级命令携带有所述第一标记位和所述终端类型;周期性向终端发送携带有所述第一打包信息的第一寻呼;接收由与所述终端类型对应的终端返回的表示升级数据包已接收完成的返回消息,并转发所有返回消息至所述服务器,以供所述服务器根据所有返回消息的数量,确定所述终端类型对应的所有终端是否都已接收到所述升级数据包;其中,所述终端类型对应的终端根据所述第一标记位,比对所述升级版本号和本地升级版本号,若比对结果不同,则根据所述起始子带号接收所述升级数据包;接收所述服务器在确定为是时发送的更新生效指令,生成第二打包信息,并向与所述终端类型对应的每个终端发送携带有所述第二打包信息的第二寻呼;其中,每个终端根据指示更新生效指令的第二标记位,比对所述升级版本号和待更新生效的升级版本号,若比对结果相同,则执行使所述升级版本号生效的指令;所述第二打包信息包括所述第二标记位、待更新生效的升级版本号和生效时间;所述生效时间用于控制与所述终端类型对应的每个终端在接收到所述第二标记位之后执行所述更新生效指令的延时时长。This embodiment provides a non-transitory computer-readable storage medium, the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions cause the computer to execute the methods provided in the above method embodiments, for example, including : receive the upgrade command sent by the server, and generate the first package information; wherein, the first package information includes the upgrade version number, the starting subband number of the specified subband carrying the upgrade data packet, and the first flag indicating the update command and the terminal type of the terminal that needs to be upgraded; the upgrade command carries the first flag bit and the terminal type; periodically sends the first paging carrying the first packet information to the terminal; The terminal corresponding to the type returns a return message indicating that the upgrade data package has been received, and forwards all the return messages to the server, so that the server can determine whether all the terminals corresponding to the terminal type are connected according to the number of all return messages The upgrade data packet has been received; wherein, the terminal corresponding to the terminal type compares the upgrade version number with the local upgrade version number according to the first flag bit, and if the comparison results are different, then according to the starting The first subband number receives the upgrade data packet; receives the update validation instruction sent by the server when it is determined to be yes, generates second packaging information, and sends the second package information to each terminal corresponding to the terminal type The second paging of the second packaged information; wherein, each terminal compares the upgrade version number with the upgrade version number to be updated and take effect according to the second flag bit of the instruction to update and take effect, and if the comparison results are the same, execute using An instruction for the upgrade version number to take effect; the second packaging information includes the second flag bit, the upgrade version number to be updated and take effect, and the effective time; the effective time is used to control each terminal corresponding to the terminal type The delay time for the terminal to execute the update validation instruction after receiving the second flag bit.

本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps to realize the above method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the It includes the steps of the above method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other various media that can store program codes.

以上所描述的电子设备等实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The above-described embodiments such as electronic equipment are only illustrative, and the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, It can be located in one place, or it can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. It can be understood and implemented by those skilled in the art without any creative effort.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。Through the above description of the implementations, those skilled in the art can clearly understand that each implementation can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products can be stored in computer-readable storage media, such as ROM/RAM, magnetic discs, optical discs, etc., including several instructions to make a computer device (which may be a personal computer, server, or network device, etc.) execute the methods described in various embodiments or some parts of the embodiments.

最后应说明的是:以上各实施例仅用以说明本发明的实施例的技术方案,而非对其限制;尽管参照前述各实施例对本发明的实施例进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明的各实施例技术方案的范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the embodiments of the present invention, not to limit them; although the embodiments of the present invention have been described in detail with reference to the foregoing embodiments, those skilled in the art The skilled person should understand that: it is still possible to modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the present invention The scope of the technical solutions of each embodiment.

Claims (10)

1. The terminal upgrading processing method is characterized by comprising the following steps of:
sending an upgrade command to a base station, so that the base station generates first package information after receiving the upgrade command, and periodically sending a first page carrying the first package information to a terminal; the first packet information comprises an upgrade version number, a starting sub-band number of a designated sub-band carrying an upgrade data packet, a first mark bit indicating an update command and a terminal type of a terminal to be upgraded; the upgrade command carries the first mark bit and the terminal type;
Receiving a return message which is forwarded by the base station and returned by a terminal corresponding to the terminal type and indicates that the upgrade data packet is received, and determining whether all terminals corresponding to the terminal type have received the upgrade data packet according to the quantity of all return messages; the terminal corresponding to the terminal type compares the upgrade version number with the local upgrade version number according to the first mark bit, and if the comparison results are different, the terminal receives the upgrade data packet according to the initial sub-band number;
if yes, sending an update effective instruction to the base station so that the base station generates second packaging information, and sending a second page carrying the second packaging information to each terminal corresponding to the terminal type; each terminal compares the upgrade version number with the upgrade version number to be updated and takes effect according to a second mark bit indicating the update effective instruction, and if the comparison results are the same, the instruction for taking the upgrade version number into effect is executed; the second package information comprises the second flag bit, an upgrade version number to be updated and validated time; the effective time is used for controlling the delay time of each terminal corresponding to the terminal type to execute the update effective instruction after receiving the second flag bit;
And determining whether all terminals corresponding to the terminal type have received the upgrade data packet according to the number of all returned messages, including:
if the number is equal to the number of all the terminals, determining that all the terminals have received the upgrade data packet;
and if the number is not equal to the number of all the terminals, determining that all the terminals do not receive the upgrade data packet.
2. The terminal upgrading processing method is characterized by comprising the following steps of:
receiving an upgrade command sent by a server, and generating first package information; the first packet information comprises an upgrade version number, a starting sub-band number of a designated sub-band carrying an upgrade data packet, a first mark bit indicating an update command and a terminal type of a terminal to be upgraded; the upgrade command carries the first mark bit and the terminal type;
periodically sending a first page carrying the first packet information to a terminal;
receiving a return message which is returned by the terminal corresponding to the terminal type and indicates that the upgrade data packet is received, and forwarding all return messages to the server so that the server can determine whether all terminals corresponding to the terminal type have received the upgrade data packet according to the quantity of all return messages; the terminal corresponding to the terminal type compares the upgrade version number with the local upgrade version number according to the first mark bit, and if the comparison results are different, the terminal receives the upgrade data packet according to the initial sub-band number;
Receiving an update validation instruction sent by the server when the server determines that the terminal type is yes, generating second packaging information, and sending a second page carrying the second packaging information to each terminal corresponding to the terminal type; each terminal compares the upgrade version number with the upgrade version number to be updated and takes effect according to a second mark bit indicating the update effective instruction, and if the comparison results are the same, the instruction for taking the upgrade version number into effect is executed; the second package information comprises the second flag bit, an upgrade version number to be updated and validated time; and the effective time is used for controlling the delay time of each terminal corresponding to the terminal type to execute the update effective instruction after receiving the second flag bit.
3. The method according to claim 2, wherein the method further comprises:
and respectively representing the first package information and the second package information by adopting a first preset format and a second preset format.
4. The method of claim 3, wherein the first predetermined format is:
flag-subepidx-updateVersion-terminal type of terminal to be upgraded;
Wherein when the flag is zero, a first flag bit indicating an update command is represented; the subband idx represents the starting subband number of the designated subband carrying the upgrade data packet; updateVersion represents an upgrade version number;
the second preset format is:
flag-updateVersion-InUseTime;
wherein when the flag is 1, a second flag bit indicating that the update is valid; the updateVersion represents the upgrade version number to be updated to be effective; inUseTime represents the validation time.
5. A server, comprising:
the first sending module is used for sending an upgrade command to the base station so that the base station can generate first package information after receiving the upgrade command and periodically send a first page carrying the first package information to the terminal; the first packet information comprises an upgrade version number, a starting sub-band number of a designated sub-band carrying an upgrade data packet, a first mark bit indicating an update command and a terminal type of a terminal to be upgraded; the upgrade command carries the first mark bit and the terminal type;
the determining module is used for receiving a return message which is forwarded by the base station and returned by the terminal corresponding to the terminal type and indicates that the upgrade data packet is received, and determining whether all terminals corresponding to the terminal type have received the upgrade data packet according to the quantity of all the return messages; if the number is equal to the number of all the terminals, determining that all the terminals have received the upgrade data packet; if the number is judged to be unequal to the number of all the terminals, determining that all the terminals do not receive the upgrade data packet; the terminal corresponding to the terminal type compares the upgrade version number with the local upgrade version number according to the first mark bit, and if the comparison results are different, the terminal receives the upgrade data packet according to the initial sub-band number;
The second sending module is used for sending an update effective instruction to the base station if the determination is yes, so that the base station generates second package information, and sending a second page carrying the second package information to each terminal corresponding to the terminal type; each terminal compares the upgrade version number with the upgrade version number to be updated and takes effect according to a second mark bit indicating the update effective instruction, and if the comparison results are the same, the instruction for taking the upgrade version number into effect is executed; the second package information comprises the second flag bit, an upgrade version number to be updated and validated time; and the effective time is used for controlling the delay time of each terminal corresponding to the terminal type to execute the update effective instruction after receiving the second flag bit.
6. An electronic device, comprising: a first processor, a first memory, and a first bus, wherein:
the first processor and the first memory complete communication with each other through the first bus;
the first memory stores program instructions executable by the first processor, the first processor invoking the program instructions capable of performing the method of claim 1.
7. A non-transitory computer-readable storage medium storing computer instructions that cause the computer to perform the method of claim 1.
8. A base station, comprising:
the first generation unit is used for receiving the upgrade command sent by the server and generating first package information; the first packet information comprises an upgrade version number, a starting sub-band number of a designated sub-band carrying an upgrade data packet, a first mark bit indicating an update command and a terminal type of a terminal to be upgraded; the upgrade command carries the first mark bit and the terminal type;
a sending unit, configured to periodically send a first page carrying the first packet information to a terminal;
a forwarding unit, configured to receive a return message returned by a terminal corresponding to the terminal type and indicating that the upgrade data packet has been received, and forward all return messages to the server, so that the server determines, according to the number of all return messages, whether all terminals corresponding to the terminal type have received the upgrade data packet; the terminal corresponding to the terminal type compares the upgrade version number with the local upgrade version number according to the first mark bit, and if the comparison results are different, the terminal receives the upgrade data packet according to the initial sub-band number;
A second generating unit, configured to receive an update validation instruction sent by the server when the determination is yes, generate second package information, and send a second page carrying the second package information to each terminal corresponding to the terminal type; each terminal compares the upgrade version number with the upgrade version number to be updated and takes effect according to a second mark bit indicating the update effective instruction, and if the comparison results are the same, the instruction for taking the upgrade version number into effect is executed; the second package information comprises the second flag bit, an upgrade version number to be updated and validated time; and the effective time is used for controlling the delay time of each terminal corresponding to the terminal type to execute the update effective instruction after receiving the second flag bit.
9. An electronic device, comprising: a second processor, a second memory, and a second bus, wherein:
the second processor and the second memory complete communication with each other through the second bus;
the second memory stores program instructions executable by the second processor, the second processor invoking the program instructions capable of performing the method of any of claims 2-4.
10. A non-transitory computer readable storage medium storing computer instructions that cause the computer to perform the method of any of claims 2 to 4.
CN201910047318.8A 2019-01-18 2019-01-18 A terminal upgrade processing method, server and base station Active CN111459514B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910047318.8A CN111459514B (en) 2019-01-18 2019-01-18 A terminal upgrade processing method, server and base station

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910047318.8A CN111459514B (en) 2019-01-18 2019-01-18 A terminal upgrade processing method, server and base station

Publications (2)

Publication Number Publication Date
CN111459514A CN111459514A (en) 2020-07-28
CN111459514B true CN111459514B (en) 2023-06-23

Family

ID=71682131

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910047318.8A Active CN111459514B (en) 2019-01-18 2019-01-18 A terminal upgrade processing method, server and base station

Country Status (1)

Country Link
CN (1) CN111459514B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112118313B (en) * 2020-09-17 2023-04-18 紫光展锐(重庆)科技有限公司 Method and related device for remotely upgrading terminal equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103685495A (en) * 2013-12-05 2014-03-26 金蝶软件(中国)有限公司 Method and system for upgrading software
CN107770279A (en) * 2017-10-31 2018-03-06 深圳市银河风云网络系统股份有限公司 Remote upgrade method and system
GB201813775D0 (en) * 2017-09-13 2018-10-10 Fisher Rosemount Systems Inc Systems and methods for assessing configuration files associated with a process control system
CN108845812A (en) * 2018-05-31 2018-11-20 康键信息技术(深圳)有限公司 Update of plug-in method, apparatus, computer equipment and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5586304A (en) * 1994-09-08 1996-12-17 Compaq Computer Corporation Automatic computer upgrading
CN101060427A (en) * 2006-04-19 2007-10-24 华为技术有限公司 A system and method for realizing the remote software updating
CN100550780C (en) * 2007-06-13 2009-10-14 华为技术有限公司 The method of Control Software edition upgrading, equipment and system
CN101901160B (en) * 2010-08-11 2015-06-03 中兴通讯股份有限公司 Packing method and device of version upgrading software package
CN102541596A (en) * 2011-12-22 2012-07-04 中标软件有限公司 Operating system upgrading method and device
CN108616913A (en) * 2016-12-15 2018-10-02 中国移动通信集团河南有限公司 A kind of call processing method, apparatus and system
US10841256B2 (en) * 2017-05-05 2020-11-17 ShieldX Networks, Inc. Upgrading components of a messaging system used by a microservice-based application

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103685495A (en) * 2013-12-05 2014-03-26 金蝶软件(中国)有限公司 Method and system for upgrading software
GB201813775D0 (en) * 2017-09-13 2018-10-10 Fisher Rosemount Systems Inc Systems and methods for assessing configuration files associated with a process control system
CN107770279A (en) * 2017-10-31 2018-03-06 深圳市银河风云网络系统股份有限公司 Remote upgrade method and system
CN108845812A (en) * 2018-05-31 2018-11-20 康键信息技术(深圳)有限公司 Update of plug-in method, apparatus, computer equipment and storage medium

Also Published As

Publication number Publication date
CN111459514A (en) 2020-07-28

Similar Documents

Publication Publication Date Title
US20200177473A1 (en) Network component management method and network device
EP3509372B1 (en) Method, device and system for scheduling logical channel
CN103593217B (en) A kind of hook key adjusting earphone starts method and the terminal of application order
CN107483725A (en) Resource allocation method and related products
CN108011899B (en) Session establishment optimization method, device and system
US20160088577A1 (en) Timing value adjustment method and apparatus
CN107589998A (en) Resource allocation method and Related product
EP3709738A1 (en) Bandwidth part (bwp) processing method and device
CN108419290A (en) Paging monitoring method, device, terminal, base station, system and storage medium
CN109699063B (en) Processing and sending method of preemption indication signaling, terminal and base station
JP2023547257A (en) PDCP duplication arrangement, activation or deactivation method and terminal
CN108093089A (en) Page monitoring method, apparatus, system and storage medium
JP2018506910A (en) Random access method, terminal, and base station
CN111459514B (en) A terminal upgrade processing method, server and base station
US10111207B2 (en) Network device, terminal device, and voice service control method
CN106792793A (en) A kind of special subframe collocation method, device and base station
CN116325895B (en) Data transmission method and related equipment
CN111885564B (en) Data transmission method, equipment upgrading method and computer readable storage medium
US9125207B2 (en) Method and device for controlling channel transmission
WO2013139092A1 (en) Automatic supplement and acquisition method and device for north ftp performance file of telecommunication network management system
CN114666279B (en) Method and system for issuing PCC session management policy in 5G system
CN107005420B (en) Group service feedback method and device
CN112788619B (en) Secondary cell group configuration method, main base station, secondary base station and terminal
CN113728711A (en) Sidelink realization method and related product
CN115134203B (en) Signal processing method and device 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
GR01 Patent grant
GR01 Patent grant