CN112130883A - Software upgrading method and device, electronic equipment and storage medium - Google Patents

Software upgrading method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112130883A
CN112130883A CN202011069168.XA CN202011069168A CN112130883A CN 112130883 A CN112130883 A CN 112130883A CN 202011069168 A CN202011069168 A CN 202011069168A CN 112130883 A CN112130883 A CN 112130883A
Authority
CN
China
Prior art keywords
firmware
version number
equipment
software
matching file
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
CN202011069168.XA
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.)
Suzhou Zhendi Intelligent Technology Co Ltd
Original Assignee
Suzhou Zhendi Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Zhendi Intelligent Technology Co Ltd filed Critical Suzhou Zhendi Intelligent Technology Co Ltd
Priority to CN202011069168.XA priority Critical patent/CN112130883A/en
Publication of CN112130883A publication Critical patent/CN112130883A/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 provides a software upgrading method and device, electronic equipment and a computer readable storage medium, wherein the method comprises the following steps: responding to the equipment connection instruction, and establishing connection with the target equipment; searching a matching file corresponding to the equipment type identifier according to the equipment type identifier of the target equipment; the matching file comprises a firmware version number interval of firmware on the target equipment; judging whether the version number of the firmware on the target equipment is matched with the firmware version number interval or not; and if not, outputting the upgrading prompt information aiming at the firmware, and forbidding the target equipment. The matching file records various currently feasible firmware version numbers, so that the user terminal can directly judge whether the firmware of the target equipment needs to be upgraded according to the matching file, and the user is prompted to upgrade the firmware of the target equipment when the firmware version is too low. The whole process reduces the connection steps of the user terminal and simplifies the upgrading process.

Description

Software upgrading method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a software upgrading method and apparatus, an electronic device, and a computer-readable storage medium.
Background
A mobile phone Application (APP) that controls external hardware devices through network communication may need to be upgraded as product functions change and software iteration is complete. Accordingly, firmware on a hardware device may also need to be upgraded.
Generally, after connecting with a hardware device, a mobile phone application program may read a version number of a firmware on the hardware device and compare the version number with a version number of a latest firmware of the hardware device on a server. When the version number is lower than the version number on the server, the firmware package can be downloaded from the server, and the firmware of the hardware device is upgraded through the firmware package. However, the mobile phone is usually connected to the hardware device through the wireless lan turned on by the hardware device, and after the mobile phone is connected to the hardware device, the mobile phone cannot be connected to the server, and the version number of the firmware can be obtained from the server only after the mobile phone needs to be re-networked, which is cumbersome in upgrading process.
Disclosure of Invention
An object of the embodiments of the present application is to provide a software upgrading method and apparatus, an electronic device, and a computer-readable storage medium, which are used to simplify a software upgrading process and improve user experience.
In one aspect, the present application provides a software upgrading method applied to a user terminal, including:
responding to the equipment connection instruction, and establishing connection with the target equipment;
searching a matching file corresponding to the equipment type identifier according to the equipment type identifier of the target equipment; the matching file comprises a firmware version number interval of firmware on the target equipment;
judging whether the version number of the firmware on the target equipment is matched with the firmware version number interval or not;
and if not, outputting the upgrading prompt information aiming at the firmware, and forbidding the target equipment.
In an embodiment, before connecting with the target device, the method further comprises:
sending a matching file acquisition request to a server;
and acquiring a matching file which is returned by the server and at least corresponds to one equipment category identifier.
In an embodiment, the matching file includes a software version number range of an application program corresponding to firmware on the target device;
before the determining whether the version number of the firmware on the target device matches the firmware version number interval, the method further includes:
judging whether the version number of the local application program is matched with the software version number interval in the matching file or not;
and if not, outputting upgrading prompt information aiming at the application program, and forbidding the target equipment.
In an embodiment, the determining whether the version number of the local application program matches the software version number interval of the matching file includes:
judging whether the version number of the application program is the same as the highest software version number in the software version number interval or not;
if not, judging whether the version number of the application program is in the software version number interval or not;
and if the software version number interval is located, outputting upgrading prompt information aiming at the application program.
In an embodiment, the determining whether the version number of the firmware on the target device matches the firmware version number interval includes:
judging whether the version number of the firmware is the same as the highest firmware version number in the firmware version number interval or not;
if not, judging whether the version number of the firmware is in the firmware version number interval or not;
and if the firmware version number interval is located, outputting upgrading prompt information aiming at the firmware.
In an embodiment, the firmware of the target device comprises firmware on at least two modules;
the determining whether the version number of the firmware on the target device matches the firmware version number interval includes:
and judging whether the version number of the firmware is matched with a firmware version number interval corresponding to the module identifier in the matching file or not aiming at the firmware of each module.
In an embodiment, the matching file includes a software version number range of an application program corresponding to firmware on the target device;
prior to connecting with the target device, the method further comprises:
judging whether the version number of the local application program is the same as the highest software version number in the software version number interval or not;
and if not, outputting upgrading prompt information aiming at the application program.
On the other hand, the present application also provides a software upgrading apparatus, including:
the connection module is used for responding to the equipment connection instruction and establishing connection with the target equipment;
the searching module is used for searching a matching file corresponding to the equipment type identifier according to the equipment type identifier of the target equipment; the matching file comprises a firmware version number interval of firmware on the target equipment;
the judging module is used for judging whether the version number of the firmware on the target equipment is matched with the firmware version number interval or not;
and the prompting module is used for outputting upgrading prompting information aiming at the firmware and forbidding the target equipment if the firmware is not upgraded.
Further, the present application also provides an electronic device, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the software upgrade method described above.
In addition, the present application also provides a computer readable storage medium, which stores a computer program executable by a processor to perform the above software upgrading method.
In the scheme of the application, after the user terminal is connected with the target equipment, the matching file corresponding to the equipment type identifier can be searched, whether the firmware of the target equipment needs to be upgraded or not is determined according to the matching file, if yes, upgrade prompt information aiming at the firmware can be output, and the target equipment is forbidden; the matching file records various currently feasible firmware version numbers, so that the user terminal can directly judge whether the firmware of the target equipment needs to be upgraded after being connected with the target equipment, and the user is prompted to upgrade the firmware of the target equipment when the firmware version is too low. The whole process reduces the connection steps of the user terminal and simplifies the upgrading process.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required to be used in the embodiments of the present application will be briefly described below.
Fig. 1 is a schematic view of an application scenario of a software upgrading method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a software upgrading method according to an embodiment of the present application;
fig. 4 is a flowchart illustrating a method for comparing firmware version numbers according to an embodiment of the present application;
fig. 5 is a flowchart illustrating a method for comparing software version numbers according to an embodiment of the present application;
fig. 6 is a block diagram of a software upgrading apparatus according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
Like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Fig. 1 is a schematic view of an application scenario of a software upgrading method provided in an embodiment of the present application. As shown in fig. 1, the application scenario includes a target device 30, a user terminal 40, and a server 50, where the target device 30 is controlled by the user terminal 40 to perform firmware upgrade; the server 50 is used for sending the matching file to the user terminal 40; the user terminal 40 may be an intelligent device such as a smart phone, a tablet computer, or a personal host, and is configured to receive the matching file sent by the server 50, and determine whether the target device 30 needs to upgrade the firmware according to the matching file.
As shown in fig. 2, the present embodiment provides an electronic apparatus 1 including: at least one processor 11 and a memory 12, one processor 11 being exemplified in fig. 2. The processor 11 and the memory 12 are connected by a bus 10, and the memory 12 stores instructions executable by the processor 11, and the instructions are executed by the processor 11, so that the electronic device 1 can execute all or part of the flow of the method in the embodiments described below. In an embodiment, the electronic device 1 may be the user terminal 40 described above.
The Memory 12 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk or optical disk.
The present application also provides a computer readable storage medium storing a computer program executable by the processor 11 to perform the software upgrading method provided herein.
Referring to fig. 3, a flowchart of a software upgrading method provided for an embodiment of the present application is shown in fig. 3, and the method may include the following steps 310 to 340.
Step 310: and responding to the device connection instruction, and establishing connection with the target device.
The target device is a device which is controlled by the user terminal to upgrade firmware, and can be a device such as an unmanned aerial vehicle and an intelligent robot.
The user terminal may establish a connection with the target device in response to a device connection instruction generated by a user operation. The user terminal can be connected with the hardware equipment through the wireless local area network opened on the hardware equipment.
Step 320: searching a matching file corresponding to the equipment type identifier according to the equipment type identifier of the target equipment; the matching file comprises a firmware version number interval of the firmware on the target equipment.
The device class identification is used to distinguish between different classes/models of target devices. When two kinds of target equipment carry different firmware, the equipment type identifications of the two kinds of target equipment are different. If the models of the two target devices are different, but the same firmware is adopted due to similar functions, the device class identifications of the two target devices can be the same.
The firmware version number interval is used to indicate a plurality of firmware version numbers that are currently compatible with applications interfaced on the user terminal. Illustratively, the firmware version number interval contains firmware version numbers from 2.1 to 2.5, which indicates that the current application-compatible firmware version numbers on the user terminal include 2.1, 2.2, 2.3, 2.4 and 2.5. Here, the application program may be an application for controlling the target device and implementing firmware upgrade and use of the target device.
The user terminal may obtain the device class identifier from the target device after connecting the target device. For example, a first designated location in the memory of the target device is used to record the device class identifier, and the user terminal may read the device class identifier from the first designated location. The user terminal may locally find a matching file corresponding to the device class identification. The user terminal can store the matching files corresponding to the plurality of equipment category identifications in advance locally, so that the corresponding matching files can be searched according to the equipment category identifications.
Step 330: and judging whether the version number of the firmware on the target equipment is matched with the firmware version number interval.
Step 340: if not, the upgrading prompt information aiming at the firmware is output, and the target equipment is forbidden.
The user terminal may obtain a version number of the firmware from the target device. For example, a second designated location in the memory of the target device is used to record the current version number of the firmware, and the user terminal may read the version number of the firmware from the second designated location. The user terminal may determine whether the version number matches the firmware version number range in the matching file, in other words, whether the version number is any firmware version number within the firmware version number range.
When the version number of the firmware on the target device is not matched with the firmware version number interval, it is indicated that the version number of the firmware on the target device is lower than the lowest version supported by the application program on the user terminal, and in this case, the user terminal may output upgrade prompt information for the firmware and disable the target device. The upgrade prompt information can be any one of a plurality of expression forms such as voice, characters, animation and the like. The upgrade prompt message may indicate that the version number of the firmware on the current target device is lower than the lowest version compatible with the application program, and that the user must upgrade the firmware, and that the user no longer responds to the control command of the user to the target device through the user terminal before upgrading the firmware.
After the upgrade prompt information is output, the user terminal may respond to a server connection instruction, a firmware package download instruction, an equipment connection instruction, and a firmware upgrade instruction generated by a user operation, download a highest version firmware package corresponding to the equipment category identifier of the target equipment after connecting with the server, and transmit the firmware package to the target equipment after connecting with the target equipment, so as to control the target equipment to complete firmware upgrade.
By the measures, the user terminal can directly judge whether the firmware of the target equipment needs to be upgraded after being connected with the target equipment, so that the user is prompted to upgrade the firmware of the target equipment when the firmware version is too low. The whole process reduces the connection steps of the user terminal and simplifies the upgrading process.
In an embodiment, before connecting with the target device, the user terminal may send a matching file acquisition request to the server in the case of connecting with the server. The matching file acquisition request can carry a plurality of equipment category identifiers; the device class identifier in the matching file acquisition request may be a device class identifier of a target device to which the user terminal has been connected previously, or may be a device class identifier determined in response to a user operation (input or selection). Illustratively, target devices owned by the user include underwater drones and flying drones. Since the user terminal is connected with the two target devices, the matching file acquisition request sent by the user terminal comprises the device type identifications of the underwater unmanned aerial vehicle and the flying unmanned aerial vehicle.
After receiving the matching file acquisition request, the server analyzes a plurality of equipment category identifications from the matching file acquisition request and returns a matching file corresponding to each equipment category identification to the user terminal. The user terminal can obtain and store the matching file and the association relationship between the matching file and the equipment category identification.
By the measures, the user terminal can judge whether the firmware on the target equipment needs to be upgraded or not according to the stored matching file after the target equipment is connected subsequently.
The user terminal may more specifically compare the version number of the firmware with the version number within the firmware version number interval when performing step 330. Referring to fig. 4, a flowchart of a comparison method of firmware version numbers provided for an embodiment of the present application is shown in fig. 4, where the method may include the following steps 331 to 333.
Step 331: and judging whether the version number of the firmware is the same as the highest firmware version number in the firmware version number interval.
The user terminal can judge whether the version number of the firmware on the target device is the same as the highest firmware version number in the firmware version number interval. On the one hand, if the firmware is the same, the firmware on the target device is the latest firmware, and the upgrading is not needed. On the other hand, if not the same, the user terminal may proceed to step 332 to determine whether the firmware must be upgraded.
Step 332: if not, judging whether the version number of the firmware is in the firmware version number interval.
Step 333: and if the firmware version number interval is located, outputting upgrading prompt information aiming at the firmware.
When the version number of the firmware on the target device is not the highest firmware version number in the firmware version number interval, the user terminal may determine whether the version number of the firmware is in the firmware version number interval, in other words, whether any version number in the firmware version number interval is the same as the version number of the firmware on the target device.
On the one hand, the absence indicates that the version number of the firmware on the target device is lower than the lowest version supported by the application program on the user terminal. In this case, the user terminal may perform step 340.
On the other hand, if the firmware exists, the firmware on the target device is compatible with the application program on the user terminal although the version is lower. In this case, the user terminal may output upgrade prompt information for the firmware, which may indicate that the version number of the firmware on the target device is lower, suggesting the user upgrade. After the upgrade prompt message is output, the firmware on the target device may or may not be upgraded, but the use of the target device is not affected.
By the measures, the user terminal can prompt the user to upgrade under the condition that the version number of the firmware on the target equipment is lower, and the upgrading of the firmware is optional operation. Because one version of application program can be compatible with a plurality of versions of firmware, unnecessary upgrading can be avoided by the measure, and the use experience of a user is improved.
In an embodiment, each of the plurality of modules on the target device has a corresponding firmware, and for example, the target device has corresponding firmware for a flight control module, a camera module and a charging module of the flying drone, and the flying drone has three types of firmware. If a plurality of modules on a target device have corresponding firmware, the matching file corresponding to the device class identifier of the target device contains the firmware version number interval of each module. In the matching file, the mapping relationship between the firmware version number interval of each module and the template identifier may be recorded. The module identifier is used to distinguish each module, and may be identification information such as a module name and a serial number.
In this case, the user terminal may determine whether the firmware of each module needs to be upgraded separately. When the user terminal executes step 330, it may be determined, for the firmware of each module, whether the version number of the firmware matches the firmware version number interval corresponding to the module identifier in the matching file. The user terminal may acquire the module identification of each module and the version number of the firmware from the target device. Illustratively, the third designated location in the memory of the target device is used to record the module identifier of each module and the version number of the firmware corresponding to each module identifier. The user terminal may read the module identifier and the version number of the firmware from the third designated location, so as to determine, for each module, whether the version number of the firmware on the module matches the firmware version number interval corresponding to the module identifier in the matching file.
When the version number of the firmware on any module of the target device is not matched with the firmware version number interval, it indicates that the version number of the firmware is lower than the lowest version supported by the application program on the user terminal, and in this case, the user terminal may output upgrade prompt information for the firmware and disable the target device.
By the measures, after the user terminal is connected with the target equipment, whether the firmware of each module of the target equipment needs to be upgraded can be judged respectively, so that the user is reminded to upgrade the firmware when the firmware version of any module is too low. The whole process reduces the connection steps of the user terminal and simplifies the upgrading process.
Correspondingly, the user terminal can more specifically compare the version number of the firmware of each module with the version number in the firmware version number interval, and through the method from the step 331 to the step 333, the user is prompted to upgrade under the condition that the firmware version number of any module is lower, but the target equipment is not forbidden, so that unnecessary upgrade is avoided, and the use experience of the user is improved.
In one embodiment, the matching file includes an interval of software version numbers of applications corresponding to firmware on the target device. The software version number interval is used to indicate a plurality of software version numbers of applications that are currently compatible with the latest several versions of firmware (firmware indicated by the firmware version number interval). After connecting to the target device, the user terminal may first determine whether the local application needs to be upgraded before performing step 330.
The user terminal may determine whether the version number of the local application matches the software version number range in the matching file, in other words, whether the version number is any software version number within the software version number range.
When the version number of the application program is not matched with the software version number interval, the version of the application program on the user terminal is too low, in this case, the user terminal can output the upgrade prompt information aiming at the application program, and the target device is forbidden. The upgrade prompt message may indicate that the version of the application program on the current user terminal is too low to require the user to upgrade, and indicate that the user no longer responds to the control instruction of the user to the target device through the user terminal before the application program is upgraded.
After the upgrade prompt information is output, the user terminal may respond to a server connection instruction, an application package download instruction, and an application upgrade instruction generated by a user operation, download the application package of the highest version after connecting with the server, and complete application upgrade.
By the measures, after the user terminal is connected with the target equipment, whether the application program is updated according to the firmware on the current adaptive target equipment can be judged. Therefore, the upgrading can be completed when the version of the application program is too low, and the user experience is improved.
In an embodiment, when the user terminal determines whether the version number of the local application program is matched with the software version number interval of the matched scarf, the version number of the application program can be more specifically compared with the software version number interval. Referring to fig. 5, a flowchart of a method for comparing software version numbers according to an embodiment of the present application is shown in fig. 5, where the method may include the following steps 410 to 430.
Step 410: and judging whether the version number of the application program is the same as the highest software version number in the software version number interval.
The user terminal can judge whether the version number of the local application program is the same as the highest software version number in the software version number interval. On the one hand, if the same, the application program on the target device is the latest version and does not need to be upgraded. On the other hand, if not the same, the user terminal may proceed to step 420 to determine whether the application program must be upgraded.
Step 420: and if not, judging whether the version number of the application program is in the software version number interval.
Step 430: and if the software version number interval is located, outputting upgrading prompt information aiming at the application program.
When the version number of the application program on the user terminal is not the highest software version number in the software version number interval, the user terminal may determine whether the version number of the application program is in the software version number interval, in other words, whether any version number in the software version number interval is the same as the version number of the application program on the user terminal.
On one hand, the absence indicates that the version of the application program on the user terminal is too low, and in this case, the user terminal determines that the version number of the application program is not matched with the software version number interval, and may output upgrade prompt information for the application program and disable the target device.
On the other hand, if the firmware version exists, the application program on the user terminal is compatible with a few latest versions of firmware of the target equipment although the version is lower. In this case, the user terminal may output upgrade prompt information for the application program, where the upgrade prompt information may indicate that the version number of the application program on the user terminal is lower, and suggest the user to upgrade. After the upgrade prompt message is output, the application program on the user terminal may or may not be upgraded, but the use of the target device is not affected.
By the measures, the user terminal can prompt the user to upgrade under the condition that the version number of the local application program is lower, and the upgrade is optional operation at the moment. Because the software version number interval comprises a plurality of software version numbers, unnecessary upgrading can be avoided by the measures, and the use experience of a user is improved.
In one embodiment, the user terminal can complete the upgrading of the application program before connecting with the target device, thereby avoiding the problem of determining to upgrade after connection and then re-networking.
The user terminal may determine whether the version number of the local application is the same as the highest software version number in the software version number interval. The user terminal may pre-store matching files corresponding to the plurality of device class identifiers, and at this time, the user terminal may determine a highest software version number from among software version number intervals of the plurality of matching files.
On the one hand, if the same, the local application program is the latest version, and the upgrading is not needed. On the other hand, if not the same, the user terminal may output upgrade prompt information for the application program. The upgrade prompt message may indicate that the current application is not the latest version, suggesting the user for an upgrade.
By the measures, the user terminal can upgrade the application program to the highest version before connecting the target device, so that the subsequent upgrading process is simplified.
Referring to fig. 6, a block diagram of a software upgrading apparatus provided in an embodiment of the present application is shown in fig. 6, where the apparatus may include: a connection module 610, a search module 620, a judgment module 630 and a prompt module 640.
A connection module 610, configured to establish a connection with a target device in response to a device connection instruction;
a searching module 620, configured to search, according to the device class identifier of the target device, a matching file corresponding to the device class identifier; the matching file comprises a firmware version number interval of firmware on the target equipment;
a determining module 630, configured to determine whether a version number of the firmware on the target device matches the firmware version number interval;
and the prompting module 640 is configured to output upgrade prompting information for the firmware and disable the target device if the firmware is not upgraded.
The implementation process of the functions and actions of each module in the above device is specifically described in the implementation process of the corresponding step in the above software upgrading method, and is not described herein again.
In the embodiments provided in the present application, the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.

Claims (10)

1. A software upgrading method is applied to a user terminal and comprises the following steps:
responding to the equipment connection instruction, and establishing connection with the target equipment;
searching a matching file corresponding to the equipment type identifier according to the equipment type identifier of the target equipment; the matching file comprises a firmware version number interval of firmware on the target equipment;
judging whether the version number of the firmware on the target equipment is matched with the firmware version number interval or not;
and if not, outputting the upgrading prompt information aiming at the firmware, and forbidding the target equipment.
2. The method of claim 1, wherein prior to connecting with the target device, the method further comprises:
sending a matching file acquisition request to a server;
and acquiring a matching file which is returned by the server and at least corresponds to one equipment category identifier.
3. The method of claim 1, wherein the matching file comprises an interval of software version numbers of applications corresponding to firmware on the target device;
before the determining whether the version number of the firmware on the target device matches the firmware version number interval, the method further includes:
judging whether the version number of the local application program is matched with the software version number interval in the matching file or not;
and if not, outputting upgrading prompt information aiming at the application program, and forbidding the target equipment.
4. The method of claim 3, wherein determining whether the version number of the local application matches the software version number range of the matching file comprises:
judging whether the version number of the application program is the same as the highest software version number in the software version number interval or not;
if not, judging whether the version number of the application program is in the software version number interval or not;
and if the software version number interval is located, outputting upgrading prompt information aiming at the application program.
5. The method of claim 1, wherein determining whether the version number of the firmware on the target device matches the firmware version number range comprises:
judging whether the version number of the firmware is the same as the highest firmware version number in the firmware version number interval or not;
if not, judging whether the version number of the firmware is in the firmware version number interval or not;
and if the firmware version number interval is located, outputting upgrading prompt information aiming at the firmware.
6. The method of claim 1, wherein the firmware of the target device comprises firmware on at least two modules;
the determining whether the version number of the firmware on the target device matches the firmware version number interval includes:
and judging whether the version number of the firmware is matched with a firmware version number interval corresponding to the module identifier in the matching file or not aiming at the firmware of each module.
7. The method of claim 1, wherein the matching file comprises an interval of software version numbers of applications corresponding to firmware on the target device;
prior to connecting with the target device, the method further comprises:
judging whether the version number of the local application program is the same as the highest software version number in the software version number interval or not;
and if not, outputting upgrading prompt information aiming at the application program.
8. A software upgrading apparatus, comprising:
the connection module is used for responding to the equipment connection instruction and establishing connection with the target equipment;
the searching module is used for searching a matching file corresponding to the equipment type identifier according to the equipment type identifier of the target equipment; the matching file comprises a firmware version number interval of firmware on the target equipment;
the judging module is used for judging whether the version number of the firmware on the target equipment is matched with the firmware version number interval or not;
and the prompting module is used for outputting upgrading prompting information aiming at the firmware and forbidding the target equipment if the firmware is not upgraded.
9. An electronic device, characterized in that the electronic device comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the software upgrade method of any one of claims 1-7.
10. A computer-readable storage medium, characterized in that the storage medium stores a computer program executable by a processor to perform the software upgrade method of any one of claims 1-7.
CN202011069168.XA 2020-09-30 2020-09-30 Software upgrading method and device, electronic equipment and storage medium Pending CN112130883A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011069168.XA CN112130883A (en) 2020-09-30 2020-09-30 Software upgrading method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011069168.XA CN112130883A (en) 2020-09-30 2020-09-30 Software upgrading method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112130883A true CN112130883A (en) 2020-12-25

Family

ID=73843787

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011069168.XA Pending CN112130883A (en) 2020-09-30 2020-09-30 Software upgrading method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112130883A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113326053A (en) * 2021-06-18 2021-08-31 上海钛米机器人股份有限公司 Robot management system and method
WO2023020070A1 (en) * 2021-08-16 2023-02-23 青岛海尔科技有限公司 Method for determining upgrade package and server

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113326053A (en) * 2021-06-18 2021-08-31 上海钛米机器人股份有限公司 Robot management system and method
WO2023020070A1 (en) * 2021-08-16 2023-02-23 青岛海尔科技有限公司 Method for determining upgrade package and server

Similar Documents

Publication Publication Date Title
US11061658B2 (en) Prioritized upgrade of vehicles
CN102129375B (en) Method and equipment for system upgrade of mobile terminal
CN110535954B (en) Door lock firmware upgrading method, upgrading system, intelligent gateway and storage medium
CN110727454A (en) Updating method and device of intelligent equipment, electronic equipment and storage medium
CN107454657B (en) Voice network distribution method
CN113938535B (en) Internet of things equipment access method and device based on multi-protocol adaptation
CN112130883A (en) Software upgrading method and device, electronic equipment and storage medium
CN110162442B (en) System performance bottleneck positioning method and system
US10165611B2 (en) Bluetooth pairing system and operating method thereof
CN113498594A (en) Control method and device of intelligent household system, electronic equipment and storage medium
WO2019080476A1 (en) Method for launching application and first terminal
US20170118625A1 (en) Method and Device for Controlling Subscriber Identity Module Card of Mobile Terminal
US20160378553A1 (en) Resource Management Method and Device for Terminal System
CN112788576B (en) Equipment offline processing method and system, storage medium and electronic device
CN102088694B (en) Mobile terminal and method for downloading subscriber identity module (SIM) application
CN111625264B (en) Method, device, equipment and medium for upgrading multi-level management system
CN108170456A (en) The firmware upgrade method and device of electronic equipment
US11368871B2 (en) System and method for generating groups of filtering rules
CN104468671A (en) Configuration information processing method, device and relevant device
KR102540932B1 (en) Apparatus for providing update of vehicle and computer-readable storage medium
KR102064519B1 (en) Method for updating software of electronic control unit of vehicle, apparatus and system thereof
CN111338703A (en) Processing method and device for application in terminal, storage medium and electronic device
KR101966232B1 (en) Method for programing of vehicle electrical controll unit and controll apparatus
CN111736858A (en) Terminal equipment upgrading method, storage medium and terminal equipment
CN104507073A (en) Method and system for downloading application

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