CN112925538A - Equipment updating method, system and device - Google Patents
Equipment updating method, system and device Download PDFInfo
- Publication number
- CN112925538A CN112925538A CN202110112583.7A CN202110112583A CN112925538A CN 112925538 A CN112925538 A CN 112925538A CN 202110112583 A CN202110112583 A CN 202110112583A CN 112925538 A CN112925538 A CN 112925538A
- Authority
- CN
- China
- Prior art keywords
- firmware
- updated
- server
- upgraded
- mobile terminal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 69
- 238000004891 communication Methods 0.000 claims abstract description 79
- 230000004044 response Effects 0.000 claims description 10
- 238000005516 engineering process Methods 0.000 abstract description 10
- 230000008569 process Effects 0.000 description 15
- 230000006870 function Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 6
- 230000005540 biological transmission Effects 0.000 description 5
- 230000000694 effects Effects 0.000 description 4
- 239000012634 fragment Substances 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000013461 design Methods 0.000 description 3
- 238000012795 verification Methods 0.000 description 3
- 230000010354 integration Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 101150012579 ADSL gene Proteins 0.000 description 1
- 102100020775 Adenylosuccinate lyase Human genes 0.000 description 1
- 108700040193 Adenylosuccinate lyases Proteins 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 239000011449 brick Substances 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- GVVPGTZRZFNKDS-JXMROGBWSA-N geranyl diphosphate Chemical compound CC(C)=CCC\C(C)=C\CO[P@](O)(=O)OP(O)(O)=O GVVPGTZRZFNKDS-JXMROGBWSA-N 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000006798 recombination Effects 0.000 description 1
- 238000005215 recombination Methods 0.000 description 1
- 230000008054 signal transmission Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
Abstract
The application discloses a device updating method, system and device. Wherein, the method comprises the following steps: the method comprises the steps that equipment to be updated obtains a first check value of firmware to be upgraded from a server; the method comprises the steps that communication connection is established between equipment to be updated and a mobile terminal, and firmware to be updated from a server is received through the mobile terminal; and comparing whether the first check value and the second check value of the firmware to be upgraded are consistent, and updating the equipment to be updated according to the firmware to be upgraded when the comparison result is consistent. The method and the device solve the technical problems that when firmware upgrading is carried out on low-end equipment controlled by a low-end embedded chip in the related technology, because a low-end equipment and a server can only adopt a low-speed and low-bandwidth communication mode, communication quality is unstable, and disconnection is frequently caused, so that the firmware upgrading is difficult to complete smoothly.
Description
Technical Field
The present application relates to the field of device control, and in particular, to a device updating method, system, and apparatus.
Background
Generally, in the firmware file upgrading process, if a firmware file is large, breakpoint resuming is often needed, and devices with complete operating systems, such as android, windows, linux, and the like, have the function, and in the fields of low-end devices, such as 8-bit chips, 16-bit chips, and the like, android, windows, or linux operating systems cannot be embedded, so that the breakpoint resuming function needs to be developed autonomously. In addition, in the upgrading process, the communication means adopted between the low-end embedded chip and the web server is also a low-speed and low-bandwidth communication mode, such as gprs and nbiot modes, and the communication quality is often unstable, and frequent disconnection occurs, so that it is difficult to download a complete firmware file at one time.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the application provides a device updating method, a system and a device, which are used for at least solving the technical problem that when firmware is updated on low-end equipment controlled by a low-end embedded chip in the related technology, because a low-end equipment and a server can only adopt a low-speed and low-bandwidth communication mode, communication quality is unstable, frequent disconnection occurs, and therefore the firmware update is difficult to complete smoothly.
According to an aspect of the embodiments of the present application, a device update method, a system and an apparatus are provided, including: the method comprises the steps that equipment to be updated obtains a first check value of firmware to be upgraded from a server; the method comprises the steps that communication connection is established between equipment to be updated and a mobile terminal, and firmware to be updated from a server is received through the mobile terminal; and comparing whether the first check value and the second check value of the firmware to be upgraded are consistent, and updating the equipment to be updated according to the firmware to be upgraded when the comparison result is consistent.
Optionally, before the device to be updated acquires the first check value of the firmware to be upgraded from the server, the method further includes: sending a first version number of the firmware to be updated to a server; and receiving a judgment result returned by the server, wherein the judgment result is used for indicating whether the first version number of the firmware to be updated is consistent with a second version number stored by the server, and the second version number is a version number corresponding to the latest version of the firmware to be updated.
Optionally, when the first version number of the firmware to be updated does not coincide with the second version number stored by the server, the device to be updated sends an update request for updating the firmware to be updated to the server.
Optionally, before the device to be updated establishes a communication connection with the mobile terminal, the method further includes: the method comprises the steps that equipment to be updated sends a query request to a server, wherein the query request is used for querying the file size of firmware to be updated; and receiving a query response result corresponding to the query request.
Optionally, when the query response result indicates that the file size of the firmware to be updated is larger than a first threshold, establishing communication connection with the mobile terminal; and when the query response result indicates that the file size of the firmware to be updated is smaller than the first threshold value, receiving the firmware to be updated from the server, and updating the equipment to be updated according to the firmware to be updated.
Optionally, before receiving the firmware to be upgraded from the server and updating the device to be updated according to the firmware to be upgraded, the method further includes: sending a third version number of the firmware to be updated to the server; and receiving a judgment result returned by the server, wherein the judgment result is used for indicating whether the third version number of the firmware to be updated is consistent with a fourth version number stored by the server, and the fourth version number is a version number corresponding to the latest version of the firmware to be updated.
Optionally, the device to be updated is provided with a bluetooth communication module and a Wi-Fi communication module, and the device to be updated establishes a communication connection with the mobile terminal, including: and the equipment to be updated establishes communication connection with the mobile terminal through the Bluetooth communication module and/or the Wi-Fi communication module.
Optionally, before receiving, by the mobile terminal, the firmware to be upgraded from the server, the method further includes: the mobile terminal sends a connection request to the server; and when the mobile terminal is successfully connected with the server, the mobile terminal receives the firmware to be upgraded from the server and stores the firmware to be upgraded to the local of the mobile terminal.
Optionally, receiving, by the mobile terminal, the firmware to be upgraded from the server includes: receiving a file sending request from a mobile terminal, wherein the file sending request is used for indicating that a local firmware to be upgraded is sent to a device to be updated; and responding to the file sending request, and receiving the firmware to be upgraded.
According to another aspect of the embodiments of the present application, there is also provided an apparatus update system, including: the server is used for sending the check value of the firmware to be upgraded to the equipment to be updated and sending the firmware file to be upgraded to the mobile terminal, wherein the server at least can respond to the access request of the equipment to be updated and the mobile terminal; the mobile terminal receives the firmware file to be upgraded and sends the file to be upgraded to the equipment to be updated; and the equipment to be updated is used for receiving the first check value of the firmware to be updated, receiving the firmware to be updated from the server through the mobile terminal, judging whether the first check value is consistent with the second check value, and updating the equipment to be updated according to the firmware to be updated when the comparison result is consistent, wherein the equipment to be updated is in communication connection with the mobile terminal.
According to another aspect of the embodiments of the present application, there is also provided an apparatus updating device, including: the acquisition module is used for acquiring a first check value of the firmware to be upgraded from the server by the equipment to be updated; the receiving module is used for establishing communication connection between the equipment to be updated and the mobile terminal and receiving the firmware to be updated from the server through the mobile terminal; and the comparison module is used for comparing whether the first check value and the second check value of the firmware to be upgraded are consistent or not, and updating the equipment to be updated according to the firmware to be upgraded when the comparison result is consistent.
According to another aspect of the embodiments of the present application, there is also provided a non-volatile storage medium, where the non-volatile storage medium includes a stored program, and the device in which the non-volatile storage medium is located is controlled to execute any one of the device update methods when the program is executed.
According to another aspect of the embodiments of the present application, there is also provided a processor, configured to execute a program, where the program executes any one of the device updating methods.
In the embodiment of the application, a mobile terminal is used as an intermediary between a server and a firmware upgrading file of equipment to be updated, and a first check value of the firmware to be upgraded is acquired from the server through the equipment to be updated; the method comprises the steps that communication connection is established between equipment to be updated and a mobile terminal, and firmware to be updated from a server is received through the mobile terminal; and comparing whether the first check value and the second check value of the firmware to be upgraded are consistent, and updating the equipment to be updated according to the firmware to be upgraded when the comparison result is consistent, so that the aim of receiving the firmware to be upgraded from the server by virtue of the mobile terminal and sending the upgraded firmware to the equipment to be updated by virtue of the mobile terminal is fulfilled, thereby achieving the technical effect of preventing the equipment to be updated from directly obtaining the upgraded firmware from the server based on a low-speed and low-bandwidth mode, namely obtaining the upgraded firmware from the server based on a high-speed communication network carried by the mobile terminal and then sending the upgraded firmware to the equipment to be updated, and further solving the technical problem that when the firmware of low-end equipment controlled by a low-end embedded chip is updated in the related art, because the low-end equipment and the server can only adopt a low-speed and low-bandwidth communication mode, the communication quality is unstable, Frequently drop the line, thereby being difficult to smoothly complete the technical problem of firmware upgrade.
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 application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a schematic diagram of a related art verification process based on a "breakpoint continuous transmission" mechanism;
FIG. 2 is a schematic flow chart diagram illustrating an alternative device update method according to an embodiment of the present application;
fig. 3 is a schematic diagram of an interaction between an optional remote device, a cloud platform, and a mobile terminal according to an embodiment of the present application;
FIG. 4 is a block diagram of an alternative device update system according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an alternative device update apparatus according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For better understanding of the embodiments of the present application, technical terms or partial terms that may be referred to in the embodiments of the present application are explained as follows:
1. firmware is a program written in EPROM (erasable programmable read only memory) or EEPROM (electrically erasable programmable read only memory). The firmware refers to a device "driver" stored in the device, and through the firmware, the operating system can implement the operation of a specific machine according to the standard device driver, for example, the optical disc drive and the recorder have internal firmware. Firmware is software that acts as the most basic and bottom layer of a system. In a hardware device, the firmware is the soul of the hardware device, and because some hardware devices have no other software components except for the firmware, the firmware determines the functions and performances of the hardware device.
2. An Integrated Development Environment (IDE, also called Integration Design Environment, Integration debug Environment) is application software that assists program developers in developing software, and can assist in writing source code text, compiling and packaging into usable programs, and some of them can even Design graphical interfaces.
NB-IoT is short for narrow-band Internet of Things (Narrowband Internet of Things), and is the LPWAN radio standard specified by 3GPP in order to allow mobile devices and services to be more remote. This standard was specified in 3GPP Release 13 (LTE Advanced Pro) at month 6, 2016. Other 3GPP internet of things technologies include eMTC (enhanced machine type communication) and EC-GSM-IoT. NB-IoT is particularly focused on indoor coverage, low cost, long battery life, and high connection density. NB-IoT uses part of the long term evolution technology standard, but limits the bandwidth to a single narrow frequency of 200 kHz. NB-IoT uses OFDM modulation to process downlink communications and SC-FDMA to process uplink communications.
4. General Packet Radio Service (english: General Packet Radio Service, abbreviation: GPRS) is one mobile data Service/technology that GSM mobile phone users can use. It is often described as "2.5G", meaning that this technology is intermediate between second generation (2G) and third generation (3G) mobile communication technologies. It utilizes unused TDMA channel in GSM network to provide medium speed data transmission service. Initially, one wanted to extend GPRS to cover other standards, except that these networks are turning to use the GSM standard, so GSM became the only network that GPRS could use. GPRS was integrated into the GSM standard after Release 97, which was first standardized by ETSI, but now has been handed over to the responsibility of 3 GPP.
The Web server generally refers to a website server, refers to a program residing on a certain type of computer on the Internet, can process requests of Web clients such as a browser and the like and return corresponding responses, and can also place website files for browsing all over the world; data files can be placed for download all over the world. Currently, the three most popular Web servers are Apache, Nginx, and IIS.
6. Broadband (english: Broadband) is a method of simultaneously transmitting many electronic messages using multiple frequencies over basic electronic and electronic communications. It describes a wide range of frequencies that a signal or electronic circuit contains or is capable of handling simultaneously. Broadband is a relative description, and the larger the frequency range, i.e. the higher the bandwidth, the more data that can be transmitted relatively increases. For example, in radio communication, a relatively narrow frequency range can only transmit morse code, and a relatively large bandwidth is required to transmit high-quality music. The broadband of a television antenna represents the ability to receive a relatively large number of channels. In terms of data transmission, the telephone line is also used as a signal transmission medium, the optical fiber cable is more and more popular, the Modem can only transmit data at 64Kbps per second, and the broadband ADSL and optical fiber Modem can provide higher transmission rate.
In the application of the internet of things equipment, remote data telemetry and control are mostly needed to be realized, even the equipment is needed to be used remotely, and the situation that the function is few and even the on-site equipment has bug may exist in the previous design of the equipment. At present, part of electric vehicles may adopt a remote Over the air technology, abbreviated as OTA, to upgrade firmware inside the electric vehicle.
Generally speaking, remote firmware upgrade requires real-time communication between a device and a cloud platform, requires the device to download data from the cloud platform, and realizes automatic upgrade after a series of calculations and checks. Generally, in the firmware file upgrading process, if a firmware file is large, breakpoint resuming is often needed, and devices with complete operating systems, such as android, windows, linux, and the like, have the function, and in the fields of low-end devices, such as 8-bit chips, 16-bit chips, and the like, android, windows, or linux operating systems cannot be embedded, so that the breakpoint resuming function needs to be developed autonomously.
In addition, in the upgrading process, the communication means adopted between the low-end embedded chip and the web server is also a low-speed and low-bandwidth communication mode, such as gprs and nbiot modes, and the communication is often unstable, and frequent disconnection conditions exist, so that the complete firmware file is difficult to download at one time.
In the related art, as shown in fig. 1, a "breakpoint resume" mechanism is often simulated to realize downloading, checking, and segment file reassembly of firmware segments, and to ensure that an upgrade program is started without error.
The specific implementation steps are as follows:
1. successful firmware compilation by computer through IDE
2. And verifying the firmware function and the performance index.
3. And after the test is finished, calculating a verification value of the firmware, wherein the verification value is the md5 value or the crc32 value of the firmware.
4. And (5) building a web server with http1.1 and publishing the firmware and the check value to the web server.
5. The remote device communicates with the web server via gprs or other low-rate communication means to obtain and store the firmware and the check value. In this step, in the process of upgrading by using low-rate communication modes such as gprs and nboot, the server uses a protocol above http1.1, the remote device uses a breakpoint continuous transmission method in the http1.1 protocol to obtain file contents with a size not exceeding 1 kbyte, the remote device obtains relevant ' fragments ' of the firmware by the method, and then recombination of the ' fragments ' is realized by combination, however, under the condition of low-rate communication, the obtained ' fragments ' have errors, so the ' wrong ' fragments cannot be upgraded after combination, and once upgraded, the remote device may become ' bricks ' (i.e., unusable) '.
6. And calculating a check value of the firmware, comparing the check value with a check value of the web server, automatically starting upgrading of the equipment if the check values are consistent, and ensuring the stability of the power supply of the equipment in the upgrading process. Therefore, in the related art, it is further necessary to continuously send a corresponding check value to the server in the process of acquiring the segment, so that the remote device can perform real-time check after acquiring the segment, and once the check value is not matched, the "segment" is continuously acquired until the segment is correctly acquired.
In accordance with an embodiment of the present application, there is provided an embodiment of a device update method, it should be noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer-executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
Fig. 2 is a device update method according to an embodiment of the present application, as shown in fig. 2, the method includes the following steps:
step S102, the equipment to be updated obtains a first check value of the firmware to be upgraded from a server;
step S104, the equipment to be updated establishes communication connection with the mobile terminal, and receives the firmware to be upgraded from the server through the mobile terminal;
and S106, comparing whether the first check value and the second check value of the firmware to be upgraded are consistent, and updating the equipment to be updated according to the firmware to be upgraded when the comparison result is consistent.
In the equipment updating method, equipment to be updated acquires a first check value of firmware to be upgraded from a server; then, the equipment to be updated establishes communication connection with the mobile terminal, and receives the firmware to be updated from the server through the mobile terminal; finally, the device to be upgraded compares whether the first check value and the second check value of the firmware to be upgraded are consistent, when the comparison result is consistent, the device to be upgraded is updated according to the firmware to be upgraded, the purpose of receiving the firmware to be upgraded from the server by virtue of the mobile terminal and sending the upgraded firmware to the device to be upgraded by virtue of the mobile terminal is achieved, thereby realizing the technical effect of preventing the device to be upgraded from directly obtaining the upgraded firmware from the server based on a low-speed and low-bandwidth mode, namely obtaining the upgraded firmware from the server based on a high-speed communication network carried by the mobile terminal and then sending the upgraded firmware to the device to be upgraded, and further solving the technical problem that when the firmware of the low-end device controlled by the low-end embedded chip is upgraded in the related technology, because only a low-speed and low-bandwidth communication mode can be adopted between the low-end device and the server, the technical problems that the communication quality is unstable and the connection is frequently disconnected, so that the firmware upgrading is difficult to complete smoothly exist.
It should be noted that the second check value is an original check value corresponding to the firmware to be upgraded and stored by the server
In some embodiments of the present application, before the device to be updated acquires the first check value of the firmware to be upgraded from the server, it may be determined whether the firmware of the device to be upgraded needs to be upgraded in the following manner, specifically: sending a first version number of the firmware to be updated to a server; and receiving a judgment result returned by the server, wherein the judgment result is used for indicating whether the first version number of the firmware to be updated is consistent with a second version number stored by the server, and the second version number is a version number corresponding to the latest version of the firmware to be updated.
It can be understood that, when the first version number of the firmware to be updated is inconsistent with the second version number stored by the server, the device to be updated sends an update request for updating the firmware to be updated to the server, so as to complete the update of the firmware to be updated.
In some embodiments of the present application, before the device to be updated establishes a communication connection with the mobile terminal, the device to be updated may send an inquiry request to the server, where it should be noted that the inquiry request is used to inquire a file size of the firmware to be updated; and receiving a query response result corresponding to the query request.
In some embodiments of the present application, when the query response result indicates that the file size of the firmware to be updated is greater than the first threshold, establishing a communication connection with the mobile terminal; when the query response result indicates that the file size of the firmware to be updated is smaller than the first threshold, receiving the firmware to be updated from the server, and updating the device to be updated according to the firmware to be updated, for example, when the first threshold is set to 2M, when the query result indicates that the file size of the updated firmware is larger than 2M, establishing communication with the mobile terminal, completing updating of the firmware to be updated through the mobile terminal, and when the size of the updated firmware is smaller than 2M, directly receiving the updated firmware to the server, and completing updating of the device to be updated according to the updated firmware, that is, when the file size of the updated firmware is smaller (for example, smaller than the preset first threshold), directly obtaining the updated firmware from the server by using the original communication mode of the device to be updated to complete updating, but it should be noted that, in order to ensure that the device to be updated is smooth, And upgrading the firmware to be updated is completed without errors, and the upgrading is completed preferentially by adopting a mobile terminal-based mode.
It should be noted that the mobile terminal is a terminal capable of providing a high-speed communication network, and includes but is not limited to: 4G, 5G mobile terminals, etc.
In some optional embodiments of the present application, before the mobile terminal directly receives the firmware to be updated from the server and updates the device to be updated according to the firmware to be updated, it is necessary to determine whether the version of the firmware to be updated is the latest version, and specifically, send the third version number of the firmware to be updated to the server; and receiving a judgment result returned by the server, wherein the judgment result is used for indicating whether the third version number of the firmware to be updated is consistent with a fourth version number stored by the server, and the fourth version number is a version number corresponding to the latest version of the firmware to be updated.
In some embodiments of the application, the device to be updated is provided with a bluetooth communication module and a Wi-Fi communication module, so that the device to be updated and the mobile terminal can be connected in a following manner, and the device to be updated and the mobile terminal can be connected in a communication manner through the bluetooth communication module and/or the Wi-Fi communication module.
In some embodiments of the present application, before receiving, by a mobile terminal, a firmware to be upgraded from a server, the mobile terminal may send a connection request to the server; and when the mobile terminal is successfully connected with the server, the mobile terminal receives the firmware to be upgraded from the server and stores the firmware to be upgraded to the local of the mobile terminal.
In some optional embodiments of the present application, the process of receiving, by the mobile terminal, the firmware to be upgraded from the server may be implemented as follows: receiving a file sending request from a mobile terminal, wherein the file sending request is used for indicating that a local firmware to be upgraded is sent to a device to be updated; and responding to the file sending request, and receiving the firmware to be upgraded.
Fig. 3 is an interaction schematic diagram of an optional device to be updated (remote device), a server (cloud platform), and a mobile terminal (mobile phone) according to the present application, where upgrading is difficult to achieve because the remote device adopts a low-rate communication mode and a high-level operating system is not embedded inside the remote device. For example, the remote device may be a charging pile, in the using process, a charging user may approach the remote device in a short distance, that is, the charging pile is charged, then the cloud platform upgrade firmware is downloaded by using a high-speed network of a mobile phone of the charging user, such as 4G, and the upgrade firmware is transmitted to the remote device by using a wireless network, that is, the upgrade of the remote device is implemented by using a "bridging" method, which needs to be described that the wireless network includes but is not limited to: bluetooth communication, WIFI communication or utilize the self 4G network of customer's cell-phone to communicate, can understand, when needing to utilize the self 4G network of using customer's cell-phone to communicate, can open the hot spot function earlier, for remote equipment sharing network, and then realize the communication of customer's cell-phone and electric pile.
Fig. 4 is a device update system according to an embodiment of the present application, and as shown in fig. 4, the device update system includes:
the server 01 is used for sending the check value of the firmware to be upgraded to the equipment 02 to be updated and sending the firmware file to be upgraded to the mobile terminal 03, wherein the server 01 can at least respond to the access requests of the equipment 02 to be updated and the mobile terminal 03;
the device to be updated 02 is used for receiving a first check value of the firmware to be updated, receiving the firmware to be updated from the server 01 through the mobile terminal 03, judging whether the first check value is consistent with a second check value, and updating the device to be updated 02 according to the firmware to be updated when the comparison result is consistent, wherein the device to be updated 02 is in communication connection with the mobile terminal 03;
the mobile terminal 03 receives the firmware file to be upgraded, and sends the file to be upgraded to the device 02 to be updated.
In the equipment updating system, a server 01 is used for sending a check value of a firmware to be updated to equipment 02 to be updated and sending a firmware file to be updated to a mobile terminal 03, wherein the server 01 can at least respond to access requests of the equipment 02 to be updated and the mobile terminal 03; the device to be updated 02 is used for receiving a first check value of the firmware to be updated, receiving the firmware to be updated from the server 01 through the mobile terminal 03, judging whether the first check value is consistent with a second check value, and updating the device to be updated 02 according to the firmware to be updated when the comparison result is consistent, wherein the device to be updated 02 is in communication connection with the mobile terminal 03; the mobile terminal 03 receives the firmware file to be upgraded and sends the file to be upgraded to the equipment 02 to be updated, so that the purpose of receiving the firmware to be upgraded from the server by means of the mobile terminal and sending the upgraded firmware to the equipment to be updated by means of the mobile terminal is achieved, thereby realizing the purpose of avoiding the equipment to be updated from directly acquiring the upgraded firmware from the server based on a low-speed and low-bandwidth mode, namely, the technical effect of acquiring the upgrade firmware from the server based on the high-speed communication network of the mobile terminal and then sending the upgrade firmware to the equipment to be updated, thereby solving the problem that when the firmware of the low-end equipment controlled by the low-end embedded chip is upgraded in the prior art, because the low-end equipment and the server can only adopt a low-speed and low-bandwidth communication mode, the technical problems that the communication quality is unstable and the connection is frequently disconnected, so that the firmware upgrading is difficult to complete smoothly exist.
Fig. 5 is a device update apparatus according to an embodiment of the present application, and as shown in fig. 5, the device update apparatus includes:
the obtaining module 40 is configured to obtain, by the device to be updated, a first check value of the firmware to be updated from the server;
the receiving module 42 is used for establishing communication connection between the equipment to be updated and the mobile terminal, and receiving the firmware to be updated from the server through the mobile terminal;
the comparing module 44 is configured to compare whether the first check value and the second check value of the firmware to be upgraded are consistent, and update the device to be updated according to the firmware to be upgraded when the comparison result is consistent.
In the device updating device, an obtaining module 40 is used for obtaining a first check value of firmware to be updated from a server by a device to be updated; the receiving module 42 is used for establishing communication connection between the equipment to be updated and the mobile terminal, and receiving the firmware to be updated from the server through the mobile terminal; a comparison module 44, configured to compare whether the first check value and the second check value of the firmware to be upgraded are consistent, and update the device to be updated according to the firmware to be upgraded when the comparison result is consistent, so as to achieve the purpose of receiving the firmware to be upgraded from the server by using the mobile terminal and sending the upgraded firmware to the device to be updated by using the mobile terminal, thereby achieving the technical effect of preventing the device to be updated from directly obtaining the upgraded firmware from the server based on a low-rate and low-bandwidth manner, that is, obtaining the upgraded firmware from the server based on a high-speed communication network of the mobile terminal itself and then sending the upgraded firmware to the device to be updated, and further solving the problem that in the related art, when firmware is updated for a low-end device controlled by a low-end embedded chip, because only a low-rate and low-bandwidth communication manner is often used between the low-end device and the server, the technical problems that the communication quality is unstable and the connection is frequently disconnected, so that the firmware upgrading is difficult to complete smoothly exist.
According to another aspect of the embodiments of the present application, there is also provided a non-volatile storage medium, where the non-volatile storage medium includes a stored program, and the device in which the non-volatile storage medium is located is controlled to execute any one of the device update methods when the program is executed.
The device to be updated acquires a first check value of the firmware to be upgraded from a server; the method comprises the steps that communication connection is established between equipment to be updated and a mobile terminal, and firmware to be updated from a server is received through the mobile terminal; and comparing whether the first check value and the second check value of the firmware to be upgraded are consistent, and updating the equipment to be updated according to the firmware to be upgraded when the comparison result is consistent.
According to another aspect of the embodiments of the present application, there is also provided a processor, configured to execute a program, where the program executes any one of the device updating methods.
Specifically, the processor is configured to call a program instruction in the memory, and implement the following functions: the method comprises the steps that equipment to be updated obtains a first check value of firmware to be upgraded from a server; the method comprises the steps that communication connection is established between equipment to be updated and a mobile terminal, and firmware to be updated from a server is received through the mobile terminal; and comparing whether the first check value and the second check value of the firmware to be upgraded are consistent, and updating the equipment to be updated according to the firmware to be upgraded when the comparison result is consistent.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present application, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.
Claims (13)
1. A device update method, comprising:
the method comprises the steps that equipment to be updated obtains a first check value of firmware to be upgraded from a server;
the equipment to be updated establishes communication connection with a mobile terminal, and receives the firmware to be updated from the server through the mobile terminal;
and comparing whether the first check value and the second check value of the firmware to be upgraded are consistent, and updating the equipment to be updated according to the firmware to be upgraded when the comparison result is consistent.
2. The method of claim 1, wherein before the device to be updated obtains the first check value of the firmware to be upgraded from the server, the method further comprises:
sending the first version number of the firmware to be updated to the server;
and receiving a judgment result returned by the server, wherein the judgment result is used for indicating whether a first version number of the firmware to be updated is consistent with a second version number stored by the server, and the second version number is a version number corresponding to the latest version of the firmware to be updated.
3. The method according to claim 2, wherein when the first version number of the firmware to be updated does not coincide with the second version number stored by the server, the device to be updated sends an update request for updating the firmware to be updated to the server.
4. The method according to claim 1, wherein before the device to be updated establishes a communication connection with a mobile terminal, the method further comprises:
the equipment to be updated sends a query request to the server, wherein the query request is used for querying the file size of the firmware to be updated;
and receiving a query response result corresponding to the query request.
5. The method of claim 4,
when the query response result indicates that the file size of the firmware to be updated is larger than a first threshold value, establishing the communication connection with the mobile terminal;
and when the query response result indicates that the file size of the firmware to be updated is smaller than a first threshold value, receiving the firmware to be updated from the server, and updating the equipment to be updated according to the firmware to be updated.
6. The method according to claim 4, wherein before receiving the firmware to be upgraded from the server and updating the device to be updated according to the firmware to be upgraded, the method further comprises:
sending a third version number of the firmware to be updated to the server;
and receiving a judgment result returned by the server, wherein the judgment result is used for indicating whether a third version number of the firmware to be updated is consistent with a fourth version number stored by the server, and the fourth version number is a version number corresponding to the latest version of the firmware to be updated.
7. The method according to claim 1, wherein the device to be updated is provided with a bluetooth communication module and a Wi-Fi communication module, and the device to be updated establishes a communication connection with the mobile terminal, and the method comprises the following steps:
and the equipment to be updated establishes communication connection with the mobile terminal through the Bluetooth communication module and/or the Wi-Fi communication module.
8. The method of claim 1, wherein before receiving the firmware to be upgraded from the server through the mobile terminal, the method further comprises:
the mobile terminal sends a connection request to the server;
and when the mobile terminal is successfully connected with the server, the mobile terminal receives the firmware to be upgraded from the server and stores the firmware to be upgraded to the local of the mobile terminal.
9. The method of claim 8, wherein receiving, by the mobile terminal, the firmware to be upgraded from the server comprises:
receiving a file sending request from the mobile terminal, wherein the file sending request is used for indicating that the local firmware to be upgraded is sent to the equipment to be updated;
and responding to the file sending request, and receiving the firmware to be upgraded.
10. A device update system, comprising:
the server is used for sending the check value of the firmware to be upgraded to the equipment to be updated and sending the firmware file to be upgraded to the mobile terminal, wherein the server at least can respond to the access request of the equipment to be updated and the mobile terminal;
the mobile terminal receives the firmware file to be upgraded and sends the file to be upgraded to the equipment to be updated;
the device to be updated is used for receiving a first check value of the firmware to be updated, receiving the firmware to be updated from the server through the mobile terminal, judging whether the first check value is consistent with a second check value or not, and updating the device to be updated according to the firmware to be updated when a comparison result is consistent, wherein the device to be updated is in communication connection with the mobile terminal.
11. An apparatus update device, comprising:
the acquisition module is used for acquiring a first check value of the firmware to be upgraded from the server by the equipment to be updated;
the receiving module is used for establishing communication connection between the equipment to be updated and the mobile terminal and receiving the firmware to be upgraded from the server through the mobile terminal;
and the comparison module is used for comparing whether the first check value and the second check value of the firmware to be upgraded are consistent or not, and updating the equipment to be updated according to the firmware to be upgraded when the comparison result is consistent.
12. A non-volatile storage medium, comprising a stored program, wherein when the program runs, a device in which the non-volatile storage medium is located is controlled to execute the device update method according to any one of claims 1 to 9.
13. A processor, configured to execute a program, wherein the program executes to perform the device update method according to any one of claims 1 to 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110112583.7A CN112925538A (en) | 2021-01-27 | 2021-01-27 | Equipment updating method, system and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110112583.7A CN112925538A (en) | 2021-01-27 | 2021-01-27 | Equipment updating method, system and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112925538A true CN112925538A (en) | 2021-06-08 |
Family
ID=76167173
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110112583.7A Pending CN112925538A (en) | 2021-01-27 | 2021-01-27 | Equipment updating method, system and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112925538A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2022266835A1 (en) * | 2021-06-22 | 2022-12-29 | Oppo广东移动通信有限公司 | Cross-platform access method and device |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102238096A (en) * | 2010-05-06 | 2011-11-09 | 蒋斌 | Control method for updating friend information of chatting tool according to characteristics of login user |
CN106598632A (en) * | 2015-10-15 | 2017-04-26 | 中兴通讯股份有限公司 | Firmware upgrading method and apparatus for optical module |
CN107104836A (en) * | 2017-05-04 | 2017-08-29 | 深圳市欧瑞博电子有限公司 | The firmware upgrade method and device of Zigbee equipment |
CN107621937A (en) * | 2017-08-16 | 2018-01-23 | 珠海格力电器股份有限公司 | The methods, devices and systems of software program upgrading |
CN109271196A (en) * | 2018-09-28 | 2019-01-25 | 平安普惠企业管理有限公司 | APP version upgrading method, device, system and computer equipment |
US10452386B1 (en) * | 2018-07-19 | 2019-10-22 | American Megatrends International, Llc | Non-destructive update of discrete components of firmware |
CN111399884A (en) * | 2020-04-09 | 2020-07-10 | 东风小康汽车有限公司重庆分公司 | Vehicle component upgrading method and device and electronic equipment |
CN111522562A (en) * | 2020-04-16 | 2020-08-11 | 佛山市顺德区美的洗涤电器制造有限公司 | Dish washer software burning method, device and equipment |
CN111949288A (en) * | 2020-06-05 | 2020-11-17 | 雷沃工程机械集团有限公司 | Intelligent element remote upgrading method and system based on vehicle-mounted Ethernet |
-
2021
- 2021-01-27 CN CN202110112583.7A patent/CN112925538A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102238096A (en) * | 2010-05-06 | 2011-11-09 | 蒋斌 | Control method for updating friend information of chatting tool according to characteristics of login user |
CN106598632A (en) * | 2015-10-15 | 2017-04-26 | 中兴通讯股份有限公司 | Firmware upgrading method and apparatus for optical module |
CN107104836A (en) * | 2017-05-04 | 2017-08-29 | 深圳市欧瑞博电子有限公司 | The firmware upgrade method and device of Zigbee equipment |
CN107621937A (en) * | 2017-08-16 | 2018-01-23 | 珠海格力电器股份有限公司 | The methods, devices and systems of software program upgrading |
US10452386B1 (en) * | 2018-07-19 | 2019-10-22 | American Megatrends International, Llc | Non-destructive update of discrete components of firmware |
CN109271196A (en) * | 2018-09-28 | 2019-01-25 | 平安普惠企业管理有限公司 | APP version upgrading method, device, system and computer equipment |
CN111399884A (en) * | 2020-04-09 | 2020-07-10 | 东风小康汽车有限公司重庆分公司 | Vehicle component upgrading method and device and electronic equipment |
CN111522562A (en) * | 2020-04-16 | 2020-08-11 | 佛山市顺德区美的洗涤电器制造有限公司 | Dish washer software burning method, device and equipment |
CN111949288A (en) * | 2020-06-05 | 2020-11-17 | 雷沃工程机械集团有限公司 | Intelligent element remote upgrading method and system based on vehicle-mounted Ethernet |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2022266835A1 (en) * | 2021-06-22 | 2022-12-29 | Oppo广东移动通信有限公司 | Cross-platform access method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100584443B1 (en) | Component Download Manager for a Wireless Mobile Station and Method of Operation | |
KR100663538B1 (en) | System and Method for Delta-based Over-The-Air Software Upgrades for a Wireless Mobile Station | |
US20230021634A1 (en) | OTA System Software Upgrade Control Method and Terminal Device | |
US20050022212A1 (en) | Software driver code usage | |
KR101905019B1 (en) | Method for upgrading terminal system, terminal, and system | |
CN110621011B (en) | OTA firmware upgrading method and system based on Bluetooth device side | |
JP4575418B2 (en) | How to manage mobile stations with radio waves | |
CN109101261A (en) | A kind of the remote online upgrade method and system of data acquisition transmission instrument terminal | |
CN111372249B (en) | System and method for testing consistency of code number downloading process of eSIM (embedded subscriber identity Module) terminal of Internet of things | |
CN105162841A (en) | Domestic appliance control method and system | |
KR20010113795A (en) | Software reconfiguration of communications apparatus | |
KR101541112B1 (en) | FOTA system and the method | |
CN106850241A (en) | A kind of vehicle-mounted OBD terminals and its remote upgrade method | |
CN105933888A (en) | Burning method and device of eSIM (Subscriber Identity Module) card based on NFC | |
CN111142905A (en) | OTA (over-the-air) upgrading method, OTA server and OTA upgrading system | |
CN106416196B (en) | Mobile terminal, power adapter and upgrading method thereof | |
CN112925538A (en) | Equipment updating method, system and device | |
CN102256241B (en) | Method, server and intelligent card for acquiring bearer independent protocol (BIP) information of terminal | |
CN109302456A (en) | A kind of document transmission method and device based on aerial downloading OTA technology | |
CN111682965A (en) | FOTA controller | |
CN106912037A (en) | A kind of OTA upgrade methods and device | |
CN114745740B (en) | Intelligent household appliance upgrading system and method | |
JP4823239B2 (en) | Wireless communication apparatus and wireless communication system having the apparatus | |
CN109218001A (en) | Method and apparatus for fired state monitoring | |
KR20040036771A (en) | Method for upgrade the binary data by using OTA |
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 |