Electronic equipment and control method thereof

By obtaining the communication signal strength between the electronic device and the cloud server and determining the target transmission data volume, the stability problem caused by communication interference during the firmware upgrade is solved, and the stability and efficiency of the firmware upgrade is improved.

CN119814850APending Publication Date: 2025-04-11HISENSE HOME APPLIANCES GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311313084.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-10
Publication Date
2025-04-11

AI Technical Summary

Technical Problem

During the firmware upgrade process of electronic devices such as home appliances, the communication connection between electronic devices and cloud servers is easily disturbed by distance and other signals, resulting in communication interruption or data transmission errors, and frequent re-request for firmware upgrade data, reducing the stability of firmware upgrade.

Method used

By obtaining the signal strength of the communication signal between the electronic device and the cloud server, a suitable target transmission data is determined, and a firmware upgrade data is requested from the cloud server based on the data amount, thereby adapting to different communication environments.

Benefits of technology

It improves the stability of electronic devices during firmware upgrade process, avoids the problem of frequently re-requesting firmware upgrade data due to weak signal strength, and improves firmware upgrade efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119814850A_ABST
    Figure CN119814850A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides electronic equipment and a control method thereof, relates to the technical field of electronic equipment, and is used for improving the stability of the electronic equipment in a firmware upgrading process. The electronic equipment comprises a communicator used for establishing communication connection between the electronic equipment and a cloud server; the controller is configured to obtain the signal intensity of a communication signal between the electronic equipment and the cloud server; according to the signal intensity, determining a target transmission data volume of the electronic equipment in a firmware upgrading process; requesting firmware upgrading data from a cloud server based on the target transmission data volume; the firmware upgrading data is used for firmware upgrading of the electronic equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electronic equipment, and in particular to an electronic equipment and a control method thereof. Background Art

[0002] With the rapid development of science and technology, there are more and more intelligent home appliances and other electronic devices. In order to improve the performance and user experience of home appliances and other electronic devices, manufacturers or service providers of home appliances and other electronic devices will regularly or irregularly upgrade the firmware of home appliances and other electronic devices.

[0003] When upgrading the firmware of electronic devices such as home appliances, the electronic devices such as home appliances usually need to establish a communication connection with a cloud server to send firmware upgrade data to the cloud server, thereby achieving the firmware upgrade of the electronic devices such as home appliances.

[0004] However, during the actual firmware upgrade process of electronic devices such as home appliances, the communication connection between the electronic devices and the cloud server is easily affected by distance, other signals, etc., resulting in communication interruption or data transmission errors, thereby causing electronic devices such as home appliances to frequently request the same firmware upgrade data from the cloud server, reducing the stability of firmware upgrades of electronic devices such as home appliances. Summary of the invention

[0005] The present application provides an electronic device and a control method thereof, which are used to improve the stability of the electronic device during a firmware upgrade process.

[0006] In order to achieve the above objectives, this application adopts the following technical solutions.

[0007] In a first aspect, an embodiment of the present application provides an electronic device, comprising: obtaining the signal strength of a communication signal between the electronic device and a cloud server; determining a target transmission data volume of the electronic device during a firmware upgrade process based on the signal strength; requesting firmware upgrade data from the cloud server based on the target transmission data volume; and the firmware upgrade data is used for firmware upgrade of the electronic device.

[0008] The technical solution provided by the embodiment of the present application brings at least the following beneficial effects: the embodiment of the present application provides an electronic device, which first obtains the signal strength of the communication signal between the electronic device and the cloud server before the firmware of the electronic device is upgraded, and determines the appropriate target transmission data volume of the electronic device during the firmware upgrade process based on the signal strength, and further the electronic device can request the cloud server for firmware upgrade data of appropriate size based on the target transmission data volume, so that the electronic device can adapt to different communication environments during the firmware upgrade process. In this way, the stability of the electronic device during the firmware upgrade process can be improved, thereby avoiding the problem of frequent re-requests for firmware upgrade data due to weak signal strength, and improving the firmware upgrade efficiency of the electronic device.

[0009] In some embodiments, the controller is configured to determine the target transmission data volume of the electronic device during the firmware upgrade process based on the signal strength, and is specifically configured to: obtain a preset comparison table; search for the target transmission data volume corresponding to the signal strength in the preset comparison table; wherein the preset comparison table is used to record the preset correspondence between multiple signal strengths and multiple transmission data volumes.

[0010] In some embodiments, multiple transmission data volumes are arranged in descending order based on the size of the data volumes; the controller is also configured to: obtain the consecutive number of successful receipts of firmware upgrade data sent by the cloud server; when the consecutive number is within a preset number range, update the target transmission data volume based on the first transmission data volume; the first transmission data volume is greater than the target transmission data volume; when the consecutive number is outside the preset number range, update the target transmission data volume based on the second transmission data volume; the second transmission data volume is less than the target transmission data volume.

[0011] In some embodiments, the controller is further configured to: arrange multiple transmission data amounts in a preset comparison table in descending order based on the data amount size to obtain a sorting result of multiple transmission data amounts; determine the previous transmission data amount of the target transmission data amount in the sorting result as the first transmission data amount; and determine the next transmission data amount of the target transmission data amount in the sorting result as the second transmission data amount.

[0012] In some embodiments, the controller is further configured to: after the firmware upgrade of the electronic device is completed, update the preset comparison table based on the corresponding relationship between the signal strength and the target transmission data volume.

[0013] In a second aspect, an embodiment of the present application provides a control method for an electronic device, which is applied to the electronic device, and the method includes: obtaining the signal strength of a communication signal between the electronic device and a cloud server; determining, based on the signal strength, a target transmission data volume of the electronic device during a firmware upgrade; requesting firmware upgrade data from the cloud server based on the target transmission data volume; and the firmware upgrade data is used for firmware upgrades of the electronic device.

[0014] In some embodiments, the target transmission data volume of the electronic device during the firmware upgrade process is determined based on the signal strength, including: obtaining a preset comparison table; searching the preset comparison table for the target transmission data volume corresponding to the signal strength; wherein the preset comparison table is used to record the preset correspondence between multiple signal strengths and multiple transmission data volumes.

[0015] In some embodiments, the method also includes: obtaining the number of consecutive times of successfully receiving firmware upgrade data sent by the cloud server; when the consecutive number is within a preset number range, updating the target transmission data amount based on the first transmission data amount; the first transmission data amount is greater than the target transmission data amount; when the consecutive number is outside the preset number range, updating the target transmission data amount based on the second transmission data amount; the second transmission data amount is less than the target transmission data amount.

[0016] In some embodiments, the method also includes: arranging multiple transmission data amounts in a preset comparison table in descending order based on the data amount size to obtain a sorting result of multiple transmission data amounts; determining the previous transmission data amount of the target transmission data amount in the sorting result as the first transmission data amount; and determining the next transmission data amount of the target transmission data amount in the sorting result as the second transmission data amount.

[0017] In some embodiments, the method further includes: after the electronic device firmware upgrade is completed, updating a preset comparison table based on the corresponding relationship between the signal strength and the target transmission data volume.

[0018] In a third aspect, an embodiment of the present application provides a controller comprising: one or more processors; one or more memories; wherein the one or more memories are used to store computer program codes, the computer program codes include computer instructions, and when the one or more processors execute the computer instructions, the controller executes any one of the control methods of the electronic device provided in the second aspect.

[0019] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which includes computer instructions. When the computer instructions are executed on a computer, the computer executes any one of the control methods for electronic devices provided in the second aspect.

[0020] In a fifth aspect, an embodiment of the present invention provides a computer program product, which can be directly loaded into a memory and contains software code. After being loaded and executed by a computer, the computer program product can implement a control method for any electronic device provided in the second aspect.

[0021] It should be noted that the above computer instructions may be stored in whole or in part on a computer-readable storage medium, wherein the computer-readable storage medium may be packaged together with the processor of the controller, or may be packaged separately from the processor of the controller, which is not limited in this application.

[0022] The beneficial effects described in the second to fifth aspects of the present application can be referred to the beneficial effect analysis of the first aspect and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The accompanying drawings are used to provide a further understanding of the technical solution of the present invention and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present invention and do not constitute a limitation on the technical solution of the present invention.

[0024] Figure 1 A flowchart of a firmware upgrade method for an electronic device in a related art provided in an embodiment of the present application;

[0025] Figure 2 A schematic diagram of an application scenario of a control method for an electronic device provided in an embodiment of the present application;

[0026] Figure 3 A schematic diagram of an application scenario of another electronic device control method provided in an embodiment of the present application;

[0027] Figure 4 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;

[0028] Figure 5 A schematic diagram of a preset comparison table stored in a memory of an electronic device provided in an embodiment of the present application;

[0029] Figure 6 A schematic diagram of a preset comparison table stored in a memory of another electronic device provided in an embodiment of the present application;

[0030] Figure 7 A schematic diagram of the hardware structure of a cloud server provided in an embodiment of the present application;

[0031] Figure 8 A flowchart of a control method of an electronic device provided in an embodiment of the present application;

[0032] Fig. 9 A flowchart of another method for controlling an electronic device provided in an embodiment of the present application;

[0033] Fig.10 A schematic diagram of a preset correspondence relationship between multiple communication signal strengths and multiple transmission data amounts provided in an embodiment of the present application;

[0034] Fig.11 A flowchart of another method for controlling an electronic device provided in an embodiment of the present application;

[0035] Fig.12 A flowchart of another method for controlling an electronic device provided in an embodiment of the present application;

[0036] Fig.13 A schematic diagram of sorting results of multiple transmission data volumes provided in an embodiment of the present application;

[0037] Fig.14 A schematic diagram of another sorting result of multiple transmission data amounts provided in an embodiment of the present application;

[0038] Fig.15 A flowchart of another method for controlling an electronic device provided in an embodiment of the present application;

[0039] Fig.16 An updated preset comparison diagram provided in an embodiment of the present application;

[0040] Fig.17 Another updated preset comparison diagram provided in the embodiment of the present application;

[0041] Fig.18 An updated preset comparison diagram provided in an embodiment of the present application;

[0042] Fig.19 Another updated preset comparison diagram provided in the embodiment of the present application;

[0043] Fig. 20 A flowchart of another method for controlling an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0044] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0045] It should be noted that all directional indications in the embodiments of the present invention (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0046] The terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, unless otherwise specified, "plurality" means two or more.

[0047] In the description of this application, it should be noted that, unless otherwise clearly specified and limited, the terms "connected" and "connection" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances. In addition, when describing a pipeline, the "connected" and "connection" used in this application have the meaning of conduction. The specific meaning needs to be understood in conjunction with the context.

[0048] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0049] In related technologies, such as Figure 1 As shown, when the home appliance or other electronic device needs to perform a firmware upgrade, the home appliance or other electronic device will directly request the firmware upgrade data from the cloud server to implement the firmware upgrade of the home appliance or other electronic device.

[0050] However, when the communication signal strength between electronic devices such as home appliances and cloud servers is weak, the data transmission between electronic devices such as home appliances and cloud servers may become unstable. During the firmware upgrade process of electronic devices such as home appliances, if the communication signal strength is not enough to support the transmission of complete firmware upgrade data, electronic devices such as home appliances may not be able to obtain the firmware upgrade data completely. In order to ensure the integrity of the firmware upgrade data, electronic devices such as home appliances will re-initiate a request to the cloud server to request the firmware upgrade data, thereby extending the entire firmware upgrade time of the electronic device.

[0051] Based on this, an embodiment of the present application provides a control method for an electronic device. Before the firmware of the electronic device is upgraded, the signal strength of the communication signal between the electronic device and the cloud server is first obtained, and according to the signal strength, the appropriate target transmission data volume of the electronic device during the firmware upgrade process is determined. Further, the electronic device can request firmware upgrade data of appropriate size from the cloud server based on the target transmission data volume, so that the electronic device can adapt to different communication environments during the firmware upgrade process. In this way, the stability of the electronic device during the firmware upgrade process can be improved, thereby avoiding the problem of frequent re-requests for firmware upgrade data due to weak signal strength, and improving the firmware upgrade efficiency of the electronic device.

[0052] Figure 2 Schematic diagram of an application scenario of a control method of an electronic device provided by the present application according to an exemplary embodiment. Figure 2 As shown, the application scenario 1 includes an electronic device 10 and a cloud server 20 .

[0053] The cloud server 20 is communicatively connected with the electronic device 10 .

[0054] The electronic device 10 is an embedded device, and the electronic device 10 may be a household appliance, for example, Figure 2 The electronic device 10 shown in the figure can be a household appliance such as a television, a washing machine, a refrigerator, etc. The electronic device 10 can also be a non-household appliance, such as a driving recorder, a router, etc. The specific form of the electronic device 10 is not particularly limited in this application.

[0055] The cloud server 20 may be a device with data processing and data storage capabilities. For example, the cloud server 20 is a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks, and big data servers, or a server cluster composed of multiple servers. The present application does not impose any special restrictions on the specific form of the cloud server 20.

[0056] In some embodiments, the cloud server 20 may send a firmware upgrade instruction to the electronic device 10 to instruct the electronic device 10 to perform a firmware upgrade.

[0057] Furthermore, the electronic device 10 obtains firmware upgrade data through the communication connection with the cloud server 20 to perform firmware upgrade.

[0058] In some embodiments, Figure 3 As shown, the application scenario 1 may also include a terminal device 30 .

[0059] The cloud server 20 may also be connected to the electronic device 10 for communication.

[0060] The terminal device 30 can be a remote control, a mobile phone, a tablet computer, a personal computer (PC), a personal digital assistant (PDA), a smart watch, a netbook, a wearable electronic device, an augmented reality (AR) device, a virtual reality (VR) device, a robot, etc. Figure 3 The terminal device 30 shown in the figure is only an example of a terminal device, and the present application does not impose any special limitation on the specific form of the terminal device 30.

[0061] It should be noted that the electronic device 10 in the above application scenario 1 is other electronic devices except the terminal device.

[0062] In a possible implementation, if the electronic device 10 is a terminal device, the above-mentioned application scenario 1 only needs to include the electronic device 10 and the cloud server 20, and the above-mentioned interactive operation can be performed directly between the electronic device 10 and the cloud server 20.

[0063] Figure 4 FIG. 1 is a schematic diagram of the hardware structure of an electronic device provided by the present application according to an exemplary embodiment. Figure 4 As shown, the electronic device 10 includes a controller 301 , a memory 302 and a communicator 303 .

[0064] In some embodiments, the controller 301 refers to a device that can generate an operation control signal according to the instruction operation code and the timing signal to instruct the electronic device to execute the control instruction. Exemplarily, the controller can be a central processing unit (CPU), a general-purpose processor network processor (NP), a digital signal processor (DSP), a microprocessor, a microcontroller, a programmable logic device (PLD), or any combination thereof. The controller can also be other devices with processing functions, such as circuits, devices, or software modules, and the embodiments of the present application do not impose any restrictions on this.

[0065] In some embodiments, the memory 302 can be used to store software programs and data. The controller 301 executes various functions and data processing of the electronic device 10 by running the software programs or data stored in the memory 302. The memory 302 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. The memory 302 stores an operating system that enables the electronic device 10 to run. In the present application, the memory 302 can store an operating system and various application programs, and can also store code for executing the control method of the electronic device provided in the embodiment of the present application.

[0066] Exemplarily, the memory 302 may store a preset comparison table, wherein the preset comparison table is used to record multiple signal strengths and multiple transmission data volumes.

[0067] For example, Figure 5 As shown, the multiple signal strengths are respectively strong signal strength, medium signal strength, and weak signal strength, and the multiple transmission data volumes are respectively 2048 bytes, 1024 bytes, 512 bytes, 256 bytes, 128 bytes, and 64 bytes.

[0068] In addition, there is a preset corresponding relationship between the multiple signal strengths and the multiple transmission data amounts.

[0069] For example, Figure 6 As shown in the figure, strong signal strength corresponds to 2048 bytes and 1024 bytes respectively. Medium signal strength corresponds to 512 bytes and 256 bytes of transmitted data respectively. Weak signal strength corresponds to 128 bytes and 64 bytes respectively.

[0070] In some embodiments, the controller 301 executes various functions and data processing of the electronic device 10 by running software programs or data stored in the memory 302. The memory 302 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. The memory 302 stores an operating system that enables the electronic device 10 to run. In the present application, the memory 302 may store an operating system and various application programs, and may also store code for executing the control method of the electronic device provided in the embodiment of the present application.

[0071] In some embodiments, the communicator 303 is used to establish a communication connection with other network entities, for example, to establish a communication connection with the cloud server 20. The communicator 303 may include a radio frequency (RF) module, a cellular module, a wireless fidelity (WIFI) module, and a GPS module. Taking the RF module as an example, the RF module can be used to receive and send signals, in particular, to send the received information to the controller 301 for processing; in addition, the signal generated by the controller 301 is sent out. Generally, the RF circuit may include but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, etc.

[0072] Those skilled in the art will understand that Figure 4 The structure shown in the figure does not constitute a limitation on the electronic device, and the electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0073] Figure 7 The hardware structure diagram of a cloud server provided by the present application according to an exemplary embodiment is shown in FIG. Figure 7 As shown, the cloud server 20 includes a processor 701 , a memory 702 and a communicator 703 .

[0074] In some embodiments, the processor 701 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present disclosure, such as one or more digital signal processors (DSP), or one or more field programmable gate arrays (FPGA).

[0075] In some embodiments, the memory 702 can be used to store software programs and data, including at least one new version of firmware configured for the electronic device. The processor 701 executes various functions and data processing of the cloud server 20 by running the software programs or data stored in the memory 702. The memory 702 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. The memory 702 stores an operating system that enables the cloud server 20 to run. In the present application, the memory 702 can store an operating system and various application programs, and can also store code for executing the control method of the electronic device provided in the embodiment of the present application.

[0076] In a possible implementation, the memory 702 may also store a preset comparison table. In addition, the description of the preset comparison table can refer to the above Figure 5 , Figure 6 The specific description of the preset comparison table in the illustrated embodiment will not be repeated here.

[0077] It should be noted that both the memory 302 in the electronic device 10 and the memory 702 in the cloud server 20 can store the preset comparison table, or only the memory 302 in the electronic device 10 can store the preset comparison table, or only the memory 702 in the cloud server 20 can store the preset comparison table. The present application does not impose any special restrictions on this.

[0078] In some embodiments, the communicator 703 is used to establish a communication connection with other network entities, for example, to establish a communication connection with the terminal device 10. The communicator 703 may include a radio frequency (RF) module, a cellular module, a wireless fidelity (WIFI) module, and a GPS module. Taking the RF module as an example, the RF module can be used to receive and send signals, in particular, to send the received information to the processor 701 for processing; in addition, the signal generated by the processor 701 is sent out. Generally, the RF circuit may include but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, etc.

[0079] Those skilled in the art will understand that Figure 7 The structure shown in the figure does not constitute a limitation on the cloud server. The cloud server may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0080] The embodiments provided in this application are described in detail below in conjunction with the accompanying drawings.

[0081] like Figure 8 As shown, an embodiment of the present application provides a control method for an electronic device, the method comprising the following steps:

[0082] S101. A controller obtains signal strength of a communication signal between an electronic device and a cloud server.

[0083] In some embodiments, the electronic device first establishes a communication connection with the cloud server through the communicator, so that data can be transmitted between the electronic device and the cloud server.

[0084] Furthermore, when the cloud server sends a firmware upgrade instruction to the electronic device, that is, the firmware of the electronic device needs to be upgraded, the controller can obtain the signal strength between the electronic device and the cloud server through the signal strength monitoring device. For example, the signal strength monitoring device can be a signal strength meter.

[0085] S102: The controller determines a target transmission data volume of the electronic device during a firmware upgrade process according to the signal strength.

[0086] In some embodiments, the controller may calculate the target transmission data volume of the electronic device during the firmware upgrade process based on the signal strength and a fitting formula between the signal strength and the transmission data volume.

[0087] Exemplarily, the fitting formula may be the following formula (1).

[0088] D=A×s+B Formula (1)

[0089] Where D is the target transmission data volume; A and B are fitting coefficients; and s is the signal strength.

[0090] In other embodiments, Fig. 9 As shown, step S102 can also be implemented as the following steps:

[0091] S1021. The controller obtains a preset comparison table.

[0092] The preset comparison table is used to record the preset corresponding relationships between multiple communication signal strengths and multiple transmission data volumes.

[0093] In some embodiments, the preset correspondence between multiple communication signal strengths and multiple transmission data amounts may be a one-to-many correspondence.

[0094] The one-to-many correspondence between multiple communication signal strengths and multiple transmission data volumes can be referred to above. Figure 6 The embodiment shown is a specific description of the preset corresponding relationship.

[0095] In a possible implementation manner, the preset correspondence between multiple communication signal strengths and multiple transmission data amounts may also be a one-to-one correspondence.

[0096] Exemplarily, a one-to-one correspondence between multiple communication signal strengths and multiple transmission data amounts is as follows: Fig.10 As shown, a strong signal strength corresponds to 2048 bytes one-to-one, a medium signal strength corresponds to 512 bytes one-to-one, and a weak signal strength corresponds to 128 bytes one-to-one.

[0097] In some embodiments, a preset default comparison table is stored in the memory of the electronic device. When the firmware of the electronic device is upgraded for the first time, the preset comparison table obtained by the controller from the memory is the default comparison table.

[0098] In some embodiments, when the electronic device performs a firmware upgrade for the second time or more, the preset comparison table obtained by the controller is an updated new preset comparison table (for the description of the new preset comparison table, please refer to the specific description of the preset comparison table in step S401 below).

[0099] S1022: The controller searches a preset comparison table for a target transmission data volume corresponding to the signal strength.

[0100] In some embodiments, when the preset correspondence between multiple communication signal strengths and multiple transmission data amounts in the preset comparison table is a one-to-many correspondence, the controller can use any one of the multiple transmission data amounts corresponding to the signal strength as the target transmission data amount.

[0101] Exemplarily, the controller may use the first transmission data amount among multiple transmission data amounts corresponding to the signal strength as the target transmission data amount, or may use the last transmission data amount among multiple transmission data amounts corresponding to the signal strength as the target transmission data amount. This embodiment of the present application is not limited to this.

[0102] by Figure 6 Taking the preset comparison table shown as an example, when the first transmission data amount among the multiple transmission data amounts corresponding to the signal strength is used as the target transmission data amount, if the signal strength is weak, 128 bytes are used as the target transmission data amount. If the signal strength is medium, 512 bytes are used as the target transmission data amount. If the signal strength is strong, 2048 bytes are used as the target transmission data amount.

[0103] by Figure 6 Taking the preset comparison table shown as an example, when the last transmission data amount among the multiple transmission data amounts corresponding to the signal strength is used as the target transmission data amount, if the signal strength is weak, 64 bytes are used as the target transmission data amount. If the signal strength is medium, 256 bytes are used as the target transmission data amount. If the signal strength is strong, 1024 bytes are used as the target transmission data amount.

[0104] S103: The controller requests firmware upgrade data from the cloud server based on the target transmission data volume.

[0105] Among them, the firmware upgrade data is used for firmware upgrade of electronic equipment.

[0106] In some embodiments, the controller requests a message from the cloud server through the communicator based on the target transmission data volume to request firmware upgrade data from the cloud server.

[0107] It can be understood that the size of the firmware upgrade data is equal to the size of the target transmission data volume.

[0108] Furthermore, the cloud server sends firmware upgrade data to the electronic device in response to the request message.

[0109] Furthermore, after the electronic device receives the firmware upgrade data sent by the cloud server through the communicator, the firmware upgrade data is stored in the memory to upgrade the firmware of the electronic device.

[0110] based on Figure 8 In the embodiment shown, the embodiment of the present application provides a control method for an electronic device. Before the firmware of the electronic device is upgraded, the signal strength of the communication signal between the electronic device and the cloud server is first obtained, and according to the signal strength, the appropriate target transmission data volume of the electronic device during the firmware upgrade process is determined. Further, the electronic device can request firmware upgrade data of appropriate size from the cloud server based on the target transmission data volume, so that the electronic device can adapt to different communication environments during the firmware upgrade process. In this way, the stability of the electronic device during the firmware upgrade process can be improved, thereby avoiding the problem of frequent re-requests for firmware upgrade data due to weak signal strength, and improving the firmware upgrade efficiency of the electronic device.

[0111] In some embodiments, in order to further dynamically adjust the target transmission data volume of the electronic device during the firmware upgrade process, such as Fig.11 As shown, a control method of an electronic device provided in an embodiment of the present application may further include the following steps:

[0112] S201. The controller obtains the number of consecutive times of successfully receiving firmware upgrade data sent by the cloud server.

[0113] In some embodiments, a counter is provided in the electronic device for recording the number of consecutive times that the electronic device successfully receives the firmware upgrade data sent by the cloud server. Then the controller can obtain the number of consecutive times that the firmware upgrade data sent by the cloud server is successfully received through the counter.

[0114] S202: When the consecutive number of times is within a preset number range, the controller updates the target transmission data volume based on the first transmission data volume.

[0115] The first transmission data volume is greater than the target transmission data volume.

[0116] It should be noted that if the number of consecutive times is within the preset number range, it means that the electronic device can stably receive the firmware upgrade data sent by the cloud server under the current signal strength. In order to shorten the transmission time of the firmware upgrade data and improve the efficiency of the firmware upgrade, the electronic device can try to increase the current target transmission data volume, and also update the target transmission data volume based on the first transmission data volume. In this way, the stability of the electronic device during the firmware upgrade process can be improved, and the transmission time of the firmware upgrade data can be shortened, thereby improving the efficiency of the firmware upgrade.

[0117] Optionally, the preset number range may be an interval, such as (7 times, 10 times), or may be a threshold, such as 10 times.

[0118] For example, when the preset number range is (7 times, 10 times), if the consecutive number is 8 times or 9 times, it means that the consecutive number is within the preset stable number range. If the consecutive number is other than 8 times or 9 times, it means that the consecutive number is outside the preset stable number range.

[0119] When the preset number range is 10 times, if the continuous number is 10 times, it means that the continuous number is within the preset stable number range. If the continuous number is other than 10 times, it means that the continuous number is outside the preset stable number range.

[0120] In some embodiments, the multiple transmission data amounts may be arranged in descending order based on the data amount size, or may be arranged in ascending order based on the data amount size. For different arrangement methods of the multiple transmission data amounts, there are different determination methods to determine the first transmission data amount.

[0121] In one example, when multiple transmission data volumes are arranged in descending order based on the data volume size, the controller may determine the previous transmission data volume of the target transmission data volume as the first transmission data volume. Fig.12 The specific description of the first transmission data volume in the illustrated embodiment is not repeated in this application.

[0122] In another example, when multiple transmission data volumes are arranged in ascending order based on the data volume size, the controller may determine the next transmission data volume of the target transmission data volume as the first transmission data volume. Fig.12 The specific description of the first transmission data volume in the illustrated embodiment is not repeated in this application.

[0123] S203: When the consecutive number of times is outside a preset number range, the controller updates the target transmission data amount based on the second transmission data amount.

[0124] The second transmission data volume is smaller than the target transmission data volume.

[0125] It should be noted that if the consecutive number is outside the preset range (please refer to the specific description of the consecutive number outside the preset range in the above step S202), it means that under the current signal strength, it is difficult to completely receive the firmware upgrade data sent by the cloud server that is equal to the target transmission data volume based on the current target transmission data volume. This may cause the electronic device to repeatedly request the same firmware upgrade data, thereby extending the transmission time of the firmware upgrade data.

[0126] In this case, the electronic device can try to reduce the current target transmission data volume, that is, the next transmission data volume of the target transmission data volume is used as the new target transmission data volume. In this way, the electronic device can completely receive the firmware upgrade data sent by the cloud server under weak signal strength. In this way, the stability of the electronic device during the firmware upgrade process can be improved, and the transmission time of the firmware upgrade data can be shortened, thereby improving the efficiency of the firmware upgrade.

[0127] In some embodiments, for different arrangement methods of a plurality of transmission data amounts, there are also different determination methods for determining the second transmission data amount.

[0128] In one example, when multiple transmission data volumes are arranged in descending order based on the data volume size, the controller may determine the next transmission data volume of the target transmission data volume as the second transmission data volume. Fig.12 The specific description of the second transmission data volume in the illustrated embodiment is not repeated in this application.

[0129] In another example, when multiple transmission data volumes are arranged in ascending order based on the data volume size, the controller may determine the previous transmission data volume of the target transmission data volume as the second transmission data volume. Fig.12 The specific description of the second transmission data volume in the illustrated embodiment is not repeated in this application.

[0130] In some embodiments, in order to determine the first transmission data amount and the second transmission data amount, as Fig.12 As shown, a control method of an electronic device provided in an embodiment of the present application may further include the following steps:

[0131] S301. The controller arranges multiple transmission data volumes in a preset comparison table in descending order based on the data volume, and obtains a sorting result of the multiple transmission data volumes.

[0132] Exemplarily, the controller arranges the multiple transmission data volumes in the preset comparison table in descending order based on the data volume, and the obtained sorting results of the multiple transmission data volumes are as follows: Fig.13 As shown, the sorting results are 2048 bytes, 1024 bytes, 512 bytes, 256 bytes, 128 bytes, and 64 bytes.

[0133] In a possible implementation, the controller may also arrange the multiple transmission data volumes in the preset comparison table in ascending order based on the data volume to obtain a sorting result of the multiple transmission data volumes.

[0134] Exemplarily, the controller arranges the multiple transmission data volumes in the preset comparison table in descending order based on the data volume, and the obtained sorting results of the multiple transmission data volumes are as follows: Fig.14 As shown, the sorting results are 64 bytes, 128 bytes, 256 bytes, 512 bytes 1024 bytes, and 2048 bytes.

[0135] S302: The controller determines the previous transmission data volume of the target transmission data volume in the sorting result as the first transmission data volume.

[0136] For example, based on Fig.13 If the signal strength is strong and the target transmission data volume is 1024 bytes, then if the consecutive times are within the preset times range, the last transmission data volume of 1024 bytes, that is, 2048 bytes, is used as the first transmission data volume.

[0137] In a possible implementation, when multiple transmission data amounts in the preset comparison table are arranged in ascending order based on data amount size, if the consecutive times are within a preset range, the next transmission data amount of the target transmission data amount is used as the first transmission data amount.

[0138] For example, based on Fig.14 According to the sorting result shown, if the signal strength is strong and the target transmission data volume is 1024 bytes, then when the consecutive times are within the preset times, the next transmission data volume of 1024 bytes, that is, 2048 bytes, is used as the first transmission data volume.

[0139] S303: The controller determines the next transmission data volume of the target transmission data volume in the sorting result as the second transmission data volume.

[0140] For example, based on Fig.13 If the signal strength is strong and the target transmission data volume is 2048 bytes, then when the consecutive times are outside the preset times range, the next transmission data volume of 2048 bytes, that is, 1024 bytes, is used as the second transmission data volume.

[0141] In a possible implementation, when multiple transmission data amounts in the preset comparison table are arranged in ascending order based on data amount size, if the consecutive times are outside the preset times range, the previous transmission data amount of the target transmission data amount is used as the second transmission data amount.

[0142] For example, based on Fig.14 According to the sorting result shown, if the signal strength is strong and the target transmission data volume is 2048 bytes, then when the consecutive times are within the preset times, the previous transmission data volume of 2048 bytes, that is, 1024 bytes, is used as the second transmission data volume.

[0143] It should be noted that the controller may first execute step S302 and then execute step S303, or may first execute step S303 and then execute step S302. This application does not specifically limit the execution order of step S302 and step S303.

[0144] In some embodiments, in order to improve the accuracy of the preset comparison table, Fig.15 As shown, a control method of an electronic device provided in an embodiment of the present application may further include the following steps:

[0145] S401: After the firmware upgrade of the electronic device is completed, the controller updates a preset comparison table based on the corresponding relationship between the signal strength and the target transmission data volume.

[0146] In some embodiments, after the firmware upgrade of the electronic device is completed, the controller records the corresponding relationship between the current signal strength and the current target transmission data volume in a preset comparison table to update the preset comparison table.

[0147] It should be noted that the same signal strength may correspond to different suitable transmission data volumes in different environments. By recording the correspondence between the current signal strength and the current target transmission data volume in a preset comparison table and updating the preset comparison table in real time, the accuracy of the preset comparison table can be ensured.

[0148] In this way, when the environment changes, the preset comparison table can be adjusted in time to maintain an accurate correspondence between signal strength and transmission data volume. Through an accurate preset comparison table, the efficiency and stability of firmware upgrades can be improved.

[0149] For example, the preset comparison table before updating is as follows: Fig.13 As shown in FIG. 1 , the current signal strength is a strong signal strength and the current target transmission data volume is 512 bytes. Since 512 bytes correspond to medium signal strength in the preset comparison table before updating, when updating the preset comparison table, the corresponding relationship between 512 bytes and strong signal strength is recorded in the preset comparison table. The updated preset comparison table is as follows: Fig.16 shown.

[0150] For example, the preset comparison table before updating is as follows: Fig.14 As shown in FIG. 1 , the current signal strength is medium signal strength and the current target transmission data volume is 128 bytes. Since 128 bytes correspond to weak signal strength in the preset comparison table before updating, when updating the preset comparison table, the corresponding relationship between 128 bytes and medium signal strength is recorded in the preset comparison table. The updated preset comparison table is as follows: Fig.17 shown.

[0151] For example, the preset comparison table before updating is as follows: Fig.13As shown, taking the current signal strength as strong signal strength and the current target transmission data volume as 4096 bytes as an example, when updating the preset comparison table, the corresponding relationship between 4096 bytes and strong signal strength is recorded in the preset comparison table. The updated preset comparison table is as follows: Fig.18 shown.

[0152] For example, the preset comparison table before updating is as follows: Fig.14 As shown in FIG. 1 , the current signal strength is medium signal strength and the current target transmission data volume is 500 bytes. Since 128 bytes correspond to weak signal strength in the preset comparison table before updating, when updating the preset comparison table, the corresponding relationship between 500 bytes and medium signal strength is recorded in the preset comparison table. The updated preset comparison table is as follows: Fig.19 shown.

[0153] In some embodiments, after the firmware upgrade of the electronic device is completed, the controller can also detect the upgraded new firmware through a self-test program.

[0154] Exemplarily, the controller can detect whether the version number of the upgraded new firmware matches the version number of the target version firmware expected by the electronic device through a self-check program to ensure that the current version firmware of the electronic device has been successfully upgraded to the expected target version firmware.

[0155] The following is combined with Fig. 20 The flowchart shown exemplarily introduces the complete process of the control method of the electronic device shown in the above embodiment.

[0156] like Fig. 20 As shown, the process starts.

[0157] S1. The controller obtains the signal strength of the communication signal between the electronic device and the cloud server.

[0158] S2. The controller obtains a preset comparison table.

[0159] S3. The controller searches a preset comparison table for a target transmission data volume corresponding to the signal strength.

[0160] S4. The controller requests firmware upgrade data from the cloud server based on the target transmission data volume.

[0161] Determine whether the firmware of the electronic device has been upgraded.

[0162] If yes, execute the following step S8.

[0163] If not, execute the following step S5.

[0164] S5. The controller obtains the number of consecutive times of successfully receiving the firmware upgrade data sent by the cloud server.

[0165] Determine whether the consecutive times are within a preset range.

[0166] If yes, then execute the following step S6 and the above step S4 in sequence.

[0167] If not, execute the following step S7 and the above step S4 in sequence.

[0168] S6. The controller updates the target transmission data volume based on the first transmission data volume.

[0169] S7. The controller updates the target transmission data volume based on the second transmission data volume.

[0170] S8. The controller updates the preset comparison table based on the corresponding relationship between the signal strength and the target transmission data volume.

[0171] Those skilled in the art will appreciate that in one or more of the above examples, the functions described in the present invention may be implemented in hardware, software, firmware, or any combination thereof. When implemented using software, the functions may be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium may be any available medium that a general or special-purpose computer can access.

[0172] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0173] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. An electronic device, characterized in that: include: A communicator, used for the electronic device to establish a communication connection with a cloud server; The controller is configured as: Acquire the signal strength of the communication signal between the electronic device and the cloud server; Determining a target transmission data volume of the electronic device during a firmware upgrade process according to the signal strength; Requesting firmware upgrade data from the cloud server based on the target transmission data volume; The firmware upgrade data is used for upgrading the firmware of the electronic device.

2. The electronic device according to claim 1, characterized in that: The controller is configured to determine, according to the signal strength, a target transmission data volume of the electronic device during a firmware upgrade process, and is specifically configured to: Get the preset comparison table; The target transmission data volume corresponding to the signal strength is searched in the preset comparison table; wherein the preset comparison table is used to record the preset corresponding relationship between multiple signal strengths and multiple transmission data volumes.

3. The electronic device according to claim 2, characterized in that: The controller is further configured to: Get the number of consecutive times of successfully receiving firmware upgrade data sent by the cloud server; When the continuous number is within a preset number range, updating the target transmission data amount based on the first transmission data amount; the first transmission data amount is greater than the target transmission data amount; When the consecutive number is outside the preset number range, the target transmission data amount is updated based on a second transmission data amount; the second transmission data amount is smaller than the target transmission data amount.

4. The electronic device according to claim 3, characterized in that: The controller is further configured to: Arrange the multiple transmission data amounts in the preset comparison table in descending order based on the data amount to obtain a sorting result of the multiple transmission data amounts; Determine the previous transmission data amount of the target transmission data amount in the sorting result as the first transmission data amount; The next transmission data amount of the target transmission data amount in the sorting result is determined as the second transmission data amount.

5. The electronic device according to any one of claims 2 to 4, characterized in that: The controller is further configured to: After the firmware upgrade of the electronic device is completed, the preset comparison table is updated based on the corresponding relationship between the signal strength and the target transmission data volume.

6. A method for controlling an electronic device, characterized in that: The method comprises: Acquire the signal strength of the communication signal between the electronic device and the cloud server; Determining a target transmission data volume of the electronic device during a firmware upgrade process according to the signal strength; Requesting firmware upgrade data from the cloud server based on the target transmission data volume; the firmware upgrade data is used for firmware upgrade of the electronic device.

7. The method according to claim 6, characterized in that Determining a target transmission data volume of the electronic device during a firmware upgrade process according to the signal strength includes: Get the preset comparison table; The target transmission data volume corresponding to the signal strength is searched in the preset comparison table; wherein the preset comparison table is used to record the preset corresponding relationship between multiple signal strengths and multiple transmission data volumes.

8. The method according to claim 7, characterized in that The method further comprises: Get the number of consecutive times of successfully receiving firmware upgrade data sent by the cloud server; When the continuous number is within a preset number range, updating the target transmission data amount based on the first transmission data amount; the first transmission data amount is greater than the target transmission data amount; When the consecutive number is outside the preset number range, the target transmission data amount is updated based on a second transmission data amount; the second transmission data amount is smaller than the target transmission data amount.

9. The method according to claim 8, characterized in that The method further comprises: Arrange the multiple transmission data amounts in the preset comparison table in descending order based on the data amount to obtain a sorting result of the multiple transmission data amounts; Determine the previous transmission data amount of the target transmission data amount in the sorting result as the first transmission data amount; The next transmission data amount of the target transmission data amount in the sorting result is determined as the second transmission data amount.

10. The method according to any one of claims 6 to 9, characterized in that: The method further comprises: After the firmware upgrade of the electronic device is completed, the preset comparison table is updated based on the corresponding relationship between the signal strength and the target transmission data volume.