CN114461239B - Software upgrading system and software upgrading method - Google Patents

Software upgrading system and software upgrading method Download PDF

Info

Publication number
CN114461239B
CN114461239B CN202110745618.0A CN202110745618A CN114461239B CN 114461239 B CN114461239 B CN 114461239B CN 202110745618 A CN202110745618 A CN 202110745618A CN 114461239 B CN114461239 B CN 114461239B
Authority
CN
China
Prior art keywords
software version
electronic device
upgraded
information
software
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110745618.0A
Other languages
Chinese (zh)
Other versions
CN114461239A (en
Inventor
于庆秋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202110745618.0A priority Critical patent/CN114461239B/en
Publication of CN114461239A publication Critical patent/CN114461239A/en
Application granted granted Critical
Publication of CN114461239B publication Critical patent/CN114461239B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application provides a software upgrading system and a software upgrading method. The method comprises the following steps: the second electronic equipment receives the broadcast message sent by the first electronic equipment; the broadcast message includes first software version information indicating a software version of at least one hardware module in the first electronic device, the first electronic device and the second electronic device being on a same local area network. Next, acquiring first software version information from the first electronic device; and acquiring the version information of the software to be upgraded of at least one hardware module of the second electronic device from the server. And determining that the first target software version exists in the first electronic equipment according to the first software version information, the second software version information and the software version information to be upgraded. A first target software version is obtained from a first electronic device. The method and the device can occupy smaller server resources under the condition of downloading the software version to be upgraded of all hardware modules, and speed up downloading the software version to be upgraded.

Description

Software upgrading system and software upgrading method
Technical Field
The present application relates to the field of terminal devices, and in particular, to a software upgrading system and a software upgrading method.
Background
In order to optimize software performance and add new functions, the electronic device needs to download and upgrade the software version to be upgraded of the hardware module.
However, if the electronic device and other electronic devices need to download and upgrade the software version to be upgraded of the hardware module, the electronic device and other electronic devices need to download the software version to be upgraded of the hardware module from the server, so that larger server resources are occupied, the server resources are more pressurized, the number of users that can be born is reduced, and the downloading speed of the electronic device is slower.
Disclosure of Invention
The application provides a software upgrading system and a software upgrading method, which can occupy smaller server resources and accelerate the speed of downloading the software version to be upgraded under the condition of downloading the software version to be upgraded of all hardware modules.
In a first aspect, the present application provides a software upgrade system, the software system including a first electronic device and a second electronic device, the first electronic device and the second electronic device being within a same local area network. The first electronic device may send a broadcast message within the local area network, the broadcast message including first software version information, and the second electronic device may determine a software version of at least one hardware module in the first electronic device via the first software version information. And the second electronic equipment receives the broadcast message and acquires the first software version information. And then, acquiring the software version information to be upgraded from the server, wherein the second electronic device can determine the software version to be upgraded of at least one hardware module in the second electronic device through the software version information to be upgraded. Then, according to the first software version information, the second software version information and the software version information to be upgraded, the first electronic device is determined to comprise first target software, wherein the second electronic device can determine the software version of at least one hardware module in the second electronic device through the second software version information. Finally, a first target software version is obtained from the first electronic device.
In the application, the second electronic equipment receives the first software version information of at least one hardware module in the first electronic equipment, and the software version information to be upgraded of the at least one hardware module in the second electronic equipment is obtained from the server. And then, comparing the first software version information, the second software version information and the software version information to be upgraded to determine the software version to be upgraded (also called a first target software version) of the part of the hardware modules in the first electronic equipment, so that the second electronic equipment can directly acquire the first target software version from the first electronic equipment without acquiring the first target software version from a server, thereby occupying smaller server resources and accelerating the speed of downloading the first target software version.
In one example, the first electronic device may be a mobile phone and a sound box in the present application, and the second electronic device may be a television in the present application. Under the condition, the first software version information is the software version information and the hardware information of each hardware module of the mobile phone and the sound box in the application, the second software version information is the software version information and the hardware information of each hardware module of the television in the application, and the first target software version is the software version to be upgraded of the kernel of the mobile phone and the software version to be upgraded of the Bluetooth of the sound box in the application.
In another example, the first electronic device may also be a mobile phone in the present application, and the second electronic device is a sound box in the present application. In this case, the first software version information is the software version information and the hardware information of each hardware module of the mobile phone in the application, the second software version information is the software version information and the hardware information of each hardware module of the sound box in the application, and the first target software version is the software version to be upgraded of the inner core of the mobile phone in the application.
In another example, the first electronic device may also be a sound box in the present application, and the second electronic device is a mobile phone in the present application. In this case, the first software version information is the software version information and the hardware information of each hardware module of the sound box in the application, the second software version information is the software version information and the hardware information of each hardware module of the mobile phone in the application, and the first target software version is the software version to be upgraded of the Bluetooth of the sound box in the application.
In some possible implementations, the software version information to be upgraded includes software version information to be upgraded of at least one hardware module in the second electronic device. In this case, if the second electronic device sends a version upgrade request to the server, the second software version information carried in the version upgrade request may include software version information and hardware information of at least one hardware module in the second electronic device. Therefore, whether the hardware module in the second electronic device needs to be upgraded or not can be determined by comparing the second software version information of the at least one hardware module in the second electronic device with the software version information to be upgraded of the at least one hardware module in the second electronic device.
In some possible implementations, the software version information to be upgraded includes software version information to be upgraded of at least one hardware module in the second electronic device, and upgrade target version information of an upgrade package where the software version to be upgraded of the at least one hardware module in the second electronic device is located. In this case, if the second electronic device sends a version upgrade request to the server, the second software version information carried in the version upgrade request may include software version information and hardware information of at least one hardware module in the second electronic device, and software version information of an upgrade package where a software version of at least one hardware module in the second electronic device is located. Therefore, whether the hardware module in the second electronic device needs to be upgraded can be determined by comparing the software version information of the upgrade package where the software version of at least one hardware module in the second electronic device is located with the upgrade target version information of the upgrade package where the software version to be upgraded of at least one hardware module in the second electronic device is located.
In some possible implementations, the first software version information includes a name, vendor, model, and software version number of a software version of at least one hardware module of the first electronic device. The second software version information includes a name, vendor, model, and software version number of a software version of at least one hardware module of the second electronic device. It may thus be determined whether the first target software version is present in the first electronic device by comparing the version numbers of the software versions of the hardware modules. Alternatively, in the case that the version numbers of the software versions of the hardware modules are the same, it is also possible to determine whether the first target software version exists in the first electronic device by comparing the model numbers and the manufacturers of the software versions of the hardware modules.
In some possible implementations, the name, vendor, model, and software version number of the software version of the at least one hardware module of the first electronic device are included in the first software version information in a preset order. The name, manufacturer, model and software version number of the software version of the at least one hardware module of the second electronic device are included in the second software version information in a preset order. Taking the example that the second electronic device receives the broadcast message sent by the first electronic device, the second electronic device can determine the positions of the name, manufacturer, model and software version number of the hardware module of the first electronic device in the broadcast message according to the protocol by using the assisted upgrading application program so as to identify the name, manufacturer, model and software version number of the hardware module of the first electronic device.
In some possible implementations, the second electronic device includes a destination port. The second electronic device is configured to receive a broadcast message sent by the first electronic device from the destination port. And (3) utilizing the assisted upgrading application program to set up a target port on the second electronic device, and realizing information interaction with the first electronic device (receiving the broadcast message sent by the first electronic device).
In some possible implementations, the second electronic device includes a destination port. The second electronic device is configured to obtain a first target software version of the first electronic device from the target port. And (3) utilizing the assisted upgrading application program to set up a target port on the second electronic device, and realizing information interaction with the first electronic device (acquiring a first target software version from the first electronic device).
In some possible implementations, the second electronic device is configured to: sending a version upgrading request to a server; and receiving the version information of the software to be upgraded, which is sent by the server. The second electronic device may actively send a version upgrade request to the server to receive version information of the software to be upgraded. In addition, in other possible implementation manners, if the hardware module of the second electronic device is forcedly upgraded, the second electronic device may also receive the version information of the software to be upgraded without sending a version upgrade request to the server.
In some possible implementations, the second electronic device is configured to: establishing a connection relationship with the first electronic device; sending a downloading request of a first target software version to first electronic equipment through a connection relation; and receiving a first target software version sent by the first electronic equipment through the connection relation. After determining that the first target software version exists in the first electronic device, the second electronic device may also establish a connection relationship with the first electronic device, and send a download request of the first target software version to the first electronic device through the connection relationship, so as to obtain the first target software version.
The first electronic device may be a mobile phone and a sound box in the present application, and the second electronic device may be a television in the present application. In this case, the connection relationship between the television and the mobile phone is the first connection in the application, the connection relationship between the television and the sound box is the second connection in the application, and the connection relationship between the television and the sound box is the third connection in the application.
In some possible implementations, after the second electronic device obtains the version information of the software to be upgraded from the server, the second electronic device is further configured to: determining that the second target software version does not exist in the first electronic equipment and exists in the server according to the first software version information, the second software version information and the software version information to be upgraded; a second target software version is obtained from the server. The software version to be upgraded (second target software version) of the part of the hardware module of the second electronic device may not be present in the first electronic device but is present in the server, in which case the second electronic device may obtain the second target software version from the server.
In one example, the first electronic device may be a mobile phone and a sound box in the present application, and the second electronic device may be a television in the present application. In this case, the second target software version is the Wi-Fi of the server and the software version to be upgraded of the camera.
In another example, the first electronic device may also be a mobile phone in the present application, and the second electronic device is a sound box in the present application. In this case, the second target software version is the software version to be upgraded of Wi-Fi of the server in the present application.
In another example, the first electronic device may also be a sound box in the present application, and the second electronic device is a mobile phone in the present application. In this case, the second target software version is the Wi-Fi of the server and the software version to be upgraded of the camera.
In some possible implementations, the second electronic device is configured to: sending a download request of the second target software version to a server; and receiving a second target software version sent by the server. The second electronic device may further send a download request of the second target software version to the server after determining that the second target software version exists only in the server, so as to obtain the second target software version.
In a second aspect, the present application provides a software upgrade system, where the software system includes a first electronic device, a second electronic device, and a third electronic device. The first electronic device and the second electronic device are in the same local area network, and the third electronic device performs data interaction with the second electronic device through Bluetooth connection. The first electronic device may send a broadcast message within the local area network, the broadcast message including first software version information, the second electronic device may determine a software version of at least one hardware module in the first electronic device via the first software version information; the second electronic equipment receives the broadcast message and acquires the first software version information; the method comprises the steps that software version information to be upgraded is obtained from a server, and the second electronic device can determine the software version to be upgraded of at least one hardware module in the third electronic device through the software version information to be upgraded; determining that the first electronic device comprises first target software according to the first software version information, the second software version information, the third software version information and the software version information to be upgraded, wherein the second electronic device can determine the software version of at least one hardware module in the second electronic device through the second software version information, and the third electronic device can determine the software version of at least one hardware module in the third electronic device through the third software version information; obtaining a first target software version from a first electronic device; and sending the first target software version information to the third electronic device.
In the application, the third electronic device is not in the local area network (for example, the third electronic device does not comprise a Wi-Fi module), but the third electronic device can perform data interaction with the second electronic device through a Bluetooth connection. The third electronic device can receive the first software version information of the at least one hardware module in the first electronic device through the second electronic device, and acquire the software version information to be upgraded of the at least one hardware module in the third electronic device from the server. And then, comparing the first software version information, the second software version information, the third software version information and the software version information to be upgraded to determine the software version to be upgraded (also called a first target software version) of the part of the hardware modules in the first electronic equipment, so that the third electronic equipment can acquire the first target software version from the first electronic equipment through the second electronic equipment without acquiring the first target software version from a server, thereby occupying smaller server resources and accelerating the speed of downloading the first target software version.
The first electronic device may be an audio box in the present application, the second electronic device may be a mobile phone in the present application, and the third electronic device may be a desk lamp in the present application. In this case, the first software version information is the software version information and the hardware information of each hardware module of the sound box in the application, the second software version information is the software version information and the hardware information of each hardware module of the mobile phone in the application, the third software version information is the software version information and the hardware information of each hardware module of the desk lamp in the application, and the first target software version is the software version to be upgraded of the Bluetooth in the application.
In some possible implementations, the software version information to be upgraded includes software version information to be upgraded of at least one hardware module in the third electronic device. In this case, if the third electronic device sends a version upgrade request to the server, the third software version information carried in the version upgrade request may include software version information and hardware information of at least one hardware module in the third electronic device. Therefore, whether the hardware module in the third electronic device needs to be upgraded or not can be determined by comparing the third software version information of the at least one hardware module in the second electronic device with the software version information to be upgraded of the at least one hardware module in the third electronic device.
In some possible implementations, the software version information to be upgraded includes software version information to be upgraded of at least one hardware module in the third electronic device, and upgrade target version information of an upgrade package where the software version to be upgraded of the at least one hardware module in the third electronic device is located. In this case, if the third electronic device sends the version upgrade request to the server, the third software version information carried in the version upgrade request may include the software version information and the hardware information of at least one hardware module in the third electronic device, and the software version information of an upgrade package where the software version of at least one hardware module in the third electronic device is located. Therefore, whether the hardware module in the third electronic device needs to be upgraded can be determined by comparing the software version information of the upgrade package where the software version of at least one hardware module in the third electronic device is located with the upgrade target version information of the upgrade package where the software version to be upgraded of at least one hardware module in the third electronic device is located.
In some possible implementations, the first software version information includes a name, vendor, model, and software version number of a software version of at least one hardware module of the first electronic device. The second software version information includes a name, vendor, model, and software version number of a software version of at least one hardware module of the second electronic device. The third software version information includes a name, vendor, model, and software version number of a software version of at least one hardware module of the third electronic device. It may thus be determined whether the first target software version is present in the first electronic device by comparing the version numbers of the software versions of the hardware modules. Alternatively, in the case that the version numbers of the software versions of the hardware modules are the same, it is also possible to determine whether the first target software version exists in the first electronic device by comparing the model numbers and the manufacturers of the software versions of the hardware modules.
In some possible implementations, the name, vendor, model, and software version number of the software version of the at least one hardware module of the first electronic device are included in the first software version information in a preset order. The name, manufacturer, model and software version number of the software version of the at least one hardware module of the second electronic device are included in the second software version information in a preset order. The name, manufacturer, model and software version number of the software version of the at least one hardware module of the third electronic device are included in the third software version information in a preset order. Taking the example that the second electronic device receives the broadcast message sent by the first electronic device, the second electronic device can determine the positions of the name, manufacturer, model and software version number of the hardware module of the first electronic device in the broadcast message according to the protocol by using the assisted upgrading application program so as to identify the name, manufacturer, model and software version number of the hardware module of the first electronic device.
In some possible implementations, the second electronic device includes a destination port. The second electronic device is configured to receive a first broadcast message sent by the first electronic device from the destination port. And (3) utilizing the assisted upgrading application program to set up a target port on the second electronic device to realize information interaction with the first electronic device (receiving the first broadcast message sent by the first electronic device).
In some possible implementations, the second electronic device includes a destination port. The second electronic device is configured to obtain a first target software version of the first electronic device from the target port. And (3) utilizing the assisted upgrading application program to set up a target port on the second electronic device, and realizing information interaction with the first electronic device (acquiring a first target software version from the first electronic device).
In some possible implementations, the third electronic device is configured to: transmitting third software version information and a request message to the second electronic device; the second electronic device is further configured to: transmitting a second broadcast message within the local area network in response to the received request message; the second broadcast message includes second software version information and third software version information. The third electronic device can also actively send a version upgrading request to the server through the second electronic device so as to receive version information of the software to be upgraded. In addition, in other possible implementation manners, if the hardware module of the third electronic device is forcedly upgraded, the third electronic device may not need to send a version upgrade request to the second electronic device, and the second electronic device may not need to send a version upgrade request to the server, so that the second electronic device may receive version information of the software to be upgraded.
In some possible implementations, the third electronic device is configured to: sending a version upgrade request to the second electronic equipment; a second electronic device for: responding to the received version upgrading request sent by the third electronic equipment, and sending the version upgrading request of the third electronic equipment to a server; and receiving the version information of the software to be upgraded, which is sent by the server. The second electronic device may actively send a version upgrade request to the server to receive version information of the software to be upgraded. In addition, in other possible implementation manners, if the hardware module of the second electronic device is forcedly upgraded, the second electronic device may also receive the version information of the software to be upgraded without sending a version upgrade request to the server.
In some possible implementations, the third electronic device is configured to: sending a downloading request of a first target software version to the second electronic equipment; a second electronic device for: responding to a received downloading request of a first target software version sent by third electronic equipment, and establishing a connection relation with the first electronic equipment; sending a downloading request of a first target software version to first electronic equipment through a connection relation; and receiving a first target software version sent by the first electronic equipment through the connection relation. After the second electronic device determines that the first target software version exists in the first electronic device, the second electronic device can also establish a connection relationship with the first electronic device and send a downloading request of the first target software version to the first electronic device through the connection relationship so as to acquire the first target software version.
In some possible implementations, after the second electronic device obtains the version information of the software to be upgraded from the server, the second electronic device is further configured to: determining that a second target software version does not exist in the first electronic device and the second electronic device and exists in the server according to the first software version information, the second software version information, the third software version information and the software version information to be upgraded; obtaining the second target software version from a server; and sending the second target software version information to the third electronic device. The software version to be upgraded (second target software version) of the part of the hardware module of the second electronic device may not be present in the first electronic device but is present in the server, in which case the second electronic device may obtain the second target software version from the server.
In some possible implementations, the third electronic device is configured to: transmitting a download request of the second target software version to the second electronic device; a second electronic device for: responding to a received downloading request of the first target software version sent by the third electronic equipment, and sending a downloading request of the second target software version to a server; and receiving a second target software version sent by the server. The second electronic device may further send a download request of the second target software version to the server after determining that the second target software version exists only in the server, so as to obtain the second target software version.
In a third aspect, the present application provides a software upgrading method, applied to a second electronic device, including: receiving a broadcast message sent by first electronic equipment; the broadcast message includes first software version information by which the second electronic device can determine a software version of at least one hardware module in the first electronic device; the first electronic device and the second electronic device are in the same local area network; acquiring the first software version information from a first electronic device; acquiring software version information to be upgraded from a server, wherein the second electronic device can determine the software version to be upgraded of at least one hardware module in the second electronic device through the software version information to be upgraded; determining that the first electronic device comprises a first target software version according to the first software version information, the second software version information and the software version information to be upgraded, wherein the second electronic device can determine the software version of at least one hardware module in the second electronic device through the second software version information; a first target software version is obtained from a first electronic device.
In the application, the second electronic equipment receives the first software version information of at least one hardware module in the first electronic equipment, and the software version information to be upgraded of the at least one hardware module in the second electronic equipment is obtained from the server. And then, comparing the first software version information, the second software version information and the software version information to be upgraded to determine the software version to be upgraded (also called a first target software version) of the part of the hardware modules in the first electronic equipment, so that the second electronic equipment can directly acquire the first target software version from the first electronic equipment without acquiring the first target software version from a server, thereby occupying smaller server resources and accelerating the speed of downloading the first target software version.
In some possible implementations, the software version information to be upgraded includes software version information to be upgraded of at least one hardware module in the second electronic device. In this case, if the second electronic device sends a version upgrade request to the server, the second software version information carried in the version upgrade request may include software version information and hardware information of at least one hardware module in the second electronic device. Therefore, whether the hardware module in the second electronic device needs to be upgraded or not can be determined by comparing the second software version information of the at least one hardware module in the second electronic device with the software version information to be upgraded of the at least one hardware module in the second electronic device.
In some possible implementations, the software version information to be upgraded includes software version information to be upgraded of at least one hardware module in the second electronic device, and upgrade target version information of an upgrade package where the software version to be upgraded of the at least one hardware module in the second electronic device is located. In this case, if the second electronic device sends a version upgrade request to the server, the second software version information carried in the version upgrade request may include software version information and hardware information of at least one hardware module in the second electronic device, and software version information of an upgrade package where a software version of at least one hardware module in the second electronic device is located. Therefore, whether the hardware module in the second electronic device needs to be upgraded can be determined by comparing the software version information of the upgrade package where the software version of at least one hardware module in the second electronic device is located with the upgrade target version information of the upgrade package where the software version to be upgraded of at least one hardware module in the second electronic device is located.
In some possible implementations, the first software version information includes a name, vendor, model, and software version number of a software version of at least one hardware module of the first electronic device. The second software version information includes a name, vendor, model, and software version number of a software version of at least one hardware module of the second electronic device. It may thus be determined whether the first target software version is present in the first electronic device by comparing the version numbers of the software versions of the hardware modules. Alternatively, in the case that the version numbers of the software versions of the hardware modules are the same, it is also possible to determine whether the first target software version exists in the first electronic device by comparing the model numbers and the manufacturers of the software versions of the hardware modules.
In some possible implementations, the name, vendor, model, and software version number of the software version of the at least one hardware module of the first electronic device are included in the first software version information in a preset order. The name, manufacturer, model and software version number of the software version of the at least one hardware module of the second electronic device are included in the second software version information in a preset order. Taking the example that the second electronic device receives the broadcast message sent by the first electronic device, the second electronic device can determine the positions of the name, manufacturer, model and software version number of the hardware module of the first electronic device in the broadcast message according to the protocol by using the assisted upgrading application program so as to identify the name, manufacturer, model and software version number of the hardware module of the first electronic device.
In some possible implementations, the second electronic device includes a destination port. The second electronic device is configured to receive a broadcast message sent by the first electronic device from the destination port. And (3) utilizing the assisted upgrading application program to set up a target port on the second electronic device, and realizing information interaction with the first electronic device (receiving the broadcast message sent by the first electronic device).
In some possible implementations, the second electronic device includes a destination port. The second electronic device is configured to obtain a first target software version of the first electronic device from the target port. And (3) utilizing the assisted upgrading application program to set up a target port on the second electronic device, and realizing information interaction with the first electronic device (acquiring a first target software version from the first electronic device).
In some possible implementations, obtaining the version information of the software to be upgraded from the server includes: sending a version upgrading request to a server; and receiving the version information of the software to be upgraded, which is sent by the server. The second electronic device may actively send a version upgrade request to the server to receive version information of the software to be upgraded. In addition, in other possible implementation manners, if the hardware module of the second electronic device is forcedly upgraded, the second electronic device may also receive the version information of the software to be upgraded without sending a version upgrade request to the server.
In some possible implementations, obtaining a first target software version from a first electronic device includes: establishing a connection relationship with the first electronic device; sending a downloading request of a first target software version to first electronic equipment through a connection relation; and receiving a first target software version sent by the first electronic equipment through the connection relation. After the second electronic device determines that the first target software version exists in the first electronic device, the second electronic device can also establish a connection relationship with the first electronic device and send a downloading request of the first target software version to the first electronic device through the connection relationship so as to acquire the first target software version.
In some possible implementations, after the software version information to be upgraded is obtained from the server, the method further includes: determining that the second target software version does not exist in the first electronic device and exists in the server according to the first software version information, the second software version information and the software version information to be upgraded; a second target software version is obtained from the server. The software version to be upgraded (second target software version) of the part of the hardware module of the second electronic device may not be present in the first electronic device but is present in the server, in which case the second electronic device may obtain the second target software version from the server.
In some possible implementations, obtaining the second target software version from the server includes: sending a download request of the second target software version to a server; and receiving a second target software version sent by the server. The second electronic device may further send a download request of the second target software version to the server after determining that the second target software version exists only in the server, so as to obtain the second target software version.
In a fourth aspect, the present application provides a software upgrading method applied to a second electronic device, which is characterized in that the method includes: receiving a first broadcast message sent by first electronic equipment; the first broadcast message includes first software version information by which the second electronic device can determine a software version of at least one hardware module in the first electronic device; acquiring the first software version information from a first electronic device; the method comprises the steps that software version information to be upgraded is obtained from a server, and the second electronic device can determine the software version to be upgraded of at least one hardware module in the third electronic device through the software version information to be upgraded; determining that the first electronic device comprises a first target software version according to the first software version information, the second software version information, the third software version information and the software version information to be upgraded; the second electronic device can determine the software version of at least one hardware module in the second electronic device through the second software version information, the third electronic device can determine the software version of at least one hardware module in the third electronic device through the third software version information, the first electronic device and the second electronic device are in the same local area network, and the third electronic device performs data interaction with the second electronic device through Bluetooth connection; obtaining a first target software version from a first electronic device; and sending the first target software version information to the third electronic device.
In the application, the third electronic device is not in the local area network (for example, the third electronic device does not comprise a Wi-Fi module), but the third electronic device can perform data interaction with the second electronic device through a Bluetooth connection. The third electronic device can receive the first software version information of the at least one hardware module in the first electronic device through the second electronic device, and acquire the software version information to be upgraded of the at least one hardware module in the third electronic device from the server. And then, comparing the first software version information, the second software version information, the third software version information and the software version information to be upgraded to determine the software version to be upgraded (also called a first target software version) of the part of the hardware modules in the first electronic equipment, so that the third electronic equipment can acquire the first target software version from the first electronic equipment through the second electronic equipment without acquiring the first target software version from a server, thereby occupying smaller server resources and accelerating the speed of downloading the first target software version.
In some possible implementations, the software version information to be upgraded includes software version information to be upgraded of at least one hardware module in the third electronic device. In this case, if the third electronic device sends a version upgrade request to the server, the third software version information carried in the version upgrade request may include software version information and hardware information of at least one hardware module in the third electronic device. Therefore, whether the hardware module in the third electronic device needs to be upgraded or not can be determined by comparing the third software version information of the at least one hardware module in the second electronic device with the software version information to be upgraded of the at least one hardware module in the third electronic device.
In some possible implementations, the software version information to be upgraded includes software version information to be upgraded of at least one hardware module in the third electronic device, and upgrade target version information of an upgrade package where the software version to be upgraded of the at least one hardware module in the third electronic device is located. In this case, if the third electronic device sends the version upgrade request to the server, the third software version information carried in the version upgrade request may include the software version information and the hardware information of at least one hardware module in the third electronic device, and the software version information of an upgrade package where the software version of at least one hardware module in the third electronic device is located. Therefore, whether the hardware module in the third electronic device needs to be upgraded can be determined by comparing the software version information of the upgrade package where the software version of at least one hardware module in the third electronic device is located with the upgrade target version information of the upgrade package where the software version to be upgraded of at least one hardware module in the third electronic device is located.
In some possible implementations, the first software version information includes a name, vendor, model, and software version number of a software version of at least one hardware module of the first electronic device. The second software version information includes a name, vendor, model, and software version number of a software version of at least one hardware module of the second electronic device. The third software version information includes a name, vendor, model, and software version number of a software version of at least one hardware module of the third electronic device. It may thus be determined whether the first target software version is present in the first electronic device by comparing the version numbers of the software versions of the hardware modules. Alternatively, in the case that the version numbers of the software versions of the hardware modules are the same, it is also possible to determine whether the first target software version exists in the first electronic device by comparing the model numbers and the manufacturers of the software versions of the hardware modules.
In some possible implementations, the name, vendor, model, and software version number of the software version of the at least one hardware module of the first electronic device are included in the first software version information in a preset order. The name, manufacturer, model and software version number of the software version of the at least one hardware module of the second electronic device are included in the second software version information in a preset order. The name, manufacturer, model and software version number of the software version of the at least one hardware module of the third electronic device are included in the third software version information in a preset order. Taking the example that the second electronic device receives the broadcast message sent by the first electronic device, the second electronic device can determine the positions of the name, manufacturer, model and software version number of the hardware module of the first electronic device in the broadcast message according to the protocol by using the assisted upgrading application program so as to identify the name, manufacturer, model and software version number of the hardware module of the first electronic device.
In some possible implementations, the second electronic device includes a destination port. The second electronic device is configured to receive a first broadcast message sent by the first electronic device from the destination port. And (3) utilizing the assisted upgrading application program to set up a target port on the second electronic device to realize information interaction with the first electronic device (receiving the first broadcast message sent by the first electronic device).
In some possible implementations, the second electronic device includes a destination port. The second electronic device is configured to obtain a first target software version of the first electronic device from the target port. And (3) utilizing the assisted upgrading application program to set up a target port on the second electronic device, and realizing information interaction with the first electronic device (acquiring a first target software version from the first electronic device).
In some possible implementations, before determining that the first target software version exists in the first electronic device, the method further includes: receiving third software version information and a request message sent by third electronic equipment; transmitting a second broadcast message within the local area network; the second broadcast message includes second software version information and third software version information. The third electronic device can also actively send a version upgrading request to the server through the second electronic device so as to receive version information of the software to be upgraded. In addition, in other possible implementation manners, if the hardware module of the third electronic device is forcedly upgraded, the third electronic device may not need to send a version upgrade request to the second electronic device, and the second electronic device may not need to send a version upgrade request to the server, so that the second electronic device may receive version information of the software to be upgraded.
In some possible implementations, obtaining the version information of the software to be upgraded from the server includes: receiving a version upgrading request sent by third electronic equipment; sending a version upgrading request of the third electronic equipment to a server; and receiving the version information of the software to be upgraded, which is sent by the server. The second electronic device may actively send a version upgrade request to the server to receive version information of the software to be upgraded. In addition, in other possible implementation manners, if the hardware module of the second electronic device is forcedly upgraded, the second electronic device may also receive the version information of the software to be upgraded without sending a version upgrade request to the server.
In some possible implementations, after determining that a first target software version exists in the first electronic device, the method further includes: receiving a downloading request of a first target software version sent by third electronic equipment; establishing a connection relationship with the first electronic device; sending a downloading request of a first target software version to first electronic equipment through a connection relation; and receiving a first target software version sent by the first electronic equipment through the connection relation. After the second electronic device determines that the first target software version exists in the first electronic device, the second electronic device can also establish a connection relationship with the first electronic device and send a downloading request of the first target software version to the first electronic device through the connection relationship so as to acquire the first target software version.
In some possible implementations, after the second electronic device obtains the software version information to be upgraded from the server, the method further includes: determining that the second target software version does not exist in the first electronic device and the second electronic device and exists in the server according to the first software version information, the second software version information, the third software version information and the software version information to be upgraded; obtaining a second target software version from the server; and sending the second target software version information to the third electronic device. The software version to be upgraded (second target software version) of the part of the hardware module of the second electronic device may not be present in the first electronic device but is present in the server, in which case the second electronic device may obtain the second target software version from the server.
In some possible implementations, obtaining the second target software version from the server includes: receiving a downloading request of a second target software version sent by third electronic equipment; sending a download request of the second target software version to a server; and receiving a second target software version sent by the server. The second electronic device may further send a download request of the second target software version to the server after determining that the second target software version exists only in the server, so as to obtain the second target software version.
In a fifth aspect, the present application provides a chip system comprising: one or more interface circuits, one or more processors, and memory. The interface circuit is for receiving signals from the memory of the second electronic device and sending signals to the processor, the signals including computer instructions stored in the memory; the computer instructions, when executed by a processor, cause an electronic device to perform the method performed by the second electronic device of the third or fourth aspect.
In a sixth aspect, the present application provides a computer readable storage medium comprising a computer program which, when run on a second electronic device, causes the electronic device to perform the method performed by the second electronic device according to the third or fourth aspect.
In a seventh aspect, the present application provides a computer program comprising instructions for performing the method of any possible implementation of the third or fourth aspect.
Drawings
Fig. 1 is a schematic diagram of a scenario of a software system to be upgraded according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 3 is a software structural block diagram of an electronic device according to an embodiment of the present application;
FIG. 4 is a schematic flow chart of the interaction between a TV, a mobile phone, a sound box and a server according to an embodiment of the present application;
fig. 5 is a comparison diagram of software versions of hardware modules of a television, a mobile phone and a sound box according to an embodiment of the present application;
FIG. 6 is a schematic diagram of another process when a television according to an embodiment of the present application interacts with a mobile phone, a speaker and a server;
fig. 7 is a schematic flow chart of establishing a connection relationship between a television and a mobile phone according to an embodiment of the present application;
FIG. 8 is a schematic flow chart of interaction between a mobile phone, a speaker and a server according to an embodiment of the present application
FIG. 9 is a diagram of a mobile phone interface according to an embodiment of the present application;
FIG. 10 is a schematic diagram of another scenario of a software system to be upgraded according to an embodiment of the present application;
FIG. 11 is a schematic flow chart of interaction between a desk lamp, a mobile phone, a sound box and a server according to an embodiment of the present application;
fig. 12 is a schematic flow chart of interaction between a desk lamp and a mobile phone and a voice box according to an embodiment of the present application;
fig. 13 is a block diagram of a device according to an embodiment of the present application.
Detailed Description
The term "and/or" is herein merely an association relationship describing an associated object, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone.
The terms first and second and the like in the description and in the claims of embodiments of the application, are used for distinguishing between different objects and not necessarily for describing a particular sequential order of objects. For example, the first target object and the second target object, etc., are used to distinguish between different target objects, and are not used to describe a particular order of target objects.
In embodiments of the application, words such as "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g." in an embodiment should not be taken as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
In the description of the embodiments of the present application, unless otherwise indicated, the meaning of "a plurality" means two or more. For example, the plurality of processing units refers to two or more processing units; the plurality of systems means two or more systems.
Fig. 1 is a schematic view of an application scenario illustrated by a home network. The application scenario shown in fig. 1 may include, for example, a television, a mobile phone, and a sound box, where the television, the mobile phone, and the sound box may all establish communication with the router. The television, the mobile phone, and the sound box may communicate with the router through wireless connection, or may communicate with the router through wired connection, which is not limited in the embodiment of the present application.
It should be noted that, the application scenario shown in fig. 1 is only an example, and the application scenario in the embodiment of the present application is not limited to a home network, but may be other local area networks. For example, the local area network of the present application may also be used in schools, cafes, and the like. In addition, the number of televisions, mobile phones and sound boxes in the application scene can be increased or decreased. The application scenario is not limited to televisions, mobile phones and sound boxes, but may also include other electronic devices, such as computers, personal digital assistants (Personal Digital Assistant, PDA for short), intelligent wearable devices, intelligent home devices, and other electronic devices, which are not limited in the embodiment of the present application.
The structure of the electronic device will be described below with reference to the application scenario of fig. 1, taking a mobile phone as an example. Fig. 2 shows a schematic diagram of the mobile phone 100, it being understood that the components of the mobile phone 100 shown in fig. 2 are only one example of the mobile phone 100, and that the mobile phone 100 may have more or fewer components than shown in fig. 2, may combine two or more components, or may have a different configuration of components. The various components shown in fig. 2 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
Specifically, the mobile phone 100 may include: processor 110, external memory interface 120, internal memory 121, universal serial bus (universal serial bus, USB) interface 130, charge management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headset interface 170D, sensor module 180, keys 190, motor 191, indicator 192, camera 193, display 194, and subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
Processor 110 may include one or more processing units, at least one of which may be contained in a core. The processing unit may be, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller may be a neural center or a command center of the mobile phone 100. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the handset 100. In an embodiment of the present application, the mobile phone 100 may generate, through the processor 110, an operation instruction for interacting with a server or other electronic devices in the home network. For example, the processor 110 of the handset 100 may generate an operation instruction to send a version upgrade request to a server.
It should be noted here that the number and types of servers are not limited in the embodiments of the present application. The number of servers may be one, or the number of servers may be plural (i.e., a server cluster). The terminal in the local area network can be connected with the server through the network, and various requests can be initiated to the server after the terminal is connected with the server. After receiving the request of the terminal, the server can process the request content, respond to the request of the terminal and send the processing result to the terminal. The terminal may also be disconnected from the server upon completion of a series of request and response operations.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
It should be understood that the connection relationship between the modules illustrated in the embodiment of the present application is only illustrative, and is not limited to the structure of the mobile phone 100. In other embodiments of the present application, the mobile phone 100 may also use different interfacing manners, or a combination of multiple interfacing manners in the above embodiments.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130. In some wireless charging embodiments, the charge management module 140 may receive wireless charging input through a wireless charging coil of the cell phone 100. The charging management module 140 may also supply power to the mobile phone 100 through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be configured to monitor parameters such as the capacity of the battery 142, the number of cycles of the battery 142, and the state of health (leakage, impedance) of the battery 142. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be disposed in the same device.
The wireless communication function of the mobile phone 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the handset 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc. applied to the handset 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc. applied to the handset 100. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2. In the embodiment of the present application, the mobile phone 100 may interact with the server through the wireless communication module 160, or may interact with other electronic devices in the home network through the wireless communication module 160. For example, the handset 100 may send a version upgrade request to a server through the wireless communication module 160; for another example, the mobile phone 100 may also obtain the software version to be upgraded from other electronic devices in the lan through the wireless communication module 160.
In some embodiments, the antenna 1 and the mobile communication module 150 of the handset 100 are coupled, and the antenna 2 and the wireless communication module 160 are coupled, so that the handset 100 can communicate with a network and other devices through wireless communication technology. The wireless communication techniques may include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a beidou satellite navigation system (beidou navigation satellite system, BDS), a quasi zenith satellite system (quasi-zenith satellite system, QZSS) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).
The mobile phone 100 implements display functions through a GPU, a display 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (matrix organic light emitting diode), a flexible light-emitting diode (flex), a mini, a Micro led, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the cell phone 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The mobile phone 100 may implement photographing functions through an ISP, a camera 193, a video codec, a GPU, a display 194, an application processor, and the like.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. In some embodiments, the cell phone 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capabilities of the handset 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 121 may be used to store computer executable program code including instructions. The processor 110 executes various functional applications of the cellular phone 100 and data processing by executing instructions stored in the internal memory 121. For example, in an embodiment of the present application, processor 110 may cause handset 100 to send a version upgrade request to a server by executing instructions stored in internal memory 121.
The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data (e.g., audio data, phonebook, etc.) created during use of the handset 100, etc. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like.
The handset 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or a portion of the functional modules of the audio module 170 may be disposed in the processor 110.
The pressure sensor 180A is used to sense a pressure signal, and may convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A is of various types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a capacitive pressure sensor comprising at least two parallel plates with conductive material. The capacitance between the electrodes changes when a force is applied to the pressure sensor 180A. The handset 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display 194, the mobile phone 100 detects the intensity of the touch operation according to the pressure sensor 180A. The mobile phone 100 may also calculate the position of the touch based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations that act on the same touch location, but at different touch operation strengths, may correspond to different operation instructions. For example: and executing an instruction for checking the short message when the touch operation with the touch operation intensity smaller than the first pressure threshold acts on the short message application icon. And executing an instruction for newly creating the short message when the touch operation with the touch operation intensity being greater than or equal to the first pressure threshold acts on the short message application icon.
The fingerprint sensor 180H is used to collect a fingerprint. The mobile phone 100 can utilize the collected fingerprint characteristics to realize fingerprint unlocking, access an application lock, fingerprint photographing, fingerprint incoming call answering and the like. For example, in an embodiment of the present application, the fingerprint sensor 180H may collect a fingerprint of a user touching the touch screen and transmit the collected fingerprint to the processor 110. Illustratively, the processor 110 may unlock the mobile phone 100 based on the fingerprint information entered by the fingerprint sensor 180H.
The touch sensor 180K, also referred to as a "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is for detecting a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 194. In other embodiments, the touch sensor 180K may be disposed on the surface of the mobile phone 100 at a different location than the display 194.
The keys 190 include a power-on key, a volume key, etc. The keys 190 may be mechanical keys. Or may be a touch key. The handset 100 may receive key inputs, generating key signal inputs related to user settings and function control of the handset 100. For example, in the embodiment of the present application, if the mobile phone 100 is turned off during the process of downloading the software version to be upgraded from the server or other electronic devices in the home network, the mobile phone 100 may enter the bright screen mode after receiving the operation of clicking the start key by the user.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration alerting as well as for touch vibration feedback. For example, touch operations acting on different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also correspond to different vibration feedback effects by touching different areas of the display screen 194. Different application scenarios (such as time reminding, receiving information, alarm clock, game, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
The indicator 192 may be an indicator light, may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc.
The software system of the mobile phone 100 may employ a layered architecture, an event driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the application, taking an Android system with a layered architecture as an example, a software structure of the mobile phone 100 is illustrated.
Fig. 3 is a block diagram of the software architecture of the mobile phone 100 according to an embodiment of the present application.
The layered architecture of the handset 100 divides the software into several layers, each with distinct roles and divisions. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, an Zhuoyun row (Android run) and system libraries, and a kernel layer, respectively.
The application layer may include a series of application packages.
As shown in fig. 3, the application package may include applications for cameras, gallery, calendar, phone calls, maps, navigation, WLAN, bluetooth, music, video, short messages, assisted upgrades, wallpaper (also referred to as desktop and wallpaper), etc. For example, in the embodiment of the present application, the auxiliary upgrade may enable the mobile phone 100 to interact with other electronic devices in the home network, so as to obtain the software version to be upgraded from the other electronic devices in the home network, and install the function of upgrading the software version to be upgraded normally.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 3, the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
The window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc.
The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture.
The telephony manager is used to provide the communication functions of the handset 100. Such as the management of call status (including on, hung-up, etc.).
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in a status bar, a prompt tone is emitted, the mobile phone vibrates, and an indicator light blinks.
Android run time includes a core library and virtual machines. Android run time is responsible for scheduling and management of the Android system.
The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface manager (surface manager), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), 2D graphics engines (e.g., SGL), etc.
The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
It should be understood that the components included in the system framework layer, the system library and the runtime layer shown in fig. 3 do not constitute a specific limitation on the mobile phone 100. In other embodiments of the application, the handset 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components.
The specific structure of the electronic device (or terminal) has been described above by taking the mobile phone 100 as an example, for example, the terminal may include, but is not limited to: camera 193, wi-Fi160, kernel, bluetooth 160, etc. require hardware modules and system software for software support. In order to optimize the software performance and add new functions, the software version of the system software and hardware modules needs to be upgraded. In some possible implementations, part of the terminals also have application programs, and the software version of the application programs needs to be upgraded. Based on this, the embodiment of the application provides a method for upgrading a software version, which can enable each terminal in the local area network to broadcast a message to other terminals in the local area network according to a protocol by adding an auxiliary upgrading application program to each terminal. Furthermore, each terminal can monitor the target port and receive messages or software versions sent by other terminals in the local area network according to the protocol. Therefore, the terminal has the functions of interacting with other terminals in the local area network to acquire the software version to be upgraded from the other terminals and normally installing and upgrading the software version to be upgraded. Of course, the function of assisting in upgrading may also be implemented at other layers of the software system, for example, the function of assisting in upgrading may also be implemented at a system layer, which is not limited in the embodiment of the present application.
The following describes a specific embodiment of downloading and upgrading a software version of a hardware module by each electronic device. In the embodiment of the application, each electronic device in the home network can respectively generate the operation instruction interacted with the server or other electronic devices in the home network through the processor. Further, each electronic device may interact with the server through the wireless communication module 160 according to the operation instruction, so as to obtain the software version to be upgraded. The electronic device may interact with the server through the wireless communication module 160 according to the operation instruction to obtain the software version to be upgraded of a part of the hardware modules from the server, or interact with other electronic devices in the home network through the wireless communication module 160 according to the operation instruction to obtain the software version to be upgraded of a part of the hardware modules from other electronic devices in the home network. Therefore, each electronic device in the local area network is prevented from acquiring the software version to be upgraded of all hardware modules from the server, and larger server resources are occupied.
It should be noted that, for the precondition that a terminal obtains a software version to be upgraded of a hardware module from other electronic devices of the home network, taking a case that a television obtains a new software version of a kernel from a mobile phone as an example, the precondition that the television obtains the software version to be upgraded of the kernel from the mobile phone is as follows: the television is identical to the hardware modules and software components used inside the cell phone.
In connection with the application scenario of fig. 1, a process of interacting software version information and hardware information of respective hardware modules between a television, a mobile phone, and a sound box will be described below.
Referring to fig. 1, fig. 4 is a schematic flow chart of receiving and storing software version information and hardware information of each hardware module of a television by using a mobile phone and a voice box, which specifically includes:
s401, the television sends software version information and hardware information of each hardware module of the television to the mobile phone and the voice box.
Illustratively, the television may send the home network broadcast message to the router periodically (e.g., every 10 minutes, as may be practical, without limitation of the present application), or upon user triggering. Broadcast messages sent by television include, but are not limited to: address information of the television, software version information and hardware information of each hardware module of the television, and the like. The router may send the received broadcast message from the television to each electronic device in the home network, for example, in the embodiment of the present application, the router sends the broadcast message to the mobile phone and the speaker.
The hardware modules of other electronic devices in the home network may be the same as or different from the hardware modules of the television. Whether the hardware module of the television is the same as the hardware module of other electronic equipment in the home network or not, the television sends the software version information and the hardware information of all the hardware modules of the home terminal to the router. For example, the hardware modules of the television include a kernel, bluetooth, wi-Fi, and a camera, and the hardware modules of the sound box include a kernel, bluetooth, and Wi-Fi. The television still broadcasts the software version information and hardware information of the kernel, bluetooth, wi-Fi, and camera to the speakers through the router. After the sound box receives the software version information and the hardware information of the kernel, the Bluetooth, the Wi-Fi and the camera in the television, the software version information and the hardware information of the kernel, the Bluetooth and the Wi-Fi in the television can be stored according to requirements. Of course, the sound box may also store software version information and hardware information of the camera in the television, which is not limited in the embodiment of the present application.
The address information of the television may be, for example, an internet protocol (internet protocol, IP) address of the television in the home network. For example, the IP address of the television in the home network may be 192.168.0.100.
Illustratively, table 1 shows software version information and hardware information of each hardware module of the television, and referring to table 1, the software version information of each hardware module of the television includes, but is not limited to, a current software version number of each hardware module. The software version information of the television may indicate the software version of each hardware module contained in the television. The hardware information of each hardware module of the television includes, but is not limited to, the name, manufacturer, model, etc. of the software version of each hardware module. The name, manufacturer, model, and software version number of any one hardware module may be included in a broadcast transmitted by the television in a preset order (may also be said to be included in the first software version information in order). When the mobile phone and the voice box receive the broadcast message sent by the television, the positions of the name, manufacturer, model and software version number of the hardware module in the broadcast message can be determined according to the protocol so as to identify the name, manufacturer, model and software version number of the hardware module.
For example, the manufacturer of the kernel in the television is manufacturer a, the model of the kernel is X, and the current software version number of the kernel is 4.19. The manufacturer of Bluetooth in the television is manufacturer A, the model of Bluetooth is K, and the current software version number of Bluetooth is 3.5. The manufacturer of Wi-Fi in the television is manufacturer A, the model of Wi-Fi is Z, and the current software version number of Wi-Fi is 1.2. The manufacturer of the camera in the television is manufacturer B, the model of the camera is Y, and the current software version number of the camera is 5.2.
TABLE 1
Name of the name Manufacturer(s) Model number Current software version number
Kernel Vendor A Model X 4.19
Bluetooth (R) Vendor A Model K 3.5
Wi-Fi Vendor A Model Z 1.2
Camera head Manufacturer B Model Y 5.2
In addition, referring to fig. 4 and step S401, the handset may also transmit a home network broadcast message to the router. Broadcast messages sent by the mobile phone include, but are not limited to: address information of the mobile phone, software version information and hardware information of each hardware module of the mobile phone, and the like. The router may send the received broadcast message from the handset to various electronic devices within the home network, e.g., in embodiments of the application, the router sends the broadcast message to televisions and speakers. Table 2 shows software version information and hardware information of each hardware module of the mobile phone, and the hardware modules of the mobile phone may include a kernel, bluetooth, wi-Fi, and a camera. Table 2 and the description of the broadcast message sent by the mobile phone may refer to the description of table 1 and the description of the broadcast message sent by the television in the foregoing embodiments, which are not repeated herein.
TABLE 2
Name of the name Manufacturer(s) Model number Current software version number
Kernel Vendor A Model X 4.3
Bluetooth (R) Vendor C Model N 3.5
Wi-Fi Vendor A Model Z 1.2
Camera head Manufacturer B Model K 5.2
Referring to fig. 4 and step S401, the sound box may also transmit a home network broadcast message to the router. Broadcast messages sent by the sound box include but are not limited to: address information of the sound box, software version information and hardware information of each hardware module of the sound box, and the like. The router may send the received broadcast message from the speaker to various electronic devices within the home network, e.g., in embodiments of the present application, the router sends the broadcast message to televisions and handsets. Table 3 shows software version information and hardware information for each hardware module of the loudspeaker, which may include a kernel, bluetooth, and Wi-Fi. Table 3 and description of the audio box transmitting broadcast messages may refer to the description of table 1 and the television transmitting broadcast messages in the foregoing embodiments, and will not be repeated herein.
TABLE 3 Table 3
Name of the name Manufacturer(s) Model number Current software version number
Kernel Vendor A Model X 4.19
Bluetooth (R) Manufacturer B Model N 3.6
Wi-Fi Vendor A Model Z 1.2
S402, the mobile phone and the voice box store software version information and hardware information of each hardware module in the television.
After the television sends the software version information and the hardware information of each hardware module of the television to the mobile phone and the voice box in a specific format, the auxiliary upgrading application programs in the mobile phone and the voice box can enable the mobile phone and the voice box to monitor the target port so as to receive the broadcast message sent by the television from the target port, thereby acquiring the software version information and the hardware information of each hardware module of the television and the address information of the television. When the electronic devices interact, the electronic devices receiving the information can monitor the target port through the auxiliary upgrading application program so as to receive the information sent by the electronic devices sending the information from the target port, and the information is not repeated.
For example, taking a mobile phone as an example, the mobile phone can correspondingly store software version information and hardware information of each hardware module of the television, and address information of the television. For example, the information acquired by the mobile phone includes the hardware module name of kernel, vendor a, model X, current software version number of 4.19 and address information of the television, and the mobile phone records the correspondence relationship between the hardware name of kernel, vendor a, model X, current software version number of 4.19 and address information of the television. The steps performed by the loudspeaker are similar and will not be described in detail here.
Taking the example that the television transmits the broadcast message including the software version information, the hardware information and the address information of each hardware module to the mobile phone and the sound box every 10 minutes, it is assumed that the television transmits the software version information of each hardware module to the mobile phone and the sound box for the first time in the first period. In the second period, the television sends the software version information of each hardware module to the mobile phone and the voice box for the second time. If the software version information of each hardware module sent to the mobile phone and the voice box for the first time and the second time by the television are different, the mobile phone and the voice box update the software version information of each hardware module of the television based on the software version information received for the second time.
For example, table 4 is a summary table of software version information and hardware information of each hardware module of each electronic device in a home network stored in a television, where a source may be address information of an electronic device corresponding to a certain hardware module, for example, a vendor is a, a model is X, and a current kernel with a software version number of 4.3 is sent to the television by a mobile phone, and then the source of the hardware module is address information of the mobile phone.
TABLE 4 Table 4
Name of the name Manufacturer(s) Model number Current software version number Source
Kernel Vendor A Model X 4.3 Address information of mobile phone
Bluetooth (R) Vendor C Model N 3.5 Address information of mobile phone
Wi-Fi Vendor A Model Z 1.2 Address information of mobile phone
Camera head Manufacturer B Model K 5.2 Address information of mobile phone
Kernel Vendor A Model X 4.19 Address information of sound box
Bluetooth (R) Manufacturer B Model N 3.6 Address information of sound box
WIFI Vendor A Model Z 1.2 Address information of sound box
Kernel Vendor A Model X 4.19 Local area
Bluetooth (R) Vendor A Model K 3.5 Local area
Wi-Fi Vendor A Model Z 1.2 Local area
Camera head Manufacturer B Model Y 5.2 Local area
In addition, referring to fig. 4 and step S402, after the mobile phone sends the software version information and the hardware information of each hardware module of the mobile phone to the television and the sound box, the assisted upgrade application program in the television and the sound box may enable the television and the sound box to monitor the target port, so as to receive the local area network broadcast message sent by the mobile phone from the target port, thereby obtaining and storing the software version information and the hardware information of each hardware module of the mobile phone and the address information of the mobile phone, and obtaining a summary table of the software version information and the hardware information of the hardware module of each electronic device in the home network.
Referring to fig. 4 and step S402, after the sound box sends the software version information and the hardware information of each hardware module of the sound box to the television and the mobile phone, the assisted upgrade application program in the television and the mobile phone may enable the television and the mobile phone to monitor the target port, so as to receive the local area network broadcast message sent by the sound box from the target port, thereby obtaining and storing the software version information and the hardware information of each hardware module of the sound box and the address information of the sound box, and obtaining a summary table of the software version information and the hardware information of the hardware module of each electronic device in the home network. For the explanation of the software version information and the hardware information of each hardware module of the mobile phone and the address information of the mobile phone stored by the television and the sound box, and the explanation of the software version information and the hardware information of each hardware module of the sound box and the address information of the mobile phone stored by the television and the mobile phone, reference may be made to the explanation of step S402, which is not repeated herein.
It should be noted that, the application uses the television and the mobile phone to include the kernel, the Bluetooth, the Wi-Fi and the camera, and the sound box includes the kernel, the Bluetooth and the Wi-Fi for illustration. In some possible implementations, the television, the mobile phone, and the speaker may further include other hardware modules, which are not limited by the embodiments of the present application.
S403, the television sends a version upgrade request to the server.
For example, the television may send a version upgrade request to the server via the router to detect whether there is a software version to be upgraded, periodically or upon user triggering. For example, the television may send a version upgrade request to the server through the router every 10 minutes (the time interval may be set according to actual needs).
In one example, the version upgrade request sent by the television to the server may carry software version information and hardware information of each hardware module of the television, so that the server determines, according to the current software version information and hardware information of the television, whether the server includes a software version to be upgraded or not, which is suitable for downloading and upgrading of the television. For example, (1) in fig. 5 shows software version information of a kernel, bluetooth, wi-Fi, camera, and other hardware modules carried in a version upgrade request sent by a television to a server. The current software version number of the kernel is 4.19, the current software version number of the Bluetooth is 3.5, the current software version number of the wi-Fi is 1.2, and the current software version of the camera is 5.2.
In another example, the current version information of the television may be carried in a version upgrade request sent by the television to the server. For example, the current version information may be a version number of an upgrade package where a software version of each hardware module is located. It should be noted that, in the embodiment of the present application, the current version information corresponding to different terminals may be the same or different. For example, the different current version information may include software version information and hardware information of different hardware modules, and software version information and hardware information of an upgrade package where a software version of the hardware module is located. For example, the current upgrade version number of each hardware module in the television is upgrade version 5.4, the software version number of the kernel corresponding to upgrade version 5.4 is 4.19, the software version number of bluetooth is 3.5, the software version number of Wi-Fi is 1.2, and the software version number of the camera is 5.2.
For example, the terminal may directly send a version upgrade request to the server. Alternatively, the server may distribute all software version information to the content delivery network (content delivery network, CDN) in each location, and the terminals A1 to a11 and the terminals B1 to B14 may send version upgrade requests to the CDNs in their locations. For example, terminals A1 to a11 and terminals B1 to B14 are all located in X city, and terminals A1 to a11 and terminals B1 to B14 may send a version upgrade request to CDN in X city.
In addition, referring to fig. 4 and step S403, the handset and the speaker may also send a version upgrade request to the server to detect whether the respective hardware modules have a software version to be upgraded. For the description of the mobile phone and the speaker sending the version upgrade request to the server, reference may be made to the description of step S403, which is not described herein again.
S404, the server sends the version information of the software to be upgraded to the television.
The server stores all upgrade version information, and hardware information and software version information of a hardware module corresponding to each upgrade version. Alternatively, in the embodiment of the present application, the correspondence between the upgrade version information and the software version information and the hardware information of the hardware module is merely a schematic example. In other embodiments, the setting may be performed according to actual requirements, which is not limited by the present application.
In one example, as described above, if the version upgrade request sent by the television carries software version information and hardware information of each hardware module of the television. Correspondingly, after receiving the version upgrading request sent by the television, the server can search the latest software version information and hardware information of each hardware module and compare the latest software version information and hardware information with the received software version information and hardware information. When the comparison result shows that the software version information and the hardware information are not matched with the latest software version information and the latest hardware information, the server determines that the latest software version information and the latest hardware information which are searched can be used as the software version information to be upgraded. And then, the server can send the version information of the software to be upgraded to the television through the router.
In another example, if the version upgrade request sent by the television carries the current version information of the television (for example, version number 5.4 of the upgrade package where the current software version of each hardware module is located). Correspondingly, after receiving the version upgrading request sent by the television, the server can acquire the version information to be upgraded corresponding to the television based on the version upgrading information of the television according to the mode. Exemplary version information to be upgraded includes, but is not limited to: the method comprises the steps of upgrading software version information of each hardware module and upgrading target version information of an upgrading package where the software version of each hardware module to be upgraded is located. The software version information to be upgraded of each hardware module includes, but is not limited to, a version number of the software version to be upgraded of each hardware module and an acquired address thereof. The television can acquire the software version to be upgraded of the hardware module from the server according to the new software version number and the acquired address thereof. Table 5 shows version information to be upgraded sent by the server to the television, and exemplarily shows that the new upgrade target version number may be 5.5, and the acquisition address of the hardware module may be a network address (uniform resource locator, URL).
TABLE 5
For example, fig. 5 shows software version information to be upgraded of a kernel, bluetooth, wi-Fi, camera and other hardware modules in the television searched by the server. Referring to (1) in fig. 5 and table 5, the new upgrade target version number is 5.5. The new software version number of the kernel is 4.3, and compared with the current software version number of 4.19, the server detects that the television needs to upgrade the software version of the kernel to the software version to be upgraded. The new software version number of bluetooth is 3.6, and compared with the current software version number of 3.5, the server detects that the television needs to upgrade the software version of bluetooth to the software version to be upgraded. The new software version number of Wi-Fi is 1.3, and the server detects that the television needs to upgrade the software version of Wi-Fi to the software version to be upgraded compared with the current software version number of 1.2. The new software version number of the camera is 5.22, and compared with the current software version number of 5.2, the server detects that the television needs to upgrade the software version of the camera to the software version to be upgraded.
Fig. 5 shows a case where all of the kernel, bluetooth, wi-Fi, and camera of the television need to be updated, and in some possible implementations, it may also be that some of the kernel, bluetooth, wi-Fi, and camera of the television need to be updated, or that none of the kernel, bluetooth, wi-Fi, and camera of the television need to be updated. It should be noted that, when at least one of the kernel, bluetooth, wi-Fi, and camera of the television needs to download the upgrade, the server needs to send the version information of the software to be upgraded to the television. Of course, if the kernel, bluetooth, wi-Fi, and camera of the television do not need to be downloaded and upgraded, the server may not send the version information of the software to be upgraded to the television.
For example, there may be cases where the new software version number is the same as the current software version number. In this case, the server may determine whether the vendor and model corresponding to the new software version number are the same as the vendor and model corresponding to the current software version number. If the manufacturer and the model corresponding to the new software version number are determined, the manufacturer and the model corresponding to the current software version number are the same, and the current software version number is the new software version number without downloading and upgrading the hardware module. If the vendor and/or model corresponding to the new software version number is determined to be different from the vendor and/or model corresponding to the current software version number, the hardware module is determined to need to be downloaded and upgraded.
For example, in some possible implementations, if the server forces the update of the terminals in the lan, the terminals A1 to a11 and the terminals B1 to B14 do not need to send a version update request to the server (that is, the terminals A1 to a11 and the terminals B1 to B14 do not need to execute the step S401), and the server may directly send version update reminders to the terminals A1 to a11 and the terminals B1 to B14 to remind the terminals A1 to a11 and the terminals B1 to B14 to update the software version to be updated.
In addition, referring to fig. 4 and step S404, after the mobile phone and the speaker send a version upgrade request to the server, the server may also detect that the hardware modules of the mobile phone and the speaker need to be upgraded, and in this case, the server may also send version information of the software to be upgraded to the mobile phone and the speaker. For the description of the server sending the version information to be upgraded to the mobile phone and the audio box, reference may be made to the description of step S404, which is not repeated herein.
For example, referring to fig. 5 (2), taking the mobile phone as an example, the new software version number of the kernel is 4.3, and the server detects that the mobile phone does not need to upgrade the software version of the kernel compared to the current software version number of 4.3. The new software version number of bluetooth is 3.6, and the server detects that the mobile phone needs to upgrade the software version of bluetooth to the software version to be upgraded, compared with the current software version number of 3.5. The new software version number of Wi-Fi is 1.3, and compared with the current software version number of 1.2, the server detects that the mobile phone needs to upgrade the software version of Wi-Fi to the software version to be upgraded. The new software version number of the camera is 5.22, and compared with the current software version number of 5.2, the server detects that the mobile phone needs to upgrade the software version of the camera to the software version to be upgraded.
For example, referring to fig. 5 (3), taking a sound box as an example, the new software version number of the kernel is 4.3, and the server detects that the sound box needs to upgrade the software version of the kernel to the software version to be upgraded, compared with the current software version number of 4.19. The new software version number of bluetooth is 3.6, and the server detects that the loudspeaker box does not need to upgrade the software version of bluetooth compared with the current software version number of 3.6. The new software version number of Wi-Fi is 1.3, and compared with the current software version number of 1.2, the server detects that the sound box needs to upgrade the software version of Wi-Fi to the software version to be upgraded.
Still taking the television as an example, in the above example, after receiving the software version information to be upgraded sent by the server, the television determines that the software versions of the kernel, bluetooth, wi-Fi and camera all need to be downloaded and upgraded. Then, the television finds that the software version of the inner core in the mobile phone is the same as the software version to be upgraded of the inner core in the television by searching the summary table 4, and the software version of the Bluetooth in the sound box is the same as the software version to be upgraded of the Bluetooth in the television. Thus, table 5 can be updated based on the information of summary table 4 to obtain table 6. Referring to table 6, the television may obtain the software version to be upgraded of the kernel from the mobile phone and obtain the software version to be upgraded of the bluetooth from the sound box. And the television only needs to acquire the Wi-Fi and the software version to be upgraded of the camera from the server. Compared with the scheme that the to-be-upgraded software version of the television kernel, the Bluetooth, the camera and the Wi-Fi are all obtained from the server, the method and the device can occupy smaller server resources under the condition that the to-be-upgraded software version of the television kernel, the Bluetooth, the camera and the Wi-Fi can be downloaded and upgraded, and download at least part of to-be-upgraded software versions of hardware modules through a home network, so that the downloading speed of the part of to-be-upgraded software versions is increased.
TABLE 6
Fig. 6 is a schematic flow diagram of an exemplary process of acquiring a software version to be upgraded of a kernel from a mobile phone, acquiring a software version to be upgraded of bluetooth from a sound box, and acquiring Wi-Fi and a camera from a server by the television, wherein the process specifically comprises:
s601, the television and the mobile phone establish a first connection.
Before the television obtains the software version to be upgraded of the kernel from the mobile phone, a first connection is established with the mobile phone so as to realize data transmission with the mobile phone. For example, as shown in FIG. 7, a television may establish session with a cell phone. Specifically, referring to fig. 7, the television may first send a communication request to the mobile phone, waiting for confirmation from the mobile phone. After receiving the communication request sent by the television, the mobile phone responds to the communication request of the television and sends the communication request to the television. After receiving the communication request sent by the mobile phone, the television confirms to establish session with the mobile phone, and then obtains the software version to be upgraded of the kernel from the mobile phone.
S602, the television sends a downloading request of the kernel to the mobile phone through the first connection.
For example, after the television may establish the first connection with the mobile phone, the to-be-upgraded software version (version number 4.3) of the kernel may be downloaded from the mobile phone through the first connection request.
S603, the mobile phone sends the software version to be upgraded of the kernel to the television through the first connection.
For example, after the television sends a download request of the kernel to the mobile phone, the mobile phone confirms that the to-be-upgraded software version of the kernel is sent to the television, so that the television downloads the kernel with the version number of 4.3 from the mobile phone, instead of downloading the kernel with the version number of 4.3 from the server. The television is prevented from downloading the software version to be upgraded of all hardware modules from the server, so that smaller server resources can be occupied, and the downloading speed of the software version to be upgraded of at least part of hardware modules is accelerated by downloading the software version to be upgraded of the part of hardware modules through the home network.
For example, if the condition that the mobile phone leaves the home network occurs in the process of downloading the software version to be upgraded of the kernel from the mobile phone, and the like, so that the software version to be upgraded of the kernel fails in the process of downloading the software version to be upgraded of the kernel from the mobile phone, the television can send a request for downloading the software version to be upgraded of the kernel to the server, so that the software version to be upgraded of the kernel is continuously downloaded from the server, and breakpoint continuous transmission is realized. For example, when the television downloads the software version to be upgraded of the kernel from the mobile phone to 30%, and the mobile phone leaves the home network, the television can continue to download the software version to be upgraded of the kernel from the server from 30%.
S604, the television establishes a second connection with the sound box.
Before the television obtains the Bluetooth software version to be upgraded from the sound box, a second connection is established with the sound box so as to realize data transmission with the sound box. For example, a television may establish a session with a sound box. Specifically, the television may first send a communication request to the speaker, waiting for the speaker to confirm. After receiving the communication request sent by the television, the sound box responds to the communication request of the television and sends the communication request to the television. After receiving the communication request sent by the sound box, the television confirms to establish session with the sound box, and then obtains the software version to be upgraded of the kernel from the sound box.
S605, the television sends a Bluetooth downloading request to the sound box through the second connection.
Illustratively, after the television establishes a second connection with the sound box, the version of the software to be upgraded (version number 3.6) of bluetooth may be downloaded from the sound box through the second connection request.
S606, the sound box sends the Bluetooth and the to-be-upgraded software version of the camera to the television through the second connection.
Illustratively, after the television sends a download request of bluetooth and camera to the speaker, the speaker confirms that the version of the software to be upgraded of bluetooth and camera is sent to the television, so that the television downloads bluetooth with version number 3.6 and camera with version number 5.22 from the speaker, instead of downloading bluetooth with version number 3.6 from the server. The television is prevented from downloading the software version to be upgraded of all hardware modules from the server, so that smaller server resources can be occupied, and the downloading speed of the software version to be upgraded of at least part of hardware modules is accelerated by downloading the software version to be upgraded of the part of hardware modules through the home network.
For example, if the condition such as shutdown of the sound box occurs in the process of downloading the to-be-upgraded software version of the bluetooth from the sound box by the television, and the to-be-upgraded software version of the bluetooth fails to be downloaded by the television, the television may send a request for downloading the to-be-upgraded software version of the bluetooth to the server, so as to continuously download the to-be-upgraded software version of the bluetooth from the server, and realize breakpoint continuous transmission. For example, when the television downloads bluetooth to 20% from the sound box, the sound box is turned off, and the television can continue to download the software version to be upgraded of bluetooth from the server from 20%.
S607, the television sends a Wi-Fi and camera downloading request to the server.
The television, after integrating the software version information of each hardware module received from the mobile phone and the sound box with the software version information to be upgraded received from the server, determines the software version to be upgraded (version number 1.3) of Wi-Fi and the software version to be upgraded (version number 5.22) of the camera to be downloaded from the server. Furthermore, the television can request to download the Wi-Fi and the software version to be upgraded of the camera from the server according to the Wi-Fi acquisition address in the software version information to be upgraded.
S608, the server sends Wi-Fi and the software version to be upgraded of the camera to the television.
For example, after receiving a download request from the television, the server may send Wi-Fi and a software version to be upgraded of the camera to the television, so that the television downloads Wi-Fi with a version number of 1.3 and the camera with a version number of 5.22 from the server. Because the television only needs to acquire the software version to be upgraded of the Wi-Fi and the camera from the server, compared with the scheme that the television downloads the software version to be upgraded of all hardware modules from the server, the method and the device can occupy smaller server resources, and download the software version to be upgraded of at least part of the hardware modules through the home network, so that the downloading speed of the part of the software version to be upgraded is increased.
S609, the television installs the kernel, bluetooth, wi-Fi and the software version to be upgraded of the camera.
For example, after the television downloads the software versions to be upgraded of the kernel, the Bluetooth, the Wi-Fi and the camera, the software versions to be upgraded of the Wi-Fi and the camera can be automatically installed. Of course, in some possible implementation manners, after the television downloads the software versions to be upgraded of the kernel, the bluetooth, the Wi-Fi and the camera, the user can be reminded of whether to install the software versions to be upgraded of the kernel, the bluetooth, the Wi-Fi and the camera in a state that the television is started, and after receiving the user installation instruction, the software versions to be upgraded of the kernel, the bluetooth, the Wi-Fi and the camera are installed. In addition, after step S603, the tv may install a software version to be upgraded of the kernel first; after step S606, installing a software version to be upgraded of bluetooth; after S608, the Wi-Fi and the software version of the camera to be upgraded are installed.
In the foregoing embodiment, taking a television as an example, the television is introduced to download a software version to be upgraded of a part of hardware modules (Wi-Fi and camera) from a server, or download a software version to be upgraded of another part of hardware modules (kernel and bluetooth) from other electronic devices (mobile phone and speaker) in a home network.
In addition, it should be noted that the embodiment of the application does not limit the sequence of the television obtaining the software version to be upgraded of the kernel from the mobile phone, the Bluetooth software version to be upgraded from the sound box, and the Wi-Fi and the camera software version to be upgraded from the server. The above example steps S601 to S608 show that the television first obtains the software version to be upgraded of the kernel from the mobile phone, then obtains the software version to be upgraded of the bluetooth from the sound box, and finally obtains the software versions to be upgraded of the Wi-Fi and the camera from the server.
In some possible implementations, the mobile phone and the sound box in the home network may also download the software version to be upgraded for upgrading the hardware module thereof in the manner of the foregoing embodiments.
Taking a mobile phone as an example, in the above example, after receiving the version information of the software to be upgraded sent by the server, the mobile phone determines that the kernel of the mobile phone does not need to be upgraded, and bluetooth, wi-Fi and a camera all need to be upgraded. Then, the mobile phone searches the summary table of the mobile phone, and discovers that the software version to be upgraded of the Bluetooth and the camera can be obtained from the sound box. And obtaining a table 7 based on the information of the summary table and the version information of the software to be upgraded sent to the loudspeaker box by the server. Referring to table 7, the mobile phone can obtain the software version to be upgraded of bluetooth from the sound box, and the mobile phone only needs to obtain Wi-Fi and the software version to be upgraded of the camera from the server. Compared with the scheme that the Bluetooth, the camera and the Wi-Fi software version to be upgraded in the mobile phone are all obtained from the server, the method and the device can occupy smaller server resources under the condition that the Bluetooth, the camera and the Wi-Fi software version to be upgraded in the mobile phone can be downloaded and upgraded, and download at least part of the hardware module software version to be upgraded through the home network, so that the downloading speed of the part of the software version to be upgraded is accelerated.
TABLE 7
Taking a sound box as an example, in the above example, after receiving the version information of the software to be upgraded sent by the server, the sound box determines that the bluetooth and the camera of the sound box need not to be upgraded, and the kernel and the Wi-Fi need to be upgraded. Then, the sound box searches the summary table of the sound box to find that the software version to be upgraded of the kernel can be obtained from the mobile phone. And based on the information of the summary table and the version information of the software to be upgraded, which is sent to the loudspeaker box by the server. The loudspeaker box can acquire the software version to be upgraded of the kernel from the mobile phone, and the loudspeaker box only needs to acquire the software version to be upgraded of Wi-Fi from the server. Compared with the scheme that the kernel and the Wi-Fi software version to be upgraded in the sound box are obtained from the server, the method and the device can occupy smaller server resources under the condition that the kernel and the Wi-Fi in the sound box can download and upgrade the software version to be upgraded, and download the software version to be upgraded of at least part of hardware modules through a home network, so that the downloading speed of the part of software version to be upgraded is accelerated.
Referring to fig. 8, a mobile phone obtains a software version to be upgraded of bluetooth from a sound box, the sound box obtains a software version to be upgraded of a kernel from the mobile phone, and the mobile phone and the sound box obtain a flow diagram of Wi-Fi and a camera from a server, specifically including:
S801, a third connection is established between the mobile phone and the sound box.
Before the mobile phone obtains the software version to be upgraded of the kernel from the sound box, the mobile phone can establish a third connection with the sound box to realize data transmission with the sound box. For example, the handset may establish a session with the speaker. Specifically, the mobile phone may first send a communication request to the speaker, and wait for the speaker to confirm. After receiving the communication request sent by the mobile phone, the sound box responds to the communication request of the television and sends the communication request to the mobile phone. After receiving the communication request sent by the sound box, the mobile phone confirms to establish session with the sound box, then the to-be-upgraded software versions of the Bluetooth and the camera can be obtained from the sound box, and the sound box can also obtain the to-be-upgraded software version of the kernel from the mobile phone.
S802, the mobile phone sends a downloading request of the Bluetooth and the camera to the sound box through the third connection.
For example, after the third connection is established between the mobile phone and the sound box, the version of the software to be upgraded (version number is 3.6) of bluetooth may be downloaded from the sound box through the third connection request.
S803, the sound box sends the Bluetooth software version to be upgraded to the mobile phone through the third connection.
After the mobile phone sends a downloading request of bluetooth to the sound box, the sound box confirms to send a to-be-upgraded software version of bluetooth to the mobile phone, so that the mobile phone downloads the bluetooth with the version number of 3.6 from the sound box instead of downloading the bluetooth with the version number of 3.6 from the server, the mobile phone is prevented from downloading to-be-upgraded software versions of all hardware modules except the kernel from the server, therefore, small server resources can be occupied, and downloading to-be-upgraded software versions of at least part of the hardware modules through a home network accelerates the downloading speed of the to-be-upgraded software versions.
For example, if the mobile phone downloads the to-be-upgraded software version of bluetooth from the sound box, and the sound box is powered off, the to-be-upgraded software version of bluetooth is failed to be downloaded by the mobile phone, the mobile phone may send a request for downloading the to-be-upgraded software version of bluetooth to the server, so as to continuously download the to-be-upgraded software version of bluetooth from the server, and realize breakpoint continuous transmission. For example, when the television downloads bluetooth from the sound box to 50%, the sound box is turned off, and the mobile phone can continue to download the to-be-upgraded software version of bluetooth from the server from 50%.
S804, the sound box sends a downloading request of the kernel to the mobile phone.
For example, after the speaker establishes the third connection with the handset, the to-be-upgraded software version (version number 4.3) of the kernel may be requested to be downloaded from the handset.
S805, the mobile phone sends the software version to be upgraded of the kernel to the sound box.
After the sound box sends a downloading request of the kernel to the mobile phone, the mobile phone confirms to send the software version to be upgraded of the kernel to the sound box, so that the sound box downloads the kernel with the version number of 4.3 from the mobile phone instead of downloading the kernel with the version number of 4.3 from the server, and the television is prevented from downloading the software version to be upgraded of all hardware modules except Bluetooth and cameras from the server. Therefore, small server resources can be occupied, and the downloading speed of the part of software versions to be upgraded is increased by downloading the part of software versions to be upgraded of at least part of hardware modules through the home network.
For example, if the situation that the mobile phone leaves the home network occurs in the process of downloading the to-be-upgraded software version of the kernel from the mobile phone, and the to-be-upgraded software version of the kernel fails in the process of downloading the to-be-upgraded software version of the kernel from the mobile phone, the loudspeaker can send a request for downloading the to-be-upgraded software version of the kernel to the server, so that the to-be-upgraded software version of the kernel is continuously downloaded from the server, and breakpoint continuous transmission is realized. For example, when the sound box downloads the kernel from the mobile phone to 40%, and the mobile phone leaves the home network, the sound box can continue to download the software version to be upgraded of the kernel from the server from 40%.
S806, the mobile phone sends a Wi-Fi and camera downloading request to the server.
The mobile phone, after integrating the software version information of each hardware module received from the television and the sound box with the software version information to be upgraded received from the server, determines the software version to be upgraded (version number 1.3) of Wi-Fi and the software version to be upgraded (version number 5.22) of the camera to be downloaded from the server. Furthermore, the mobile phone can request to download the Wi-Fi and the to-be-upgraded software version of the camera from the server according to the acquired addresses of the Wi-Fi and the camera in the to-be-upgraded software version information.
S807, the server sends Wi-Fi and a software version to be upgraded of the camera to the mobile phone.
The server receives a version upgrade request sent by the mobile phone, and then sends Wi-Fi and a software version to be upgraded of the camera to the mobile phone, so that the mobile phone downloads Wi-Fi with a version number of 1.3 and the camera with a version number of 5.22 from the server. Because the mobile phone only needs to acquire the Wi-Fi and the software version to be upgraded of the camera from the server, compared with the scheme that the mobile phone downloads Bluetooth, wi-Fi and the software version to be upgraded of the camera from the server, the method and the device can occupy smaller server resources, and download the software version to be upgraded of at least part of hardware modules through the home network, so that the downloading speed of the part of software version to be upgraded is accelerated.
S808, the mobile phone installs the software version to be upgraded of Bluetooth, wi-Fi and a camera.
For example, as shown in fig. 9, after downloading the software version to be upgraded of the bluetooth, wi-Fi and camera, the mobile phone may display a prompt box, where the prompt box includes prompt information for asking the user whether to install the software version to be upgraded of the bluetooth, wi-Fi and camera. For example, referring to fig. 9, the mobile phone may display a prompt box of "whether to install bluetooth, wi-Fi and camera", and after "yes" is selected by the user, the mobile phone may install the software version to be upgraded of bluetooth, wi-Fi and camera. Of course, the mobile phone may also install the software version to be upgraded of bluetooth after step S803; after S807 again, the Wi-Fi and camera software version to be upgraded are installed.
In fig. 9, after downloading the bluetooth, wi-Fi and camera, the mobile phone displays a prompt box to ask the user whether to install the bluetooth, the camera and the Wi-Fi software version to be upgraded. In some possible implementation manners, the mobile phone may display a prompt box to ask the user whether to install the software version to be upgraded of the hardware module or not after downloading one hardware module in bluetooth, camera and Wi-Fi.
S809, the sound box sends a Wi-Fi downloading request to the server.
The sound box collects software version information of each hardware module received from the television and the mobile phone and software version information to be upgraded received from the server, and then determines that the Wi-Fi software version to be upgraded (version number is 1.3) needs to be downloaded from the server. Furthermore, the sound box can request to download the Wi-Fi version of the software to be upgraded from the server according to the Wi-Fi acquisition address in the version information of the software to be upgraded.
S810, the server sends the Wi-Fi software version to be upgraded to the loudspeaker box.
The server sends a Wi-Fi version to be upgraded to the loudspeaker after receiving the version upgrade request sent by the loudspeaker, so that the loudspeaker downloads Wi-Fi with a version number of 1.3 from the server. Compared with the scheme that the sound box downloads the kernel and the Wi-Fi software version to be upgraded from the server, the method and the device can occupy smaller server resources, and download the software version to be upgraded of at least part of hardware modules through the home network, so that the downloading speed of the part of software version to be upgraded is increased.
S811, installing the kernel and Wi-Fi version of the software to be upgraded in the sound box.
The audio box can automatically install the software version to be upgraded of the kernel and the Wi-Fi after the audio box downloads the software version to be upgraded of the kernel and the Wi-Fi. Of course, in some possible implementation manners, after the sound box downloads the to-be-upgraded software version of the kernel and the Wi-Fi, the user can be reminded of whether to install the to-be-upgraded software version of the kernel and the Wi-Fi in a state that the sound box is opened, and after receiving the user installation instruction, the to-be-upgraded software version of the kernel and the Wi-Fi can be installed. Of course, the sound box may also install the software version to be upgraded of the kernel after step S805; after S811 again, the Wi-Fi version of the software to be upgraded is installed.
In addition, it should be noted that, in the embodiment of the application, the sequence of downloading the software version to be upgraded of the Bluetooth from the sound box, downloading the software version to be upgraded of the kernel from the sound box, downloading the software version to be upgraded of the Wi-Fi and the camera from the server, and downloading the software version to be upgraded of the Wi-Fi from the server by the sound box is not limited. The above example steps S801 to S809 show that the mobile phone downloads the software version to be upgraded of bluetooth from the sound box, then downloads the software version to be upgraded of the kernel from the mobile phone, then downloads the Wi-Fi and the software version to be upgraded of the camera from the server, and finally downloads the software version to be upgraded of the Wi-Fi from the server.
The foregoing embodiments exemplify that each electronic device in the home network includes a Wi-Fi module, and communicates with other electronic devices and servers in the home network using the Wi-Fi module to download and upgrade a software version to be upgraded. However, in some possible implementations, some electronic devices in the home may not include Wi-Fi modules, such as a desk lamp. In this case, the desk lamp may establish communication with one electronic device (e.g., a mobile phone) in the home network using bluetooth. Further, the desk lamp can communicate with other electronic devices and servers in the home network through the mobile phone so as to upgrade the software version to be upgraded of each hardware module.
Fig. 10 is a schematic view of a scenario of an electronic device included in a home, where the scenario includes not only a mobile phone and a sound box in a home network, but also a desk lamp outside the home network. It is understood that the mobile phone and the sound box can comprise Wi-Fi modules, the desk lamp does not comprise Wi-Fi modules, and the mobile phone and the desk lamp both comprise Bluetooth modules. Therefore, the desk lamp can establish communication with the mobile phone through Bluetooth, and the software version to be upgraded is obtained from the electronic equipment and the server in the home network through the mobile phone.
Specifically, fig. 11 is a schematic flow chart of interaction between bluetooth and a speaker and server through a mobile phone, which specifically includes:
s1101, the desk lamp sends a request message, software version information and hardware information of each hardware module of the desk lamp to the mobile phone through Bluetooth.
Illustratively, prior to step S1101, the desk lamp may establish bluetooth communication with the handset. The mobile phone can download an application program for controlling the work of the desk lamp, and once the mobile phone establishes Bluetooth communication with the desk lamp, the mobile phone can control the work of the desk lamp through the application program.
For example, in the case where the desk lamp and the mobile phone establish bluetooth communication, the desk lamp may periodically (for example, every 10 minutes, and may not be limited according to practical requirements), or, when triggered by a user, send a request message and software version information and hardware information of each hardware module to the mobile phone through bluetooth. The hardware modules of bluetooth may include a kernel and bluetooth, and for the description of the software version information and the hardware information of each hardware module of the desk lamp, reference may be made to the description of the software version information and the hardware information of each hardware module of the television in the foregoing embodiment, which is not repeated herein.
In other examples, the mobile phone may control the operation of the desk lamp based on the software version information and the hardware information of each hardware module of the desk lamp, and further, the mobile phone may know the software version information and the hardware information of each hardware module of the desk lamp. Therefore, in step S1101, the desk lamp may only send a request message to the mobile phone, requesting the mobile phone to broadcast the software version information and the hardware information of each hardware module of the desk lamp.
S1102, the mobile phone sends software version information and hardware information of each hardware module of the desk lamp to the loudspeaker box.
For example, after receiving the request message sent by the desk lamp, the software version information and the hardware information of each hardware module of the desk lamp, the mobile phone may send a home network broadcast message to the router, where the broadcast message includes but is not limited to: address information of the mobile phone, software version information and hardware information of each hardware module of the desk lamp, and the like. On this basis, the broadcast message may also include software version information and hardware information of each hardware module of the mobile phone.
The address information of the mobile phone may be an IP address of the mobile phone in the home network, for example. For example, the IP address of the handset in the home network may be 192.168.0.101. It can be understood that the address information of the mobile phone sent by the mobile phone to the sound box can be an IP address of the mobile phone in the home network.
S1103, the sound box stores the software version information and the hardware information of each hardware module of the desk lamp.
After the mobile phone intentionally sends the software version information and the hardware information of each hardware module of the desk lamp, the auxiliary upgrading application program in the sound box can enable the sound box to receive the broadcast message sent by the mobile phone through the monitoring target port, so that the software version information and the hardware information of each hardware module of the desk lamp and the address information of the mobile phone are obtained and stored. For example, the information acquired by the sound box includes software version information and hardware information of the kernel and Bluetooth of the desk lamp, and address information of the mobile phone. The manufacturer of the kernel is A, the model is X, the current software version number is 4.19, the manufacturer of the Bluetooth is C, the model is N, and the current software version number is 3.5. The sound box records the corresponding relation among the hardware name, manufacturer, model, current software version number and address information of the mobile phone.
Taking the example that the desk lamp sends a request message, the software version information of each hardware module and the hardware information to the mobile phone every 10 minutes as an example, it is assumed that in a first period, the desk lamp sends the software version information of each hardware module to the sound box through the mobile phone for the first time, and in a second period, the desk lamp sends the software version information of each hardware module to the sound box through the mobile phone for the second time. If the software version information of each hardware module sent to the sound box for the first time and the second time by the desk lamp are different, the sound box updates the software version information of each hardware module of the desk lamp based on the software version information received for the second time.
In addition, the sound box can also send the software version information and the hardware information of each hardware module of the sound box to the desk lamp through the mobile phone, and the desk lamp can receive and store the software version information and the hardware information of each hardware module of the sound box.
S1104, the desk lamp sends a version upgrade request to the mobile phone through Bluetooth.
For example, the desk lamp may send a version upgrade request to the handset via bluetooth periodically or in case of user trigger. For example, the television may send a version upgrade request to the mobile phone via bluetooth every 10 minutes (the time interval may be set according to actual needs).
The version upgrade request sent by the desk lamp to the mobile phone can carry the software version information and the hardware information of each hardware module of the version upgrade request, so that the server can determine whether the server comprises the software version to be upgraded or not and is suitable for downloading and upgrading of the television according to the current software version information and the hardware information of the television.
S1105, the mobile phone sends a version upgrade request of the desk lamp to the server.
The mobile phone may send the version upgrade request of the desk lamp to the server through the router after receiving the version upgrade request of the desk lamp, so as to detect whether the software version to be upgraded exists.
S1106, the server sends the version information of the software to be upgraded of the desk lamp to the mobile phone.
It should be noted that, the process of determining whether the bluetooth and the kernel of the desk lamp need to be upgraded may refer to the description of steps S403 and S404 in the foregoing embodiment, which is not repeated herein.
S1107, the mobile phone sends the version information of the software to be upgraded of the desk lamp to the desk lamp through Bluetooth.
The mobile phone may send the version information of the software to be upgraded of the desk lamp to the desk lamp through bluetooth after receiving the version information of the software to be upgraded of the desk lamp sent by the server.
Fig. 12 is a schematic flow chart of obtaining a to-be-upgraded software version of bluetooth from a sound box by a desk lamp through a mobile phone, taking the to-be-upgraded software version of bluetooth from the sound box by the desk lamp through the mobile phone as an example, which specifically includes:
S1201, the desk lamp sends a Bluetooth downloading request to the mobile phone through Bluetooth.
The desk lamp detects that the Bluetooth software version to be upgraded can be downloaded from the loudspeaker after receiving the software version information and the hardware information of each hardware module of the loudspeaker and the software version information to be upgraded sent by the server, so that the loudspeaker can send a Bluetooth downloading request to the mobile phone through Bluetooth.
S1202, the mobile phone sends a Bluetooth downloading request to the sound box.
For example, before step S1202, the mobile phone may establish a third connection with the speaker (or may establish session with the speaker in the foregoing embodiment), so as to implement data transmission with the speaker. After the third connection is established between the mobile phone and the sound box, the mobile phone can request to download the software version to be upgraded of the Bluetooth from the sound box.
In other examples, the mobile phone may control the operation of the desk lamp based on the software version information and the hardware information of each hardware module of the desk lamp, and further, the mobile phone may determine whether each hardware module of the desk lamp needs to be upgraded according to the software version information to be upgraded of the desk lamp. When the hardware module of the desk lamp needs to be upgraded, the mobile phone can also directly execute the step S1202 to send a version upgrade request of the desk lamp to the server, so that the step S1201 can be omitted.
And S1203, the sound box sends the Bluetooth software version to be upgraded to the mobile phone.
After the mobile phone sends a bluetooth download request to the sound box, the sound box confirms that the bluetooth version of the software to be upgraded is sent to the mobile phone.
And S1204, the mobile phone sends the Bluetooth software version to be upgraded to the desk lamp through Bluetooth.
In an exemplary embodiment, the bluetooth software version to be upgraded may be sent to the desk lamp through bluetooth during the process that the mobile phone receives the software version to be upgraded or after the mobile phone receives the complete software version to be upgraded. Therefore, the desk lamp can download the software version to be upgraded of the Bluetooth from the sound box through the mobile phone, but not download the software version to be upgraded of the Bluetooth from the server, the desk lamp is prevented from downloading the software version to be upgraded of all hardware modules of the desk lamp from the server through the mobile phone, small server resources can be occupied, and the downloading speed of the software version to be upgraded of at least part of the hardware modules is accelerated through the home network. Of course, when the software version information of the kernel of the mobile phone is consistent with the software version information to be upgraded, the desk lamp can also download the software version to be upgraded of the kernel from the mobile phone.
For example, after downloading the software version to be upgraded of the bluetooth, the desk lamp may automatically install the software version to be upgraded of the bluetooth. Of course, in some possible implementation manners, after the desk lamp downloads the to-be-upgraded software version of bluetooth, the mobile phone may display a prompt box, where the prompt box includes prompt information for asking the user whether to install the to-be-upgraded software version of bluetooth for the desk lamp.
Here, it should be noted that, the steps S1201 to S1204 are exemplified by obtaining the software version to be upgraded of the hardware module from other electronic devices in the home network by the desk lamp through the mobile phone. In some possible implementation manners, the desk lamp may also obtain the software version to be upgraded of the hardware module from the server through the mobile phone, and specific processes and explanation of the software version may refer to S806 and S807, which are not described herein.
In addition, the example above is to take bluetooth of the sound box as the software version to be upgraded, and the desk lamp is exemplified by obtaining the bluetooth software version to be upgraded from the sound box through the mobile phone. In another example, the bluetooth of the desk lamp may be the software version to be upgraded, the bluetooth of the sound box needs to be upgraded, the sound box may also obtain the software version to be upgraded of the bluetooth from the desk lamp through the mobile phone, and the specific process may refer to S1201-S1204, which are not described herein.
It will be appreciated that the electronic device, in order to achieve the above-described functions, includes corresponding hardware and/or software modules that perform the respective functions. The present application can be implemented in hardware or a combination of hardware and computer software, in conjunction with the example algorithm steps described in connection with the embodiments disclosed herein. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Those skilled in the art may implement the described functionality using different approaches for each particular application in conjunction with the embodiments, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In one example, a schematic block diagram apparatus 1300 illustrating an apparatus 1300 of an embodiment of the present application, fig. 13 may include: processor 1301 and transceiver/transceiving pin 1302, optionally, further comprise memory 1303.
The various components of apparatus 1300 are coupled together by a bus 1304, wherein bus 1304 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are referred to in the figures as bus 1304.
Alternatively, the memory 1303 may be used for instructions in the foregoing method embodiments. The processor 1301 is operable to execute instructions in the memory 1303 and control the receive pin to receive signals and the transmit pin to transmit signals.
The apparatus 1300 may be an electronic device or a chip of an electronic device in the above-described method embodiments.
All relevant contents of each step related to the above method embodiment may be cited to the functional description of the corresponding functional module, which is not described herein.
The present embodiment also provides a computer storage medium, where computer instructions are stored, and when the computer instructions are executed on an electronic device, the electronic device is caused to execute the related method steps to implement the method for waking up a television by using a sound box in the foregoing embodiment.
The present embodiment also provides a computer program product, which when run on a computer, causes the computer to perform the above related steps to implement the method for waking up a television by using a sound box in the above embodiment.
In addition, embodiments of the present application also provide an apparatus, which may be embodied as a chip, component or module, which may include a processor and a memory coupled to each other; the memory is used for storing computer executing instructions, and when the device runs, the processor can execute the computer executing instructions stored in the memory, so that the chip executes the method for waking up the television by the loudspeaker box in the method embodiments.
The electronic device, the computer storage medium, the computer program product, or the chip provided in this embodiment are used to execute the corresponding methods provided above, so that the beneficial effects thereof can be referred to the beneficial effects in the corresponding methods provided above, and will not be described herein.
It will be appreciated by those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional modules is illustrated, and in practical application, the above-described functional allocation may be performed by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to perform all or part of the functions described above.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of modules or units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another apparatus, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and the parts shown as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
Any of the various embodiments of the application, as well as any of the same embodiments, may be freely combined. Any combination of the above is within the scope of the application.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions for causing a device (may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.
The steps of a method or algorithm described in connection with the present disclosure may be embodied in hardware, or may be embodied in software instructions executed by a processor. The software instructions may be comprised of corresponding software modules that may be stored in random access Memory (Random Access Memory, RAM), flash Memory, read Only Memory (ROM), erasable programmable Read Only Memory (Erasable Programmable ROM), electrically Erasable Programmable Read Only Memory (EEPROM), registers, hard disk, a removable disk, a compact disc Read Only Memory (CD-ROM), or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. In addition, the ASIC may reside in a network device. The processor and the storage medium may reside as discrete components in a network device.
Those skilled in the art will appreciate that in one or more of the examples described above, the functions described in the embodiments of the present application may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, these functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.

Claims (45)

1. A software upgrade system, comprising: a first electronic device and a second electronic device; the first electronic equipment and the second electronic equipment are in the same local area network, and can be in communication connection with a server which is in a public network;
a first electronic device for:
transmitting a broadcast message within the local area network; the broadcast message includes first software version information for indicating a software version of at least one hardware module in the first electronic device;
a second electronic device for:
responding to the received broadcast message, and acquiring the first software version information;
Obtaining version information of software to be upgraded from a server; the to-be-upgraded software version information is used for indicating to-be-upgraded software versions of at least one hardware module in the second electronic device;
determining that a first target software version exists in the first electronic device according to the first software version information, the second software version information and the software version information to be upgraded; the second software version information is used for indicating the software version of at least one hardware module in the second electronic device;
obtaining the first target software version from the first electronic device;
the determining that the first target software version exists in the first electronic device according to the first software version information, the second software version information and the software version information to be upgraded includes:
summarizing the received first software version information to obtain a first summary table;
acquiring the version information of the software to be upgraded, and acquiring a second summary table;
updating the second summary table according to the first summary table to obtain a third summary table, wherein the processing of the information of the software version to be upgraded of each hardware module stored in the second summary table comprises the following steps: detecting whether the first summary table has the same information as the information of the software version to be upgraded of the hardware module; if the existence is detected, acquiring information which is the same as the information of the software version to be upgraded of the hardware module from the first summary table as replacement information; replacing the information of the software version to be upgraded of the hardware module stored in the second summary table with the replacement information;
And determining that the first target software version exists in the first electronic device according to the second software version information and the information stored in the third summary table.
2. The software upgrade system of claim 1, wherein the software version information to be upgraded comprises software version information to be upgraded of at least one hardware module in the second electronic device; or the software version information to be upgraded comprises the software version information to be upgraded of at least one hardware module in the second electronic device and the upgrading target version information of an upgrading package where the software version to be upgraded of at least one hardware module in the second electronic device is located.
3. The software upgrade system of claim 1 or 2, wherein the first software version information comprises a name, vendor, model, and software version number of a software version of at least one hardware module of the first electronic device;
the second software version information includes a name, vendor, model, and software version number of a software version of at least one hardware module of the second electronic device.
4. The software upgrade system of claim 3, wherein names, vendors, models, and software version numbers of software versions of at least one hardware module of the first electronic device are included in the first software version information in a preset order;
The name, manufacturer, model and software version number of the software version of the at least one hardware module of the second electronic device are included in the second software version information according to the preset sequence.
5. The software upgrade system of claim 1, wherein the second electronic device comprises a destination port, the second electronic device to:
and receiving the broadcast message sent by the first electronic device from the target port.
6. The software upgrade system of claim 1, wherein the second electronic device comprises a destination port, the second electronic device to:
the first target software version of the first electronic device is obtained from the target port.
7. The software upgrade system of any one of claims 1, 2, 4-6, wherein the second electronic device is configured to:
sending a version upgrading request to the server;
and receiving the version information of the software to be upgraded, which is sent by the server.
8. The software upgrade system of any one of claims 1, 2, 4-6, wherein the second electronic device is configured to:
establishing a connection relationship with the first electronic device;
Sending a downloading request of the first target software version to the first electronic equipment through the connection relation;
and receiving the first target software version sent by the first electronic equipment through the connection relation.
9. The software upgrade system of any one of claims 1, 2, 4-6, wherein after the second electronic device obtains the software version information to be upgraded from the server, the second electronic device is further configured to:
determining that a second target software version does not exist in the first electronic device and exists in the server according to the first software version information, the second software version information and the software version information to be upgraded;
and acquiring the second target software version from the server.
10. The software upgrade system of claim 9, wherein the second electronic device is configured to:
sending a download request of the second target software version to the server;
and receiving the second target software version sent by the server.
11. A software upgrade system, wherein the software upgrade system comprises a first electronic device, a second electronic device, and a third electronic device; the first electronic device and the second electronic device are in the same local area network, the third electronic device performs data interaction with the second electronic device through Bluetooth connection, the first electronic device and the second electronic device can be in communication connection with a server, and the server is in a public network;
A first electronic device for:
transmitting a first broadcast message within the local area network; the first broadcast message includes first software version information for indicating a software version of at least one hardware module in the first electronic device;
a second electronic device for:
responding to the received first broadcast message, and acquiring the first software version information;
acquiring version information of software to be upgraded from the server; the to-be-upgraded software version information is used for indicating to-be-upgraded software versions of at least one hardware module in the third electronic equipment;
determining that a first target software version exists in the first electronic device according to the first software version information, the second software version information, the third software version information and the software version information to be upgraded; the second software version information is used for indicating the software version of at least one hardware module in the second electronic device, and the third software version information is used for indicating the software version of at least one hardware module in the third electronic device;
obtaining the first target software version from the first electronic device;
Transmitting the first target software version information to the third electronic device;
determining that a first target software version exists in the first electronic device according to the first software version information, the second software version information, the third software version information and the software version information to be upgraded comprises:
summarizing the received first software version information to obtain a first summary table;
acquiring the version information of the software to be upgraded, and acquiring a second summary table;
updating the second summary table according to the first summary table to obtain a third summary table, wherein the processing of the information of the software version to be upgraded of each hardware module stored in the second summary table comprises the following steps: detecting whether the first summary table has the same information as the information of the software version to be upgraded of the hardware module; if the existence is detected, acquiring information which is the same as the information of the software version to be upgraded of the hardware module from the first summary table as replacement information; replacing the information of the software version to be upgraded of the hardware module stored in the second summary table with the replacement information;
and determining that the first target software version exists in the first electronic device according to the third software version information and the information stored in the third summary table.
12. The software upgrade system of claim 11, wherein the software version information to be upgraded comprises software version information to be upgraded of at least one hardware module in the third electronic device; or the software version information to be upgraded comprises the software version information to be upgraded of at least one hardware module in the third electronic device and the upgrading target version information of an upgrading package where the software version to be upgraded of at least one hardware module in the third electronic device is located.
13. The software upgrade system of claim 11 or 12, wherein the first software version information comprises a name, vendor, model, and software version number of a software version of at least one hardware module of the first electronic device;
the second software version information includes a name, vendor, model, and software version number of a software version of at least one hardware module of the second electronic device;
the third software version information includes a name, vendor, model, and software version number of a software version of at least one hardware module of the third electronic device.
14. The software upgrade system of claim 13, wherein the name, vendor, model, and software version number of the software version of the at least one hardware module of the first electronic device are included in the first software version information in a preset order;
The name, manufacturer, model and software version number of the software version of at least one hardware module of the second electronic device are contained in the second software version information according to the preset sequence;
the name, manufacturer, model and software version number of the software version of the at least one hardware module of the third electronic device are included in the third software version information according to the preset sequence.
15. The software upgrade system of claim 11, wherein the second electronic device comprises a destination port, the second electronic device to:
and receiving the first broadcast message sent by the first electronic device from the target port.
16. The software upgrade system of claim 11, wherein the second electronic device comprises a destination port, the second electronic device to:
the first target software version of the first electronic device is obtained from the target port.
17. The software upgrade system according to any one of claims 11, 12, 14-16,
the third electronic device is configured to:
sending the third software version information and a request message to the second electronic device;
The second electronic device is further configured to:
transmitting a second broadcast message within the local area network in response to the received request message; the second broadcast message includes the second software version information and the third software version information.
18. The software upgrade system according to any one of claims 11, 12, 14-16, wherein the third electronic device is configured to:
sending a version upgrade request to the second electronic device;
the second electronic device is configured to:
responding to the received version upgrading request sent by the third electronic equipment, and sending the version upgrading request of the third electronic equipment to the server;
and receiving the version information of the software to be upgraded, which is sent by the server.
19. The software upgrade system according to any one of claims 11, 12, 14-16, wherein the third electronic device is configured to:
sending a download request of the first target software version to the second electronic equipment;
the second electronic device is configured to:
responding to a received downloading request of the first target software version sent by the third electronic equipment, and establishing a connection relation with the first electronic equipment;
Sending a downloading request of a first target software version to the first electronic equipment through the connection relation;
and receiving the first target software version sent by the first electronic equipment through the connection relation.
20. The software upgrade system of any one of claims 11, 12, 14-16, wherein after the second electronic device obtains the software version information to be upgraded from the server, the second electronic device is further configured to:
determining that a second target software version does not exist in the first electronic device and the second electronic device and exists in the server according to the first software version information, the second software version information, the third software version information and the software version information to be upgraded;
obtaining the second target software version from the server;
and sending the second target software version information to the third electronic equipment.
21. The software upgrade system of claim 20, wherein the third electronic device is configured to:
sending a download request of the second target software version to the second electronic equipment;
the second electronic device is configured to:
Responding to the received download request of the first target software version sent by the third electronic equipment, and sending the download request of the second target software version to the server;
and receiving the second target software version sent by the server.
22. A software upgrade method applied to a second electronic device, comprising:
receiving a broadcast message sent by first electronic equipment; the broadcast message includes first software version information for indicating a software version of at least one hardware module in the first electronic device; the first electronic device and the second electronic device are in the same local area network;
acquiring the first software version information from the first electronic equipment;
obtaining version information of software to be upgraded from a server; the software version information to be upgraded is used for indicating the software version to be upgraded of at least one hardware module in the second electronic device, the first electronic device and the second electronic device can be in communication connection with the server, and the server is in a public network;
determining that a first target software version exists in the first electronic device according to the first software version information, the second software version information and the software version information to be upgraded; the second software version information is used for indicating the software version of at least one hardware module in the second electronic device;
Obtaining the first target software version from the first electronic device;
the determining that the first target software version exists in the first electronic device according to the first software version information, the second software version information and the software version information to be upgraded includes:
summarizing the received first software version information to obtain a first summary table;
acquiring the version information of the software to be upgraded, and acquiring a second summary table;
updating the second summary table according to the first summary table to obtain a third summary table, wherein the processing of the information of the software version to be upgraded of each hardware module stored in the second summary table comprises the following steps: detecting whether the first summary table has the same information as the information of the software version to be upgraded of the hardware module; if the existence is detected, acquiring information which is the same as the information of the software version to be upgraded of the hardware module from the first summary table as replacement information; replacing the information of the software version to be upgraded of the hardware module stored in the second summary table with the replacement information;
and determining that the first target software version exists in the first electronic device according to the second software version information and the information stored in the third summary table.
23. The method of claim 22, wherein the software version information to be upgraded comprises software version information to be upgraded of at least one hardware module in the second electronic device; or the software version information to be upgraded comprises the software version information to be upgraded of at least one hardware module in the second electronic device and the upgrading target version information of an upgrading package where the software version to be upgraded of at least one hardware module in the second electronic device is located.
24. The method of claim 22 or 23, wherein the first software version information comprises a name, vendor, model, and software version number of a software version of at least one hardware module of the first electronic device;
the second software version information includes a name, vendor, model, and software version number of a software version of at least one hardware module of the second electronic device.
25. The method of claim 24, wherein a name, vendor, model, and software version number of a software version of at least one hardware module of the first electronic device are included in the first software version information in a preset order;
The name, manufacturer, model and software version number of the software version of the at least one hardware module of the second electronic device are included in the second software version information according to the preset sequence.
26. The method of claim 22, wherein the second electronic device comprises a destination port; the receiving the broadcast message sent by the first electronic device includes:
and receiving the broadcast message sent by the first electronic device from the target port.
27. The method of claim 22, wherein the second electronic device comprises a destination port; the obtaining the first target software version from the first electronic device includes:
the first target software version of the first electronic device is obtained from the target port.
28. The method according to any one of claims 22, 23, 25-27, wherein the obtaining the version information of the software to be upgraded from the server comprises:
sending a version upgrading request to the server;
and receiving the version information of the software to be upgraded, which is sent by the server.
29. The method of any of claims 22, 23, 25-27, wherein the obtaining the first target software version from the first electronic device comprises:
Establishing a connection relationship with the first electronic device;
sending a downloading request of a first target software version to the first electronic equipment through the connection relation;
and receiving the first target software version sent by the first electronic equipment through the connection relation.
30. The method according to any one of claims 22, 23, 25-27, wherein after the obtaining the software version information to be upgraded from the server, the method further comprises:
determining that a second target software version does not exist in the first electronic device and exists in the server according to the first software version information, the second software version information and the software version information to be upgraded;
and acquiring the second target software version from the server.
31. A software upgrade method applied to a second electronic device, comprising:
receiving a first broadcast message sent by first electronic equipment; the first broadcast message includes first software version information for indicating a software version of at least one hardware module in the first electronic device;
acquiring the first software version information from the first electronic equipment;
Obtaining version information of software to be upgraded from a server; the software version information to be upgraded is used for indicating the software version to be upgraded of at least one hardware module in the third electronic equipment, the first electronic equipment and the second electronic equipment can be in communication connection with the server, and the server is in a public network;
determining that a first target software version exists in the first electronic device according to the first software version information, the second software version information, the third software version information and the software version information to be upgraded; the second software version information is used for indicating the software version of at least one hardware module in the second electronic device, and the third software version information is used for indicating the software version of at least one hardware module in the third electronic device; the first electronic device and the second electronic device are in the same local area network, and the third electronic device performs data interaction with the second electronic device through Bluetooth connection;
obtaining the first target software version from the first electronic device;
transmitting the first target software version information to the third electronic device;
determining that a first target software version exists in the first electronic device according to the first software version information, the second software version information, the third software version information and the software version information to be upgraded comprises:
Summarizing the received first software version information to obtain a first summary table;
acquiring the version information of the software to be upgraded, and acquiring a second summary table;
updating the second summary table according to the first summary table to obtain a third summary table, wherein the processing of the information of the software version to be upgraded of each hardware module stored in the second summary table comprises the following steps: detecting whether the first summary table has the same information as the information of the software version to be upgraded of the hardware module; if the existence is detected, acquiring information which is the same as the information of the software version to be upgraded of the hardware module from the first summary table as replacement information; replacing the information of the software version to be upgraded of the hardware module stored in the second summary table with the replacement information;
and determining that the first target software version exists in the first electronic device according to the third software version information and the information stored in the third summary table.
32. The method of claim 31, wherein the software version information to be upgraded comprises software version information to be upgraded of at least one hardware module in the third electronic device; or the software version information to be upgraded comprises the software version information to be upgraded of at least one hardware module in the third electronic device and the upgrading target version information of an upgrading package where the software version to be upgraded of at least one hardware module in the third electronic device is located.
33. The method of claim 31 or 32, wherein the first software version information includes a name, vendor, model, and software version number of a software version of at least one hardware module of the first electronic device;
the second software version information includes a name, vendor, model, and software version number of a software version of at least one hardware module of the second electronic device;
the third software version information includes a name, vendor, model, and software version number of a software version of at least one hardware module of the third electronic device.
34. The method of claim 33, wherein a name, vendor, model, and software version number of a software version of at least one hardware module of the first electronic device are included in the first software version information in a preset order;
the name, manufacturer, model and software version number of the software version of at least one hardware module of the second electronic device are contained in the second software version information according to a preset sequence;
the name, manufacturer, model and software version number of the software version of the at least one hardware module of the third electronic device are included in the third software version information in a preset sequence.
35. The method of claim 31, wherein the second electronic device comprises a destination port; the receiving the first broadcast message sent by the first electronic device includes:
and receiving the first broadcast message sent by the first electronic device from the target port.
36. The method of claim 31, wherein the second electronic device comprises a destination port; obtaining the first target software version from the first electronic device includes:
the first target software version of the first electronic device is obtained from the target port.
37. The method of any of claims 31, 32, 34-36, wherein the determining that a first target software version exists in the first electronic device, the method further comprising:
receiving the third software version information and a request message sent by the third electronic equipment;
transmitting a second broadcast message within the local area network; the second broadcast message includes the second software version information and the third software version information.
38. The method according to any one of claims 31, 32, 34-36, wherein the obtaining the version information of the software to be upgraded from the server includes:
Receiving a version upgrading request sent by the third electronic equipment;
transmitting a version upgrade request of the third electronic device to the server;
and receiving the version information of the software to be upgraded, which is sent by the server.
39. The method of any of claims 31, 32, 34-36, wherein after the determining that a first target software version exists in the first electronic device, the method further comprises:
receiving a downloading request of the first target software version sent by the third electronic equipment;
establishing a connection relationship with the first electronic device;
sending a downloading request of a first target software version to the first electronic equipment through the connection relation;
and receiving the first target software version sent by the first electronic equipment through the connection relation.
40. The method of any of claims 31, 32, 34-36, wherein after the second electronic device obtains the software version information to be upgraded from the server, the method further comprises:
determining that a second target software version does not exist in the first electronic device and the second electronic device and exists in the server according to the first software version information, the second software version information, the third software version information and the software version information to be upgraded;
Obtaining the second target software version from the server;
and sending the second target software version information to the third electronic equipment.
41. The method of claim 40, wherein said retrieving said second target software version from said server comprises:
receiving a downloading request of the second target software version sent by the third electronic equipment;
sending a download request of the second target software version to the server;
and receiving the second target software version sent by the server.
42. A chip system, comprising:
one or more interface circuits;
one or more processors;
a memory;
the interface circuit is configured to receive a signal from a memory of an electronic device and to send the signal to the processor, the signal including computer instructions stored in the memory; the computer instructions, when executed by the processor, cause the electronic device to perform the method performed by the second electronic device of any of claims 22-30.
43. A chip system, comprising:
one or more interface circuits;
one or more processors;
A memory;
the interface circuit is configured to receive a signal from a memory of an electronic device and to send the signal to the processor, the signal including computer instructions stored in the memory; the computer instructions, when executed by the processor, cause the electronic device to perform the method performed by the second electronic device of any of claims 31-41.
44. A computer readable storage medium comprising a computer program which, when run on an electronic device, causes the electronic device to perform a method performed by a second electronic device as claimed in any of claims 22-30.
45. A computer readable storage medium comprising a computer program which, when run on an electronic device, causes the electronic device to perform a method performed by a second electronic device as claimed in any of claims 31-41.
CN202110745618.0A 2021-06-30 2021-06-30 Software upgrading system and software upgrading method Active CN114461239B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110745618.0A CN114461239B (en) 2021-06-30 2021-06-30 Software upgrading system and software upgrading method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110745618.0A CN114461239B (en) 2021-06-30 2021-06-30 Software upgrading system and software upgrading method

Publications (2)

Publication Number Publication Date
CN114461239A CN114461239A (en) 2022-05-10
CN114461239B true CN114461239B (en) 2023-11-24

Family

ID=81405300

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110745618.0A Active CN114461239B (en) 2021-06-30 2021-06-30 Software upgrading system and software upgrading method

Country Status (1)

Country Link
CN (1) CN114461239B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116048601A (en) * 2022-05-17 2023-05-02 荣耀终端有限公司 Software version information synchronization method, system and device
CN115022170B (en) * 2022-05-31 2024-05-28 青岛海信宽带多媒体技术有限公司 Intelligent gateway and area upgrading control method thereof
CN116719556B (en) * 2022-09-26 2024-05-24 荣耀终端有限公司 System upgrading method and electronic equipment
CN116643782B (en) * 2023-04-28 2024-05-28 荣耀终端有限公司 OIS firmware upgrading method and electronic equipment
CN116841593A (en) * 2023-09-01 2023-10-03 荣耀终端有限公司 Software upgrading method, device and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104903857A (en) * 2014-04-16 2015-09-09 华为技术有限公司 Method and terminal for software upgrading
CN107222532A (en) * 2017-05-23 2017-09-29 努比亚技术有限公司 A kind of radio firmware upgrade method, device and computer-readable recording medium
CN108376078A (en) * 2018-02-26 2018-08-07 广东美的制冷设备有限公司 Upgrade method, device and the household appliance of equipment
KR101947528B1 (en) * 2018-09-11 2019-02-13 (주)위즈네트 Firmware update method, device able to update firmware and firmware update system according to dynamic recognition of update environment
CN109803466A (en) * 2019-01-21 2019-05-24 广州达森灯光股份有限公司 A kind of system of cell phone application radio upgrade DMX lamps and lanterns
CN111752582A (en) * 2020-05-25 2020-10-09 深圳市鸿合创新信息技术有限责任公司 Software updating method and device in local area network and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9489193B2 (en) * 2012-05-01 2016-11-08 Sophos Limited Method and system for providing software updates to local machines

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104903857A (en) * 2014-04-16 2015-09-09 华为技术有限公司 Method and terminal for software upgrading
CN107222532A (en) * 2017-05-23 2017-09-29 努比亚技术有限公司 A kind of radio firmware upgrade method, device and computer-readable recording medium
CN108376078A (en) * 2018-02-26 2018-08-07 广东美的制冷设备有限公司 Upgrade method, device and the household appliance of equipment
KR101947528B1 (en) * 2018-09-11 2019-02-13 (주)위즈네트 Firmware update method, device able to update firmware and firmware update system according to dynamic recognition of update environment
CN109803466A (en) * 2019-01-21 2019-05-24 广州达森灯光股份有限公司 A kind of system of cell phone application radio upgrade DMX lamps and lanterns
CN111752582A (en) * 2020-05-25 2020-10-09 深圳市鸿合创新信息技术有限责任公司 Software updating method and device in local area network and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
九天科技.新手学电脑组装维护与优化实战1000例.《新手学电脑组装维护与优化实战1000例》.中国铁道出版社,2010,第358-360页. *

Also Published As

Publication number Publication date
CN114461239A (en) 2022-05-10

Similar Documents

Publication Publication Date Title
CN114461239B (en) Software upgrading system and software upgrading method
WO2022089207A1 (en) Cross-device application interaction method, electronic device, and server
CN114461240B (en) Software upgrading method, software upgrading system and electronic equipment
CN116360725B (en) Display interaction system, display method and device
CN112860445B (en) Method and terminal for sharing data between fast application and native application
CN112817634B (en) COTA package downloading method and device
WO2022156535A1 (en) Distributed application processing method and apparatus
CN115309431B (en) Parameter updating method, readable medium and electronic equipment
CN114124980A (en) Method, device and system for starting application
CN114610419B (en) Method and device for adding widget and computer readable storage medium
CN114741256B (en) Sensor monitoring method and device and terminal equipment
CN113051015A (en) Page rendering method and device, electronic equipment and storage medium
CN112612539A (en) Data model unloading method and device, electronic equipment and storage medium
WO2022161024A1 (en) Upgrade prompt method, terminal device, and computer readable storage medium
CN114143906B (en) Electronic equipment connection method and electronic equipment
CN114443117B (en) Custom package processing method and electronic equipment
CN111221544B (en) Management method and terminal for pre-installed application software
CN113835802A (en) Device interaction method, system, device and computer readable storage medium
CN116456425A (en) Network distribution method and equipment
CN115248693A (en) Application management method and electronic equipment
WO2024131823A1 (en) Installation-free application upgrading method and electronic device
CN116033333B (en) Method for determining position information, electronic device and readable storage medium
WO2024083114A1 (en) Software distribution method, electronic device, and system
CN116541188B (en) Notification display method, terminal device and storage medium
CN116366957B (en) Virtualized camera enabling method, electronic equipment and cooperative work system

Legal Events

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