[go: up one dir, main page]

CN114449554B - Equipment upgrading method, device, equipment and storage medium - Google Patents

Equipment upgrading method, device, equipment and storage medium Download PDF

Info

Publication number
CN114449554B
CN114449554B CN202210107345.1A CN202210107345A CN114449554B CN 114449554 B CN114449554 B CN 114449554B CN 202210107345 A CN202210107345 A CN 202210107345A CN 114449554 B CN114449554 B CN 114449554B
Authority
CN
China
Prior art keywords
local area
target
area network
upgrading
equipment
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
CN202210107345.1A
Other languages
Chinese (zh)
Other versions
CN114449554A (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.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New 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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202210107345.1A priority Critical patent/CN114449554B/en
Publication of CN114449554A publication Critical patent/CN114449554A/en
Application granted granted Critical
Publication of CN114449554B publication Critical patent/CN114449554B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (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 embodiment of the application discloses a device upgrading method, a device and a storage medium, wherein when the device is in an upgrading mode, a target local area network of the surrounding environment where the device is located can be obtained; establishing communication connection with a server corresponding to the target local area network through the target local area network; sending a configuration file acquisition request to a target address corresponding to the server through the communication connection, and receiving a configuration file returned by the server based on the configuration file acquisition request; and upgrading the equipment according to the configuration file. The problem of low equipment upgrading efficiency is solved, and the equipment upgrading efficiency is improved.

Description

Equipment upgrading method, device, equipment and storage medium
Technical Field
The application relates to the technical field of internet, in particular to a device upgrading method, a device, equipment and a storage medium.
Background
Along with The development of internet of things, more and more devices, especially intelligent household appliances, have networking capability, general intelligent household appliances are networked by adopting a wireless local area network, over The Air (OTA) upgrading is also The standard of The intelligent household appliances, software of The intelligent household appliances is iterated fast, OTA upgrading is required frequently, the OTA upgrading in The prior art requires The intelligent household appliances to be connected with a network first, a user uses a mobile phone to configure The intelligent household appliances for networking and then carries out OTA upgrading, the network configuration process is slower, and The OTA upgrading efficiency of The device is lower.
Disclosure of Invention
The embodiment of the application provides a device upgrading method, a device and a storage medium, which can improve the upgrading efficiency of the device.
In order to solve the technical problems, the embodiment of the application provides the following technical scheme:
the embodiment of the application provides a device upgrading method, which comprises the following steps:
when equipment is in an upgrading mode, acquiring a target local area network of the surrounding environment where the equipment is located;
establishing communication connection with a server corresponding to the target local area network through the target local area network;
sending a configuration file acquisition request to a target address corresponding to the server through the communication connection, and receiving a configuration file returned by the server based on the configuration file acquisition request;
and upgrading the equipment according to the configuration file.
In an embodiment, the obtaining the target local area network of the surrounding environment where the device is located includes:
scanning a local area network of the surrounding environment of the equipment through built-in WiFi network software to obtain the name of the local area network;
and obtaining the target local area network with the name conforming to the specification.
In an embodiment, the obtaining the target local area network with the name meeting the specification includes:
acquiring the number of candidate local area networks with names conforming to specifications;
if the number is greater than one, determining a target local area network from the candidate local area networks according to a random algorithm;
and if the number is equal to one, determining the local area network with the name meeting the specification as a target local area network.
In an embodiment, after the scanning, by the built-in WiFi network software, the local area network of the surrounding environment where the device is located to obtain the name of the local area network, the method includes:
acquiring the scanning time length of a local area network for scanning the surrounding environment of the equipment through built-in WiFi network software;
if the scanning time length is smaller than the preset time length and the local area network with the name conforming to the specification is scanned, acquiring a target local area network with the name conforming to the specification;
and if the scanning time length is longer than or equal to the preset time length and the local area network with the name conforming to the specification is not scanned, outputting a scanning failure prompt.
In an embodiment, the upgrading the device according to the configuration file includes:
acquiring first version information of the equipment and second version information in the configuration file;
judging whether the equipment needs to be upgraded according to the first version information and the second version information;
if the equipment needs to be upgraded, an upgrade request is sent to the target address to download a target upgrade file;
and upgrading the equipment according to the target upgrading file.
In an embodiment, the upgrading the device according to the target upgrade file includes:
acquiring first check information in the target upgrade file and second check information in the configuration file;
and if the first check information is matched with the second check information, upgrading the equipment according to the target upgrading.
In an embodiment, after determining whether the device needs to be upgraded according to the first version information and the second version information, the method includes:
and if the equipment is not required to be upgraded, outputting prompt information of successful version verification.
In an embodiment, the upgrading the device according to the target upgrade file includes:
writing the target upgrade file into a backup area;
restarting the device to cover the original file corresponding to the target upgrading file in the device with the target upgrading file.
According to an aspect of the present application, there is also provided an apparatus for upgrading a device, including:
the device comprises an acquisition module, a control module and a control module, wherein the acquisition module is used for acquiring a target local area network of the surrounding environment of equipment when the equipment is in an upgrading mode;
the communication module is used for establishing communication connection with a server corresponding to the target local area network through the target local area network;
the sending and receiving module is used for sending a configuration file acquisition request to a target address corresponding to the server through the communication connection and receiving a configuration file returned by the server based on the configuration file acquisition request;
and the upgrading module is used for upgrading the equipment according to the configuration file.
According to an aspect of the present application, there is also provided an apparatus, including a processor and a memory, where the memory stores a computer program, and when the processor invokes the computer program in the memory, any one of the apparatus upgrade methods provided in the embodiments of the present application is executed.
According to an aspect of the present application, there is also provided a storage medium for storing a computer program, which is loaded by a processor to perform any of the device upgrade methods provided by the embodiments of the present application.
According to the equipment upgrading method, the equipment upgrading device, the equipment and the storage medium, when the equipment is in an upgrading mode, a target local area network of the surrounding environment where the equipment is located is obtained; establishing communication connection with a server corresponding to the target local area network through the target local area network; sending a configuration file acquisition request to a target address corresponding to the server through the communication connection, and receiving a configuration file returned by the server based on the configuration file acquisition request; and upgrading the equipment according to the configuration file. Therefore, when the equipment leaves the factory for upgrading and testing, the equipment can be distributed one by one without manually through a mobile phone to connect with a server for OTA upgrading, but the equipment can be directly and automatically scanned through the built-in WiFi network software of the equipment and is in communication connection with the server corresponding to the target local area network of the environment where the equipment is located, and the configuration file is obtained through the communication connection for upgrading the equipment, so that the upgrading efficiency of the equipment is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a device upgrade method according to an embodiment of the present disclosure;
FIG. 2 is another schematic flow chart of a method for upgrading a device according to an embodiment of the present disclosure;
FIG. 3 is another schematic flow chart of a method for upgrading a device according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of an apparatus upgrade device provided in an embodiment of the present application;
FIG. 5 is a schematic structural diagram of an apparatus provided in an embodiment of the present application;
fig. 6 is a schematic diagram of physical connection of a device upgrade method according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The embodiment of the application provides a device upgrading method, a device and a storage medium (namely a computer readable storage medium). The device upgrading method application may include a device upgrading apparatus, which may be specifically integrated in a device, where the device may be in communication connection with a server, where the server may be an independent physical server, or may be a server cluster or a distributed system formed by multiple physical servers, or may be a cloud server that provides a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a network service, cloud communication, a middleware service, a domain name service, a security service, a content distribution network (Content Delivery Network, CDN), and a basic cloud computing service such as a big data and an artificial intelligence platform, which is not limited thereto. The device can be an intelligent household appliance, a mobile phone, a computer or a wearable device, etc.
The following will describe in detail. The following description of the embodiments is not intended to limit the preferred embodiments.
In this embodiment, description will be made from the perspective of the device, referring to fig. 1, fig. 1 is a schematic flow chart of a device upgrading method according to an embodiment of the present application. The device upgrade method may include:
s10, when equipment is in an upgrading mode, acquiring a target local area network of the surrounding environment where the equipment is located;
the execution subject of the device upgrade method may be a device.
Optionally, the target local area network is a local area network named compliant with the specification in the surrounding environment in which the device is located. In this embodiment, wiFi network software is provided in the device, and when the device is tested by factory upgrade, the WiFi network software may be set to an upgrade mode, and the representative device may automatically perform WiFi connection through the built-in WiFi network software, so that the device is upgraded by the OTA over-the-air technology. The WiFi network software may scan the local area network of the surrounding environment in which the device is located to determine the target local area network.
S20, establishing communication connection with a server corresponding to the target local area network through the target local area network;
it should be noted that, since one router is limited in devices connected at the same time, if a large number of devices need to be upgraded at the same time in the same environment, a local area network provided by one router is insufficient, and thus a plurality of routers and a plurality of servers need to be prepared, and one server is connected to one router correspondingly. Referring to fig. 6, fig. 6 is a schematic diagram of physical connection of the device upgrade method in the present application. The server can be a notebook computer, one notebook computer is connected with one router, one router can be connected with a plurality of devices, the devices can be washing machine devices, and when the devices needing to be tested simultaneously in the same environment are too many, a plurality of notebook computers and routers can be arranged for the devices to be networked. The notebook can be provided with http server software, such as http file server software, and the upgrade file and the configuration file of the device are named according to a specified name format and then stored in the file. Alternatively, the naming format of the upgrade file may be vendor name-product model-ota. Bin, e.g., tcl-p10-ota. Bin, and the naming format of the configuration file may be vendor name-product model-info. Cfg, e.g., tcl-p10-info. Cfg.
Optionally, after determining the target local area network, acquiring a target IP address of a target server corresponding to the target local area network, and sending an http connection request to the target IP address to perform communication connection with the target server.
S30, sending a configuration file acquisition request to a target address corresponding to the server through communication connection, and receiving a configuration file returned by the server based on the configuration file acquisition request;
the target address may be a target IP address, the profile acquisition request may be an http request, the profile may be a ota profile stored in a string json format, and the profile may include, but is not limited to, version information of the device to be upgraded and md5 information of the file to be upgraded. Optionally, if the device is successfully connected to the target server, the WiFi indicator icon on the device may be normally displayed to indicate whether the WiFi network software of the device is installed and whether the WiFi and server communications are normal. An http request, e.g., http://192.168.1.10/tcl-p10-info. Cfg, is sent to the server over the communication connection to obtain a configuration file in the server.
And S40, upgrading the equipment according to the configuration file.
Optionally, whether the device needs to be upgraded is judged according to the configuration file, and when the device needs to be upgraded, the control device downloads the target upgrade file to be upgraded.
In the technical scheme provided by the embodiment of the application, when equipment is in an upgrading mode, a target local area network of the surrounding environment where the equipment is located is obtained; establishing communication connection with a server corresponding to the target local area network through the target local area network; sending a configuration file acquisition request to a target address corresponding to a server through communication connection, and receiving a configuration file returned by the server based on the configuration file acquisition request; and upgrading the equipment according to the configuration file. Therefore, when the equipment leaves the factory for upgrading and testing, the equipment can be distributed one by one without manually through a mobile phone to connect with a server for OTA upgrading, but the equipment can be directly and automatically scanned through the built-in WiFi network software of the equipment and is in communication connection with the server corresponding to the target local area network of the environment where the equipment is located, and the configuration file is obtained through the communication connection for upgrading the equipment, so that the upgrading efficiency of the equipment is improved.
Referring to fig. 2, fig. 2 is another flow chart of a device upgrade method according to an embodiment of the present application. The acquiring the target local area network of the surrounding environment where the device is located may include:
s11, scanning a local area network of the surrounding environment where the equipment is located through built-in WiFi network software to obtain the name of the local area network;
in this embodiment, in order to enable the device to be quickly and accurately connected to the target lan during the factory upgrade test, the name of the target lan sent by the router used for the test needs to be named according to the specification in advance, and may be a manufacturer name-device model number-serial number, for example, tcl-p10-1, tcl-p10-2, tcl-p10-3, and the like, and the passwords of the lan may be fixed and unified.
It can be understood that when the device is shipped to the factory for upgrade test, the surrounding environment where the device is located may have other local area networks unrelated to the factory test of the device, and if the device is randomly connected to other local area networks unrelated to the factory test, the configuration file and the target upgrade file required by the upgrade of the device cannot be correctly obtained, or the device cannot be connected to the correct local area network at a later time, so that the device can obtain the name of the local area network when scanning the local area network of the surrounding environment where the device is located, so as to determine the target local area network according to the name of the local area network.
S12, obtaining the target local area network with the name conforming to the specification.
Alternatively, step S12 may include:
acquiring the number of candidate local area networks with names conforming to specifications;
if the number is greater than one, determining a target local area network from the candidate local area networks according to a random algorithm;
if the number is equal to one, the local area network with the name meeting the specification is determined as the target local area network.
It can be understood that a plurality of routers are set when a plurality of devices need to be upgraded simultaneously under the same environment, so that when the devices scan local area networks of the surrounding environment where the devices are located through built-in WiFi network software, a plurality of candidate local area networks with names meeting specifications can be obtained.
Alternatively, if the number of candidate local area networks with names meeting the specification is greater than one, a random algorithm may be acquired, and one candidate local area network is randomly selected as the target local area network according to the random algorithm. If the number of candidate local area networks with names meeting the specification is equal to one, the local area network is determined to be a target local area network.
Alternatively, in the present embodiment, after step S11, it may include:
acquiring the scanning time length of a local area network of the surrounding environment of the scanning equipment through built-in WiFi network software;
if the scanning time length is smaller than the preset time length and the local area network with the name conforming to the specification is scanned, acquiring a target local area network with the name conforming to the specification;
the preset duration may be 30 seconds or 1 minute. Optionally, if the device scans a local area network with a name conforming to the specification within one minute, acquiring a target local area network with the name conforming to the specification;
correspondingly, step S11 may include;
if the scanning time length is longer than or equal to the preset time length and the local area network with the name conforming to the specification is not scanned, outputting a scanning failure prompt.
For example, the device can not scan the local area network with the name meeting the specification after scanning for one minute, and then outputs a scanning failure prompt. The scan failure indication may be an indicator light of the device flashing and a display device of the device displaying a preset alarm identifier.
In the technical scheme provided by the embodiment of the application, the name of the local area network is obtained by internally arranging the local area network of the surrounding environment where the WiFi network software scanning equipment is located; and obtaining the target local area network with the name conforming to the specification. Therefore, only the name of the local area network acquired by the equipment accords with the specification can be selected as the target local area network capable of being connected, the equipment is prevented from being connected to an invalid local area network, and the equipment upgrading efficiency is improved.
Referring to fig. 3, fig. 3 is another flow chart of a device upgrade method according to an embodiment of the present application. Step S40 may include:
s41, acquiring first version information of equipment and second version information in a configuration file;
s42, judging whether the equipment needs to be upgraded according to the first version information and the second version information;
it should be noted that when a plurality of devices are subjected to factory upgrade test, there may be a situation that the existing devices are already upgraded and some are not yet upgraded, so in order to avoid the situation that the updated devices repeatedly download the target upgrade file and waste the storage resources of the devices, the devices acquire the first version information of the devices and compare the first version information with the second version information of the configuration information before downloading the target upgrade software to the server. Optionally, if the first version information of the device is different from the second version information of the file to be upgraded in the configuration file, and the second version information is higher than the first version information, it is determined that the device needs to be upgraded.
S43, if the equipment needs to be upgraded, an upgrade request is sent to a target address to download a target upgrade file;
s44, upgrading the equipment according to the target upgrading file.
The target upgrade file may be a target upgrade bin file.
Optionally, if it is determined that the device needs to be upgraded, the WiFi network software in the device sends an upgrade request to the server through the communication connection and the target address, and obtains and downloads the target upgrade bin file in the server. For example, the WiFi network software of the device sends an http request, such as http://192.168.1.10/tcl-p10-ota.bin. To the target server to obtain and download the target upgrade bin file.
Optionally, after the upgrade is completed, the device disconnects the router, the display device of the device displays preset identification information, which indicates that the WiFi hardware function test of the device passes, and the software version of the WiFi is updated synchronously to the latest version.
Optionally, step S44 may include:
writing the target upgrade file into the backup area;
restarting the device to cover the original file corresponding to the target upgrade file in the device with the target upgrade file.
For example, writing the target upgrade bin file into the flash backup area, restarting the device and the WiFi network software, entering the boot area to cover the original file corresponding to the target upgrade file in the device with the target upgrade file of the backup area, so as to upgrade the device.
Optionally, step S44 may include:
acquiring first check information in a target upgrade file and second check information in a configuration file;
if the first check information is matched with the second check information, upgrading the equipment according to the target upgrading.
Alternatively, the first check information may be the md5 value of the target upgrade file, and the second check information is the md5 value of the configuration file. If the md5 value of the target upgrade file is the same as the md5 value of the configuration file, determining that the target upgrade file passes verification, and upgrading the equipment according to the target upgrade.
Optionally, after step S42, it may include:
if the equipment is not required to be upgraded, outputting prompt information of successful version verification.
Optionally, if the first version information of the device is the same as the second version information of the file to be upgraded in the configuration file, or the second version information is lower than the first version information, it is determined that the device does not need to be upgraded, the device may disconnect the communication connection of the target local area network, and the display device of the device displays preset identification information to indicate that the version information of the device is the latest version.
In the technical scheme provided by the embodiment of the application, the first version information of the equipment and the second version information in the configuration file are acquired; judging whether the equipment needs to be upgraded according to the first version information and the second version information; if the equipment needs to be upgraded, an upgrade request is sent to a target address to download a target upgrade file; and upgrading the equipment according to the target upgrading file. Therefore, before downloading the target upgrade file, the version information of the equipment is compared with the version information in the configuration file to judge whether the equipment needs to be upgraded, so that the updated equipment is prevented from repeatedly downloading the target upgrade file, the storage resources of the equipment are wasted, and the equipment upgrade efficiency is improved.
In order to facilitate better implementation of the device upgrading method provided by the embodiment of the application, the embodiment of the application also provides a device based on the device upgrading method. Where the meaning of the terms is the same as in the device upgrade method described above, specific implementation details may be referred to in the description of the method embodiments.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an apparatus upgrade apparatus provided in an embodiment of the present application, where the apparatus upgrade apparatus 300 may include an obtaining module 301, a communication module 302, a sending and receiving module 303, an upgrade module 304, and so on.
The acquiring module 301 is configured to acquire a target local area network of a surrounding environment where the device is located when the device is in an upgrade mode;
the communication module 302 is configured to establish a communication connection with a server corresponding to the target lan through the target lan;
the sending and receiving module 303 is configured to send a configuration file acquisition request to a target address corresponding to the server through a communication connection, and receive a configuration file returned by the server based on the configuration file acquisition request;
and the upgrade module 304 is configured to upgrade the device according to the configuration file.
Optionally, the apparatus of the device upgrade method may further include:
the scanning module is used for scanning the local area network of the surrounding environment where the equipment is located through built-in WiFi network software so as to acquire the name of the local area network;
and the first acquisition module is used for acquiring the target local area network with the name conforming to the specification.
The second acquisition module is used for acquiring the number of candidate local area networks with names conforming to the specifications;
the first determining module is used for determining a target local area network from the candidate local area networks according to a random algorithm if the number is greater than one;
and the second determining module is used for determining the local area network with the name meeting the specification as the target local area network if the number is equal to one.
The third acquisition module is used for acquiring the scanning duration of the local area network of the surrounding environment of the equipment through built-in WiFi network software scanning;
a fourth obtaining module, configured to obtain a target local area network with a name conforming to the specification if the scanning duration is less than the preset duration and the name conforms to the specification is scanned;
and the first output module is used for outputting a scanning failure prompt if the scanning time length is longer than or equal to the preset time length and the local area network with the name conforming to the specification is not scanned.
A fifth obtaining module, configured to obtain first version information of the device and second version information in the configuration file;
the judging module is used for judging whether the equipment needs to be upgraded according to the first version information and the second version information;
the sending module is used for sending an upgrade request to the target address to download the target upgrade file if the equipment needs to be upgraded;
and the first upgrading module is used for upgrading the equipment according to the target upgrading file.
The sixth acquisition module is used for acquiring the first check information in the target upgrading file and the second check information in the configuration file;
and the second upgrading module is used for upgrading the equipment according to the target upgrading if the first checking information is matched with the second checking information.
And the second output module is used for outputting prompt information of successful version verification if the equipment is not required to be upgraded.
The writing module is used for writing the target upgrading file into the backup area;
and the restarting module is used for restarting the equipment so as to cover the original file corresponding to the target upgrading file in the equipment with the target upgrading file.
The embodiment of the application also provides equipment which can be intelligent household appliances, mobile phones, computers or wearable equipment.
As shown in fig. 5, which shows a schematic structural diagram of an apparatus according to an embodiment of the present application, specifically:
the device may include one or more processing cores 'processors 401, one or more computer-readable storage media's memory 402, power supply 403, and input unit 404, among other components. It will be appreciated by those skilled in the art that the device structure shown in fig. 5 is not limiting of the device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. Wherein:
the processor 401 is a control center of the device, connects various parts of the entire device using various interfaces and lines, and performs various functions of the device and processes data by running or executing software programs and/or modules stored in the memory 402, and calling data stored in the memory 402, thereby performing overall monitoring of the device. Optionally, processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application program, etc., and the modem processor mainly processes wireless communication. It will be appreciated that the modem processor described above may not be integrated into the processor 401.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by executing the software programs and modules stored in the memory 402. The memory 402 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data created according to the use of the device, etc. In addition, memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
The device further comprises a power supply 403 for supplying power to the various components, preferably the power supply 403 may be logically connected to the processor 401 by a power management system, so that functions of managing charging, discharging, and power consumption management are achieved by the power management system. The power supply 403 may also include one or more of any of a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
The device may further comprise an input unit 404, which input unit 404 may be used for receiving input digital or character information and generating keyboard, mouse, joystick, optical or trackball signal inputs in connection with user settings and function control.
Although not shown, the apparatus may further include a display unit or the like, which is not described herein. In particular, in this embodiment, the processor 401 in the device loads executable files corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 401 executes the application programs stored in the memory 402, so as to implement various functions as follows:
when the equipment is in an upgrade mode, a target local area network of the surrounding environment where the equipment is located is obtained;
establishing communication connection with a server corresponding to the target local area network through the target local area network;
sending a configuration file acquisition request to a target address corresponding to a server through communication connection, and receiving a configuration file returned by the server based on the configuration file acquisition request;
and upgrading the equipment according to the configuration file.
In the foregoing embodiments, the descriptions of the embodiments are focused on, and the parts of a certain embodiment that are not described in detail may be referred to the above detailed description of the device upgrade method, which is not repeated herein.
According to one aspect of the present application, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the device performs the methods provided in the various alternative implementations of the above embodiments.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by computer instructions, or by controlling associated hardware, that may be stored in a storage medium and loaded and executed by a processor, where the storage medium is a computer-readable storage medium. To this end, embodiments of the present application provide a storage medium having stored therein a computer program, which may include computer instructions that can be loaded by a processor to perform any of the device upgrade methods provided by embodiments of the present application.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Wherein the storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
Because the computer instructions stored in the storage medium can execute any of the device upgrading methods provided in the embodiments of the present application, the beneficial effects that any of the device upgrading methods provided in the embodiments of the present application can be achieved, and detailed descriptions of the previous embodiments are omitted herein.
The foregoing describes in detail a method, apparatus, device and storage medium for device upgrade provided in the embodiments of the present application, and specific examples are applied to illustrate the principles and embodiments of the present application, where the foregoing examples are only used to help understand the method and core idea of the present application; meanwhile, those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present application, and the present description should not be construed as limiting the present application in view of the above.

Claims (9)

1. A method of upgrading a device, the method comprising:
when equipment is in an upgrading mode, scanning a local area network of the surrounding environment of the equipment through built-in WiFi network software to obtain the name of the local area network;
acquiring the number of candidate local area networks with names conforming to specifications;
if the number is greater than one, determining a target local area network from the candidate local area networks according to a random algorithm;
if the number is equal to one, determining the local area network with the name conforming to the specification as a target local area network, wherein the name of the target local area network is a name obtained by naming the manufacturer name, the equipment model and the serial number according to the specification;
establishing communication connection with a server corresponding to the target local area network through the target local area network;
sending a configuration file acquisition request to a target address corresponding to the server through the communication connection, and receiving a configuration file returned by the server based on the configuration file acquisition request;
and upgrading the equipment according to the configuration file.
2. The method for upgrading a device according to claim 1, wherein after the local area network of the surrounding environment where the device is located is scanned by the built-in WiFi network software to obtain the name of the local area network, the method comprises:
acquiring the scanning time length of a local area network for scanning the surrounding environment of the equipment through built-in WiFi network software;
if the scanning time length is smaller than the preset time length and the local area network with the name conforming to the specification is scanned, acquiring a target local area network with the name conforming to the specification;
and if the scanning time length is longer than or equal to the preset time length and the local area network with the name conforming to the specification is not scanned, outputting a scanning failure prompt.
3. The device upgrade method according to any one of claims 1 to 2, wherein the upgrading the device according to the configuration file comprises:
acquiring first version information of the equipment and second version information in the configuration file;
judging whether the equipment needs to be upgraded according to the first version information and the second version information;
if the equipment needs to be upgraded, an upgrade request is sent to the target address to download a target upgrade file;
and upgrading the equipment according to the target upgrading file.
4. The apparatus upgrade method according to claim 3, wherein the upgrading the apparatus according to the target upgrade file comprises:
acquiring first check information in the target upgrade file and second check information in the configuration file;
and if the first check information is matched with the second check information, upgrading the equipment according to the target upgrading.
5. The apparatus upgrade method according to claim 3, wherein after determining whether the apparatus needs to be upgraded according to the first version information and the second version information, the method comprises:
and if the equipment is not required to be upgraded, outputting prompt information of successful version verification.
6. The apparatus upgrade method according to claim 3, wherein the upgrading the apparatus according to the target upgrade file comprises:
writing the target upgrade file into a backup area;
restarting the device to cover the original file corresponding to the target upgrading file in the device with the target upgrading file.
7. An apparatus upgrade device, comprising:
the scanning module is used for scanning a local area network of the surrounding environment where the equipment is located through built-in WiFi network software when the equipment is in an upgrading mode so as to acquire the name of the local area network;
the second acquisition module is used for acquiring the number of candidate local area networks with names conforming to the specifications;
the first determining module is used for determining a target local area network from the candidate local area networks according to a random algorithm if the number is greater than one;
the second determining module is used for determining the local area network with the name conforming to the specification as a target local area network if the number is equal to one, wherein the name of the target local area network is a name for naming the manufacturer name, the equipment model number and the serial number according to the specification;
the communication module is used for establishing communication connection with a server corresponding to the target local area network through the target local area network;
the sending and receiving module is used for sending a configuration file acquisition request to a target address corresponding to the server through the communication connection and receiving a configuration file returned by the server based on the configuration file acquisition request;
and the upgrading module is used for upgrading the equipment according to the configuration file.
8. An apparatus comprising a processor and a memory, the memory having a computer program stored therein, the processor performing the apparatus upgrade method of any of claims 1-6 when the computer program in the memory is invoked by the processor.
9. A storage medium storing a computer program loaded by a processor to perform the device upgrade method of any one of claims 1 to 6.
CN202210107345.1A 2022-01-28 2022-01-28 Equipment upgrading method, device, equipment and storage medium Active CN114449554B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210107345.1A CN114449554B (en) 2022-01-28 2022-01-28 Equipment upgrading method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210107345.1A CN114449554B (en) 2022-01-28 2022-01-28 Equipment upgrading method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114449554A CN114449554A (en) 2022-05-06
CN114449554B true CN114449554B (en) 2024-01-19

Family

ID=81370849

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210107345.1A Active CN114449554B (en) 2022-01-28 2022-01-28 Equipment upgrading method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114449554B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN120568315A (en) * 2025-07-29 2025-08-29 厦门立林科技有限公司 Intelligent device upgrading method and system, electronic device and program product

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104156244A (en) * 2014-08-06 2014-11-19 北京奇虎科技有限公司 Method and device for software upgrading
CN104750506A (en) * 2013-12-30 2015-07-01 海尔集团公司 Intelligent appliance WiFi module software remote automatic upgrade method
CN106528241A (en) * 2016-11-21 2017-03-22 浪潮通用软件有限公司 Data upgrading method and apparatus
CN106775892A (en) * 2016-12-29 2017-05-31 无锡小天鹅股份有限公司 Online upgrading method, the system of intelligent electric appliance and its wireless communication module
WO2017097210A1 (en) * 2015-12-07 2017-06-15 中兴通讯股份有限公司 Method, apparatus and system for upgrading software
CN108491222A (en) * 2018-03-27 2018-09-04 青岛海信智慧家居系统股份有限公司 Gateway device upgrade method, device, gateway device and storage medium
CN109361528A (en) * 2017-12-29 2019-02-19 广州Tcl智能家居科技有限公司 A kind of firmware upgrade method and intelligent appliance
CN110096297A (en) * 2019-05-16 2019-08-06 上海纯米电子科技有限公司 For the method for internet of things equipment mass upgrade, update device under controllable environment
CN110362331A (en) * 2019-07-17 2019-10-22 四川爱联科技有限公司 Smart machine carries out the method for automatically updating firmware under factory mode
CN111614487A (en) * 2020-04-16 2020-09-01 惠州市创荣发实业有限公司 Device upgrading system, method, electronic device and storage medium
CN112486521A (en) * 2020-12-14 2021-03-12 深圳市国科亿道科技有限公司 Firmware upgrading method and system based on local area network
CN113692065A (en) * 2021-07-26 2021-11-23 东莞新能安科技有限公司 A firmware upgrade method and battery management system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9176725B2 (en) * 2012-05-15 2015-11-03 Oracle International Corporation Automated upgrade for an operating system using a gateway server
US9311071B2 (en) * 2012-09-06 2016-04-12 Box, Inc. Force upgrade of a mobile application via a server side configuration file
US11259348B2 (en) * 2019-08-14 2022-02-22 Sling Media Pvt. Ltd. Remote wireless network setup without pairing

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104750506A (en) * 2013-12-30 2015-07-01 海尔集团公司 Intelligent appliance WiFi module software remote automatic upgrade method
CN104156244A (en) * 2014-08-06 2014-11-19 北京奇虎科技有限公司 Method and device for software upgrading
WO2017097210A1 (en) * 2015-12-07 2017-06-15 中兴通讯股份有限公司 Method, apparatus and system for upgrading software
CN106528241A (en) * 2016-11-21 2017-03-22 浪潮通用软件有限公司 Data upgrading method and apparatus
CN106775892A (en) * 2016-12-29 2017-05-31 无锡小天鹅股份有限公司 Online upgrading method, the system of intelligent electric appliance and its wireless communication module
CN109361528A (en) * 2017-12-29 2019-02-19 广州Tcl智能家居科技有限公司 A kind of firmware upgrade method and intelligent appliance
CN108491222A (en) * 2018-03-27 2018-09-04 青岛海信智慧家居系统股份有限公司 Gateway device upgrade method, device, gateway device and storage medium
CN110096297A (en) * 2019-05-16 2019-08-06 上海纯米电子科技有限公司 For the method for internet of things equipment mass upgrade, update device under controllable environment
CN110362331A (en) * 2019-07-17 2019-10-22 四川爱联科技有限公司 Smart machine carries out the method for automatically updating firmware under factory mode
CN111614487A (en) * 2020-04-16 2020-09-01 惠州市创荣发实业有限公司 Device upgrading system, method, electronic device and storage medium
CN112486521A (en) * 2020-12-14 2021-03-12 深圳市国科亿道科技有限公司 Firmware upgrading method and system based on local area network
CN113692065A (en) * 2021-07-26 2021-11-23 东莞新能安科技有限公司 A firmware upgrade method and battery management system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于以太网OTA远程升级的研究;严娟 等;《上海汽车》;全文 *
车载嵌入式设备的远程升级系统设计;许梦茹;《中国优秀硕士学位论文全文数据库 信息科技辑》;全文 *

Also Published As

Publication number Publication date
CN114449554A (en) 2022-05-06

Similar Documents

Publication Publication Date Title
CN109495306B (en) Method and equipment for expanding capacity of service network
CN104699616B (en) The method of a kind of application test, Apparatus and system
CN112187531B (en) Module upgrading method and system, storage medium and electronic device
CN108376078A (en) Upgrade method, device and the household appliance of equipment
CN113765714B (en) Equipment network distribution method and device, storage medium and electronic equipment
CN109725950B (en) Method, device and storage medium for realizing single-instance operation of client
CN105323269A (en) Method for updating APP in Android system, terminal and storage medium
CN110493644B (en) Television application upgrading method, television terminal and server
CN114327536A (en) Server operation and maintenance method, device, equipment and storage medium
CN110968331A (en) Method and apparatus for running an application
CN113849356A (en) Equipment testing method and device, electronic equipment and storage medium
CN114449554B (en) Equipment upgrading method, device, equipment and storage medium
CN115514667A (en) Access service processing method, system, device, electronic device, and storage medium
CN113746821A (en) Intelligent device control method and device, storage medium and electronic device
CN118981330A (en) A device firmware upgrade method, system, terminal and storage medium
CN109408091A (en) Application upgrading method and device
CN113094064A (en) Gateway software module upgrading method, device, equipment and storage medium
CN112214413A (en) Application program testing method, device, equipment and storage medium
CN114237751B (en) Information configuration method and device
CN114138312A (en) Upgrade test method, device, electronic equipment and computer readable storage medium
CN111147585A (en) Equipment upgrading method, device, storage medium and system
CN114610446B (en) Method, device and system for automatically injecting probe
CN114650211B (en) Fault repairing method, device, electronic equipment and computer readable storage medium
CN113760750B (en) Intelligent device testing method and device, electronic device and storage medium
CN116743809A (en) Data simulation method, storage medium and test platform of Internet of things equipment

Legal Events

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