CN115525309A - Version updating method and device, storage medium and electronic device - Google Patents

Version updating method and device, storage medium and electronic device Download PDF

Info

Publication number
CN115525309A
CN115525309A CN202211148385.7A CN202211148385A CN115525309A CN 115525309 A CN115525309 A CN 115525309A CN 202211148385 A CN202211148385 A CN 202211148385A CN 115525309 A CN115525309 A CN 115525309A
Authority
CN
China
Prior art keywords
version
target
update
updated
target application
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
Application number
CN202211148385.7A
Other languages
Chinese (zh)
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.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Haier Uplus Intelligent Technology Beijing Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Haier Uplus Intelligent Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd, Haier Uplus Intelligent Technology Beijing Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202211148385.7A priority Critical patent/CN115525309A/en
Publication of CN115525309A publication Critical patent/CN115525309A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

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 discloses a version updating method and device, a storage medium and an electronic device, which relate to the technical field of smart families, and the version updating method comprises the following steps: determining a first updating version of a target application in response to a version updating request sent by the target application, wherein the version updating request is used for requesting to update a first original version of the target application, and the first updating version is a to-be-updated version of the first original version; determining a second updated version of the target device associated with the target application according to the first updated version; sending prompt information to the target application, wherein the prompt information is used for prompting whether to update the first original version of the target application to the first updated version and update the system version of the target device to the second updated version; and in response to the upgrading instruction sent by the target application according to the prompt message, updating the first original version of the target application to a first updated version and updating the system version of the target device to a second updated version.

Description

Version updating method and device, storage medium and electronic device
Technical Field
The application relates to the technical field of smart homes, in particular to a version updating method and device, a storage medium and an electronic device.
Background
With the development of the internet of things era, more and more intelligent household appliances are used in the family of the user, and more users can choose to purchase a set of intelligent household appliances to build the whole house intelligence in the future development trend. In order to enhance user experience, functions of the smart devices are continuously updated in an iterative manner, and for a set of household electrical appliances, generally, experience of a certain new function requires that all smart devices and mobile phone application software (application for binding and controlling the devices) in a home are updated at the same time, and only after each device terminal and the mobile phone application are updated synchronously, the new function can be used. However, in the traditional upgrading mode, each device is upgraded independently, and mobile phone applications are upgraded independently without relation to each other.
Aiming at the problem that in the related art, due to the fact that an equipment end and an application corresponding to the equipment end are independently upgraded, a new function cannot be used in time, an effective solution is not provided at present.
Therefore, there is a need for improvement of the related art to overcome the drawbacks of the related art.
Disclosure of Invention
The embodiment of the invention provides a version updating method and device, a storage medium and an electronic device, which at least solve the problem that new functions cannot be used in time due to independent upgrading of an equipment end and an application corresponding to the equipment end.
According to an aspect of the embodiments of the present invention, there is provided a version update method, including: determining a first updated version of a target application in response to a version update request sent by the target application, wherein the version update request is used for requesting to update a first original version of the target application, and the first updated version is a to-be-updated version of the first original version; determining a second updated version of a target device associated with the target application from the first updated version; sending prompt information to the target application, wherein the prompt information is used for prompting whether to update the first original version of the target application to the first updated version and update the system version of the target device to the second updated version; and in response to an upgrade instruction sent by the target application according to the prompt message, updating the first original version of the target application to the first updated version and updating the system version of the target device to the second updated version.
In one exemplary embodiment, determining a first updated version of the target application includes: determining first hardware information of a mobile terminal where the target application is located, and determining a first version list according to the first hardware information, wherein the version in the first version list is the version of the target application supported by the mobile terminal under the first hardware information; in the case that one or more first versions higher than the first original version exist in the first version list, determining a first version with a highest version number of the one or more first versions as the first updated version.
In one exemplary embodiment, before determining the second updated version of the target device associated with the target application based on the first updated version, the method further comprises: and determining a target account for logging in the target application, and determining the target equipment bound with the target account.
In one exemplary embodiment, determining a second updated version of the target device associated with the target application based on the first updated version comprises: determining a second version list matching the first updated version, wherein the second version list comprises a system version of the target device, and the target device has an adaptation relationship with the target application under the first updated version under the version in the second version list; determining a second version with a highest version number of the one or more second versions as the second updated version if one or more second versions higher than the second original version of the target device exist in the second version list.
In one exemplary embodiment, determining a second version list that matches the first updated version comprises: determining a third version list matching the first updated version and determining second hardware information of the target device; and determining a second version list from the third version list according to the second hardware information, wherein the version in the second version list is the version supported by the target device under the second hardware information.
In one exemplary embodiment, updating the first original version of the target application to the first updated version and the system version of the target device to the second updated version comprises: sending first update information of the first update version to the target application, and sending second update information of the second update version to the target device, wherein the first update information includes an upgrade package of the target application or an address of an upgrade package for downloading the target application, and the second update information includes an upgrade package of a system of the target device or an address of an upgrade package for downloading the system of the target device; instructing the target application to update a first original version of the target application to the first updated version according to the first update information, and instructing the target device to update a system version of the target device to the second updated version according to the second update information.
In an exemplary embodiment, after instructing the target device to update the system version of the target device to the second updated version according to the second update information, the method further includes: determining whether the system version of the target device is successfully updated to the second updated version; determining a reason for the unsuccessful upgrade of the target device in the case that it is determined that the version of the system of the target device is not successfully upgraded to the second updated version; and issuing a control instruction to the target equipment according to the reason of the unsuccessful upgrade so that the target equipment is in a state of upgrading the system version to the second update version, and indicating the target equipment to update the system version of the target equipment to the second update version according to the second update information.
According to another aspect of the embodiments of the present invention, there is also provided a version updating apparatus, including: the device comprises a first determining module, a first updating module and a second determining module, wherein the first determining module is used for determining a first updating version of a target application in response to a version updating request sent by the target application, the version updating request is used for requesting to update a first original version of the target application, and the first updating version is a to-be-updated version of the first original version; a second determination module to determine a second updated version of a target device associated with the target application from the first updated version; a sending module, configured to send prompt information to the target application, where the prompt information is used to prompt whether to update the first original version of the target application to the first updated version and update the system version of the target device to the second updated version; and the updating module is used for responding to an upgrading instruction sent by the target application according to the prompt message, updating the first original version of the target application to the first updated version and updating the system version of the target device to the second updated version.
According to still another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to execute the version updating method described above when running.
According to another aspect of the embodiments of the present invention, there is also provided an electronic apparatus, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the version updating method through the computer program.
According to the method and the device, after the first update version of the target application and the second update version of the target device corresponding to the first update version are determined, the prompt information is sent to the target application, whether the target application and the target device are updated or not is determined, and then the first original version of the target application is updated to the first update version and the system version of the target device is updated to the second update version under the condition that the upgrade instruction sent by the target application according to the prompt information is obtained. By adopting the technical scheme, the equipment end and the application corresponding to the equipment end can be updated and upgraded simultaneously, and the problem that new functions cannot be used in time due to the fact that the equipment end and the application corresponding to the equipment end are upgraded independently is solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and, together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive labor.
FIG. 1 is a diagram illustrating a hardware environment for a version update method according to an embodiment of the present application;
FIG. 2 is a flow diagram of a version update method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a version update method according to an embodiment of the present invention;
FIG. 4 is a block diagram of a version updating apparatus according to an embodiment of the present invention;
fig. 5 is a block diagram of the version updating apparatus according to the embodiment of the present invention (ii).
Detailed Description
In order to make the technical solutions of the present application better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, and not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the accompanying drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be implemented in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to one aspect of the embodiments of the present application, there is provided a version update method. The version updating method is widely applied to full-house intelligent digital control application scenes such as Smart homes (Smart Home), intelligent homes, intelligent household equipment ecology, intelligent house (Intellignee House) ecology and the like. Alternatively, in the present embodiment, the version updating method described above may be applied to a hardware environment formed by the terminal device 102 and the server 104 as shown in fig. 1. As shown in fig. 1, the server 104 is connected to the terminal device 102 through a network, and may be configured to provide a service (e.g., an application service) for the terminal or a client installed on the terminal, set a database on the server or independent of the server, and provide a data storage service for the server 104, and configure a cloud computing and/or edge computing service on the server or independent of the server, and provide a data operation service for the server 104.
The network may include, but is not limited to, at least one of: wired networks, wireless networks. The wired network may include, but is not limited to, at least one of: wide area networks, metropolitan area networks, local area networks, which may include, but are not limited to, at least one of the following: WIFI (Wireless Fidelity), bluetooth. Terminal equipment 102 can be and not be limited to PC, the cell-phone, the panel computer, intelligent air conditioner, intelligent cigarette machine, intelligent refrigerator, intelligent oven, intelligent kitchen range, intelligent washing machine, intelligent water heater, intelligent washing equipment, intelligent dish washer, intelligent projection equipment, the intelligent TV, intelligent clothes hanger, intelligent (window) curtain, intelligence audio-visual, smart jack, intelligent stereo set, intelligent audio amplifier, intelligent new trend equipment, intelligent kitchen guarding's equipment, intelligent bathroom equipment, the intelligence robot of sweeping the floor, the intelligence robot of wiping the window, intelligence robot of mopping the floor, intelligent air purification equipment, intelligent steam ager, intelligent microwave oven, intelligent kitchen guarding, intelligent clarifier, intelligent water dispenser, intelligent lock etc..
In order to solve the above problem, in this embodiment, a version updating method is provided, including but not limited to being applied in a cloud server, and fig. 2 is a flowchart of the version updating method according to the embodiment of the present invention, where the flowchart includes the following steps:
step S202: determining a first updated version of a target application in response to a version update request sent by the target application, wherein the version update request is used for requesting to update a first original version of the target application, and the first updated version is a to-be-updated version of the first original version;
in an exemplary embodiment, determining the first updated version of the target application may be implemented by the following steps S11-S12:
step S11: determining first hardware information of a mobile terminal where the target application is located, and determining a first version list according to the first hardware information, wherein the version in the first version list is the version of the target application supported by the mobile terminal under the first hardware information;
it should be noted that the hardware information of the mobile terminal includes, but is not limited to, the processor model of the mobile terminal, whether the mobile terminal has the positioning capability, whether the mobile terminal has the voice and video capability, whether the mobile terminal has the NFC capability, included sensors, and the like. Sensors include, but are not limited to, gravity sensors, orientation sensors, temperature sensors, magnetoresistive sensors, and the like.
It should be noted that the target application has many versions, but hardware capabilities of the mobile terminals corresponding to different versions are different, and the application of a higher version can only be run on the mobile terminal with stronger hardware capability, and further, under the condition that the first hardware information of the mobile terminal is determined, it is necessary to determine which versions of the target application the mobile terminal can support under the first hardware information.
For example, the target application has 3 versions, version 1, version 2, and version 3. But version 3 cannot run on the mobile terminal having the first hardware information, and thus the first version list determined according to the first hardware information of the mobile terminal is [ version 1, version 2].
Step S12: in the case that one or more first versions higher than the first original version exist in the first version list, determining a first version with a highest version number of the one or more first versions as the first updated version.
Step S204: determining a second updated version of a target device associated with the target application according to the first updated version;
it should be noted that, before the step S204 is executed, the target device that needs to be upgraded needs to be determined, and in an exemplary embodiment, the target account for logging in the target application is determined, and the target device bound to the target account is determined in the following manner.
In an exemplary embodiment, the above step S204 may be implemented by the following steps S21-S22:
step S21: determining a second version list matching the first updated version, wherein the second version list comprises a system version of the target device, and the target device has an adaptation relationship with the target application under the first updated version under the version in the second version list;
it should be noted that, the having, by the target device, an adaptation relationship with the target application under the version in the second version list under the first updated version includes: and when the target application is in the first updated version, the target application can only carry out binding and control on the target equipment in the version in the second version list.
In an exemplary embodiment, determining the second version list matching the first updated version may be implemented by: determining a third version list matching the first updated version and determining second hardware information of the target device; and determining a second version list from the third version list according to the second hardware information, wherein the version in the second version list is the version supported by the target device under the second hardware information.
It should be noted that, the cloud server stores an association relationship between the version of the target application and the version of the target device matched with the version of the target application. For example, version 1 of the target application corresponds to version a, version B, version C of the target device. That is, if the version of the target application of the mobile terminal is version 1, the target application can only perform binding and control on the target devices under version a, version B and version C.
For example, assuming that the first updated version of the target application is version 1, the third version list matched with the first updated version is [ version a, version B, version C ], but since the second hardware information of the target device does not support version C, the second version list determined from the third version list according to the second hardware information is [ version a, version B ].
Step S22: determining a second version with a highest version number of the one or more second versions as the second updated version if one or more second versions higher than the second original version of the target device exist in the second version list.
Step S206: sending prompt information to the target application, wherein the prompt information is used for prompting whether to update a first original version of the target application to the first updated version and update a system version of the target device to the second updated version;
step S208: and in response to an upgrade instruction sent by the target application according to the prompt message, updating the first original version of the target application to the first updated version and updating the system version of the target device to the second updated version.
In an exemplary embodiment, the step S208 may be implemented as follows: sending first update information of the first update version to the target application, and sending second update information of the second update version to the target device, wherein the first update information includes an upgrade package of the target application or an address of an upgrade package for downloading the target application, and the second update information includes an upgrade package of a system of the target device or an address of an upgrade package for downloading the system of the target device; the target application is instructed to update a first original version of the target application to the first updated version according to the first update information, and the target device is instructed to update a system version of the target device to the second updated version according to the second update information.
In an exemplary embodiment, after instructing the target device to update the system version of the target device to the second updated version according to the second update information, the following steps S31 to S33 may be further performed:
step S31: determining whether the system version of the target device is successfully updated to the second updated version;
step S32: determining a reason for the unsuccessful upgrade of the target device in the case that it is determined that the version of the system of the target device is not successfully upgraded to the second updated version;
it should be noted that the reason why the target device is not in a successful upgrade may be what operation the target device is currently performing, possibly that a switch of the remote upgrade is not open, and so on. That is, the target device is not currently in a state where remote upgrade is possible.
Step S33: and issuing a control instruction to the target equipment according to the reason of the unsuccessful upgrade so that the target equipment is in a state of upgrading the system version to the second update version, and indicating the target equipment to update the system version of the target equipment to the second update version according to the second update information.
Through the steps, after the first update version of the target application and the second update version of the target equipment corresponding to the first update version are determined, the prompt information is sent to the target application, whether the target application and the target equipment are updated or not is determined, and then under the condition that the upgrading instruction sent by the target application according to the prompt information is obtained, the first original version of the target application is updated to the first update version and the system version of the target equipment is updated to the second update version. By adopting the technical scheme, the equipment end and the application corresponding to the equipment end can be updated and upgraded simultaneously, and the problem that new functions cannot be used in time due to the fact that the equipment end and the application corresponding to the equipment end are upgraded independently is solved.
It should be noted that, the number of the target devices may be multiple, and when there are multiple target devices, it is necessary to simultaneously determine second update versions of the multiple target devices according to the first update version of the target application, and simultaneously update the system version of each of the multiple target devices to the corresponding second update version.
It should be noted that, in the process of updating and upgrading a plurality of target devices simultaneously, if only some of the target devices are successfully upgraded, that is, some of the target devices are not successfully upgraded, the reason for the unsuccessful upgrade of the target devices that are not successfully upgraded needs to be determined simultaneously, and then corresponding operations are performed according to the reason for the unsuccessful upgrade.
It should be noted that, when there are a plurality of target devices, the device information of the plurality of target devices may be carried in the prompt message, and the target object may further manually select which target devices are to be upgraded.
It is to be understood that the above-described embodiments are only a few, and not all, embodiments of the present invention. In order to better understand the version updating method, the following describes the foregoing process with reference to an embodiment, but the present invention is not limited to the technical solution of the embodiment, and specifically:
in an exemplary embodiment, fig. 3 is a schematic diagram of a version updating method according to an embodiment of the present invention, specifically, having the following steps:
(1) The mobile phone terminal App (equivalent to the target application) sends a request for updating the version to the server; the server includes, but is not limited to, a cloud server.
(2) The server side returns the mobile phone App and the upgrading version information of all devices in the user family;
(3) The mobile phone App prompts a user to carry out one-key whole-room equipment upgrading and App self-upgrading, and prompts the user to keep the equipment online;
(4) If the user agrees to upgrade, the server respectively sends an upgrade instruction to the mobile phone App and each equipment terminal;
(5) And after the mobile phone App and each equipment terminal are upgraded successfully, reporting upgrading result information to a server.
It should be noted that, in this embodiment, the version of the App is associated with the versions of the intelligent devices matched with the App in the server, and then when the App requests the server to update the versions, the server may simultaneously push, to the App, the version update condition of all the devices in the home of the user, and if it is found that the intelligent devices need to be updated synchronously, the server may prompt the user whether to update all the devices by one key, and if the user agrees, the device and the App may be updated synchronously. And then realized the synchronous upgrading of each equipment end and App, guarantee that the user can in time experience the new function of new edition, promote user experience.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention or portions thereof contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes several instructions for enabling a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the method of the embodiments of the present invention.
In this embodiment, a version updating apparatus is further provided, and the apparatus is used to implement the foregoing embodiments and preferred embodiments, and the description of the apparatus is omitted for brevity. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementations in hardware or a combination of software and hardware are also possible and contemplated.
Fig. 4 is a block diagram (one) of a version updating apparatus according to an embodiment of the present invention, the apparatus including:
a first determining module 42, configured to determine a first updated version of a target application in response to a version update request sent by the target application, where the version update request is used to request to update a first original version of the target application, where the first updated version is a to-be-updated version of the first original version;
a second determining module 44 for determining a second updated version of the target device associated with the target application according to the first updated version;
a sending module 46, configured to send prompt information to the target application, where the prompt information is used to prompt whether to update the first original version of the target application to the first updated version and update the system version of the target device to the second updated version;
an updating module 48, configured to update the first original version of the target application to the first updated version and update the system version of the target device to the second updated version in response to the upgrade instruction sent by the target application according to the prompt message.
By the device, after the first update version of the target application and the second update version of the target equipment corresponding to the first update version are determined, the prompt information is sent to the target application, whether the target application and the target equipment are updated or not is determined, and then the first original version of the target application is updated to the first update version and the system version of the target equipment is updated to the second update version under the condition that the upgrading instruction sent by the target application according to the prompt information is obtained. By adopting the technical scheme, the equipment end and the application corresponding to the equipment end can be updated and upgraded simultaneously, and the problem that new functions cannot be used in time due to independent upgrading of the equipment end and the application corresponding to the equipment end is solved.
In an exemplary embodiment, the first determining module 42 is further configured to determine first hardware information of a mobile terminal where the target application is located, and determine a first version list according to the first hardware information, where a version in the first version list is a version of the target application supported by the mobile terminal under the first hardware information; in the case that one or more first versions higher than the first original version exist in the first version list, determining a first version with a highest version number among the one or more first versions as the first updated version.
In an exemplary embodiment, the second determining module 44 is further configured to determine a target account for logging in the target application and determine the target device bound to the target account before determining a second updated version of the target device associated with the target application according to the first updated version.
In an exemplary embodiment, the second determining module 44 is further configured to determine a second version list matching the first updated version, where the second version list includes a system version of the target device, and the target device has an adaptation relationship with the target application in the first updated version under a version in the second version list; determining a second version with a highest version number of the one or more second versions as the second updated version if one or more second versions higher than the second original version of the target device exist in the second version list.
In an exemplary embodiment, the second determining module 44 is further configured to determine a third version list matching the first updated version, and determine second hardware information of the target device; and determining a second version list from the third version list according to the second hardware information, wherein the version in the second version list is the version supported by the target device under the second hardware information.
In an exemplary embodiment, the update module 48 is further configured to send first update information of the first update version to the target application, and send second update information of the second update version to the target device, where the first update information includes an upgrade package of the target application or an address of an upgrade package for downloading the target application, and the second update information includes an upgrade package of a system of the target device or an address of an upgrade package for downloading a system of the target device; the target application is instructed to update a first original version of the target application to the first updated version according to the first update information, and the target device is instructed to update a system version of the target device to the second updated version according to the second update information.
Fig. 5 is a block diagram (ii) of the version updating apparatus according to the embodiment of the present invention, the apparatus further includes: a third determination module 50 and a processing module 52.
In an exemplary embodiment, the third determining module 50 is configured to determine whether the system version of the target device is successfully updated to the second updated version after instructing the target device to update the system version of the target device to the second updated version according to the second update information; determining a reason for the unsuccessful upgrade of the target device in the case that it is determined that the version of the system of the target device is not successfully upgraded to the second updated version; a processing module 52, configured to issue a control command to the target device according to the reason for the unsuccessful upgrade so that the target device is in a state of upgrading the system version to the second updated version, and an updating module 48, configured to instruct the target device to update the system version of the target device to the second updated version according to the second update information.
An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to perform the steps in any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
the method comprises the steps of S1, responding to a version updating request sent by a target application, and determining a first updating version of the target application, wherein the version updating request is used for requesting to update a first original version of the target application, and the first updating version is a to-be-updated version of the first original version;
s2, determining a second updated version of the target device associated with the target application according to the first updated version;
s3, sending prompt information to the target application, wherein the prompt information is used for prompting whether to update the first original version of the target application to the first updated version or not and update the system version of the target device to the second updated version;
and S4, responding to an upgrading instruction sent by the target application according to the prompt message, updating the first original version of the target application to the first updated version and updating the system version of the target device to the second updated version.
In an exemplary embodiment, the computer readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
the method comprises the steps of S1, responding to a version updating request sent by a target application, and determining a first updating version of the target application, wherein the version updating request is used for requesting to update a first original version of the target application, and the first updating version is a version to be updated of the first original version;
s2, determining a second updated version of the target device associated with the target application according to the first updated version;
s3, sending prompt information to the target application, wherein the prompt information is used for prompting whether to update the first original version of the target application to the first updated version or not and update the system version of the target device to the second updated version;
and S4, responding to an upgrading instruction sent by the target application according to the prompt message, updating the first original version of the target application to the first updated version and updating the system version of the target device to the second updated version.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
For specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiments and exemplary implementations, and details of this embodiment are not repeated herein.
It will be apparent to those skilled in the art that the various modules or steps of the invention described above may be implemented using a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and they may be implemented using program code executable by the computing devices, such that they may be stored in a memory device and executed by the computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into various integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (10)

1. A version update method, comprising:
determining a first updated version of a target application in response to a version update request sent by the target application, wherein the version update request is used for requesting to update a first original version of the target application, and the first updated version is a to-be-updated version of the first original version;
determining a second updated version of a target device associated with the target application from the first updated version;
sending prompt information to the target application, wherein the prompt information is used for prompting whether to update the first original version of the target application to the first updated version and update the system version of the target device to the second updated version;
and in response to an upgrading instruction sent by the target application according to the prompt message, updating a first original version of the target application to a first updated version and updating a system version of the target device to a second updated version.
2. The method of claim 1, wherein determining the first updated version of the target application comprises:
determining first hardware information of a mobile terminal where the target application is located, and determining a first version list according to the first hardware information, wherein the version in the first version list is the version of the target application supported by the mobile terminal under the first hardware information;
in the case that one or more first versions higher than the first original version exist in the first version list, determining a first version with a highest version number of the one or more first versions as the first updated version.
3. The method of claim 1, wherein prior to determining a second updated version of a target device associated with the target application from the first updated version, the method further comprises:
and determining a target account for logging in the target application, and determining the target equipment bound with the target account.
4. The method of claim 1, wherein determining a second updated version of a target device associated with the target application from the first updated version comprises:
determining a second version list matching the first updated version, wherein the second version list comprises a system version of the target device, and the target device has an adaptation relationship with the target application under the first updated version under the version in the second version list;
determining a second version with a highest version number of the one or more second versions as the second updated version if one or more second versions higher than a second original version of the target device exist in the second version list.
5. The method of claim 4, wherein determining a second version list that matches the first updated version comprises:
determining a third version list matching the first updated version and determining second hardware information of the target device;
and determining a second version list from the third version list according to the second hardware information, wherein the version in the second version list is the version supported by the target device under the second hardware information.
6. The method of claim 1, wherein updating a first original version of the target application to the first updated version and a system version of the target device to the second updated version comprises:
sending first update information of the first update version to the target application, and sending second update information of the second update version to the target device, wherein the first update information includes an upgrade package of the target application or an address of an upgrade package for downloading the target application, and the second update information includes an upgrade package of a system of the target device or an address of an upgrade package for downloading the system of the target device;
the target application is instructed to update a first original version of the target application to the first updated version according to the first update information, and the target device is instructed to update a system version of the target device to the second updated version according to the second update information.
7. The method of claim 6, wherein after instructing the target device to update the system version of the target device to the second updated version according to the second update information, the method further comprises:
determining whether the system version of the target device is successfully updated to the second updated version;
determining a reason for the unsuccessful upgrade of the target device in the case that it is determined that the version of the system of the target device is not successfully upgraded to the second updated version;
and issuing a control instruction to the target equipment according to the reason of the unsuccessful upgrade so that the target equipment is in a state of upgrading the system version to the second update version, and indicating the target equipment to update the system version of the target equipment to the second update version according to the second update information.
8. A version update apparatus, comprising:
the device comprises a first determining module, a first updating module and a second determining module, wherein the first determining module is used for determining a first updating version of a target application in response to a version updating request sent by the target application, the version updating request is used for requesting to update a first original version of the target application, and the first updating version is a to-be-updated version of the first original version;
a second determination module to determine a second updated version of a target device associated with the target application from the first updated version;
a sending module, configured to send prompt information to the target application, where the prompt information is used to prompt whether to update the first original version of the target application to the first updated version and update the system version of the target device to the second updated version;
and the updating module is used for responding to an upgrading instruction sent by the target application according to the prompt message, updating the first original version of the target application to the first updating version, and updating the system version of the target device to the second updating version.
9. A computer-readable storage medium, comprising a stored program, wherein the program when executed performs the method of any of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 7 by means of the computer program.
CN202211148385.7A 2022-09-20 2022-09-20 Version updating method and device, storage medium and electronic device Pending CN115525309A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211148385.7A CN115525309A (en) 2022-09-20 2022-09-20 Version updating method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211148385.7A CN115525309A (en) 2022-09-20 2022-09-20 Version updating method and device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN115525309A true CN115525309A (en) 2022-12-27

Family

ID=84700016

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211148385.7A Pending CN115525309A (en) 2022-09-20 2022-09-20 Version updating method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN115525309A (en)

Similar Documents

Publication Publication Date Title
CN110365704B (en) Equipment binding method and device and electronic equipment
CN115167164A (en) Method and device for determining equipment scene, storage medium and electronic device
CN114697150A (en) Command issuing method and device, storage medium and electronic device
CN114896003A (en) Page configuration method and device, storage medium and electronic device
CN115525309A (en) Version updating method and device, storage medium and electronic device
CN116107975A (en) Control method and device of equipment, storage medium and electronic device
CN115167160A (en) Device control method and apparatus, device control system, and storage medium
CN115982493A (en) Page jump method and device, storage medium and electronic device
CN115687806A (en) Method and device for determining target equipment list, storage medium and electronic device
CN114900826A (en) Equipment binding method and device, storage medium and electronic device
CN113934490A (en) Opening method and device of equipment control page, storage medium and electronic device
CN115695534A (en) Target application running method and device, storage medium and electronic device
CN115484119B (en) Control method and device of equipment, storage medium and electronic device
CN115460060B (en) Device upgrading method and device of intelligent device, storage medium and electronic device
CN115001885A (en) Device control method and apparatus, storage medium, and electronic apparatus
CN115453897A (en) Method and device for determining intention instruction, storage medium and electronic device
CN114928645B (en) Resource package processing method and device, storage medium and electronic device
CN115297103B (en) Method and device for acquiring logic constraint file, storage medium and electronic device
CN115277412B (en) Edge gateway upgrading method and device, storage medium and electronic device
WO2023202029A1 (en) Tag data adjustment method and apparatus, and storage medium
CN115484116A (en) Equipment data processing method and device, storage medium and electronic device
CN115174297A (en) Attribute information updating method and device, storage medium and electronic device
CN115484163A (en) System switching method and device, storage medium and electronic device
CN115473885A (en) Target file address sending method and device, storage medium and electronic device
CN116108070A (en) Method and device for opening equipment detail page, storage medium and electronic device

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