CN107018022B - Software upgrading processing method and device and terminal - Google Patents

Software upgrading processing method and device and terminal Download PDF

Info

Publication number
CN107018022B
CN107018022B CN201710209398.3A CN201710209398A CN107018022B CN 107018022 B CN107018022 B CN 107018022B CN 201710209398 A CN201710209398 A CN 201710209398A CN 107018022 B CN107018022 B CN 107018022B
Authority
CN
China
Prior art keywords
version
application
compatible
upgrading
information
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
CN201710209398.3A
Other languages
Chinese (zh)
Other versions
CN107018022A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710209398.3A priority Critical patent/CN107018022B/en
Publication of CN107018022A publication Critical patent/CN107018022A/en
Application granted granted Critical
Publication of CN107018022B publication Critical patent/CN107018022B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

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)
  • Stored Programmes (AREA)

Abstract

The invention provides a processing method, a device and a terminal for software upgrading, wherein the method comprises the following steps: receiving an upgrading request sent by audio playing equipment; acquiring the current application version of the terminal application according to the upgrading request; judging whether the application version is matched with the compatible version information; and when the application version is judged not to be matched with the compatible version information, upgrading the terminal application and responding to the upgrading request. According to the invention, the compatible version information of the version to be upgraded of the audio playing equipment is received, the compatible version information is matched with the current application version of the terminal application, and when the compatible version information is not matched with the current application version of the terminal application, the terminal application and the audio playing equipment are upgraded at the same time, so that the problem that the terminal application cannot be used after the audio playing equipment is upgraded is solved, and the upgrading efficiency is improved.

Description

Software upgrading processing method and device and terminal
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, and a terminal for processing software upgrade.
Background
At present, with the development of science and technology, in the daily life of people began to be popularized to intelligent audio playback equipment, the user can control access to intelligent audio playback equipment through installing dedicated terminal application on the terminal, and the song of will selecting is broadcast on this terminal application propelling movement to intelligent audio playback equipment.
In order to optimize the use of the smart audio playback device, the version of the smart audio playback device may be frequently upgraded. The version upgrading of the intelligent audio playing device needs to be carried out on the intelligent audio playing device in the whole network, and after the upgrading, the situation that the version of the intelligent audio playing device is incompatible with the version of the original terminal application can occur, so that the terminal application cannot access and operate the intelligent audio playing device.
Disclosure of Invention
The embodiment of the invention provides a processing method and device for software upgrading and a terminal, which can solve the problem that terminal application cannot be used after an audio playing device is upgraded and improve the upgrading efficiency.
The embodiment of the invention provides the following technical scheme:
a processing method for software upgrade comprises the following steps:
receiving an upgrade request sent by audio playing equipment, wherein the upgrade request carries an operation version to be upgraded of the audio playing equipment and compatible version information corresponding to the operation version;
acquiring the current application version of the terminal application according to the upgrading request;
judging whether the application version is matched with the compatible version information;
and when the application version is judged not to be matched with the compatible version information, upgrading the terminal application, and responding to the upgrading request so that the audio playing equipment carries out upgrading according to the running version to be upgraded.
In order to solve the above technical problems, embodiments of the present invention further provide the following technical solutions:
a software upgrade processing apparatus comprising:
the receiving module is used for receiving an upgrade request sent by the audio playing equipment, wherein the upgrade request carries an operation version to be upgraded of the audio playing equipment and compatible version information corresponding to the operation version;
the version acquisition module is used for acquiring the current application version of the terminal application according to the upgrading request;
the version judging module is used for judging whether the application version is matched with the compatible version information;
and the upgrading module is used for upgrading the terminal application when the application version is judged not to be matched with the compatible version information, and responding to the upgrading request so as to enable the audio playing equipment to upgrade according to the running version to be upgraded.
The embodiment of the invention also provides the following technical scheme:
a terminal, comprising:
a memory storing executable program code;
a processor coupled to the memory;
the processor calls the executable program code stored in the memory to execute any software upgrading processing method provided by the embodiment of the invention.
According to the software upgrading processing method, device and terminal provided by the embodiment, the compatible version information of the version to be upgraded of the audio playing device is received, the compatible version information is matched with the current application version of the terminal application, and when the compatible version information is not matched with the current application version of the terminal application, the terminal application and the audio playing device are upgraded at the same time, so that the problem that the terminal application cannot be used after the audio playing device is upgraded is solved, and the upgrading efficiency is improved.
Drawings
The technical solution and other advantages of the present invention will become apparent from the following detailed description of specific embodiments of the present invention, which is to be read in connection with the accompanying drawings.
Fig. 1 is a schematic view of a scenario of a processing system for software upgrade provided in an embodiment of the present invention.
Fig. 2 is a schematic flowchart of a processing method for software upgrade according to an embodiment of the present invention.
Fig. 3 is a timing diagram illustrating a processing method for software upgrade according to an embodiment of the present invention.
Fig. 4 is a schematic block diagram of a processing apparatus for software upgrade according to an embodiment of the present invention.
Fig. 5 is a schematic block diagram of another processing apparatus for software upgrade according to an embodiment of the present invention.
Fig. 6 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present invention are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the invention and should not be taken as limiting the invention with regard to other embodiments that are not detailed herein.
The term "module" as used herein may be considered a software object executing on the computing system. The various components, modules, engines, and services described herein may be viewed as objects implemented on the computing system. The apparatus and method described herein are preferably implemented in software, but may also be implemented in hardware, and are within the scope of the present invention.
The following is a detailed description of the analysis.
Referring to fig. 1, fig. 1 is a schematic view of a scenario of a processing system for software upgrade according to an embodiment of the present invention. The processing system for software upgrade comprises: a terminal 10, an audio playback device 20, and an upgrade server 30. The terminal 10, the audio playback device 20, and the upgrade server 30 are connected to each other through a wireless network (e.g., WIFI).
The terminal 10, which may be a mobile phone 11, a tablet computer 12, a notebook computer 13, etc., has a predetermined terminal application installed in the terminal 10 for communicating with the audio playing device 20 and the upgrade server 30.
The audio playing device 20 may be a wireless smart television 21, a wireless smart sound box 22, or the like. The audio playing device system may be composed of a plurality of audio playing devices 20, and the audio playing device system has one master audio playing device and the rest slave audio playing devices.
The upgrade server 30 is used for storing information such as upgrade files of the terminal 10 and the audio playing device 20. When there is a new version of the upgrade file, an upgrade notification message may be sent to the terminal 10 and the audio playing device 20 to prompt whether the terminal 10 and the audio playing device 20 perform corresponding upgrade operations.
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating a processing method for software upgrade according to an embodiment of the present invention.
Specifically, the method comprises the following steps:
in step S101, an upgrade request sent by an audio playing device is received, where the upgrade request carries an operating version to be upgraded of the audio playing device and compatible version information corresponding to the operating version.
It can be understood that the communication between the audio playing device and the terminal application is based on the condition that the communication data format and the communication message are the same, and after the audio playing device is upgraded, the communication data format and the communication message of the new audio playing device and the original terminal application are different, so that the new running version of the audio playing device and the application version of the original terminal application cannot be used compatibly.
Based on this, when the audio playing device detects that the version of the upgrade server is updated, the running version to be upgraded and the compatible version information corresponding to the running version are obtained, and the upgrade request is sent to the terminal. The corresponding compatible version information is the version information of the terminal application correspondingly compatible with the running version to be upgraded of the audio playing equipment.
In an embodiment, the terminal may periodically obtain the running version information of the current audio playing device, send a detection instruction to the server, detect whether the audio playing device has a version update, and obtain a running version to be upgraded of the audio playing device and compatible version information corresponding to the running version when the audio playing device has the version update.
In step S102, the current application version of the terminal application is obtained according to the upgrade request.
In step S103, it is determined whether the application version matches the compatible version information.
In order to avoid the situation that the new running version of the audio playing device is incompatible with the application version of the original terminal application after the audio playing device is upgraded. And acquiring the current application version of the terminal application, and matching the application version with compatible version information corresponding to the running version to be upgraded of the sound box playing equipment. When the application version is judged to be matched with the compatible version information, executing the step S104; when it is determined that the application version does not match the compatible version information, step S105 is performed.
Specifically, the determining whether the application version is matched with the compatible version information includes:
(1) and acquiring a compatible version list in the compatible version information.
The running version correspondence of each audio playing device can be compatible with the application versions of a plurality of terminals. The compatible version information includes a compatible version list for recording a plurality of compatible terminal application versions.
(2) And judging whether the compatible version list has the application version.
When the compatible version list is judged to have the application version, executing the step (3); and (4) when the application version does not exist in the compatible version list, executing the step.
(3) It is determined that the application version matches the compatible version information.
When the application version is judged to exist in the compatible version list, the current terminal application can be compatible with the running version of the audio playing device to be upgraded. It is determined that the application version matches the compatible version information.
(4) It is determined that the application version does not match the compatible version information.
When the compatible version list is judged to have no application version, the current terminal application cannot be compatible with the running version of the audio playing device to be upgraded. It is determined that the application version does not match the compatible version information.
In step S104, an upgrade request is responded.
When the application version is judged to be matched with the compatible version information, the current terminal application can be compatible with the running version of the audio playing device to be upgraded, the upgrading audio playing device cannot influence the use of the terminal application, and the upgrading request is responded, so that the audio playing device can be upgraded according to the running version to be upgraded.
In one embodiment, the responding to the upgrade request may include: and generating an upgrading instruction according to the audio running version to be upgraded. And sending the upgrading instruction to the audio playing equipment so that the audio playing equipment executes upgrading processing of the audio playing equipment according to the upgrading instruction.
In step S105, the terminal application is upgraded and an upgrade request is responded.
When the application version is judged not to be matched with the compatible version information, the current terminal application cannot be compatible with the running version of the audio playing device to be upgraded, and the upgrading of the audio playing device can affect the use of the terminal application. And upgrading the terminal application and responding to the upgrading request. So that the audio playing device can upgrade the running version to be upgraded and the terminal application can be upgraded correspondingly. The problem that the terminal application cannot be used after the audio playing device is upgraded is solved.
In an embodiment, the upgrading the terminal application may include: and analyzing the compatible version list to obtain the compatible version with the highest application version number in the compatible version list. The compatible version with the highest application version number is the application version with the latest application version updating time. Based on the compatible version, a download instruction is sent to the upgrade server. And receiving an upgrade file corresponding to the compatible version fed back by the upgrade server, and upgrading the terminal application.
For example, when the compatible application versions with the application version numbers "1.1.12", "1.1.13", and "1.1.14" are included in the updated compatible version list, the terminal may select to download the compatible application version with the highest application version number "1.1.14", and update the terminal application with the upgrade software corresponding to the compatible application version with the application version number "1.1.14".
In another embodiment, before the upgrading process of the terminal application, the method further includes: and acquiring the installation information of the current terminal application. And performing backup processing on the current terminal application according to the installation information to generate backup information.
The backup processing is performed on the current terminal application, so as to prevent the audio playing device from failing to be upgraded, and the version automatically restored to the audio playing device before being upgraded is incompatible with the application version upgraded by the terminal application. The backup information may be acquired when an upgrade failure instruction sent by the audio playback device is received. And restoring the terminal application according to the backup information.
As can be seen from the above, in the processing method for software upgrade provided in this embodiment, the compatible version information of the version to be upgraded of the audio playing device is received, the compatible version information is matched with the current application version of the terminal application, and when the compatible version information is not matched with the current application version of the terminal application, the terminal application and the audio playing device are upgraded at the same time, so that the problem that the terminal application cannot be used after the audio playing device is upgraded is solved, and the upgrading efficiency is improved. The method described in the above embodiments is further illustrated in detail by way of example.
Referring to fig. 3, fig. 3 is a timing diagram illustrating a processing method for software upgrade according to an embodiment of the present invention.
In step S31, the audio playback apparatus detects whether an upgrade is required.
It will be appreciated that upgrading a server to optimize the user experience will continually fix the use vulnerabilities and refine some of the firmware.
Based on this, the audio playing device sends an upgrade inquiry instruction to the upgrade server periodically to judge whether the version is updated.
For example, the audio playing device obtains the current running version number "1.1.20", sends an inquiry instruction to the upgrade server according to the running version, and after receiving the inquiry instruction, the server sends a version update instruction to the audio playing device when there is an updated running version number "1.1.21".
In step S32, the audio playing device sends an upgrade request to the terminal, where the upgrade request carries an operating version to be upgraded of the audio playing device and compatible version information corresponding to the operating version.
It should be noted that the running version of each audio playing device can be compatible with the application versions of multiple terminal applications. The compatible version information includes application versions of a plurality of corresponding compatible terminal applications.
Based on this, after receiving the version update instruction, the audio playing device sends an upgrade request to the terminal, where the upgrade request carries the running version to be upgraded and the compatible version information corresponding to the running version.
For example, the upgrade request a of the audio playing device carries an operating version "V1.12" to be upgraded and application versions of multiple terminal applications that are correspondingly compatible with the operating version "V1.12".
In step S33, the terminal receives the upgrade request sent by the audio playback device.
And the terminal receives an upgrading request sent by the audio playing equipment through a terminal application.
In step S34, the terminal obtains the current application version of the terminal application according to the upgrade request.
In order to avoid the situation that the new running version of the audio playing device is incompatible with the application version of the original terminal application after the audio playing device is upgraded. The terminal can obtain the current application version of the terminal application and match the application version with the compatible version information corresponding to the running version to be upgraded of the sound box playing equipment.
And S35, the terminal judges whether the application version is matched with the compatible version information.
Wherein, the judging whether the application version is matched with the compatible version information includes: and acquiring a compatible version list in the compatible version information. The compatible version information includes a compatible version list, and the compatible version list records application versions of a plurality of compatible terminal applications. And judging whether the compatible version list has the application version of the current terminal application. When the application version is judged to exist in the compatible version list, the application version is judged to be matched with the compatible version information; and when the application version is judged not to exist in the compatible version list, judging that the application version is not matched with the compatible version information.
Specifically, the running version "V1.12" to be upgraded corresponds to application versions of a plurality of compatible terminal applications, as shown in table 1 below:
application version numbering Application version number Date of renewal
001 1.1.20 2016/10/22
002 1.1.19 2016/05/20
003 1.1.18 2016/04/01
TABLE 1 compatible version List
And S36, when the terminal judges that the application version is matched with the compatible version information, responding to the upgrading request and sending an upgrading instruction to the audio playing device.
When the current application version number of the terminal application is 1.1.18, judging that the compatible version list comprises the application version, and judging that the application version is matched with the compatible version information. And responding to the upgrading request A, and sending an upgrading instruction B to the audio playing equipment so that the audio playing equipment carries out upgrading treatment according to the running version V1.12 to be upgraded.
And S37, the audio playing device receives the upgrading instruction and carries out upgrading treatment according to the running version to be upgraded.
And S38, when the terminal judges that the application version is not matched with the compatible version information, upgrading the terminal application.
When the current application version number of the terminal application is "1.116", it is determined that the compatible version list does not include the application version, and it is determined that the application version does not match the compatible version information. In order to avoid the situation that the terminal application cannot be used after the audio playing device is upgraded, the terminal application is upgraded.
In one embodiment, the upgrading process for the terminal application includes: and analyzing the compatible version list to obtain the compatible version with the highest application version number in the compatible version list. Based on the compatible version, a download instruction is sent to the upgrade server. And receiving an upgrade file corresponding to the compatible version fed back by the upgrade server, and upgrading the terminal application.
For example, by analyzing the compatible version list shown in table 1, the "1.1.20" with the highest application version number in the compatible version list is obtained, and it is easy to see that the update date of the compatible application version with the highest application version number is the latest. I.e. the compatible application version with the highest application version number is optimal. And sending a downloading instruction to the upgrading server based on the application version number 1.1.20, receiving an upgrading file corresponding to the application version number 1.1.20 fed back by the upgrading server, and upgrading the terminal application.
And S39, the terminal responds to the upgrade request and sends an upgrade instruction to the audio playing device.
And when the terminal application is upgraded, responding to the upgrade request A and sending an upgrade instruction B to the audio playing equipment. So that the audio playing device performs upgrading processing according to the running version 'V1.12' to be upgraded.
And S40, the audio playing device receives the upgrading instruction and carries out upgrading treatment according to the running version to be upgraded.
As can be seen from the above, in the processing method for software upgrade provided in this embodiment, after an upgrade request sent by the audio playback device is received, the application version of the terminal application is obtained, and when the application version does not exist in the compatible version list in the upgrade request, the terminal application is upgraded to the latest application version, and the upgrade request of the audio playback device is responded. The problem that the terminal application cannot be used after the audio playing equipment is upgraded is solved, and the upgrading efficiency is improved.
The method described in the above embodiments is further illustrated in detail by way of example.
In order to better implement the processing method for software upgrade provided by the embodiment of the present invention, the embodiment of the present invention further provides a device based on the processing method for software upgrade. The terms are the same as those in the above-mentioned software upgrade processing method, and specific implementation details may refer to the description in the method embodiment.
Referring to fig. 4, fig. 4 is a schematic block diagram of a processing device for software upgrade according to an embodiment of the present invention.
Specifically, the processing apparatus 400 for software upgrade includes: a receiving module 41, a version obtaining module 42, a version judging module 43, an upgrading module 44 and a responding module 45.
The receiving module 41 is configured to receive an upgrade request sent by an audio playing device, where the upgrade request carries an operating version to be upgraded of the audio playing device and compatible version information corresponding to the operating version.
In an embodiment, the terminal may periodically obtain the running version information of the current audio playing device, send a detection instruction to the server, detect whether the audio playing device has a version update, and obtain a running version to be upgraded of the audio playing device and compatible version information corresponding to the running version when the audio playing device has the version update.
The version obtaining module 42 is configured to obtain a current application version of the terminal application according to the upgrade request.
The version determining module 43 is configured to determine whether the application version matches the compatible version information.
In order to avoid the situation that the new running version of the audio playing device is incompatible with the application version of the original terminal application after the audio playing device is upgraded. The current application version of the terminal application is obtained, and the version judgment module 43 matches the application version with the compatible version information corresponding to the running version to be upgraded of the sound box playing device.
The upgrade module 44 is configured to, when it is determined that the application version is not matched with the compatible version information, upgrade the terminal application, and respond to the upgrade request, so that the audio playing device performs upgrade processing according to the running version to be upgraded.
The upgrading process performed on the terminal application in the upgrading module 44 includes: and analyzing the compatible version list to obtain the compatible version with the highest version number in the compatible version list. Based on the compatible version, a download instruction is sent to the upgrade server. And receiving an upgrade file corresponding to the compatible version fed back by the upgrade server, and upgrading the terminal application according to the upgrade file.
The response module 45 is configured to respond to the upgrade request when it is determined that the application version matches the compatible version information, so that the audio playing device performs upgrade processing according to the running version to be upgraded.
In an embodiment, the responding module 45, responding to the upgrade request, may include: and generating an upgrading instruction according to the audio running version to be upgraded. And sending the upgrading instruction to the audio playing equipment so that the audio playing equipment executes upgrading processing of the audio playing equipment according to the upgrading instruction.
Referring to fig. 5, fig. 5 is a schematic block diagram of another processing apparatus for software upgrade according to an embodiment of the present invention, where the processing apparatus 400 for software upgrade may further include:
the version determining module 43 may further include a list obtaining sub-module 431, a determining sub-module 432, a first determining sub-module 433, and a second determining sub-module 434.
Specifically, the list obtaining submodule 431 is configured to obtain a compatible version list in the compatible version information. The determining sub-module 432 is configured to determine whether the application version exists in the compatible version list. The first determining submodule 433 is configured to determine that the application version matches the compatible version information when the application version is determined to exist in the compatible version list. The second determining submodule 434 is configured to determine that the application version is not matched with the compatible version information when it is determined that the application version does not exist in the compatible version list.
And an application information obtaining module 46, configured to obtain installation information of the current terminal application.
And the backup module 47 is configured to perform backup processing on the current terminal application according to the installation information, and generate backup information.
And a backup obtaining module 48, configured to obtain the backup information when receiving the upgrade failure instruction sent by the audio playing device.
And the restoring module 49 is configured to restore the terminal application according to the backup information.
As can be seen from the above, in the processing apparatus for software upgrade provided in this embodiment, after receiving an upgrade request sent by an audio playback device, an application version of a terminal application is obtained, and when an application version does not exist in a compatible version list in the upgrade request, the terminal application is upgraded to a latest application version, and the upgrade request of the audio playback device is responded. The problem that the terminal application cannot be used after the audio playing equipment is upgraded is solved, and the upgrading efficiency is improved.
Embodiments of the present invention also provide a terminal, as shown in fig. 6, the terminal 600 may include one or more computer-readable storage media, such as a memory 601, a sensor 602, an input unit 603, a display unit 604, a power supply 605, and a processor 606 including one or more processing cores. Those skilled in the art will appreciate that the terminal structure shown in fig. 6 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The memory 601 may be used to store applications and data. The memory 601 stores applications containing executable code. The application programs may constitute various functional modules. The processor 606 executes various functional applications and data processing by running application programs stored in the memory 601. Further, the memory 601 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 601 may also include a memory controller to provide the processor 606 and the input unit 603 with access to the memory 601.
The terminal may also include at least one sensor 602, such as a light sensor, a gravitational acceleration sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or the backlight when the terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal, detailed description is omitted here.
The input unit 603 may be used to receive input numbers, character information, or user characteristic information, such as a fingerprint, and generate a keyboard, mouse, joystick, optical, or trackball signal input related to user setting and function control. In particular, in one particular embodiment, input unit 603 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 606, and can receive and execute commands sent by the processor 606. In addition, touch sensitive surfaces may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 603 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a fingerprint recognition module, a trackball, a mouse, a joystick, and the like.
The display unit 604 may be used to display information input by or provided to the user and various graphical user interfaces of the terminal, which may be made up of graphics, text, icons, video, and any combination thereof. The display unit 604 may include a display panel. Alternatively, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 606 to determine the type of touch event, and then the processor 606 provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 6 the touch-sensitive surface and the display panel are two separate components to implement input and output functions, in some embodiments the touch-sensitive surface may be integrated with the display panel to implement input and output functions.
The terminal also includes a power supply 605 (such as a battery) to power the various components. Preferably, the power source may be logically connected to the processor 606 through a power management system, so that the power management system may manage charging, discharging, and power consumption. The power supply 605 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The processor 606 is a control center of the terminal, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal and processes data by running or executing an application program stored in the memory 601 and calling data stored in the memory 601, thereby performing overall monitoring of the terminal. Optionally, processor 606 may include one or more processing cores; preferably, the processor 606 may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, user interfaces, application programs, and the like.
Although not shown in fig. 6, the terminal may further include a camera, a bluetooth module, a network module, and the like, which are not described herein again.
Specifically, in this embodiment, the processor 606 in the terminal loads the executable code corresponding to the process of one or more application programs into the memory 601 according to the following instructions, and the processor 606 runs the application programs stored in the memory 601, thereby implementing various functions:
an upgrade request sent by the audio playing device is received by the processor 606, where the upgrade request carries an operating version to be upgraded of the audio playing device and compatible version information corresponding to the operating version.
The current application version of the terminal application is obtained by the processor 606 according to the upgrade request.
The second identification information of the corresponding audio playing device to be deleted is determined by the processor 606 according to the device attribute.
When the processor 606 determines that the application version is not matched with the compatible version information, the terminal application is upgraded, and the upgrade request is responded, so that the audio playing device is upgraded according to the running version to be upgraded.
In a specific implementation, the above units may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and the specific implementation of the above units may refer to the foregoing method embodiments, which are not described herein again.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and parts that are not described in detail in a certain embodiment may refer to the above detailed description of the processing method for software upgrade, and are not described herein again.
The processing device for software upgrade and the processing method for software upgrade provided in the embodiments of the present invention belong to the same concept, and any one of the methods provided in the embodiments of the processing method for software upgrade may be run on the processing device for software upgrade, and the specific implementation process thereof is described in detail in the embodiments of the processing method for software upgrade, and will not be described herein again.
It should be noted that, for the processing method of the software upgrade of the present invention, it can be understood by those skilled in the art that all or part of the flow of the processing method of the software upgrade of the embodiment of the present invention can be completed by controlling the relevant hardware through a computer program, where the computer program can be stored in a computer readable storage medium, such as a memory of a terminal, and executed by at least one processor in the terminal, and during the execution process, the flow of the embodiment of the processing method of the software upgrade can be included. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
For the processing device for software upgrade according to the embodiment of the present invention, each functional module may be integrated in one processing chip, or each module may exist alone physically, or two or more modules are integrated in one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented as a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium such as a read-only memory, a magnetic or optical disk, or the like.
The foregoing describes in detail a processing method, device and terminal for software upgrade provided in the embodiments of the present invention, and a specific example is applied in the present disclosure to explain the principle and implementation of the present invention, and the description of the foregoing embodiments is only used to help understanding the method and core ideas of the present invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (7)

1. A processing method for software upgrade is applied to an audio playing system, and is characterized by comprising the following steps:
receiving an upgrade request sent by audio playing equipment, wherein the upgrade request carries an operation version to be upgraded of the audio playing equipment and compatible version information corresponding to the operation version;
acquiring the current application version of the terminal application according to the upgrading request;
judging whether the application version is matched with the compatible version information;
the determining whether the application version is matched with the compatible version information includes: acquiring a compatible version list in the compatible version information;
judging whether the compatible version list has the application version or not;
when the application version is judged to exist in the compatible version list, the application version is judged to be matched with the compatible version information;
when the application version is judged not to exist in the compatible version list, judging that the application version is not matched with the compatible version information;
when the application version is judged not to be matched with the compatible version information, analyzing the compatible version list to obtain a compatible version with the highest application version number in the compatible version list;
sending a downloading instruction to an upgrading server based on the compatible version;
acquiring installation information of a current terminal application;
performing backup processing on the current terminal application according to the installation information to generate backup information;
receiving an upgrade file corresponding to the compatible version fed back by an upgrade server, upgrading the terminal application according to the upgrade file, and responding to the upgrade request, so that the audio playing device upgrades the terminal application correspondingly while upgrading according to the running version to be upgraded;
when an upgrade failure instruction sent by audio playing equipment is received, backup information is obtained;
and restoring the terminal application according to the backup information.
2. The method for processing software upgrade of claim 1, wherein after determining whether the application version matches the compatible version information, further comprising:
and when the application version is judged to be matched with the compatible version information, responding to the upgrading request so as to enable the audio playing equipment to carry out upgrading processing according to the running version to be upgraded.
3. The method for processing software upgrade as claimed in claim 1 or 2, wherein responding to said upgrade request comprises:
generating an upgrading instruction according to the running version to be upgraded;
and sending the upgrading instruction to the audio playing equipment so that the audio playing equipment executes upgrading processing of the audio playing equipment according to the upgrading instruction.
4. A device for processing a software upgrade, comprising:
the receiving module is used for receiving an upgrade request sent by the audio playing equipment, wherein the upgrade request carries an operation version to be upgraded of the audio playing equipment and compatible version information corresponding to the operation version;
the version acquisition module is used for acquiring the current application version of the terminal application according to the upgrading request;
the version judging module is used for judging whether the application version is matched with the compatible version information;
the version judging module comprises: the list obtaining submodule is used for obtaining a compatible version list in the compatible version information;
the judging submodule is used for judging whether the compatible version list has the application version or not;
the first judgment submodule is used for judging that the application version is matched with the compatible version information when the application version is judged to exist in the compatible version list;
a second determining submodule, configured to determine that the application version is not matched with the compatible version information when it is determined that the application version does not exist in the compatible version list;
the application information acquisition module is used for acquiring the installation information of the current terminal application;
the backup module is used for carrying out backup processing on the current terminal application according to the installation information to generate backup information;
the upgrading module is used for analyzing the compatible version list when the application version is judged not to be matched with the compatible version information, acquiring a compatible version with the highest application version number in the compatible version list, sending a downloading instruction to an upgrading server based on the compatible version, receiving an upgrading file which is fed back by the upgrading server and corresponds to the compatible version, upgrading the terminal application according to the upgrading file, and responding to the upgrading request so that the audio playing equipment can upgrade the terminal application while upgrading according to the running version to be upgraded;
the backup acquisition module is used for acquiring backup information when receiving an upgrade failure instruction sent by the audio playing equipment;
and the restoring module is used for restoring the terminal application according to the backup information.
5. The apparatus for processing a software upgrade of claim 4, wherein the apparatus further comprises:
and the response module is used for responding to the upgrading request when the application version is judged to be matched with the compatible version information, so that the audio playing equipment carries out upgrading processing according to the running version to be upgraded.
6. A terminal, comprising:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to execute the software upgrade processing method according to any one of claims 1 to 3.
7. A storage medium storing a computer program, characterized in that the computer program realizes the method according to claim 1 when executed by a processor.
CN201710209398.3A 2017-03-31 2017-03-31 Software upgrading processing method and device and terminal Active CN107018022B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710209398.3A CN107018022B (en) 2017-03-31 2017-03-31 Software upgrading processing method and device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710209398.3A CN107018022B (en) 2017-03-31 2017-03-31 Software upgrading processing method and device and terminal

Publications (2)

Publication Number Publication Date
CN107018022A CN107018022A (en) 2017-08-04
CN107018022B true CN107018022B (en) 2020-05-12

Family

ID=59445806

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710209398.3A Active CN107018022B (en) 2017-03-31 2017-03-31 Software upgrading processing method and device and terminal

Country Status (1)

Country Link
CN (1) CN107018022B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107808134B (en) * 2017-10-26 2021-05-25 Oppo广东移动通信有限公司 Image processing method, image processing device and electronic terminal
CN107943503A (en) * 2017-12-07 2018-04-20 畅捷通信息技术股份有限公司 The upgrade method of mobile application and the upgrade-system of mobile application
CN109324815B (en) * 2018-08-31 2022-08-30 百度在线网络技术(北京)有限公司 Monitoring method, device and equipment for upgrading unmanned vehicle system
CN109408083A (en) * 2018-09-26 2019-03-01 平安普惠企业管理有限公司 Application software update method, device, computer equipment and storage medium
CN109343880B (en) * 2018-09-29 2022-05-13 武汉斗鱼网络科技有限公司 RN packet updating method and device and readable storage medium
CN109901831B (en) * 2019-01-22 2022-06-21 成都随安保网络技术有限公司 Multi-platform compatible operation method and compatible operation device of software
CN111078458B (en) * 2019-12-31 2023-09-15 潍柴动力股份有限公司 Electronic control unit, software compatibility detection method and device thereof and automobile
CN111414188A (en) * 2020-02-25 2020-07-14 北京小米移动软件有限公司 Application version matching method, application version matching device and storage medium
CN112199099A (en) * 2020-10-19 2021-01-08 深圳市欢太科技有限公司 Application updating method, device, server and storage medium
CN115129335A (en) * 2021-03-26 2022-09-30 观致汽车有限公司 Remote upgrading method and device for electric automobile, T-Box and electric automobile

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102831029A (en) * 2011-06-14 2012-12-19 中兴通讯股份有限公司 Implementation method and system for upgrading backspacing of network element
CN104219092A (en) * 2014-08-27 2014-12-17 小米科技有限责任公司 Router management application and router firmware compatible method and router management application and router firmware compatible device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8386643B2 (en) * 2008-04-04 2013-02-26 Arris Group, Inc. Automated double firmware upgrade
CN105045611B (en) * 2015-06-24 2018-08-07 深圳市海蕴新能源有限公司 A kind of upgrade method and device
CN105389183B (en) * 2015-11-04 2019-02-01 Oppo广东移动通信有限公司 Application version method and apparatus corresponding with intelligent sound box software version
CN105915401B (en) * 2016-06-29 2019-05-21 北京小米移动软件有限公司 Firmware upgrade method, device and the equipment of Intelligent hardware
CN106161100B (en) * 2016-08-03 2019-09-27 青岛海信电器股份有限公司 A kind of internet of things equipment configuration method and internet-of-things terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102831029A (en) * 2011-06-14 2012-12-19 中兴通讯股份有限公司 Implementation method and system for upgrading backspacing of network element
CN104219092A (en) * 2014-08-27 2014-12-17 小米科技有限责任公司 Router management application and router firmware compatible method and router management application and router firmware compatible device

Also Published As

Publication number Publication date
CN107018022A (en) 2017-08-04

Similar Documents

Publication Publication Date Title
CN107018022B (en) Software upgrading processing method and device and terminal
CN111142711B (en) Firmware configuration method and device, storage medium and mobile terminal
CN109857403B (en) Page updating method and device, page processing method and device
CN106775827B (en) Application program updating method and device and computer equipment
CN106502703B (en) Function calling method and device
US20130247021A1 (en) Electronic device, system and method for updating and uninstalling software
CN108039963B (en) Container configuration method and device and storage medium
WO2022042233A1 (en) Application interface migration system, method, and related device
EP2869604B1 (en) Method, apparatus and device for processing a mobile terminal resource
CN107025173B (en) Method and device for testing function execution time
CN110471870B (en) Multi-system operation method and device, electronic equipment and storage medium
CN107341094B (en) Method and device for measuring time consumed by starting item
CN106919458B (en) Method and device for Hook target kernel function
CN114398065B (en) Micro front-end system updating method and device, electronic equipment and storage medium
CN106933626B (en) Application association method and device
CN106933576B (en) Terminal unlocking method and device and computer equipment
CN106970812B (en) Upgrade file processing device and terminal
CN115098468A (en) Flexible data migration method and device, storage medium and electronic equipment
CN111522798B (en) Data synchronization method, device, equipment and readable storage medium
CN106970814B (en) Processing method, device and system for software upgrading
CN107015874B (en) Data transmission control method, device and terminal
CN111625283A (en) Hardware updating method, device, system and computer readable storage medium
CN110336693A (en) Management method, device, equipment and the storage medium of network control techology
CN109086054B (en) Application program installation method and mobile terminal
CN115543841A (en) Data update test method, device, medium and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

GR01 Patent grant
GR01 Patent grant