CN111984285A - Method for upgrading software of communication-in-motion equipment, communication-in-motion equipment and server - Google Patents
Method for upgrading software of communication-in-motion equipment, communication-in-motion equipment and server Download PDFInfo
- Publication number
- CN111984285A CN111984285A CN202010660764.9A CN202010660764A CN111984285A CN 111984285 A CN111984285 A CN 111984285A CN 202010660764 A CN202010660764 A CN 202010660764A CN 111984285 A CN111984285 A CN 111984285A
- Authority
- CN
- China
- Prior art keywords
- software
- upgrading
- communication
- upgrade
- sub
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 84
- 238000004590 computer program Methods 0.000 claims description 18
- 230000006854 communication Effects 0.000 abstract description 43
- 238000004891 communication Methods 0.000 abstract description 42
- 238000010295 mobile communication Methods 0.000 description 65
- 238000012545 processing Methods 0.000 description 34
- 230000005540 biological transmission Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 10
- 230000008569 process Effects 0.000 description 8
- 230000006870 function Effects 0.000 description 6
- 230000003993 interaction Effects 0.000 description 5
- 230000003068 static effect Effects 0.000 description 4
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000002159 abnormal effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000004422 calculation algorithm Methods 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 239000000969 carrier Substances 0.000 description 1
- 239000000470 constituent Substances 0.000 description 1
- 125000004122 cyclic group Chemical group 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
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)
- Stored Programmes (AREA)
Abstract
The application provides a method for upgrading software of a communication-in-motion device, the communication-in-motion device and a server, and is suitable for the technical field of satellite communication. The method is applied to the communication-in-motion equipment, the communication-in-motion equipment comprises a memory, and the communication-in-motion equipment is communicated with a server through a satellite, and the method comprises the following steps: receiving an upgrade software package; the upgrading software package is generated by corresponding upgrading software files, and the upgrading software files are used for upgrading the first software; under the condition that the upgrade software package is successfully received, the upgrade software file corresponding to the upgrade software package is written into a preset address space in a memory, and the software file corresponding to the stored first software is not deleted; receiving an operation instruction; the running instruction is used for instructing the communication-in-motion equipment to run the upgrading software file at the preset time so as to upgrade the first software. The method can realize the remote software upgrading of the communication-in-motion equipment, improve the working efficiency and reduce the cost.
Description
Technical Field
The application belongs to the technical field of satellite communication, and particularly relates to a method for upgrading software of a communication-in-motion device, the communication-in-motion device and a server.
Background
The communication-in-motion equipment refers to mobile satellite ground station communication equipment, consists of satellite automatic tracking sub-equipment and satellite communication sub-equipment, and aims to provide real-time tracking communication of platforms such as satellites and the like for mobile carriers such as vehicles, ships, airplanes and the like in motion and continuously transmit multimedia information so as to meet the requirements of multimedia communication under various emergency communication and mobile conditions.
In the prior art, when software of a mobile communication device needs to be upgraded, a local upgrade mode is usually adopted, that is, a dedicated computer is connected to a circuit board, and then a dedicated download cable is used to download and upgrade software of a Micro Control Unit (MCU) of the mobile communication device soldered on the circuit board. Although the method has the characteristics of reliability and stability, when the communication-in-motion equipment is delivered to a client and put into operation, upgrading becomes very difficult, each upgrading needs to coordinate upgrading time and place with the client, and then a professional is dispatched to upgrade the client on site, so that the efficiency is very low and the cost is high.
Disclosure of Invention
The embodiment of the application provides a method for upgrading software of a communication-in-motion device, the communication-in-motion device and a server, which can realize remote upgrading of the software in the communication-in-motion device, improve the working efficiency and save the cost.
In a first aspect, an embodiment of the present application provides a method for upgrading software of a mobile communication device, which is applied to a mobile communication device, where the mobile communication device includes a memory, and the mobile communication device communicates with a server through a satellite, and the method includes: the communication-in-motion equipment receives an upgrading software package; the upgrading software package is generated by a corresponding upgrading software file and used for upgrading the first software; under the condition that the upgrade software is successfully received, the communication-in-motion device writes the upgrade software file corresponding to the upgrade software package into a preset address space in a memory, and does not delete the stored software file corresponding to the first software. The communication-in-motion equipment receives an operation instruction; the running instruction is used for instructing the communication-in-motion equipment to run the upgrading software file at the preset time so as to upgrade the first software.
If the first software corresponds to a software file, the stored software file is not deleted; and if the first software corresponds to a plurality of software files, the software file with the highest version in the stored software files is not deleted.
The first aspect provides a method for upgrading software of a communication-in-motion device, wherein the communication-in-motion device receives an upgrading software package sent by a server through a satellite, and an upgrading software file corresponding to the upgrading software package is used for upgrading first software; and then, under the condition that the upgrade software package is successfully received, the upgrade software file corresponding to the upgrade software package is written into a preset address space in the memory, and the stored software file corresponding to the first software is not deleted.
With reference to the first aspect, in a possible implementation manner of the first aspect, the method further includes: and under the condition that the first software fails to be upgraded, restarting the communication-in-progress equipment, and operating the stored software file corresponding to the first software.
The failure of upgrading the first software comprises interruption of upgrading the first software, failure of receiving the upgrading software package and failure of running the upgrading software file.
If a software file corresponding to the first software is stored, operating the software file when the communication-in-process equipment is restarted; and if the plurality of software files corresponding to the first software are stored, operating the software file with the highest version in the stored plurality of software files when the communication-in-process equipment is restarted.
In the implementation mode, the communication-in-motion equipment is restarted and the stored software file corresponding to the first software is operated, so that the communication-in-motion equipment can be ensured to continuously and normally work, and the stability and reliability of the communication-in-motion equipment are improved.
With reference to the first aspect, in a possible implementation manner of the first aspect, the receiving an upgrade software package includes:
the communication-in-motion equipment receives a plurality of encrypted upgrading sub-software packages; the plurality of encrypted upgrading sub-software packages are obtained by dividing the upgrading software file into a plurality of upgrading sub-software files and encrypting the plurality of upgrading sub-software files respectively. In the implementation mode, the upgrading software file is divided into the upgrading sub-software files, and the upgrading sub-software files are encrypted, so that the upgrading sub-software files can be transmitted under limited bandwidth resources, the transmission pressure is reduced, and the data security can be improved through encryption.
With reference to the first aspect, in a possible implementation manner of the first aspect, after receiving a plurality of encrypted upgrade sub-software packages, the method further includes:
the communication-in-motion equipment decrypts the encrypted upgrading sub-software packages to obtain a plurality of corresponding upgrading sub-software files; and the communication-in-motion equipment splices the plurality of upgrading sub-software files to obtain upgrading software files. In the implementation mode, the encrypted upgrade sub-software package is decrypted, and the plurality of upgrade sub-software files obtained through decryption are spliced, so that the original upgrade software file can be restored.
With reference to the first aspect, in a possible implementation manner of the first aspect, before receiving the upgrade software package, the method further includes:
the communication-in-motion equipment receives a state query instruction; the state query instruction is used for querying the running state of the communication-in-motion equipment. The communication-in-motion equipment sends indication information responding to the state inquiry instruction; the indication information is used for indicating that the communication-in-motion device is in a scalable state. In the implementation mode, the communication-in-motion device receives the state query instruction, and the server can be facilitated to determine that the communication-in-motion device is in the upgradable state by sending the indication information responding to the state query instruction.
In a second aspect, an embodiment of the present application provides a method for upgrading software of a mobile communication device, which is applied to a server, and includes:
the server sends an upgrading software package; the upgrading software package is generated by corresponding upgrading software files; the upgrading software file is used for upgrading the first software; the server sends an operation instruction; the running instruction is used for instructing the communication-in-motion equipment to run the upgrading software file at the preset time so as to upgrade the first software.
With reference to the second aspect, in a possible implementation manner of the second aspect, before the sending the upgrade software package, the method further includes: the server divides the upgrade software file into a plurality of upgrade sub-software files; the server encrypts the plurality of upgrading sub-software files respectively to generate corresponding encrypted upgrading sub-software packages; the server sends an upgrade software package, comprising: the server sends a plurality of encrypted upgrade sub-software packages. In the implementation mode, the server divides the upgrading software file into a plurality of upgrading sub-software files, encrypts the upgrading sub-software files, and then sends the encrypted upgrading sub-software package to the communication-in-motion equipment through a satellite, so that the transmission can be performed under limited bandwidth resources, the transmission pressure is reduced, and the data security can be improved through encryption.
With reference to the second aspect, in a possible implementation manner of the second aspect, before the dividing the upgrade software file into a plurality of upgrade sub-software files, the method further includes: the server sends a state query instruction; the state query instruction is used for querying the running state of the communication-in-motion equipment; the server receives the indication information and determines that the communication-in-motion equipment is in an upgradable state; the indication information is used for indicating that the communication-in-motion device is in a scalable state. In the implementation mode, the server can conveniently determine whether the communication-in-motion device is in an upgradable state by sending the state query instruction, and when the server determines that the communication-in-motion device is in the upgradable state, the server can start sending the upgrade software package.
In a third aspect, a mobile communication device is provided, which includes means for performing each step in the above first aspect or any possible implementation manner of the first aspect.
In a fourth aspect, there is provided a server comprising means for performing the steps of the second aspect above or any possible implementation manner of the second aspect.
In a fifth aspect, an embodiment of the present application provides a mobile communication device, which includes a memory and a processor, where the memory stores a computer program, and the processor executes the computer program to implement the method according to the first aspect or any possible implementation manner of the first aspect.
In a sixth aspect, an embodiment of the present application provides a server, including a memory and a processor, where the memory stores a computer program, and the processor executes the computer program to implement the method according to the second aspect or any possible implementation manner of the second aspect.
In a seventh aspect, this application provides a computer-readable storage medium, where a computer program is stored, and when executed by a processor, the computer program implements the method in the first aspect or any possible implementation manner of the first aspect, or the method in any possible implementation manner of the second aspect or the second aspect.
In an eighth aspect, an embodiment of the present application provides a computer program product, which, when running on a mobile communication device, causes the mobile communication device to execute the method in the first aspect or any possible implementation manner of the first aspect.
It is understood that the beneficial effects of the second aspect to the eighth aspect can be referred to the related description of the first aspect, and are not described herein again.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a communication schematic diagram of a satellite communication link provided by an embodiment of the present application;
fig. 2 is a schematic diagram of a satellite communication link to which a mobile communication device according to an embodiment of the present application is applied;
fig. 3 is an interaction diagram of a method for upgrading software of a mobile communication device according to an embodiment of the present application;
fig. 4 is an interaction diagram of a method for upgrading software of a mobile communication device according to another embodiment of the present application;
fig. 5 is an interaction diagram of a method for upgrading software of a mobile communication device according to another embodiment of the present application;
FIG. 6 is an interaction diagram of a method for upgrading software of a mobile communication device according to another embodiment of the present application;
fig. 7 is a schematic structural diagram of a software upgrading apparatus of a mobile communication device according to another embodiment of the present application;
fig. 8 is a schematic structural diagram of a software upgrading apparatus of a mobile communication device according to still another embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Fig. 1 shows a communication diagram of a satellite communication link. The satellite communication link includes a satellite, a ground station, a control center station, and a mobile terminal. In the satellite communication link, communication between mobile users or between a mobile user and a fixed user can be realized by transmitting signals through a satellite as a relay station.
As shown in fig. 1, the control center is provided with a server. The control center station is used for managing the satellite and each ground station.
On the basis, the ground station can be divided into static communication equipment, communication-in-motion equipment and the like according to different use environments.
It should be noted that a stationary device is understood as a stationary ground station, which refers to a communication connection established between satellite stations at a fixed location via a satellite access network. The communication-in-motion equipment can be understood as a mobile ground station, which means that the ground station is arranged on a mobile carrier, and a satellite is tracked in real time and is in communication connection with a satellite station in the process of moving along with the mobile carrier. The satellite communication equipment generally comprises a satellite automatic tracking sub-equipment and a satellite communication sub-equipment, wherein the satellite automatic tracking sub-equipment is responsible for tracking a satellite, and the satellite communication sub-equipment is responsible for communicating with a server through a satellite internet.
In the prior art, when software in the mobile communication equipment needs to be upgraded, for example, a satellite automatic tracking sub-device needs to upgrade a related algorithm of satellite automatic tracking, a local upgrading mode is usually adopted, that is, the software is connected to a circuit board through a special computer, then a special download cable is used for downloading and upgrading the software of a micro control unit in the mobile communication equipment welded on the circuit board, and after the upgrading is completed, the micro control unit is installed back to the mobile communication equipment again. The method has the characteristics of reliability, stability and no network influence, and is a preferred mode for local upgrading.
However, when the mobile communication equipment is delivered to a client and is put into operation, it becomes very difficult to perform an upgrade, and each upgrade needs to be performed by a manufacturer firstly coordinating the upgrade time and place with the client, and then sending a professional to go to the place where the client is located with tools such as a professional computer, which is very inefficient and high in cost.
Therefore, the embodiment of the application provides a method for upgrading software of a communication-in-motion device, wherein the communication-in-motion device receives an upgrading software package sent by a server through a satellite, and an upgrading software file corresponding to the upgrading software package is used for upgrading first software; under the condition that the upgrading software package is successfully received, the upgrading software file corresponding to the upgrading software package is written into a preset address space in the memory, and the stored software file corresponding to the first software is not deleted.
The embodiment of the application provides a method for upgrading software of communication-in-motion equipment, which is applied to a satellite communication link applicable to the communication-in-motion equipment. Fig. 2 shows a satellite communication link suitable for the communication-in-motion device, and in conjunction with fig. 2, the satellite communication link includes a satellite, a server disposed at the control center station, and the communication-in-motion device, and the server and the communication-in-motion device are in communication connection through the satellite.
The communication-in-motion device comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes the software upgrading method of the communication-in-motion device when executing the computer program.
The storage may be an internal storage unit of the mobile communication device in some embodiments, for example, a hard disk or a memory of the mobile communication device. The memory may also be an external storage device of the mobile communication device in other embodiments, such as a plug-in hard disk provided in the mobile communication device, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. The memory may also include both internal and external storage units of the mobile station device. The memory is used for storing applications, data, and other programs, such as program codes of computer programs. The memory may also be used to temporarily store data that has been output or is to be output.
The Processor may be a Central Processing Unit (CPU), and the Processor may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It is to be understood that the illustrated structures of the embodiments of the present application do not constitute specific limitations on the communication-in-motion device, and in other embodiments, the communication-in-motion device may include more or less components than those shown, or combine some components, or split some components, or arrange different components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The server also comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes the method for upgrading the software of the communication-in-motion device when executing the computer program.
The memory and the processor in the server may have the same structure as the memory and the processor in the mobile communication device, respectively, and are not described herein again.
The following describes a method for upgrading software of a mobile communication device provided by the present application with reference to a specific example.
As shown in fig. 3, the present application provides a method for upgrading software of a mobile communication device, which can be applied to a satellite communication link to which the mobile communication device shown in fig. 2 is applied. Fig. 3 shows an interaction diagram of a method for upgrading software of a mobile communication device according to an embodiment of the present application. As shown in fig. 3, the method 100 includes S110 to S150, which will be described in detail below.
And S110, the server sends the upgrading software package to the communication-in-motion equipment through the satellite.
The upgrading software package is generated by corresponding upgrading software files, and the upgrading software files are used for upgrading the first software.
The first software refers to any software in the mobile communication device, and may be, for example, software for performing calculation of an automatic satellite tracking algorithm in the mobile communication device. And the upgrading software file for upgrading the first software is written by corresponding program codes, and the first software of the communication-in-motion device can be changed or some content can be newly added by running the upgrading software file.
It can be understood that since the communication-in-motion device is a constituent part of the satellite communication link, the communication-in-motion device has access to the internet during the working process, and provides a basic condition for upgrading.
Based on this, all communication processes performed by the server and the communication-in-motion device in the embodiment of the present application are performed based on that the server first performs communication with the satellite, and then the satellite performs communication with the communication-in-motion device. For example, the server sends the upgrade software package to the communication-in-motion device through the satellite, which means that the server sends the upgrade software package to the satellite first and then the satellite sends the upgrade software package to the communication-in-motion device.
And S120, the communication-in-motion equipment receives the upgrading software package.
S130, under the condition that the upgrade software package is successfully received, the mobile communication equipment writes the upgrade software file corresponding to the upgrade software package into a preset address space in a memory, and does not delete the stored software file corresponding to the first software.
It is understood that successful reception of the upgrade software package means that the mobile communication device communicates via the satellite and completely receives the data of the upgrade software package sent by the server.
After the mobile communication equipment successfully receives the upgrading software package, the upgrading software file corresponding to the upgrading software package can be obtained through unpacking, and the upgrading software file is written into the address space preset in the memory.
It should be noted that, if the first software only corresponds to one software file, the software file is already stored in the memory, and thus the stored software file is not deleted; if the first software corresponds to a plurality of software files, the software files are already stored in the memory, so that the software file with the highest version in the stored software files is not deleted, and the software files with other lower versions can be deleted or continuously stored in the memory.
The memory may be FLASH. Because the communication-in-motion equipment needs to ensure real-time performance and does not use an operating system, when the memory is FLASH, the upgrading software file is written into a preset address space in the FLASH by directly starting the FLASH, and because the stored software file is not deleted, when the subsequent upgrading has problems, the software file corresponding to the stored first software can be found in the memory. Here, the stored software files may be used to upgrade the first software or, alternatively, may be used to install the first software.
And S140, the server sends an operation instruction to the communication-in-motion equipment through the satellite. The running instruction is used for instructing the communication-in-motion equipment to run the upgrading software file at the preset time so as to upgrade the first software.
The server sends an operation instruction to the satellite, and the satellite sends the operation instruction to the communication-in-motion equipment.
Here, if the memory is a FLASH and a plurality of software files corresponding to the first software are stored in the FLASH, in order to correctly instruct the running of the upgrade software file, the running instruction may further carry version information matched with the upgrade software file, so that the mobile communication device may call the upgrade software file corresponding to the version information from the FLASH according to the version information, and thus, the upgrade software file may be correctly run at a preset time.
And S150, the communication-in-motion equipment runs the upgrading software file at the preset time to upgrade the first software.
According to the software upgrading method of the communication-in-motion equipment provided by the embodiment of the application, the communication-in-motion equipment receives an upgrading software package sent by a server through a satellite, and an upgrading software file corresponding to the upgrading software package is used for upgrading first software; under the condition that the upgrading software package is successfully received, the upgrading software file corresponding to the upgrading software package is written into a preset address space in the memory, and the stored software file corresponding to the first software is not deleted.
In addition, it can be understood that when the software of the static and medium communication device needs to be upgraded, the software upgrading method can also be executed, which has the same beneficial effects and is not described herein again.
Optionally, as a possible implementation manner, on the basis of the method step shown in fig. 3, after the step S120, the method further includes: and under the condition that the first software fails to be upgraded, restarting the communication-in-progress equipment, and operating the stored software file corresponding to the first software.
It should be noted that the failure to upgrade the first software includes various situations such as interruption of upgrading the first software, failure of receiving the upgrade software package, and failure of running the upgrade software file.
The upgrade first software interruption refers to an unexpected stop occurring during any one of the upgrades of the first software, for example, a sudden power off of the server during the transmission of the upgrade software package, or a sudden power off of the communication-in-motion device during the reception of the upgrade software package by the communication-in-motion device. The failure of receiving the upgrade software package refers to, for example, that the server has sent the upgrade software package, but the mobile communication device has not received the upgrade software package, or only receives data of a part of the upgrade software package. The failure of running the upgrade software file refers to that although the mobile communication device successfully receives the upgrade software package, the upgrade software package is abnormal and cannot run.
On the basis, under the condition that the first software is not upgraded, the program in the communication-in-motion equipment automatically modifies the starting option parameters and restarts the communication-in-motion equipment, and after the starting of the communication-in-motion equipment, the software file stored with the first software is called and operated, so that the communication-in-motion equipment can continue to work, and the stability and the reliability of the communication-in-motion equipment are ensured.
If a software file corresponding to the first software is stored, running the software file when the communication-in-progress device is restarted; and if the plurality of software files corresponding to the first software are stored, operating the software file with the highest version in the stored plurality of software files when the communication-in-process equipment is restarted.
Illustratively, the mobile communication device successfully receives the upgrade software file P2 and receives an operation instruction, which instructs the mobile communication device to start to operate the upgrade software file P2 at a preset time, for example, 1 month, 1 day, and 6 o' clock, to upgrade the first software. However, when the mobile communication device runs the upgrade software file P2 at 6 o ' clock 1 month and 1 day, after a preset time period, for example, 10 minutes later, the mobile communication device cannot normally access the satellite communication link for communication, and then automatically reboots, and a second attempt to run the upgrade software file P2 is started at 10 o ' clock 6 o ' clock 1 month and 1 day. If the communication-in-motion device cannot be normally accessed to the satellite communication link for communication after the preset time length for the second time, namely 6 o 'clock and 20 o' clock in 1 month and 1 day, the problem of upgrading the software file is possibly solved, and the upgrading of the first software fails due to unsuccessful operation.
In this case, in order to ensure that the mobile communication device communicates normally, the mobile communication device is automatically restarted, and the software file corresponding to the stored first software is run, for example, the software file corresponding to the stored first software includes a software file P0 and a software file P1, where the version of the software file P1 is the highest compared with the version of the software file P0, and thus, in order to ensure that the mobile communication device can operate normally after 1 month, 1, 6, 20 minutes, the software file P1 corresponding to the first software is recalled and run, so as to maintain the satellite communication link to continue communication, thereby ensuring the stability and reliability of the upgrade when an abnormality occurs during the upgrade process.
Optionally, as a possible implementation manner, taking fig. 4 as an example, on the basis of the method steps shown in fig. 3, before S110, the method 100 may further include S108 and S109.
For the description of S110 to S150 shown in fig. 4, reference may be made to the above description of these several steps by taking fig. 3 as an example, and for brevity, the description is not repeated here.
And S108, the server divides the upgrading software file into a plurality of upgrading sub-software files.
It can be understood that, because the bandwidth resource of satellite communication is limited and data communication of users cannot be affected during the software upgrading process, before the server sends the upgrade software file to the satellite communication-in-motion device through the satellite, the server may segment the upgrade software file into a plurality of upgrade sub-software files, and thus, when the upgrade software file is sent to the satellite communication-in-motion device later, one or a plurality of upgrade sub-software files with smaller data volume may be sent each time, thereby adapting to the smaller bandwidth resource.
Optionally, after the step S108, the server may further verify the correctness of the split multiple upgrade sub-software files.
Illustratively, the verification is performed by using an exclusive or Check, or a Cyclic Redundancy Check (CRC), so as to ensure that the original correctness of the plurality of upgrade sub-software files can be maintained after the upgrade software file is divided.
S109, the server encrypts the plurality of upgrading sub-software files respectively to generate a plurality of encrypted upgrading sub-software packages.
The upgrading sub-software file is encrypted, so that the safety of data can be guaranteed. The encryption mode is set as required, and the present application is not particularly limited thereto.
Illustratively, the encryption mode may be byte inversion, or exclusive or operation of the byte and a preset fixed value.
On this basis, in the above S110, the server sends the upgrade software package to the mobile communication device through the satellite, including:
and the server sends a plurality of encrypted upgrading sub-software packages to the communication-in-motion equipment through the satellite.
It should be noted that, the server may send one or several encrypted upgrade sub-software packages to the mobile communication device at different times in a time period by using a time-sharing transmission mode through a satellite.
Because the server sends a plurality of encrypted upgrading sub-software packages to the communication-in-motion equipment through the satellite, and the satellite communication usually has a large delay, in the transmission process, preset logics such as overtime waiting, abnormal retransmission of the upgrading sub-software packages and the like exist to ensure normal transmission.
Optionally, as a possible implementation manner, taking fig. 5 as an example, on the basis of the method steps shown in fig. 4, the above S120 may further include S121 to S123.
The descriptions of S108 to S110 and S130 to S150 shown in fig. 4 may refer to the above description of these steps with fig. 4 as an example, and for brevity, are not repeated here.
And S121, the communication-in-motion equipment receives a plurality of encrypted upgrading sub-software packages through a satellite.
And S122, the communication-in-motion equipment decrypts the encrypted upgrading sub-software package to obtain a plurality of corresponding upgrading sub-software files. It is understood that the decryption method corresponds to the server-side encryption method.
And S123, splicing the plurality of upgrading sub-software files by the communication-in-motion equipment to obtain upgrading software files.
It can be understood that after the mobile communication device receives all the upgrade sub-file files, the plurality of upgrade sub-software files are spliced, so that the complete upgrade software file which is desired to be sent by the server side can be restored.
In order to ensure the correctness of the spliced upgrade software file, the server can correspondingly mark the upgrade software file into a plurality of upgrade sub-software files and respectively encrypt and package the upgrade sub-software files, and simultaneously transmit the mark when transmitting the encrypted upgrade sub-software package, so that the communication-in-the-middle equipment can sequence according to the mark corresponding to each upgrade sub-software package after receiving the encrypted upgrade sub-software packages, thereby splicing the decrypted upgrade sub-software files in sequence and correctly restoring the upgrade software file.
Optionally, as a possible implementation manner, taking fig. 6 as an example, on the basis of the method steps shown in fig. 5, before S108, the method 100 may further include S105 to S107.
For the description of S108 to S150 shown in fig. 6, reference may be made to the above description of these several steps by taking fig. 5 as an example, and for brevity, the description is not repeated here.
And S105, the server sends a state inquiry command to the communication-in-motion equipment through the satellite.
The state query instruction is used for querying whether the communication-in-motion equipment is in the scalable state. The upgradeable state may be a locked state or other state that indicates that the mobile station device can upgrade the first software.
For example, the server sends a state query instruction to the mobile communication device through the satellite, and as long as data is transmitted back to the server from the mobile communication device through the satellite, the mobile communication device is normal in operation, and at this time, the mobile communication device can be considered to be in a locked state and can be upgraded.
And S106, the communication-in-motion equipment sends the indication information responding to the state inquiry instruction to the server through the satellite. The indication information is used for indicating that the communication-in-motion device is in a scalable state.
And S107, the server receives the indication information and determines that the communication-in-motion equipment is in an upgradable state, and the server executes the steps S108 to S150 to upgrade the first software.
Here, if the server cannot determine that the mobile communication device is in the upgradable state, for example, the server does not receive the instruction information, the server does not execute the above S108 to S150, and does not perform the upgrade.
Alternatively, in the method shown in fig. 3, S105 to S107 may also be included.
It should be understood that the above description is only for the purpose of helping those skilled in the art better understand the embodiments of the present application, and is not intended to limit the scope of the embodiments of the present application. It will be apparent to those skilled in the art that various equivalent modifications or variations are possible in light of the above examples given, for example, some steps of the above methods S106 to S150 may not be necessary, or some steps may be newly added, etc. Or a combination of any two or more of the above embodiments. Such modifications, variations, or combinations are also within the scope of the embodiments of the present application.
It should be understood that, in various embodiments of the present application, first, second, etc. are merely intended to indicate that a plurality of objects are different. For example, the first software and the second software are merely to show different software. And should not have any influence on the software itself, the quantity of the software, etc., and the above-described first, second, etc. should not impose any limitation on the embodiments of the present application.
It should also be understood that the manner, the case, the category, and the division of the embodiments are only for convenience of description and should not be construed as a particular limitation, and features in various manners, the category, the case, and the embodiments may be combined without contradiction.
It should also be understood that the various numerical references referred to in the examples of the present application are merely for ease of description and distinction and are not intended to limit the scope of the examples of the present application. The sequence numbers of the above processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not be limited in any way to the implementation process of the embodiments of the present application.
It should also be understood that the foregoing descriptions of the embodiments of the present application focus on highlighting differences between the various embodiments, and that the same or similar elements that are not mentioned may be referred to one another and, for brevity, are not repeated herein.
It should also be understood that in the embodiment of the present application, "predefining" may be implemented by saving corresponding codes, tables, or other manners that may be used to indicate related information in advance in a device (for example, including a server and a mobile communication device), and the present application is not limited to a specific implementation manner thereof.
The method for upgrading software of a mobile communication device according to the embodiment of the present application is described in detail above with reference to fig. 3 to 6. Hereinafter, a software upgrading apparatus of a mobile station communication device according to an embodiment of the present application will be described in detail with reference to fig. 7 to 8.
Fig. 7 shows a software upgrading apparatus 200 of a communication-in-motion device provided in an embodiment of the present application, where the apparatus may be a communication-in-motion device, or the communication-in-motion device includes the apparatus. As shown in fig. 7, the apparatus 200 includes: a receiving module 210, a processing module 220, a storage module 230, and a transmitting module 240. The storage module (unit) stores instructions, the processing module (unit) is used for executing the instructions stored in the storage unit, and the receiving module (unit) and the sending module (unit) are used for executing specific signal transceiving under the driving of the processing module 220.
A receiving module 210, configured to receive an upgrade software package; the upgrade software package is generated from the corresponding upgrade software file. The upgrade software file is used to upgrade the first software.
The processing module 220 is configured to, under the condition that the upgrade software package is successfully received, write the upgrade software file corresponding to the upgrade software package into the preset address space in the storage module 230, and not delete the stored software file corresponding to the first software.
The receiving module 210 is further configured to receive an operation instruction, where the operation instruction is used to instruct a mobile communication device to operate an upgrade software file at a preset time to upgrade first software.
The embodiment of the application provides a software upgrading device of a communication-in-moving device, which comprises a receiving module, a processing module, a storage module and a sending module. Receiving an upgrade software package through a receiving module; then, under the condition that the upgrade software package is successfully received, the processing module writes the upgrade software file corresponding to the upgrade software package into a preset address space in the memory, and does not delete the stored software file corresponding to the first software.
Optionally, the processing module 220 is further configured to restart the mobile phone device and run the stored software file corresponding to the first software in case of failure to upgrade the first software.
The communication-in-motion device is restarted and the stored software file corresponding to the first software is run through the processing module 220, so that the communication-in-motion device can be ensured to continue to work normally, and the stability and reliability of the communication-in-motion device are improved.
Optionally, the receiving module 210 is further configured to receive a plurality of encrypted upgrade sub-software packages; the plurality of encrypted upgrading sub-software packages are obtained by dividing the upgrading software file into a plurality of upgrading sub-software files and encrypting the plurality of upgrading sub-software files respectively.
The upgrading software file is divided into a plurality of upgrading sub-software files, and the plurality of upgrading sub-software files are encrypted, so that the upgrading software file can be transmitted under limited bandwidth resources, the transmission pressure is reduced, and the data security can be improved through encryption.
Optionally, the processing module 220 is further configured to decrypt the encrypted multiple upgrade sub-software packages to obtain multiple corresponding upgrade sub-software files; and the method is also used for splicing the plurality of upgrading sub-software files to obtain the upgrading software file.
The encrypted upgrade sub-software package is decrypted by the processing module 220, and a plurality of upgrade sub-software files obtained by decryption are spliced, so that the original upgrade software file can be restored.
Optionally, the receiving module 210 is further configured to receive a status query instruction; the state query instruction is used for querying the running state of the communication-in-motion equipment.
The sending module 240 is further configured to send indication information in response to the status query instruction, where the indication information is used to indicate that the mobile communication device is in the upgradable state.
By receiving the status query command through the receiving module 210, and sending the indication information in response to the status query command through the sending module 240, the server may be facilitated to determine that the mobile communication device is in the upgradable state.
It should be understood that in the embodiment of the present application, the receiving module 210 and the sending module 240 may be a transceiver, an input/output interface or interface circuit, and the like. The storage module may be a memory. The processing module may be implemented by a processor.
Fig. 8 shows a software upgrading apparatus 300 of a mobile communication device provided by an embodiment of the present application, where the apparatus may be a server, or the server may include the apparatus. As shown in fig. 8, the apparatus 300 includes: a sending module 310, a processing module 320, a storage module 330, and a receiving module 340. The storage module (unit) stores instructions, the processing module (unit) is used for executing the instructions stored in the storage unit, and the sending module (unit) and the receiving module (unit) are used for executing specific signal transceiving under the driving of the processing module 320.
A sending module 310, configured to send an upgrade software package; the upgrade software package is generated from a corresponding upgrade software file for upgrading the first software.
The sending module 310 is further configured to send an operation instruction. The running instruction is used for instructing the communication-in-motion equipment to run the upgrading software file at the preset time so as to upgrade the first software.
The embodiment of the application provides a software upgrading device of a communication-in-moving device, which comprises a sending module, a processing module, a storage module and a receiving module. Sending the upgrade software package through a sending module; then, the processing module sends an operation instruction again, and can instruct the communication-in-motion equipment to operate the upgrade software file at the preset time so as to upgrade the first software, thereby realizing the remote upgrade of the software of the communication-in-motion equipment, improving the working efficiency and reducing the cost.
Based on this, the processing module 320 is further configured to divide the upgrade software file into a plurality of upgrade sub-software files. And the upgrading device is also used for encrypting the plurality of upgrading sub-software files respectively to generate corresponding encrypted upgrading sub-software packages. At this time, the sending module 310 is further configured to send a plurality of encrypted upgrade sub-software packages.
The upgrading software file is divided into a plurality of upgrading sub-software files through the processing module 320, the upgrading sub-software files are encrypted, and then the encrypted upgrading sub-software package is sent to the communication-in-the-motion equipment through a satellite, so that the upgrading software package can be transmitted under limited bandwidth resources, the transmission pressure is reduced, and the data security can be improved through encryption.
Optionally, the sending module 310 is further configured to send a status query instruction. The state query instruction is used for querying the running state of the communication-in-motion equipment.
The receiving module 340 is configured to receive the indication information.
The indication information is used for indicating that the communication-in-motion equipment is in a scalable state.
The processing module 320 is further configured to determine that the mid-range communication device is in a scalable state.
The sending module 310 sends the status query instruction, and the receiving module 340 receives the indication information, so that the processing module can determine that the mobile communication device is in the upgradable state, and when the processing module determines that the mobile communication device is in the upgradable state, the sending module can start sending the upgrade software package.
It should be understood that in the embodiments of the present application, the receiving module and the transmitting module may be transceivers, input/output interfaces or interface circuits, and the like. The storage module may be a memory. The processing module may be implemented by a processor.
It should also be understood that the division of the units in the above apparatus is only a division of logical functions, and the actual implementation may be wholly or partially integrated into one physical entity, or may be physically separated. And the units in the device can be realized in the form of software called by the processing element; or may be implemented entirely in hardware; part of the units can also be realized in the form of software called by a processing element, and part of the units can be realized in the form of hardware.
For example, each unit may be a processing element separately set up, or may be implemented by being integrated into a chip of the apparatus, or may be stored in a memory in the form of a program, and a function of the unit may be called and executed by a processing element of the apparatus. The processing element, which may also be referred to herein as a processor, may be an integrated circuit having signal processing capabilities. In the implementation process, the steps of the method or the units above may be implemented by integrated logic circuits of hardware in a processor element or in a form called by software through the processor element.
Embodiments of the present application also provide a computer-readable storage medium storing a computer program, where the computer program includes a method for executing the method 100 described above, and the method includes a software upgrade of a mobile communication device according to an embodiment of the present application. The readable medium may be a Read-Only Memory (ROM) or a Random Access Memory (RAM), which is not limited in this embodiment of the present application.
The embodiment of the present application further provides a chip located in a software upgrading apparatus of a mobile communication device, where the chip includes: a processing unit, which may be, for example, a processor, and a communication unit, which may be, for example, an input/output interface, a pin or a circuit, etc. The processing unit can execute computer instructions to enable the apparatus to execute any method for upgrading software of the mobile communication device provided by the embodiment of the application.
Optionally, the computer instructions are stored in a storage unit.
Optionally, the storage unit is a storage unit in the chip, such as a register, a cache, and the like, and the storage unit may also be a storage unit located outside the chip in the terminal, such as a Read-Only Memory (ROM) or another type of static storage device that can store static information and instructions, a Random Access Memory (RAM), and the like. The processor mentioned in any of the above may be a CPU, a microprocessor, an ASIC, or one or more integrated circuits for executing programs for controlling the transmission method of the feedback information. The processing unit and the storage unit may be decoupled, and are respectively disposed on different physical devices, and are connected in a wired or wireless manner to implement respective functions of the processing unit and the storage unit, so as to support the system chip to implement various functions in the foregoing embodiments. Alternatively, the processing unit and the memory may be coupled to the same device.
Various objects such as various messages/information/devices/network elements/systems/devices/actions/operations/procedures/concepts may be named in the present application, it is to be understood that these specific names do not constitute limitations on related objects, and the named names may vary according to circumstances, contexts, or usage habits, and the understanding of the technical meaning of the technical terms in the present application should be mainly determined by the functions and technical effects embodied/performed in the technical solutions.
In the embodiments of the present application, unless otherwise specified or conflicting with respect to logic, the terms and/or descriptions in different embodiments have consistency and may be mutually cited, and technical features in different embodiments may be combined to form a new embodiment according to their inherent logic relationship.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.
Claims (10)
1. A method for upgrading software of a communication-in-motion device is applied to the communication-in-motion device, the communication-in-motion device comprises a memory, the communication-in-motion device communicates with a server through a satellite, and the method comprises the following steps:
receiving an upgrade software package; the upgrading software package is generated by a corresponding upgrading software file, and the upgrading software file is used for upgrading the first software;
under the condition that the upgrade software package is successfully received, writing the upgrade software file corresponding to the upgrade software package into a preset address space in the memory, and not deleting the stored software file corresponding to the first software;
receiving an operation instruction; the running instruction is used for instructing the communication-in-motion equipment to run the upgrading software file at preset time so as to upgrade the first software.
2. The method of claim 1, further comprising:
and restarting the communication-in-motion equipment under the condition that the first software fails to be upgraded, and running the stored software file corresponding to the first software.
3. The method of claim 1, wherein receiving the upgrade software package comprises:
receiving a plurality of encrypted upgrade sub-software packages; the plurality of encrypted upgrading sub-software packages are obtained by dividing the upgrading software file into a plurality of upgrading sub-software files and encrypting the plurality of upgrading sub-software files respectively.
4. The method of claim 3, wherein after receiving the plurality of encrypted upgrade sub-software packages, the method further comprises:
decrypting the plurality of encrypted upgrading sub-software packages to obtain a plurality of corresponding upgrading sub-software files;
and splicing the plurality of upgrading sub-software files to obtain the upgrading software file.
5. The method of any of claims 1-4, wherein prior to receiving the upgrade software package, the method further comprises:
receiving a state query instruction; the state query instruction is used for querying the running state of the communication-in-motion equipment;
sending indication information responding to the state inquiry instruction; the indication information is used for indicating that the communication-in-motion equipment is in a scalable state.
6. A method for upgrading software of communication-in-motion equipment is applied to a server and comprises the following steps:
sending an upgrade software package, wherein the upgrade software package is generated by a corresponding upgrade software file, and the upgrade software file is used for upgrading first software;
sending an operation instruction; the running instruction is used for instructing the communication-in-motion equipment to run the upgrading software file at preset time so as to upgrade the first software.
7. The method of claim 6, wherein prior to sending the upgrade software package, the method further comprises:
dividing the upgrade software file into a plurality of upgrade sub-software files;
respectively encrypting the plurality of upgrading sub-software files to generate a plurality of encrypted upgrading sub-software packages;
the sending of the upgrade software package includes:
and sending the plurality of encrypted upgrade sub-software packages.
8. The method of claim 7, wherein prior to splitting the upgrade software file into a plurality of upgrade sub-software files, the method further comprises:
sending a state query instruction; the state query instruction is used for querying the running state of the communication-in-motion equipment;
receiving indication information and determining that the communication-in-motion equipment is in a scalable state; the indication information is used for indicating that the communication-in-motion equipment is in a scalable state.
9. A communication-in-motion device comprising a memory, a processor, the memory storing a computer program, wherein the processor when executing the computer program implements the method of any one of claims 1 to 5.
10. A server comprising a memory, a processor, the memory storing a computer program, wherein the processor when executing the computer program implements the method of any one of claims 6 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010660764.9A CN111984285A (en) | 2020-07-10 | 2020-07-10 | Method for upgrading software of communication-in-motion equipment, communication-in-motion equipment and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010660764.9A CN111984285A (en) | 2020-07-10 | 2020-07-10 | Method for upgrading software of communication-in-motion equipment, communication-in-motion equipment and server |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111984285A true CN111984285A (en) | 2020-11-24 |
Family
ID=73438683
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010660764.9A Pending CN111984285A (en) | 2020-07-10 | 2020-07-10 | Method for upgrading software of communication-in-motion equipment, communication-in-motion equipment and server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111984285A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6473099B1 (en) * | 1996-06-03 | 2002-10-29 | Webtv Networks, Inc. | Automatically upgrading software over a satellite link |
WO2008030800A2 (en) * | 2006-09-07 | 2008-03-13 | Qualcomm Incorporated | System and methods for remotely upgrading software applications through a satellite link |
CN102722383A (en) * | 2012-05-22 | 2012-10-10 | 航天数字传媒有限公司 | Software upgrading method and digital issue terminal |
CN104077164A (en) * | 2014-07-08 | 2014-10-01 | 北京九天利建信息技术有限公司 | Beidou terminal device software updating method in Beidou communication system |
CN108923845A (en) * | 2018-09-13 | 2018-11-30 | 上海微小卫星工程中心 | Upgrade the method and upgraded satellite communication system of satellite communication |
CN109471654A (en) * | 2018-11-01 | 2019-03-15 | 北京华力创通科技股份有限公司 | A kind of version upgrading method and device |
CN110633097A (en) * | 2018-06-21 | 2019-12-31 | 新智数字科技有限公司 | OTA (over the air) upgrading method and device for single chip microcomputer |
-
2020
- 2020-07-10 CN CN202010660764.9A patent/CN111984285A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6473099B1 (en) * | 1996-06-03 | 2002-10-29 | Webtv Networks, Inc. | Automatically upgrading software over a satellite link |
WO2008030800A2 (en) * | 2006-09-07 | 2008-03-13 | Qualcomm Incorporated | System and methods for remotely upgrading software applications through a satellite link |
CN102722383A (en) * | 2012-05-22 | 2012-10-10 | 航天数字传媒有限公司 | Software upgrading method and digital issue terminal |
CN104077164A (en) * | 2014-07-08 | 2014-10-01 | 北京九天利建信息技术有限公司 | Beidou terminal device software updating method in Beidou communication system |
CN110633097A (en) * | 2018-06-21 | 2019-12-31 | 新智数字科技有限公司 | OTA (over the air) upgrading method and device for single chip microcomputer |
CN108923845A (en) * | 2018-09-13 | 2018-11-30 | 上海微小卫星工程中心 | Upgrade the method and upgraded satellite communication system of satellite communication |
CN109471654A (en) * | 2018-11-01 | 2019-03-15 | 北京华力创通科技股份有限公司 | A kind of version upgrading method and device |
Non-Patent Citations (1)
Title |
---|
马中海: "卫星通信地球站软件远程升级功能设计", 《无线互联科技》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8719810B2 (en) | Program upgrade system and method for over the air-capable mobile terminal | |
KR102024533B1 (en) | Methods for operating software-defined radio application | |
CN110908682B (en) | Firmware upgrading method and system for vehicle controller, vehicle and storage medium | |
CN110471692B (en) | Over-the-air upgrading method, device, equipment and storage medium of terminal program | |
US10228954B2 (en) | Broadcasting management information using fountain codes | |
CN105302563A (en) | Plug-in method and system for mobile application service | |
CN114780127A (en) | Embedded equipment firmware updating method, embedded equipment and development end equipment | |
CN109165034A (en) | POS machine upgrade method, device, equipment and storage medium based on OTA | |
CN111158751A (en) | Windows environment deployment method, electronic equipment and storage medium | |
CN109343970B (en) | Application program-based operation method and device, electronic equipment and computer medium | |
US11016746B2 (en) | Method and apparatus for remotely updating satellite devices | |
CN111984285A (en) | Method for upgrading software of communication-in-motion equipment, communication-in-motion equipment and server | |
CN118055398A (en) | Device firmware upgrading method and device, electronic device and storage medium | |
CN112118567A (en) | Device upgrading method, electronic device and medium | |
CN111538514A (en) | Enterprise application updating method and device, storage medium and electronic equipment | |
CN116915603A (en) | OTA upgrade method, device and electronic equipment | |
CN113422791B (en) | Cloud service configuration method and device, electronic equipment and computer readable storage medium | |
CN115529158A (en) | Data transmission method and device, storage medium and electronic equipment | |
CN113515299A (en) | Software development kit SDK hot upgrade method, device, device and storage medium | |
CN115220747A (en) | Upgrading method of vehicle-mounted multimedia system, vehicle-mounted multimedia system and vehicle | |
CN113821248B (en) | Service method of vehicle-end software, vehicle-end software and related equipment thereof | |
KR100211585B1 (en) | Method for data recovery for data consistency in pcs system | |
CN119577017B (en) | Object storage service calling method, device, electronic device and storage medium | |
CN114281372B (en) | Application program upgrade method, device, electronic device, and readable storage medium | |
EP4155844A1 (en) | Remote function customization method and apparatus, device, and storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201124 |
|
RJ01 | Rejection of invention patent application after publication |