CN111638896B - Upgrade method, upgrade device, storage medium, processor and mobile terminal - Google Patents

Upgrade method, upgrade device, storage medium, processor and mobile terminal Download PDF

Info

Publication number
CN111638896B
CN111638896B CN202010478462.XA CN202010478462A CN111638896B CN 111638896 B CN111638896 B CN 111638896B CN 202010478462 A CN202010478462 A CN 202010478462A CN 111638896 B CN111638896 B CN 111638896B
Authority
CN
China
Prior art keywords
upgraded
equipment
upgrade
software version
version number
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010478462.XA
Other languages
Chinese (zh)
Other versions
CN111638896A (en
Inventor
苏剑锋
范志刚
卢涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Wanxiang Electronics Technology Co Ltd
Original Assignee
Xian Wanxiang Electronics 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 Xian Wanxiang Electronics Technology Co Ltd filed Critical Xian Wanxiang Electronics Technology Co Ltd
Priority to CN202010478462.XA priority Critical patent/CN111638896B/en
Publication of CN111638896A publication Critical patent/CN111638896A/en
Application granted granted Critical
Publication of CN111638896B publication Critical patent/CN111638896B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application provides an upgrading method, an upgrading device, a storage medium, a processor and a mobile terminal, wherein the upgrading method comprises the following steps: acquiring an identification code of equipment to be upgraded, wherein the identification code is an information code which is unique to identify the equipment to be upgraded, and the equipment to be upgraded is equipment to be upgraded; determining whether the equipment to be upgraded needs to be upgraded; and under the condition that the equipment to be upgraded needs to be upgraded, sending a preset data packet to the equipment to be upgraded corresponding to the identification code in a wireless communication mode, wherein the preset data packet is used for upgrading the software of the equipment to a preset software version number. In the method, a preset data packet is transmitted to the equipment to be upgraded in a wireless communication mode, and a wire is not required to be connected with the equipment to be upgraded to upgrade the equipment to be upgraded.

Description

Upgrade method, upgrade device, storage medium, processor and mobile terminal
Technical Field
The present application relates to the field of software upgrade, and in particular, to an upgrade method, an upgrade apparatus, a storage medium, a processor, and a mobile terminal.
Background
Today, the rapid development of technology, the frequent upgrade and update of the software functions of electronic intelligent devices are required to meet the most common demands of customers. The image transmission device is also an electronic intelligent device which is widely used. The image transmission equipment comprises an acquisition end and a receiving end, wherein the acquisition end acquires image data from the image source equipment, the acquired image data is sent to the receiving end through encoding, the receiving end decodes the received image data, and a restored image obtained after decoding is displayed on a display connected with the receiving end.
The current upgrading mode of the image transmission device is to connect the computer and the image transmission device through a connecting line mode of converting an RJ45 interface into a USB data interface, then download a new upgrading data packet through the computer, and send the upgrading data packet which is downloaded successfully to the image transmission device through the connecting line so as to realize the software upgrading of the image transmission device.
However, the upgrade mode has low efficiency, and only one image transmission device can be upgraded in one upgrade operation, which is time-consuming and labor-consuming.
The above information disclosed in the background section is only for enhancement of understanding of the background art from the technology described herein and, therefore, may contain some information that does not form the prior art that is already known in the country to a person of ordinary skill in the art.
Disclosure of Invention
The application mainly aims to provide an upgrading method, an upgrading device, a storage medium, a processor and a mobile terminal, so as to solve the problem that in the prior art, image transmission equipment and the like need to be connected with the mobile terminal equipment to upgrade software of the image transmission equipment and the like.
According to an aspect of an embodiment of the present invention, there is provided an upgrade method, including: acquiring an identification code of equipment to be upgraded, wherein the identification code is an information code which is uniquely used for identifying the equipment to be upgraded, and the equipment to be upgraded is equipment to be upgraded; determining whether the equipment to be upgraded needs to be upgraded; and under the condition that the equipment to be upgraded needs to be upgraded, sending a preset data packet to the equipment to be upgraded corresponding to the identification code in a wireless communication mode, wherein the preset data packet is used for upgrading the software of the equipment to a preset software version number.
Optionally, acquiring the identification code of the device to be upgraded includes: accessing an upgrade management system; searching the equipment to be upgraded in the upgrade management system; and determining the identification code of the equipment to be upgraded.
Optionally, determining whether the device to be upgraded needs to be upgraded includes: acquiring the current software version number of the equipment to be upgraded in the wireless communication mode; determining whether the current software version number and the predetermined software version number are consistent; if the current software version number is inconsistent with the preset software version number, sending out inquiry information for determining whether to upgrade; under the condition that reply information for determining upgrading is received, determining that the equipment to be upgraded needs to be upgraded; and under the condition that the current software version number is consistent with the preset software version number, determining that the equipment to be upgraded does not need to be upgraded.
Optionally, in the case that it is determined that the device to be upgraded does not need to be upgraded, the method further includes: and displaying prompt information without upgrading on a display interface.
Optionally, under the condition that the device to be upgraded needs to be upgraded, and before sending a predetermined data packet to the device corresponding to the identification code, the method further includes: an upgrade preparation instruction is sent to the equipment to be upgraded, the upgrade preparation instruction is used for controlling the equipment to be upgraded to enter a preparation upgrade mode, and when the equipment to be upgraded is in the preparation upgrade mode, a read-write interface of a processor of the equipment to be upgraded is in an open state; and adding the information of the equipment to be upgraded into an upgrade list, wherein the information comprises a name, the identification code and the preset software version number.
Optionally, after adding the information of the device to be upgraded to an upgrade list, before sending a predetermined data packet to the device corresponding to the identification code, the method further includes: and downloading the preset data packets corresponding to the preset software version numbers according to the information of the plurality of devices to be upgraded in the upgrading list.
Optionally, after sending a predetermined data packet to the device corresponding to the identification code, the method further includes: acquiring notification information of the equipment to be upgraded for finishing upgrading; displaying prompt information of finishing upgrading on a display interface; and deleting the information of the equipment to be upgraded, which is already upgraded, from the upgrade list.
Optionally, the device to be upgraded is a graphic device.
According to another aspect of the embodiment of the present invention, there is also provided an upgrade method, including: the mobile terminal acquires an identification code of equipment to be upgraded, wherein the identification code is an information code which is uniquely used for identifying the equipment to be upgraded, and the equipment to be upgraded is equipment to be upgraded; the mobile terminal determines whether the equipment to be upgraded needs to be upgraded or not; the mobile terminal sends a preset data packet to the equipment to be upgraded corresponding to the identification code in a wireless communication mode under the condition that the equipment to be upgraded is determined to be upgraded; and the equipment to be upgraded receives the preset data packet and upgrades the version number of the software to a preset software version number based on the preset data packet.
According to another aspect of the embodiment of the present invention, there is also provided an upgrade apparatus, including: the first acquisition unit is used for acquiring an identification code of equipment to be upgraded, wherein the identification code is an information code which is unique and used for identifying the equipment to be upgraded, and the equipment to be upgraded is equipment to be upgraded; a determining unit, configured to determine whether the device to be upgraded needs to be upgraded; the first sending unit is used for sending a preset data packet to the equipment to be upgraded corresponding to the identification code in a wireless communication mode under the condition that the equipment to be upgraded needs to be upgraded, wherein the preset data packet is used for upgrading the software of the equipment to a preset software version number.
According to another aspect of the embodiment of the present invention, there is also provided a storage medium including a stored program, wherein the program executes any one of the upgrade methods.
According to another aspect of the embodiment of the present invention, there is further provided the processor, configured to run a program, where any one of the upgrade methods is executed when the program runs.
According to another aspect of the embodiment of the present invention, there is also provided a mobile terminal including: the system comprises one or more processors, a memory, a display device, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for performing any one of the upgrade methods.
In the embodiment of the present invention, in the above-mentioned upgrading method, when it is determined that the device to be upgraded needs to be upgraded, a predetermined data packet is sent to the device to be upgraded corresponding to the identification code by means of wireless communication, where the predetermined data packet is used to upgrade software of the device to a predetermined software version number. In the method, a preset data packet is transmitted to the equipment to be upgraded in a wireless communication mode, and a wire is not required to be connected with the equipment to be upgraded to upgrade the equipment to be upgraded.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application. In the drawings:
FIG. 1 shows a flow diagram of one embodiment of an upgrade method according to the present application;
FIG. 2 shows another flow diagram of an embodiment of an upgrade method according to the present application; and
Fig. 3 shows a block diagram of an embodiment of an upgrade apparatus according to the present application.
Detailed Description
It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other. The application will be described in detail below with reference to the drawings in connection with embodiments.
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe the embodiments of the application 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.
It will be understood that when an element such as a layer, film, region, or substrate is referred to as being "on" another element, it can be directly on the other element or intervening elements may also be present. Furthermore, in the description and in the claims, when an element is described as being "connected" to another element, the element may be "directly connected" to the other element or "connected" to the other element through a third element.
As described in the background art, in order to solve the problem that devices such as a graphics device in the prior art need to be connected to a mobile terminal device to perform software upgrade on the graphics device, in an exemplary embodiment of the present application, an upgrade method, an upgrade apparatus, a storage medium, a processor, and a mobile terminal are provided.
According to an embodiment of the application, an upgrade method is provided. Fig. 1 is a flow chart of an upgrade method according to an embodiment of the present application. As shown in fig. 1, the method comprises the steps of:
Step S101, an identification code of equipment to be upgraded is obtained, wherein the identification code is an information code which is uniquely used for identifying the equipment to be upgraded, and the equipment to be upgraded is equipment to be upgraded;
Step S102, determining whether the equipment to be upgraded needs to be upgraded;
Step S103, when it is determined that the equipment to be upgraded needs to be upgraded, a predetermined data packet is sent to the equipment to be upgraded corresponding to the identification code in a wireless communication mode, where the predetermined data packet is used to upgrade software of the equipment to a predetermined software version number.
In the above-mentioned upgrading method, when it is determined that the device to be upgraded needs to be upgraded, a predetermined data packet is sent to the device to be upgraded corresponding to the identification code in a wireless communication manner, where the predetermined data packet is used to upgrade software of the device to a predetermined software version number. In the method, a preset data packet is transmitted to the equipment to be upgraded in a wireless communication mode, and a wire is not required to be connected with the equipment to be upgraded to upgrade the equipment to be upgraded.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is illustrated in the flowcharts, in some cases the steps illustrated or described may be performed in an order other than that illustrated herein.
In an actual application process, the method for obtaining the identification code of the device to be upgraded may be any feasible method, and in an embodiment of the present application, obtaining the identification code of the device to be upgraded includes: accessing the upgrade management system, namely accessing the IP address of the upgrade management system, and logging in the upgrade management system; searching the equipment to be upgraded in the upgrade management system; and determining the identification code of the equipment to be upgraded.
In a specific embodiment, the upgrade management system may be accessed periodically to obtain the identification code of the device to be upgraded.
Of course, the method of acquiring the identification code of the device to be upgraded is not limited to the above-mentioned method of accessing the upgrade management system, and the identification code of the device to be upgraded input by the user may be received.
In order to further avoid transmitting a predetermined data packet to a device to be upgraded that does not need to be upgraded, in an embodiment of the present application, determining whether the device to be upgraded needs to be upgraded includes: acquiring the current software version number of the equipment to be upgraded in the wireless communication mode; determining whether the current software version number is consistent with the predetermined software version number; if the current software version number is inconsistent with the preset software version number, sending out inquiry information for determining whether to upgrade; under the condition that reply information for determining upgrading is received, determining that the equipment to be upgraded needs to be upgraded; and under the condition that the current software version number is consistent with the preset software version number, determining that the equipment to be upgraded does not need to be upgraded.
The above-mentioned inquiry information may be voice inquiry information or text inquiry information, for example, inquiry information "whether to upgrade to (predetermined software version number)" may be popped up on the display interface.
In another embodiment of the present application, in a case where it is determined that the device to be upgraded does not need to be upgraded, the method further includes: and displaying prompt information without upgrading on a display interface. The prompt information can be the prompt information of the latest version, or can be other prompt information which can be characterized without upgrading.
In order to further improve the upgrade efficiency, in still another embodiment of the present application, in a case where it is determined that the device to be upgraded needs to be upgraded, and before sending a predetermined data packet to the device corresponding to the identification code, the method further includes: transmitting an upgrade preparation instruction to the equipment to be upgraded, wherein the upgrade preparation instruction is used for controlling the equipment to be upgraded to enter a preparation upgrade mode, and when the equipment to be upgraded is in the preparation upgrade mode, a read-write interface of a processor of the equipment to be upgraded is in an open state; and adding the information of the equipment to be upgraded into an upgrade list, wherein the information comprises a name, the identification code and the preset software version number.
It should be noted that, when the device to be upgraded is in the standby upgrade mode, the read-write interface of the processor is not limited to be in an on state, and the indicator light of the host may also be changed, for example, the indicator light is blue and blinks.
In still another embodiment of the present application, after adding the information of the device to be upgraded to an upgrade list, before sending a predetermined data packet to the device corresponding to the identification code, the method further includes: and downloading the preset data packets corresponding to the preset software version numbers according to the information of the plurality of devices to be upgraded in the upgrading list. Therefore, before upgrading, the preset data packets corresponding to the plurality of equipment to be upgraded are downloaded, and the plurality of equipment to be upgraded can be upgraded in the same time period later, so that the problem that only one equipment to be upgraded can be upgraded at a time in the prior art is solved.
In order to make the user aware of the upgrade condition of the device to be upgraded, in one embodiment of the present application, after sending a predetermined data packet to the device corresponding to the identification code, the method further includes: acquiring notification information of the equipment to be upgraded for finishing upgrading; displaying prompt information of finishing upgrading on a display interface; and deleting the information of the equipment to be upgraded, which is already upgraded, from the upgrade list. For example, a prompt for "upgrade complete" is popped up.
Specifically, the notification information that the device to be upgraded completes the upgrade may be obtained according to a display condition of an indicator light of the device to be upgraded, for example, a host light flashing light of the device to be upgraded represents that the image transmission device is in a standby upgrade mode, a host light flashing light represents that the image transmission device is in a software upgrade process, and a host light normally lights to represent that the software upgrade of the device to be upgraded is completed.
It should be noted that, after receiving the predetermined data packet, the device to be upgraded deletes the original old software version, and upgrades the software version based on the new software version data packet.
The device to be upgraded according to the present application may be any feasible device in the prior art, and in a specific embodiment of the present application, the device to be upgraded is an image-text device.
It should be noted that, the identification code of the device to be upgraded in the present application may be an IP address and/or a mac address, and of course, the information code of the device to be upgraded may also be identified for other displacement.
It should be further noted that, before sending the predetermined data packet to the device to be upgraded corresponding to the identification code by means of wireless communication, a wireless connection needs to be established with the device to be upgraded, and specifically, the transmission of the predetermined data packet may be performed through a Mircast wireless protocol later.
According to an embodiment of the application, an upgrade method is provided. Fig. 2 is a flow chart of an upgrade method according to an embodiment of the present application. As shown in fig. 2, the method comprises the steps of:
Step S201, a mobile terminal acquires an identification code of equipment to be upgraded, wherein the identification code is an information code which is unique and used for identifying the equipment to be upgraded, and the equipment to be upgraded is equipment to be upgraded;
Step S202, the mobile terminal determines whether the equipment to be upgraded needs to be upgraded;
Step S203, when the mobile terminal determines that the device to be upgraded needs to be upgraded, the mobile terminal sends a predetermined data packet to the device to be upgraded corresponding to the identification code in a wireless communication manner;
In step S204, the device to be upgraded receives the predetermined data packet, and upgrades the version number of the software to a predetermined software version number based on the predetermined data packet.
In the above-mentioned upgrading method, when the mobile terminal determines that the equipment to be upgraded needs to be upgraded, a predetermined data packet is sent to the equipment to be upgraded corresponding to the identification code in a wireless communication mode, and the equipment to be upgraded receives the predetermined data packet and upgrades the version number of the software to a predetermined software version number based on the predetermined data packet. In the method, the mobile terminal transmits a preset data packet to the equipment to be upgraded in a wireless communication mode, and the mobile terminal is not required to be connected with the equipment to be upgraded to upgrade the equipment to be upgraded.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is illustrated in the flowcharts, in some cases the steps illustrated or described may be performed in an order other than that illustrated herein.
In an actual application process, the manner of acquiring the identifier of the device to be upgraded may be any feasible manner, and in an embodiment of the present application, the mobile terminal acquires the identifier of the device to be upgraded, including: the mobile terminal accesses an upgrade management system; the mobile terminal searches the equipment to be upgraded in the upgrade management system; the mobile terminal determines the identification code of the equipment to be upgraded.
In a specific embodiment, the mobile terminal may periodically access the upgrade management system, thereby obtaining the identification code of the device to be upgraded.
Of course, the method of acquiring the identification code of the device to be upgraded is not limited to the above-mentioned method of accessing the upgrade management system, and the identification code of the device to be upgraded input by the user may be received.
In order to further avoid transmitting a predetermined data packet to a device to be upgraded that does not need to be upgraded, in an embodiment of the present application, the determining, by the mobile terminal, whether the device to be upgraded needs to be upgraded includes: the mobile terminal sends a request message for acquiring the current software version number to the equipment to be upgraded in the wireless communication mode; after the equipment to be upgraded receives the request message, the current software version number is sent to the mobile terminal; the mobile terminal determines whether the received current software version number is consistent with the preset software version number; under the condition that the current software version number is inconsistent with the preset software version number, the mobile terminal sends out inquiry information for determining whether to upgrade; under the condition that the mobile terminal receives the reply information for determining the upgrade, the equipment to be upgraded is determined to be upgraded; and under the condition that the current software version number is consistent with the preset software version number, the mobile terminal determines that the equipment to be upgraded does not need to be upgraded.
The above-mentioned inquiry information may be voice inquiry information or text inquiry information, for example, inquiry information "whether to upgrade to (predetermined software version number)" may be popped up on the display interface.
In another embodiment of the present application, in a case where the mobile terminal determines that the device to be upgraded does not need to be upgraded, the method further includes: the mobile terminal displays prompt information without upgrading on a display interface. The prompt information can be the prompt information of the latest version, or can be other prompt information which can be characterized without upgrading.
In order to further improve the upgrade efficiency, in still another embodiment of the present application, in a case where the mobile terminal determines that the device to be upgraded needs to be upgraded, and before sending a predetermined data packet to the device corresponding to the identification code, the method further includes: the mobile terminal sends an upgrade preparation instruction to the equipment to be upgraded; the equipment to be upgraded receives the upgrade preparation instruction, and enters a preparation upgrade mode based on the upgrade preparation instruction, and when the equipment to be upgraded is in the preparation upgrade mode, a read-write interface of a processor of the equipment to be upgraded is in an open state; the terminal device adds the information of the device to be upgraded to an upgrade list, wherein the information comprises a name, the identification code and the preset software version number.
It should be noted that, when the device to be upgraded is in the standby upgrade mode, the read-write interface of the processor is not limited to be in an on state, and the indicator light of the host may also be changed, for example, the indicator light is blue and blinks.
In still another embodiment of the present application, after the terminal device adds the information of the device to be upgraded to an upgrade list, before the terminal device sends a predetermined data packet to the device corresponding to the identification code, the method further includes: and the terminal equipment downloads the preset data packets corresponding to the preset software version numbers according to the information of the plurality of equipment to be upgraded in the upgrading list. In the scheme, before the equipment to be upgraded is upgraded, the mobile terminal downloads preset data packets corresponding to a plurality of pieces of equipment to be upgraded, the preset data packets can be sent to the corresponding pieces of equipment to be upgraded in the same time period, and after each piece of equipment to be upgraded receives the preset data packets, the plurality of pieces of equipment to be upgraded are upgraded.
In order to make the user aware of the upgrade condition of the device to be upgraded, in one embodiment of the present application, after the device to be upgraded upgrades the version number of the software to a predetermined software version number based on the predetermined data packet, the method further includes: the equipment to be upgraded sends notification information of the equipment to be upgraded to the mobile terminal to finish upgrading; and the mobile terminal receives the notification information and displays prompt information of finishing upgrading on a display interface. For example, a prompt for "upgrade complete" is popped up.
It should be noted that, after receiving the predetermined data packet, the device to be upgraded deletes the original old software version, and upgrades the software version based on the new software version data packet.
The device to be upgraded according to the present application may be any feasible device in the prior art, and in a specific embodiment of the present application, the device to be upgraded is an image-text device.
The embodiment of the application also provides an upgrading device, and the upgrading device of the embodiment of the application can be used for executing the upgrading method provided by the embodiment of the application. The upgrading device provided by the embodiment of the application is introduced as follows.
Fig. 3 is a schematic diagram of an upgrade apparatus according to an embodiment of the present application. As shown in fig. 3, the apparatus includes:
A first obtaining unit 10, configured to obtain an identification code of a device to be upgraded, where the identification code is an information code that is uniquely used to identify the device to be upgraded, and the device to be upgraded is a device to be upgraded;
a determining unit 20, configured to determine whether the device to be upgraded needs to be upgraded;
And the first sending unit 30 is configured to send, when it is determined that the device to be upgraded needs to be upgraded, a predetermined data packet to the device to be upgraded corresponding to the identifier code in a wireless communication manner, where the predetermined data packet is used to upgrade software of the device to a predetermined software version number.
In the above-mentioned upgrading device, the first sending unit sends, when determining that the device to be upgraded needs to be upgraded, a predetermined data packet to the device to be upgraded corresponding to the identification code in a wireless communication manner, where the predetermined data packet is used to upgrade software of the device to a predetermined software version number. In the device, a preset data packet is transmitted to the equipment to be upgraded in a wireless communication mode, and a wire is not required to be connected with the equipment to be upgraded to upgrade the equipment to be upgraded.
In an actual application process, the manner in which the first obtaining unit obtains the identifier of the device to be upgraded may be any feasible manner, and in an embodiment of the present application, the obtaining unit is configured to: accessing the upgrade management system, namely accessing the IP address of the upgrade management system, and logging in the upgrade management system; searching the equipment to be upgraded in the upgrade management system; and determining the identification code of the equipment to be upgraded.
In a specific embodiment, the upgrade management system may be accessed periodically to obtain the identification code of the device to be upgraded.
Of course, the method of acquiring the identification code of the device to be upgraded is not limited to the above-mentioned method of accessing the upgrade management system, and the identification code of the device to be upgraded input by the user may be received.
In order to further avoid transmitting predetermined data packets to the device to be upgraded which does not need to be upgraded, in an embodiment of the application, the determining unit is configured to: acquiring the current software version number of the equipment to be upgraded in the wireless communication mode; determining whether the current software version number is consistent with the predetermined software version number; if the current software version number is inconsistent with the preset software version number, sending out inquiry information for determining whether to upgrade; under the condition that reply information for determining upgrading is received, determining that the equipment to be upgraded needs to be upgraded; and under the condition that the current software version number is consistent with the preset software version number, determining that the equipment to be upgraded does not need to be upgraded.
The above-mentioned inquiry information may be voice inquiry information or text inquiry information, for example, inquiry information "whether to upgrade to (predetermined software version number)" may be popped up on the display interface.
In another embodiment of the present application, the apparatus further includes a display unit, where the display unit is configured to display, on a display interface, prompt information that no upgrade is required, when it is determined that the device to be upgraded does not need to be upgraded. The prompt information can be the prompt information of the latest version, or can be other prompt information which can be characterized without upgrading.
In order to further improve the upgrade efficiency, in another embodiment of the present application, the apparatus further includes a second sending unit and a modifying unit, where the second sending unit is configured to send an upgrade preparation instruction to the device to be upgraded, where the upgrade preparation instruction is used to control the device to be upgraded to enter a preparation upgrade mode, and when the device to be upgraded is in the preparation upgrade mode, a read-write interface of a processor of the device to be upgraded is in an open state, where the second sending unit determines that the device to be upgraded needs to be upgraded, and before sending a predetermined data packet to the device corresponding to the identification code; the changing unit is used for adding the information of the equipment to be upgraded to an upgrade list, wherein the information comprises a name, the identification code and the preset software version number.
It should be noted that, when the device to be upgraded is in the standby upgrade mode, the read-write interface of the processor is not limited to be in an on state, and the indicator light of the host may also be changed, for example, the indicator light is blue and blinks.
In still another embodiment of the present application, the modifying unit is further configured to download, after adding the information of the device to be upgraded to an upgrade list, the predetermined data packet corresponding to each predetermined software version number according to the information of the plurality of devices to be upgraded in the upgrade list before sending the predetermined data packet to the device corresponding to the identification code. Therefore, before upgrading, the preset data packets corresponding to the plurality of equipment to be upgraded are downloaded, and the plurality of equipment to be upgraded can be upgraded in the same time period later, so that the problem that only one equipment to be upgraded can be upgraded at a time in the prior art is solved.
In order to enable a user to know the upgrade condition of the equipment to be upgraded, in one embodiment of the present application, the apparatus further includes a second obtaining unit, configured to obtain notification information that the equipment to be upgraded completes the upgrade after sending a predetermined data packet to the equipment corresponding to the identification code; the display unit is also used for displaying prompt information of the completion of upgrading on the display interface; and deleting the information of the equipment to be upgraded, which is already upgraded, from the upgrade list. For example, a prompt for "upgrade complete" is popped up.
Specifically, the notification information that the device to be upgraded completes the upgrade may be obtained according to a display condition of an indicator light of the device to be upgraded, for example, a host light flashing light of the device to be upgraded represents that the image transmission device is in a standby upgrade mode, a host light flashing light represents that the image transmission device is in a software upgrade process, and a host light normally lights to represent that the software upgrade of the device to be upgraded is completed.
It should be noted that, after receiving the predetermined data packet, the device to be upgraded deletes the original old software version, and upgrades the software version based on the new software version data packet.
The device to be upgraded according to the present application may be any feasible device in the prior art, and in a specific embodiment of the present application, the device to be upgraded is an image-text device.
It should be noted that, the identification code of the device to be upgraded in the present application may be an IP address and/or a mac address, and of course, the information code of the device to be upgraded may also be identified for other displacement.
It should be further noted that, before sending the predetermined data packet to the device to be upgraded corresponding to the identification code by means of wireless communication, a wireless connection needs to be established with the device to be upgraded, and specifically, the transmission of the predetermined data packet may be performed through a Mircast wireless protocol later.
The upgrade apparatus includes a processor and a memory, the first acquisition unit, the determination unit, the first transmission unit, and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel can be provided with one or more than one, and the device to be upgraded can be upgraded without connecting wires by adjusting the kernel parameters.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
The embodiment of the invention provides a storage medium, on which a program is stored, which when executed by a processor, implements the above-described upgrade method.
The embodiment of the invention provides a processor, which is used for running a program, wherein the upgrading method is executed when the program runs.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program stored in the memory and capable of running on the processor, wherein the processor realizes at least the following steps when executing the program:
Step S101, an identification code of equipment to be upgraded is obtained, wherein the identification code is an information code which is uniquely used for identifying the equipment to be upgraded, and the equipment to be upgraded is equipment to be upgraded;
Step S102, determining whether the equipment to be upgraded needs to be upgraded;
Step S103, when it is determined that the device to be upgraded needs to be upgraded, sending a predetermined data packet to the device to be upgraded corresponding to the identification code in a wireless communication manner, where the predetermined data packet is used to upgrade the software of the device to a predetermined software version number,
Or alternatively
Step S201, a mobile terminal acquires an identification code of equipment to be upgraded, wherein the identification code is an information code which is unique and used for identifying the equipment to be upgraded, and the equipment to be upgraded is equipment to be upgraded;
Step S202, the mobile terminal determines whether the equipment to be upgraded needs to be upgraded;
Step S203, when the mobile terminal determines that the device to be upgraded needs to be upgraded, the mobile terminal sends a predetermined data packet to the device to be upgraded corresponding to the identification code in a wireless communication manner;
In step S204, the device to be upgraded receives the predetermined data packet, and upgrades the version number of the software to a predetermined software version number based on the predetermined data packet.
The device herein may be a server, PC, PAD, cell phone, etc.
The application also provides a computer program product adapted to perform, when executed on a data processing device, a program initialized with at least the following method steps:
Step S101, an identification code of equipment to be upgraded is obtained, wherein the identification code is an information code which is uniquely used for identifying the equipment to be upgraded, and the equipment to be upgraded is equipment to be upgraded;
Step S102, determining whether the equipment to be upgraded needs to be upgraded;
Step S103, when it is determined that the device to be upgraded needs to be upgraded, sending a predetermined data packet to the device to be upgraded corresponding to the identification code in a wireless communication manner, where the predetermined data packet is used to upgrade the software of the device to a predetermined software version number,
Or alternatively
Step S201, a mobile terminal acquires an identification code of equipment to be upgraded, wherein the identification code is an information code which is unique and used for identifying the equipment to be upgraded, and the equipment to be upgraded is equipment to be upgraded;
Step S202, the mobile terminal determines whether the equipment to be upgraded needs to be upgraded;
Step S203, when the mobile terminal determines that the device to be upgraded needs to be upgraded, the mobile terminal sends a predetermined data packet to the device to be upgraded corresponding to the identification code in a wireless communication manner;
In step S204, the device to be upgraded receives the predetermined data packet, and upgrades the version number of the software to a predetermined software version number based on the predetermined data packet.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units may be a logic function division, and there may be another division manner when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units described above, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the above-mentioned method of the various embodiments of the present invention. And the aforementioned storage medium includes: a usb disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:
1) In the upgrading method, when the equipment to be upgraded is determined to be upgraded, a preset data packet is sent to the equipment to be upgraded corresponding to the identification code in a wireless communication mode, wherein the preset data packet is used for upgrading the software of the equipment to a preset software version number. In the method, a preset data packet is transmitted to the equipment to be upgraded in a wireless communication mode, and a wire is not required to be connected with the equipment to be upgraded to upgrade the equipment to be upgraded.
2) In the upgrading device of the present application, when it is determined that the equipment to be upgraded needs to be upgraded, the first sending unit sends, by means of wireless communication, a predetermined data packet to the equipment to be upgraded corresponding to the identification code, where the predetermined data packet is used to upgrade software of the equipment to a predetermined software version number. In the device, a preset data packet is transmitted to the equipment to be upgraded in a wireless communication mode, and a wire is not required to be connected with the equipment to be upgraded to upgrade the equipment to be upgraded.
The above description is only of the preferred embodiments of the present application and is not intended to limit the present application, but various modifications and variations can be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (7)

1. An upgrade method, comprising:
acquiring an identification code of equipment to be upgraded, wherein the identification code is an information code which is uniquely used for identifying the equipment to be upgraded, and the equipment to be upgraded is equipment to be upgraded;
determining whether the equipment to be upgraded needs to be upgraded;
Under the condition that the equipment to be upgraded needs to be upgraded, a preset data packet is sent to the equipment to be upgraded corresponding to the identification code in a wireless communication mode, wherein the preset data packet is used for upgrading the software of the equipment to a preset software version number;
Determining whether the equipment to be upgraded needs to be upgraded comprises the following steps:
acquiring the current software version number of the equipment to be upgraded in the wireless communication mode;
determining whether the current software version number and the predetermined software version number are consistent;
if the current software version number is inconsistent with the preset software version number, sending out inquiry information for determining whether to upgrade;
Under the condition that reply information for determining upgrading is received, determining that the equipment to be upgraded needs to be upgraded;
Under the condition that the current software version number is consistent with the preset software version number, determining that the equipment to be upgraded does not need to be upgraded;
Under the condition that the equipment to be upgraded needs to be upgraded, and before a preset data packet is sent to the equipment corresponding to the identification code, the method further comprises the following steps:
An upgrade preparation instruction is sent to the equipment to be upgraded, the upgrade preparation instruction is used for controlling the equipment to be upgraded to enter a preparation upgrade mode, and when the equipment to be upgraded is in the preparation upgrade mode, a read-write interface of a processor of the equipment to be upgraded is in an open state;
Adding the information of the equipment to be upgraded to an upgrade list, wherein the information comprises a name, the identification code and the preset software version number;
After adding the information of the device to be upgraded to an upgrade list, before sending a predetermined data packet to the device corresponding to the identification code, the method further includes:
Downloading the preset data packets corresponding to the preset software version numbers according to the information of the plurality of devices to be upgraded in the upgrading list;
after sending a predetermined data packet to the device corresponding to the identification code, the method further includes:
acquiring notification information of the equipment to be upgraded for finishing upgrading;
Displaying prompt information of finishing upgrading on a display interface;
deleting the information of the equipment to be upgraded, which is already upgraded, from the upgrade list;
The equipment to be upgraded is graphic equipment.
2. The method of claim 1, wherein obtaining an identification code of the device to be upgraded comprises:
Accessing an upgrade management system;
Searching the equipment to be upgraded in the upgrade management system;
and determining the identification code of the equipment to be upgraded.
3. The method of claim 1, wherein in the event that it is determined that the device to be upgraded does not require an upgrade, the method further comprises:
and displaying prompt information without upgrading on a display interface.
4. An upgrade apparatus, comprising:
The first acquisition unit is used for acquiring an identification code of equipment to be upgraded, wherein the identification code is an information code which is unique and used for identifying the equipment to be upgraded, and the equipment to be upgraded is equipment to be upgraded;
a determining unit, configured to determine whether the device to be upgraded needs to be upgraded;
a first sending unit, configured to send, in a wireless communication manner, a predetermined data packet to the device to be upgraded corresponding to the identifier code, where the predetermined data packet is used to upgrade software of the device to a predetermined software version number, where the device to be upgraded needs to be upgraded;
The determining unit is used for:
acquiring the current software version number of the equipment to be upgraded in the wireless communication mode;
determining whether the current software version number and the predetermined software version number are consistent;
if the current software version number is inconsistent with the preset software version number, sending out inquiry information for determining whether to upgrade;
Under the condition that reply information for determining upgrading is received, determining that the equipment to be upgraded needs to be upgraded;
Under the condition that the current software version number is consistent with the preset software version number, determining that the equipment to be upgraded does not need to be upgraded;
The apparatus further comprises:
the second sending unit is used for sending an upgrade preparation instruction to the equipment to be upgraded, wherein the upgrade preparation instruction is used for controlling the equipment to be upgraded to enter a preparation upgrade mode, and when the equipment to be upgraded is in the preparation upgrade mode, a read-write interface of a processor of the equipment to be upgraded is in an open state;
A changing unit, configured to add information of the device to be upgraded to an upgrade list, where the information includes a name, the identification code, and the predetermined software version number;
The modification unit is further configured to:
Downloading the preset data packets corresponding to the preset software version numbers according to the information of the plurality of devices to be upgraded in the upgrading list;
The device also comprises a second acquisition unit, a first acquisition unit and a second acquisition unit, wherein the second acquisition unit is used for acquiring notification information of the equipment to be upgraded for finishing upgrading after a preset data packet is sent to the equipment corresponding to the identification code; the display unit is also used for displaying prompt information of the completion of upgrading on the display interface; deleting the information of the equipment to be upgraded, which is already upgraded, from the upgrade list;
The equipment to be upgraded is graphic equipment.
5. A storage medium comprising a stored program, wherein the program performs the upgrade method of any one of claims 1 to 3.
6. A processor for running a program, wherein the program runs on performing the upgrade method according to any one of claims 1 to 3.
7. A mobile terminal, comprising: one or more processors, a memory, a display device, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for performing the upgrade method of any of claims 1-3.
CN202010478462.XA 2020-05-29 2020-05-29 Upgrade method, upgrade device, storage medium, processor and mobile terminal Active CN111638896B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010478462.XA CN111638896B (en) 2020-05-29 2020-05-29 Upgrade method, upgrade device, storage medium, processor and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010478462.XA CN111638896B (en) 2020-05-29 2020-05-29 Upgrade method, upgrade device, storage medium, processor and mobile terminal

Publications (2)

Publication Number Publication Date
CN111638896A CN111638896A (en) 2020-09-08
CN111638896B true CN111638896B (en) 2024-05-03

Family

ID=72332366

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010478462.XA Active CN111638896B (en) 2020-05-29 2020-05-29 Upgrade method, upgrade device, storage medium, processor and mobile terminal

Country Status (1)

Country Link
CN (1) CN111638896B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113064615B (en) * 2021-03-26 2023-09-26 西安万像电子科技有限公司 Software updating method and device, storage medium and electronic device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106445621A (en) * 2016-10-31 2017-02-22 乐视控股(北京)有限公司 Upgrading method and device of application and electronic device
CN107479929A (en) * 2017-08-15 2017-12-15 青岛海信移动通信技术股份有限公司 Method for upgrading software, device and equipment
WO2018006677A1 (en) * 2016-07-06 2018-01-11 中兴通讯股份有限公司 Smart upgrade method, server, terminal and system
CN108259231A (en) * 2017-12-27 2018-07-06 生迪智慧科技有限公司 Method for upgrading software, gateway, server and the system of smart machine
CN108366366A (en) * 2017-12-29 2018-08-03 海尔优家智能科技(北京)有限公司 A kind of upgrade method of equipment, device, storage medium and smart machine
CN109753297A (en) * 2018-12-28 2019-05-14 深圳创维-Rgb电子有限公司 Method for upgrading software, device and readable storage medium storing program for executing when terminal standby
CN110825411A (en) * 2019-10-31 2020-02-21 歌尔股份有限公司 Upgrading method and device for TWS (two way satellite System) earphone system and computer-readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018006677A1 (en) * 2016-07-06 2018-01-11 中兴通讯股份有限公司 Smart upgrade method, server, terminal and system
CN106445621A (en) * 2016-10-31 2017-02-22 乐视控股(北京)有限公司 Upgrading method and device of application and electronic device
CN107479929A (en) * 2017-08-15 2017-12-15 青岛海信移动通信技术股份有限公司 Method for upgrading software, device and equipment
CN108259231A (en) * 2017-12-27 2018-07-06 生迪智慧科技有限公司 Method for upgrading software, gateway, server and the system of smart machine
CN108366366A (en) * 2017-12-29 2018-08-03 海尔优家智能科技(北京)有限公司 A kind of upgrade method of equipment, device, storage medium and smart machine
CN109753297A (en) * 2018-12-28 2019-05-14 深圳创维-Rgb电子有限公司 Method for upgrading software, device and readable storage medium storing program for executing when terminal standby
CN110825411A (en) * 2019-10-31 2020-02-21 歌尔股份有限公司 Upgrading method and device for TWS (two way satellite System) earphone system and computer-readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
面向嵌入式无线信息终端的在线升级方法;林志雄;鄢萍;贺晓辉;;计算机应用;20100701(07);全文 *

Also Published As

Publication number Publication date
CN111638896A (en) 2020-09-08

Similar Documents

Publication Publication Date Title
US10282191B2 (en) Updating web resources
TWI434596B (en) System, apparatus, and method for dynamically customizing and configuring applications
CN102308561B (en) ME network parameters configuration by UICC
CN108494799B (en) Data sharing method and system
US8495617B2 (en) Interworking system between user terminal and smart card for executing widget, and method thereof
KR20040004035A (en) Application catalog on an application server for wireless devices
CN109960521B (en) Application program upgrading method and device, electronic equipment and storage medium
JP2009213144A (en) Local and remote access to radio parametric and radio regulatory data and methods therefor
US20100261464A1 (en) Mobile terminal, associated storage devices and methods of using the same
CN109840096A (en) The installation method and device of operating system
JP5004857B2 (en) Application update information providing system and application update information providing method
CN114257551A (en) Distributed current limiting method and system and storage medium
US20140379925A1 (en) Apparatus and method for interworking between app store servers to share application information
CN111026408A (en) Method and device for managing application and computer storage medium
KR20020025472A (en) Method for updaing for function in mobile phone
CN114416396A (en) Interface version control method and device, electronic equipment and storage medium
CN111638896B (en) Upgrade method, upgrade device, storage medium, processor and mobile terminal
JP2013527519A (en) Method and apparatus for managing device applets with smart cards
CN110837391A (en) Application program hot updating method and device, storage medium and electronic equipment
CN114138961A (en) Playing processing method of audio electronic book, computing equipment and computer storage medium
CN103442085A (en) Method, terminal, server and system used for maintaining user information
KR20010090304A (en) Download service system for mobilephone
CN103354927A (en) Method and apparatus for managing content in a processing device
US20180300122A1 (en) Data processing method and system, and server
CN108234216B (en) Method and device for downloading data message

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant