CN111459514B - Terminal upgrading processing method, server and base station - Google Patents

Terminal upgrading 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
data packet
terminal type
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 Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (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

Terminal upgrading processing method, server and base station
Technical Field
The embodiment of the invention relates to the technical field of terminal management and control, in particular to a terminal upgrading processing method, a server and a base station.
Background
In order for a network management server (hereinafter referred to as a "server") to effectively manage and control a terminal, the terminal needs to be upgraded generally, and an upgrade mode of the terminal upgrade is particularly important for the server to effectively manage and control the terminal.
In the prior art, a server is generally adopted to periodically designate one or a small number of designated terminals which are not upgraded and upgrade is performed at the same time, each terminal occupies one sub-band or one channel in the upgrade process, however, under the condition that the number of terminals which need to be upgraded is large, the upgrade mode needs to occupy spectrum resources for a long time, and the transmission of normal service is influenced.
Therefore, how to avoid the above-mentioned drawbacks, a reasonable terminal upgrade mode is adopted to effectively control the terminal, so as to reduce the time of the terminal occupying spectrum resources due to upgrade, so that the terminal can have more time to perform service transmission, and improve the time-frequency resource utilization rate, which is a problem to be solved urgently.
Disclosure of Invention
Aiming at the problems existing in the prior art, the embodiment of the invention provides a terminal upgrading processing method, a server and a base station.
The embodiment of the invention provides a terminal upgrading processing method, which 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; 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; 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.
The embodiment of the invention also provides a terminal upgrading processing method, which comprises the following steps:
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.
The embodiment of the invention provides a server, which comprises:
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; 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.
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 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:
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; 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.
Embodiments of the present invention provide a non-transitory computer readable storage medium comprising:
the non-transitory computer readable storage medium stores computer instructions that cause the computer to perform the method 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; 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.
An embodiment of the present invention provides a base station, including:
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.
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 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:
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.
Embodiments of the present invention provide a non-transitory computer readable storage medium comprising:
the non-transitory computer readable storage medium stores computer instructions that cause the computer to perform the method 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.
According to the terminal upgrading processing method, the server and the base station, the terminal corresponding to the terminal type of the terminal to be upgraded sends the return message after receiving the upgrade data packet, and after all terminals receive the upgrade data packet according to the quantity of the return message, the upgrade version numbers in all the terminals are enabled to be effective by sending the second package information, the terminal can be effectively controlled by adopting a reasonable terminal upgrading mode, the time of the terminal occupying frequency spectrum resources due to upgrading is further reduced, the terminal can have more time for service transmission, and the time-frequency resource utilization rate is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of an embodiment of a method for processing a terminal upgrade according to the present invention;
FIG. 2 is a flowchart of another embodiment of a terminal upgrade processing method according to the present invention;
FIG. 3 is a flowchart of another embodiment of a terminal upgrade processing method according to the present invention;
FIG. 4 is a schematic diagram of a server structure according to an embodiment of the present invention;
fig. 5 is a schematic diagram of an entity structure of an electronic device according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a base station structure according to an embodiment of the present invention;
fig. 7 is a schematic diagram of an entity structure of an electronic device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Fig. 1 is a flowchart of an embodiment of a processing method for terminal upgrade according to the present invention, and as shown in fig. 1, the processing method for terminal upgrade according to the embodiment of the present invention includes the following steps:
S101: 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 order carries the first flag bit and the terminal type.
Specifically, a server sends an upgrade command to a base station, so that the base station generates first packet information after receiving the upgrade command, and periodically sends a first page carrying the first packet 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 order carries the first flag bit and the terminal type. The upgrade version number may be specifically a lift version number of 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 packet may be selected according to practical situations, for example, may be selected as a broadcast subband, a logic subband, a resident subband, etc., which represents the frequency domain resource occupied by the carrying upgrade data packet. The first flag bit indicating the update command may be understood as a command flag bit informing the terminal of the reception of the upgrade data packet, which flag bit may be represented by zero. The terminal type of the terminal to be upgraded can be understood as the terminal type of the terminal of the type to be upgraded.
Fig. 2 is a flowchart of another embodiment of a processing method for upgrading a terminal according to the present invention, where, as shown in fig. 2, a server corresponds to "network management" in fig. 2, and may use a first preset format to represent first packet information, where the first preset format corresponds to "DCI1" in fig. 2. The transmission period value for periodically transmitting the first page may be set autonomously according to the actual situation. It should be noted that: if the terminal is transmitting service in one transmission period, the terminal cannot respond to the first paging in the transmission period, and continues to monitor the first paging after finishing the current service transmission and returning to the resident sub-band, and when the first paging is transmitted again, the terminal can respond to the first paging.
S102: 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; and comparing the upgrading version number with the local upgrading version number according to the first marking bit by the terminal corresponding to the terminal type, and receiving the upgrading data packet according to the initial sub-band number if the comparison results are different.
Specifically, the server receives 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 determines whether all terminals corresponding to the terminal type have received the upgrade data packet according to the quantity of all return messages; and comparing the upgrading version number with the local upgrading version number according to the first marking bit by the terminal corresponding to the terminal type, and receiving the upgrading data packet according to the initial sub-band number if the comparison results are different. The return message may be returned to the base station in the manner of a MAC control element as shown in fig. 2. The following are illustrated: the terminal types comprise A type and B type, and the number of all terminals corresponding to the A type terminal types is 50; all terminals corresponding to the type B terminal type are 100; in step S101, the number of "terminals" in the first paging sent periodically to the terminal may be 150, and if the terminal type carried in the upgrade command is a type, the terminal of a type recognizes that the terminal type is a type after receiving the first paging, and the terminal type of the terminal is also a type, and the comparison result is consistent, and then the step of comparing the upgrade version number with the local upgrade version number according to the first flag bit is performed; if the type B terminal recognizes that the type of the terminal is type a and the type B terminal is inconsistent after receiving the first page, the step of comparing the upgrade version number with the local upgrade version number according to the first flag bit is not performed, which can be understood as follows: the A-type terminal can confirm that the instruction issued by the server is an instruction update command according to the first mark bit, so that comparison of an upgrade version number and a local upgrade version number is carried out, and if the upgrade version number is higher than the local upgrade version number, the terminal needs to be upgraded; if the upgrade version number is equal to the local upgrade version number, the terminal is not required to be upgraded; typically, no situation occurs in which the upgrade version number is smaller than the local upgrade version number.
Further, this step may be specifically: and if the number is equal to the number of all the terminals, determining that all the terminals have received the upgrade data packet. Referring to the above example, when the number of the return messages in the server is 50, that is, equal to the total number of the type a terminals 50, it is determined that all the type a terminals have received the upgrade data packet, and further, the server may identify which terminals have sent the return message and which terminals have not sent the return message by carrying the terminal identifier in the return message.
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. Referring to the above example, when the number of return messages in the server is less than 50, that is, not equal to the total number 50 of type a terminals (in general, there are no more than 50 cases), it is determined that all the type a terminals do not receive the upgrade data packet. It should be noted that: if the terminal receives the upgrade data packet and sends a return message, but the server does not receive the return message possibly due to factors such as network failure, the terminal can further monitor the network state between the message receiving and transmitting objects and timely process the failure when the failure occurs.
S103: 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; 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.
Specifically, if the server determines that the terminal type is positive, the server sends an update validation instruction to the base station so that the base station generates second package information, and sends 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. The second packing information may be represented in a second preset format corresponding to "DCI2" in fig. 2. With reference to the above examples, it will be appreciated that: each a-type terminal can confirm that the instruction issued by the server is an instruction indicating update to take effect according to the second flag bit, so that comparison of the update version number and the update version number to be updated to take effect is performed (namely, the version number of the previously received update data packet is ensured to be consistent with the version number to be updated to take effect), and if the comparison result is the same, the update version number corresponding to the update data packet can be further indicated to take effect by setting the flag bit indicating the update state to 1. The effective time can be set independently according to actual conditions, and can be selected to be 1 minute.
According to the terminal upgrading processing method provided by the embodiment of the invention, the terminal corresponding to the terminal type of the terminal to be upgraded sends the return message after receiving the upgrade data packet, and then determines all terminals to take effect by sending the second package information after receiving the upgrade data packet according to the quantity of the return message, so that the upgrade version numbers in all the terminals are effective, the terminal can be effectively controlled by adopting a reasonable terminal upgrading mode, the time of the terminal occupying the frequency spectrum resource due to upgrading is further reduced, the terminal can have more time for carrying out service transmission, and the time-frequency resource utilization rate is improved.
On the basis of the foregoing embodiment, the determining, according to the number of all the returned messages, whether all the terminals corresponding to the terminal type have received the upgrade data packet includes:
and if the number is equal to the number of all the terminals, determining that all the terminals have received the upgrade data packet.
Specifically, if the server judges that the number is equal to the number of all the terminals, the server determines that all the terminals have received the upgrade data packet. Reference may be made to the above embodiments, and no further description is given.
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.
Specifically, if the server judges that the number is not equal to the number of all the terminals, it determines that all the terminals do not receive the upgrade data packet. Reference may be made to the above embodiments, and no further description is given.
The terminal upgrading processing method provided by the embodiment of the invention can further effectively control the terminal by adopting a reasonable terminal upgrading mode, so that the time of occupying frequency spectrum resources by the terminal due to upgrading is reduced, the terminal can have more time for service transmission, and the time-frequency resource utilization rate is improved.
Fig. 3 is a flowchart of another embodiment of a terminal upgrade processing method according to the present invention, and as shown in fig. 3, the terminal upgrade processing method provided by the embodiment of the present invention includes the following steps:
s301: 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 order carries the first flag bit and the terminal type.
Specifically, the base station receives an upgrade command sent by a server and generates 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 order carries the first flag bit and the terminal type. The first packet information may be represented in a first preset format, and the first preset format (DCI 1) may specifically be as follows:
DCI1: (updating DCI)
And (3) flag: a flag in DCI1 is zero, indicating a first flag bit indicating an update command; 1bit;
subendedIdx: a starting subband number of a designated subband carrying the upgrade data packet, (the designated subband may be selected from a broadcast subband, a logical subband, a resident subband); take the value [0,477];9 bits;
updateVersion: the upgrade version number in DCI1 is used for comparing whether the upgrade is needed with the version number stored by the terminal; 1bit:
terminal type of terminal to be upgraded: the value range is as follows: 0 represents serial port LCM, 1 represents network port LCM, 2 represents chip, and 3 represents CPE;2 bits.
S302: and periodically sending a first page carrying the first packet information to the terminal.
Specifically, the base station periodically sends a first page carrying the first packet information to the terminal. The specific value of the transmission period can be set autonomously according to the actual situation.
S303: 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; and comparing the upgrading version number with the local upgrading version number according to the first marking bit by the terminal corresponding to the terminal type, and receiving the upgrading data packet according to the initial sub-band number if the comparison results are different.
Specifically, the base station receives a return message which is returned by the terminal corresponding to the terminal type and indicates that the upgrade data packet is received, and forwards all the return messages to the server, so that the server determines whether all the terminals corresponding to the terminal type have received the upgrade data packet according to the quantity of all the return messages; and comparing the upgrading version number with the local upgrading version number according to the first marking bit by the terminal corresponding to the terminal type, and receiving the upgrading data packet according to the initial sub-band number if the comparison results are different. Reference is made to the above description of fig. 2, and no further description is given.
S304: 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.
Specifically, the base station receives an update validation instruction sent by the server when the update validation instruction is determined to be yes, generates second package information, and sends 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. The second package information may be represented in a second preset format, and the second preset format (DCI 2) may specifically be as follows:
DCI2: (update effective DCI)
And (3) flag: a flag in DCI2 is 1, indicating a second flag bit indicating an update validation instruction; 1bit;
updateVersion: the upgrade version number to be updated in DCI2 is used for comparing whether the upgrade version number in the original DCI1 in the terminal needs to be validated or not; 1bit;
InUseTime: time of effectiveness; i.e. the minutes after the terminal receives the second flag bit, the terminal performs the update operation. Optionally 1,3,5, 10; units: min;3 bits.
The overall flow of an embodiment of the present invention is briefly described below with reference to fig. 2:
1. the network manager (server) sends an upgrade order to the base station.
2. The base station acquires an upgrade data packet from the local FTP and issues a page (update DCI, i.e., DCI 1) for a certain class of terminals.
3. The terminal in idle state monitors paging; and returning the resident sub-band to monitor paging after the terminal with the service completes the current service transmission.
4. The base station periodically transmits paging and transmits an upgrade data packet in a designated sub-band.
5. After the terminal monitors paging, descrambling by using two modes of P-RNTI and G-RNTI; if the P-RNTI is the P-RNTI, entering a common paging flow; if the local upgrade version number is the G-RNTI, the local upgrade version number is compared with the upgrade version number carried in the paging, and if the local upgrade version number is inconsistent with the upgrade version number carried in the paging, the following upgrade process is carried out.
6. And the terminal receives the upgrading data packet in the designated sub-band, returns to the resident sub-band after finishing, and sends a return message to the base station in a mode of sending the MAC control unit.
7. After receiving a return message, the base station forwards the return message to the network manager to count the upgrade percentage.
8. After the upgrade percentage reaches a percentage (i.e. after all terminals correctly receive the upgrade data packet), the network manager sends an upgrade validation instruction to the base station, and the base station sends the upgrade validation DCI (DCI 2) in a designated sub-band after receiving the instruction.
9. The terminal continues to monitor paging to acquire DCI2; and simultaneously monitoring whether downlink service exists, if so, processing according to the normal downlink service flow, and if so, directly sending the SR.
10. After the service processing is finished, the terminal compares whether the upgrade version number is consistent with the upgrade version number to be updated in DCI2, and if so, the upgrade operation is finished.
According to the terminal upgrading processing method provided by the embodiment of the invention, the terminal corresponding to the terminal type of the terminal to be upgraded sends the return message after receiving the upgrade data packet, and then determines all terminals to take effect by sending the second package information after receiving the upgrade data packet according to the quantity of the return message, so that the upgrade version numbers in all the terminals are effective, the terminal can be effectively controlled by adopting a reasonable terminal upgrading mode, the time of the terminal occupying the frequency spectrum resource due to upgrading is further reduced, the terminal can have more time for carrying out service transmission, and the time-frequency resource utilization rate is improved.
On the basis of the above embodiment, the method further includes:
and respectively representing the first package information and the second package information by adopting a first preset format and a second preset format.
Specifically, the base station adopts a first preset format and a second preset format to respectively represent the first package information and the second package information. Reference may be made to the above embodiments, and no further description is given.
The terminal upgrading processing method provided by the embodiment of the invention can more intuitively and conveniently display the first package information and the second package information.
On the basis of the foregoing embodiment, the first preset format is: the flag-subepidx-updateVersion needs to upgrade the terminal type of the terminal; 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-update version-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.
Specifically, the first preset format in the base station is: the flag-subepidx-updateVersion needs to upgrade the terminal type of the terminal; 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-update version-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. Reference may be made to the above embodiments, and no further description is given.
The terminal upgrading processing method provided by the embodiment of the invention can further more intuitively and conveniently display the first package information and the second package information.
Fig. 4 is a schematic diagram of a server structure according to an embodiment of the present invention, and as shown in fig. 4, an embodiment of the present invention provides a server, including a first sending module 401, a determining module 402, and a second sending module 403, where:
the first sending module 401 is configured to send an upgrade command to a base station, so that after receiving the upgrade command, the base station generates first packet information, and periodically sends a first page carrying the first packet 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; the determining module 402 is configured to receive a return message forwarded by the base station and returned by a terminal corresponding to the terminal type, where the return message indicates that the upgrade data packet has been received, and determine, 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; the second sending module 403 is configured to send an update validation instruction to the base station if the determination is yes, so that the base station generates 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.
Specifically, the first sending module 401 is configured to send an upgrade command to a base station, so that after receiving the upgrade command, the base station generates first packet information, and periodically sends a first page carrying the first packet 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; the determining module 402 is configured to receive a return message forwarded by the base station and returned by a terminal corresponding to the terminal type, where the return message indicates that the upgrade data packet has been received, and determine, 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; the second sending module 403 is configured to send an update validation instruction to the base station if the determination is yes, so that the base station generates 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.
According to the server provided by the embodiment of the invention, the terminal corresponding to the terminal type of the terminal to be upgraded firstly sends the return message after receiving the upgrade data packet, then determines all terminals to take effect after receiving the upgrade data packet according to the quantity of the return message, and then takes effect by sending the second package information, so that the terminal can be effectively controlled by adopting a reasonable terminal upgrading mode, further, the time of the terminal occupying the frequency spectrum resource due to upgrading is reduced, the terminal can have more time for carrying out service transmission, and the time-frequency resource utilization rate is improved.
The server provided in the embodiment of the present invention may be specifically used to execute the processing flow of each method embodiment, and the functions thereof are not described herein again, and may refer to the detailed description of the method embodiments.
Fig. 5 is a schematic diagram of an entity structure of an electronic device according to an embodiment of the present invention, as shown in fig. 5, where the electronic device includes: a first processor (processor) 501, a first memory (memory) 502, and a first bus 503;
wherein, the first processor 501 and the first memory 502 complete communication with each other through the first bus 503;
The first processor 501 is configured to invoke the program instructions in the first memory 502 to perform the methods provided in the above method embodiments, for example, including: 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; 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.
The present embodiment discloses a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, are capable of performing the methods provided by the above-described method embodiments, for example comprising: 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; 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.
The present embodiment provides a non-transitory computer-readable storage medium storing computer instructions that cause a computer to perform the methods provided by the above-described method embodiments, for example, including: 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; 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.
Fig. 6 is a schematic diagram of a base station structure according to an embodiment of the present invention, and as shown in fig. 6, an embodiment of the present invention provides a base station, which includes a first generating unit 601, a transmitting unit 602, a forwarding unit 603, and a second generating unit 604, where:
the first generating unit 601 is configured to receive an upgrade command sent by a server, and generate first packet 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; the sending unit 602 is configured to periodically send a first page carrying the first packet information to a terminal; the forwarding unit 603 is configured to receive a return message returned by a terminal corresponding to the terminal type, where the return message indicates 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; the second generating unit 604 is 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.
Specifically, the first generating unit 601 is configured to receive an upgrade command sent by a server, and generate first packet 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; the sending unit 602 is configured to periodically send a first page carrying the first packet information to a terminal; the forwarding unit 603 is configured to receive a return message returned by a terminal corresponding to the terminal type, where the return message indicates 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; the second generating unit 604 is 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.
According to the base station provided by the embodiment of the invention, the terminal corresponding to the terminal type of the terminal to be upgraded firstly sends the return message after receiving the upgrade data packet, then determines all terminals after receiving the upgrade data packet according to the quantity of the return message, and then takes effect of the upgrade version number in all the terminals by sending the second package information, so that the terminal can be effectively controlled by adopting a reasonable terminal upgrade mode, further, the time of the terminal occupying the frequency spectrum resource due to upgrade is reduced, the terminal can have more time for service transmission, and the time-frequency resource utilization rate is improved.
The base station provided in the embodiment of the present invention may be specifically used to execute the processing flow of each method embodiment, and the functions thereof are not described herein again, and may refer to the detailed description of the method embodiments.
Fig. 7 is a schematic diagram of an entity structure of an electronic device according to an embodiment of the present invention, as shown in fig. 7, where the electronic device includes: a second processor (processor) 701, a second memory (memory) 702, and a second bus 703;
wherein, the second processor 701 and the second memory 702 complete communication with each other through the second bus 703;
The second processor 701 is configured to invoke the program instructions in the second memory 702 to perform the methods provided in the above method embodiments, for example, including: 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.
The present embodiment discloses a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, are capable of performing the methods provided by the above-described method embodiments, for example comprising: 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.
The present embodiment provides a non-transitory computer-readable storage medium storing computer instructions that cause a computer to perform the methods provided by the above-described method embodiments, for example, including: 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.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above method embodiments may be implemented by hardware associated with program instructions, where the foregoing program may be stored in a computer readable storage medium, and when executed, the program performs steps including the above method embodiments; and the aforementioned storage medium includes: various media that can store program code, such as ROM, RAM, magnetic or optical disks.
The above-described embodiments of electronic devices and the like are merely illustrative, wherein the elements described as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the embodiments of the present invention, and are not limited thereto; although embodiments of the present invention have been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present invention.

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 Terminal upgrading 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 Terminal upgrading 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 Terminal upgrading 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 Terminal upgrading 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
US12075429B2 (en) Method for determining configured resource, and apparatus
US11894992B2 (en) Network component management method and network device
CN112822699B (en) Method and device for executing intention
EP3739992B1 (en) Information processing method, device, and apparatus
AU2018294476A1 (en) Control information transmission method and device
US9832744B2 (en) Timing value adjustment method and apparatus
US11595964B2 (en) Method and device for determining information domain value in DCI
CN108141882B (en) Adjustment of data flows and contention window parameters with different priorities in contention-based systems
CN110100400B (en) Method, device, equipment and storage medium for determining channel detection mechanism
CN110463280B (en) Channel access configuration method, device, equipment and storage medium
WO2019019951A1 (en) Information transmission method, terminal device, and network device
US12022520B2 (en) Uplink resource allocation method and device, base station, and terminal
WO2020143630A1 (en) Resource configuration method and apparatus
WO2020164347A1 (en) Transmission method and device
JP2018506910A (en) Random access method, terminal, and base station
CN111459514B (en) Terminal upgrading processing method, server and base station
JP2021510277A (en) Power headroom report processing method, terminals and network side equipment
CN114756104A (en) Overheating processing method and device, and storage medium
US9125207B2 (en) Method and device for controlling channel transmission
CN111182536A (en) SIM card state detection method, device, network equipment and storage medium
CN116325895A (en) Data transmission method and related equipment
US20210359820A1 (en) Methods and devices for sending and receiving messages, and storage medium
CN107786310B (en) Data packet transmission method and node
CN113747559B (en) Method and device for reporting power headroom, terminal and readable storage medium
CN111130739B (en) Method, device, terminal and storage medium for processing air interface resources

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