Disclosure of Invention
In view of this, the present application provides a method and a system for fast upgrading a device, which can avoid the low efficiency of offline operation and the limitation that an online manner depends on network connection, and can simultaneously configure and upgrade multiple devices, thereby improving the efficiency of configuration or upgrade, and ensuring safe connection.
In order to solve the technical problem, the following technical scheme is adopted in the application:
in a first aspect, a method for quickly upgrading a device according to an embodiment of the present application is applied to an electronic device to be upgraded and an upgrade management device, and the method includes:
the electronic equipment is in wireless communication with the upgrade management equipment through first event triggering, so that the electronic equipment and the upgrade management equipment are located in the same local area network, wherein the first event comprises events such as connection, external button pressing or startup within N minutes, for example, the electronic equipment is provided with a USB interface, a wireless Wifi network card provided with an external USB interface is accessed through the USB interface, and after the USB interface wireless network card is successfully connected with the electronic equipment, the electronic equipment is triggered to be in wireless communication with the upgrade management equipment. Based on the wireless communication between the electronic equipment and the upgrade management equipment, the upgrade management equipment sends a wireless control signal to the electronic equipment; the electronic equipment listens to the wireless control signal sent by the upgrade management equipment, and downloads or receives configuration parameters or upgrade data from the upgrade management equipment or other equipment provided by the upgrade management equipment according to a protocol when the wireless control signal of the upgrade management equipment is listened to, so as to configure or upgrade. The wireless control signal may include upgrade or configuration data information, or address information of a device that can provide the upgrade or configuration data information, for example, the wireless control signal includes an address of a specified device, the electronic device connects to the specified device according to the address of the specified device and obtains configuration parameters or upgrade data from the specified device, and when the wireless control signal includes the upgrade or configuration data information, that is, the configuration parameters or upgrade data may also be directly downloaded from the upgrade management device, so as to obtain the configuration parameters or upgrade data.
According to the method for rapidly upgrading the equipment, the electronic equipment can monitor the wireless control signal of the upgrading management equipment through the local area network and carry out configuration or upgrading according to the wireless control signal, the limitations that the offline operation is low in efficiency and the online mode depends on network connection can be avoided, multiple pieces of equipment can be simultaneously configured or upgraded, the configuration or upgrading efficiency is improved, and safe connection is ensured.
As an embodiment of the first aspect of the present application, the first event includes a connection event, a press of an external button, or a power-on within N minutes.
As an embodiment of the first aspect of the present application, the electronic device listens to the wireless control signal sent by the upgrade management device through a wireless network card.
As an embodiment of the first aspect of the present application, the wireless network card is a wireless network card that is accessed by the electronic device through an external USB interface of the electronic device, or is built in the electronic device.
As an embodiment of the first aspect of the present application, the upgrade management device includes a server, a computer, or a mobile phone.
As an embodiment of the first aspect of the present application, before the electronic device wirelessly communicates with the upgrade management device, the method further includes: and the electronic equipment and the upgrade management equipment perform identity authentication, and after the identity authentication is successful, the electronic equipment and the upgrade management equipment wirelessly communicate. For example, after the USB interface accesses the wireless network card, the electronic device listens for a connection command, where the upgrade management device may notify the peripheral electronic device of the connection command through a wireless control signal (cablerequest) sent by a hotspot (AP), where the wireless control signal may include a wireless WIFi name, for example, information such as yt001 and the connection command, and when the electronic device listens for the wireless communication signal, it may be determined whether to perform connection according to the WIFi name, for example, the WIFi name is named yitu, and if it is determined that the WIFi meets the setting requirement, the electronic device selects to perform connection. When the wireless control signal is connected, the electronic equipment can obtain access to a hot spot (AP) to access the wireless control signal information only if the password is correct. The two-way identity authentication ensures the security of wireless communication between the electronic equipment and the upgrade management equipment, and avoids risks.
As an embodiment of the first aspect of the present application, the wireless control signal is a Wifi, bluetooth, B L E, zibee or L ora signal, and the application range is wide.
In a second aspect, a system for device fast upgrade according to an embodiment of the present application includes an electronic device to be upgraded and an upgrade management device, where the electronic device triggers wireless communication with the upgrade management device through a first event, so that the electronic device and the upgrade management device are in the same local area network; the upgrade management device sends a wireless control signal to the electronic device based on wireless communication between the electronic device and the upgrade management device; the electronic equipment listens to the wireless control signal sent by the upgrade management equipment, and receives configuration parameters or upgrade data according to the wireless control signal to configure or upgrade when the wireless control signal of the upgrade management equipment is listened to.
According to the system for rapid configuration and upgrade, the electronic equipment can monitor the wireless control signal of the upgrade management equipment through the local area network and perform configuration or upgrade according to the wireless control signal, so that the limitations that the offline operation is low in efficiency and the online mode depends on network connection can be avoided, multiple devices can be configured or upgraded simultaneously, the configuration or upgrade efficiency is improved, and the safe connection is ensured.
As an embodiment of the second aspect of the present application, the first event includes a connection event, pressing an external button, or powering on for N minutes.
As an embodiment of the second aspect of the present application, the electronic device listens, through a wireless network card, to the wireless control signal with configuration parameters or upgrade data sent by the upgrade management device.
As an embodiment of the second aspect of the present application, the wireless network card is a wireless network card that is accessed by the electronic device through an external USB interface of the electronic device, or is built in the electronic device.
As an embodiment of the second aspect of the present application, the upgrade management device includes a computer terminal or a mobile phone terminal.
As an embodiment of the second aspect of the present application, the system further comprises: and the electronic equipment and the upgrade management equipment perform identity authentication, and after the identity authentication is successful, the electronic equipment and the upgrade management equipment wirelessly communicate.
As an embodiment of the second aspect of the present application, the wireless control signal is a Wifi, bluetooth, B L E, zibee or L ora signal.
According to the method and the system for equipment rapid upgrading, the electronic equipment can monitor the wireless control signal of the upgrading management equipment through the local area network and carry out configuration or upgrading according to the wireless control signal, so that the low efficiency of off-line operation and the limitation that an on-line mode depends on network connection can be avoided, multiple pieces of equipment can be simultaneously configured or upgraded, the configuration or upgrading efficiency is improved, and safe connection is ensured.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It can be understood that the upgrade management device in the present application may be an electronic device and a server, and the electronic device may include a mobile phone, a computer, and other terminal devices.
According to some embodiments of the present application, a scenario diagram of a server and a device communication connection is disclosed. FIG. 1 is a diagram of a server and device communication connection scenario, according to one embodiment of the present application. As shown in fig. 1, the scenario includes aserver 101 disposed in a local area, and adevice 102 and adevice 103 connected to the server, where theserver 101 serves as an upgrade management device, thedevice 102, and thedevice 103 serve as electronic devices with an upgrade, and the server may be connected to thedevice 102 and thedevice 103 through a wireless Access Point (AP) or a softAP, where thedevice 102 may have a USB interface, and may be connected to a wireless Wifi network card through the USB interface, and thedevice 103 is a device with a Wifi network card built in itself, and thedevice 102 and thedevice 103 may wirelessly communicate with the server through the Wifi network card, and theserver 101 and each device connected to the server are disposed in the same local area network, so as to ensure network security of the device. When thedevices 102 and 103 need to be upgraded, the wireless control signal of the server is intercepted through the Wifi network card, after the two sides verify, thedevices 102 and 103 are connected with theserver 101, the server sends out the wireless control signal, thedevices 102 and 103 receive the wireless control signal, and download the upgrade package or obtain the configuration parameters for upgrading or configuration according to the wireless control signal, wherein the wireless control signal may include an address for the device to be upgraded to download the upgrade package or the configuration parameters, for example, when the address is displayed as theserver 101 itself, the devices may directly download the upgrade package or the configuration parameters from the server, or the wireless control signal itself contains upgrade data or configuration parameters. In addition, thedevice 102 and thedevice 103 may also be other devices specified by the server, and the device may establish a connection with the other devices through the Wifi network card, and download the upgrade package or the configuration parameters on the other devices specified by the server, thereby completing the upgrade or configuration of the device to be upgraded.
The method for quickly upgrading a device according to the present application is described below with reference to the accompanying drawings, and fig. 2 is a flowchart illustrating a method for quickly configuring and upgrading a device, where the method is applied to an electronic device to be upgraded and an upgrade management device, where the electronic device to be upgraded may be an electronic device such as a computer or a mobile phone, and the upgrade management device may be an electronic device such as a server or a mobile phone, a computer, and as shown in fig. 2, the method includes:
step S210, the electronic device triggers wireless communication with the upgrade management device through a first event, so that the electronic device and the upgrade management device are in the same lan, where the first event may include a connection event, pressing an external button, or booting for N minutes, where N is a natural number greater than 0, for example, the electronic device is provided with a USB interface, and is accessed to an external USB interface wireless Wifi network card through the USB interface, and when the USB interface wireless network card is successfully connected to the electronic device, the electronic device is triggered to wirelessly communicate with the upgrade management device, and the wireless control signal may be Wifi, bluetooth, B L E, zibee, or L ora, and the application range is wide, and multiple devices can be connected simultaneously.
Step S220, based on the wireless communication between the electronic device and the upgrade management device, the upgrade management device sends a wireless control signal to the electronic device, where the wireless control signal may include an address for the electronic device to download an upgrade package or configuration parameters, and the electronic device downloads the upgrade package (upgrade data) or configuration parameters according to the specified address through the wireless control signal, where the upgrade package or configuration parameters may be provided by the upgrade management device or provided by a device specified by the upgrade management device, which is not limited herein.
Step S230, the electronic device listens to the wireless control signal sent by the upgrade management device, and receives the configuration parameter or upgrade data according to the wireless control signal when the wireless control signal of the upgrade management device is intercepted, so as to perform configuration or upgrade. For example, when the USB interface wireless network card is successfully connected to the electronic device, the electronic device is triggered to wirelessly communicate with the upgrade management device. The USB interface wireless network card begins to monitor the upgrade management device to send a wireless control signal, and when the electronic device monitors the wireless control signal, the electronic device receives upgrade data or configuration parameters according to the wireless control signal and performs configuration or upgrade. In addition, the electronic device may further be provided with an external button, when the external button is pressed, the built-in wireless network card starts to listen to the wireless control signal sent by the upgrade management device, or the electronic device is set to automatically start to listen to the wireless control signal sent by the upgrade management device after being started for three minutes, and the like.
According to the method for rapidly upgrading the equipment, the electronic equipment can monitor the wireless control signal of the upgrading management equipment through the local area network and carry out configuration or upgrading according to the wireless control signal, the limitations that the offline operation is low in efficiency and the online mode depends on network connection can be avoided, multiple pieces of equipment can be simultaneously configured or upgraded, the configuration or upgrading efficiency is improved, and safe connection is ensured.
According to an embodiment of the application, the electronic device listens to the wireless control signal sent by the upgrade management device through the wireless network card, and further, the wireless network card is a wireless network card accessed by the electronic device through an external USB interface of the electronic device, or is embedded in the electronic device. The connection mode is simple, the electronic equipment and the upgrading management equipment are convenient to connect, and the connection is safe and reliable.
According to an embodiment of the application, before the electronic device wirelessly communicates with the upgrade management device, the method further includes: and the electronic equipment and the upgrade management equipment perform identity authentication, and after the identity authentication is successful, the electronic equipment and the upgrade management equipment perform wireless communication. The upgrading management device can tell the peripheral electronic device to connect through a wireless control signal (Proble Request) sent by a hotspot (AP), the wireless control signal can comprise a wireless Wifi name, for example, yt001, a connection command and other information, when the electronic device listens to the wireless control signal, whether the electronic device is connected or not can be judged according to the Wifi name, for example, the Wifi name is named as yitu, the Wifi meeting the set requirement is judged, connection is selected, a password needs to be input during connection, the password can be a static secret key, and the electronic device to be upgraded accesses a wireless network by using the same key. Or a dynamically encrypted secret password is selected, the electronic equipment obtains a dynamic key through an encryption algorithm and returns the dynamic key to the hot spot AP of the management equipment to be upgraded for authentication and comparison, and if the password is correct, the electronic equipment can obtain access to the hot spot (AP) to access the wireless control signal information. The two-way identity authentication ensures the security of wireless communication between the electronic equipment and the upgrade management equipment, and avoids risks.
The verification and upgrade process is described below with reference to the drawings. Fig. 3 discloses another application scenario diagram for device upgrade, which includes anupgrade management device 301 and a device to be upgraded 302, where the device to be upgraded 302 triggers and listens to a connection command of theupgrade management device 301 through a USB network card access, theupgrade management device 301 sends the connection command, where the connection command includes a name yt001, the device to be upgraded 302 listens to the connection command, determines that the name yt001 meets a set requirement, selects a connection, inputs an agreed password, and theupgrade management device 302 identifies the password and determines that the connection is possible, thereby completing wireless communication, and both complete the interaction of upgrade or configuration data based on the wireless communication, and the device to be upgraded obtains the upgrade or configuration data to perform upgrade or configuration, and finishes data interaction and disconnects the connection, as shown in fig. 3.
Based on the same inventive concept as the method, the present application also provides a system for device fast upgrade, and fig. 4 shows a schematic structural diagram of the system for device fast upgrade, which includes anelectronic device 402 to be upgraded and anupgrade management device 401, as shown in fig. 4.
Specifically, theelectronic device 402 wirelessly communicates with theupgrade management device 401 through a first event trigger, so that the electronic device and the upgrade management device are in the same local area network.
Theupgrade management device 401 transmits a wireless control signal to theelectronic device 402 based on wireless communication of theelectronic device 402 with theupgrade management device 401.
Theelectronic device 402 listens to a wireless control signal sent by theupgrade management device 401, and when listening to the wireless control signal of theupgrade management device 401, receives configuration parameters or upgrade data according to the wireless control signal to perform configuration or upgrade, where the wireless control signal may include upgrade or configuration data information, or address information of a device that may provide the upgrade or configuration data information, for example, the wireless control signal includes an address of a specified device, the electronic device connects to the device according to the specified device address and obtains the configuration parameters or the upgrade data from the specified device, and when the wireless control signal includes the upgrade or configuration data information, that is, the configuration parameters or the upgrade data may also be directly downloaded from the upgrade management device to obtain the configuration parameters or the upgrade data.
According to one embodiment of the application, the first event comprises a connection event, an external button press or a start-up within N minutes and the like as events for triggering the electronic device to be connected with the upgrade management device.
According to one embodiment of the application, the electronic device listens to the wireless control signal sent by the upgrade management device through the wireless network card.
According to an embodiment of the present application, the wireless network card is a wireless network card that theelectronic device 402 accesses through an external USB interface of the electronic device, or is embedded in theelectronic device 402.
According to an embodiment of the present application, theupgrade management device 401 includes a server, a computer, or a mobile phone.
According to an embodiment of the application, the system further includes theelectronic device 402 and theupgrade management device 401 performing authentication, and after the authentication is successful, the electronic device wirelessly communicates with the upgrade management device.
According to one embodiment of the application, the wireless control signal is a signal such as Wifi, Bluetooth, B L E, zibee or L ora, the application range is wide, and a plurality of devices can be connected at the same time.
The components and the working process of the system for rapid configuration and upgrade of the present application have been described in detail in the foregoing embodiments, and specific reference may be made to the method of the foregoing embodiments, which are not described herein again.
According to the system for equipment rapid upgrading, the electronic equipment can monitor the wireless control signal of the upgrading management equipment through the local area network and carry out configuration or upgrading according to the wireless control signal, the limitation that the low efficiency of off-line operation and the on-line mode depend on network connection can be avoided, multiple devices can be configured or upgraded simultaneously, the configuration or upgrading efficiency is improved, and safe connection is ensured.
In the drawings, some features of the structures or methods may be shown in a particular arrangement and/or order. However, it is to be understood that such specific arrangement and/or ordering may not be required. Rather, in some embodiments, the features may be arranged in a manner and/or order different from that shown in the figures. In addition, the inclusion of a structural or methodical feature in a particular figure is not meant to imply that such feature is required in all embodiments, and in some embodiments, may not be included or may be combined with other features.
It should be noted that, in the embodiments of the apparatuses in the present application, each unit/module is a logical unit/module, and physically, one logical unit/module may be one physical unit/module, or may be a part of one physical unit/module, and may also be implemented by a combination of multiple physical units/modules, where the physical implementation manner of the logical unit/module itself is not the most important, and the combination of the functions implemented by the logical unit/module is the key to solve the technical problem provided by the present application. Furthermore, in order to highlight the innovative part of the present application, the above-mentioned device embodiments of the present application do not introduce units/modules which are not so closely related to solve the technical problems presented in the present application, which does not indicate that no other units/modules exist in the above-mentioned device embodiments.
It is noted that, in the examples and descriptions of this patent, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, the use of the verb "comprise a" to define an element does not exclude the presence of another, same element in a process, method, article, or apparatus that comprises the element.
While the present application has been shown and described with reference to certain preferred embodiments thereof, it will be understood by those of ordinary skill in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present application.