CN115378750A - OTA (over the air) upgrading method and device for electronic home equipment - Google Patents

OTA (over the air) upgrading method and device for electronic home equipment Download PDF

Info

Publication number
CN115378750A
CN115378750A CN202110549874.2A CN202110549874A CN115378750A CN 115378750 A CN115378750 A CN 115378750A CN 202110549874 A CN202110549874 A CN 202110549874A CN 115378750 A CN115378750 A CN 115378750A
Authority
CN
China
Prior art keywords
server
electronic home
home equipment
configuration information
wifi module
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.)
Granted
Application number
CN202110549874.2A
Other languages
Chinese (zh)
Other versions
CN115378750B (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.)
Hisense Mobile Communications Technology Co Ltd
Hisense Group Holding Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
Hisense Group Holding 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 Hisense Mobile Communications Technology Co Ltd, Hisense Group Holding Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN202110549874.2A priority Critical patent/CN115378750B/en
Publication of CN115378750A publication Critical patent/CN115378750A/en
Application granted granted Critical
Publication of CN115378750B publication Critical patent/CN115378750B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Abstract

The invention relates to the technical field of wireless transmission, in particular to an OTA (over the air) upgrading method and device of electronic home equipment, which are used for solving the problems of upgrading logic and software version disorder of a WiFi (wireless fidelity) module of the electronic home equipment in the upgrading process. After the electronic home equipment is started, accessing the server according to the obtained access configuration information for configuring the electronic home equipment to access the server; if the server accessed by the electronic home equipment is not a preset target server containing the OTA upgrading unit, accessing the target server according to the access configuration information of the preset target server; and reporting the version information of the WiFi module of the electronic home equipment to the target server, and executing OTA upgrading operation according to the received OTA upgrading instruction returned by the target server, so that OTA upgrading management specifications are unified, and OTA upgrading of the electronic home equipment is facilitated.

Description

OTA (over the air) upgrading method and device for electronic home equipment
Technical Field
The invention relates to the technical field of wireless transmission, in particular to an OTA (over the air) upgrading method and device of electronic home equipment.
Background
With the development of the internet of things, electronic home equipment with a Wireless-Fidelity (WiFi) module is also widely applied, such as an intelligent washing machine, an intelligent television, an intelligent refrigerator, a sweeping robot, and the like. Subsequently, various manufacturers release respective Internet of things platforms in a dispute, and the platforms are collectively called as servers; the electronic home equipment is connected with a certain server through a WiFi module, and a control instruction is sent by a bound intelligent terminal Application program (APP), so that the purpose of intelligently controlling the household appliances is achieved.
In the prior art, when an Over-the-Air Technology (OTA) upgrade is performed on a WiFi module of an electronic home device, the OTA upgrade is performed through an OTA upgrade unit in a server accessed by the electronic home device. Generally, the electronic home equipment receives an OTA upgrading instruction issued by an OTA upgrading unit in an accessed server, and upgrades the WiFi module according to the OTA upgrading instruction.
Due to the fact that WiFi versions maintained by OTA upgrading units in different servers are different and upgrading logics are different, under the condition that the electronic home equipment can be accessed to a plurality of different servers, if the electronic home equipment still adopts the OTA upgrading units deployed in the accessed servers to carry out OTA upgrading on WiFi modules, upgrading logics and software versions of the WiFi modules of the electronic home equipment in the upgrading process can be disordered.
Disclosure of Invention
The exemplary embodiment of the invention provides an OTA (over the air) upgrading method and device for electronic home equipment and a computer storage medium, which are used for solving the problem that the upgrading logic and software version of a WiFi (wireless fidelity) module of the electronic home equipment are disordered in the upgrading process.
According to a first aspect of the exemplary embodiments, an OTA upgrading method for an electronic home device is provided, and is applied to the electronic home device, and the method includes:
after the electronic home equipment is started, obtaining access configuration information for configuring an electronic home equipment access server, and accessing the server according to the obtained access configuration information; the target server is a preset server comprising an OTA upgrading unit, and the OTA upgrading unit is used for performing OTA upgrading on a WiFi module in the electronic home equipment;
if the server accessed by the electronic home equipment is not the target server, the electronic home equipment is accessed to the target server according to preset access configuration information of the target server; reporting the version information of a WiFi module of the electronic home equipment to the target server, and executing OTA upgrading operation according to an OTA upgrading instruction after receiving the OTA upgrading instruction returned by the target server; and the OTA upgrading instruction is returned after the target server determines that the WiFi module of the electronic home equipment needs to be upgraded according to the version information of the WiFi module reported by the electronic home equipment.
The embodiment of the invention provides a scheme for OTA upgrading of electronic home equipment, through which the electronic home equipment can access a server according to access configuration information acquired for configuring an access server of the electronic home equipment, and then, when the accessed server is determined not to be a target server, the electronic home equipment accesses the target server according to preset access configuration information of the target server, so that OTA upgrading of a WiFi module in the electronic home equipment is unified on the target server on the basis of not increasing hardware cost investment, namely, an OTA upgrading unit for OTA upgrading of the WiFi module in the electronic home equipment is deployed on the target server, and therefore, when the WiFi module in the electronic home equipment is subjected to OTA upgrading, the same OTA upgrading management standard can be adopted, OTA upgrading of the WiFi module in the electronic home equipment is facilitated, and the problems that only OTA software upgrading logic is complex and software management is disordered due to OTA upgrading through respective accessed servers in OTA upgrading of the WiFi module and the multi-server in the prior art are solved.
In some exemplary embodiments, before the obtaining, by the electronic home device, access configuration information for configuring an access server of the electronic home device, the method further includes:
the electronic home equipment acquires network configuration information used for representing the network state of the electronic home equipment;
the method for the electronic home equipment to acquire the access configuration information for configuring the electronic home equipment access server includes the following steps:
if the network configuration information indicates that the electronic home equipment is in a to-be-configured network state, the electronic home equipment accesses a network according to the network configuration information; taking access configuration information corresponding to the identification information of the server contained in the network configuration information as access configuration information of the server to which the electronic home equipment needs to be accessed;
and if the network configuration information shows that the electronic home equipment is in a non-network-distribution state, the electronic home equipment acquires the stored access configuration information of the server from the memory as the access configuration information of the server to which the electronic home equipment needs to access.
In some exemplary embodiments, the method further comprises:
if the electronic home equipment does not acquire access configuration information for configuring the electronic home equipment access server, the electronic home equipment monitors a distribution network instruction triggered by a user in a serial port polling mode;
and after receiving the distribution network instruction, the electronic home equipment accesses a network according to network configuration information contained in the distribution network instruction, and takes access configuration information corresponding to identification information of a server contained in the network configuration information as access configuration information of the server to which the electronic home equipment needs to access.
In some exemplary embodiments, the taking, by the electronic home device, the access configuration information corresponding to the identification information of the server included in the network configuration information as the access configuration information of the server that the electronic home device needs to access includes:
the electronic home equipment determines access configuration information corresponding to the identification information contained in the network configuration information according to the identification information of the server contained in the network configuration information and the corresponding relationship between the preset identification information of the server and the access configuration information of the server;
and the electronic home equipment takes the determined access configuration information as the access configuration information of the server to which the electronic home equipment needs to access.
In some exemplary embodiments, after the electronic home device accesses the server according to the acquired access configuration information, the method further includes:
the electronic home equipment reports the state information of the electronic home equipment through the accessed server, receives a control instruction issued by the accessed server, and executes corresponding operation according to the control instruction.
In some exemplary embodiments, after the electronic home device accesses the server according to the acquired access configuration information, the method further includes:
and if the server accessed by the electronic home equipment is a target server, the electronic home equipment directly reports the version information of the WiFi module of the electronic home equipment to the target server, and after receiving an OTA upgrading instruction returned by the target server, the electronic home equipment executes OTA upgrading operation according to the OTA upgrading instruction.
In a second aspect, an embodiment of the present invention further provides an OTA upgrading method for an electronic home device, where the method includes:
the method comprises the steps that a server receives version information of a WiFi module of electronic home equipment reported by the electronic home equipment, and obtains the version information of the WiFi module stored in an OTA (over the air) upgrading unit of the server; the OTA upgrading unit is used for performing OTA upgrading on a WiFi module in the electronic home equipment;
if the version information of the WiFi module reported by the electronic home equipment is different from the version information stored in the OTA upgrading unit, the server determines that the OTA upgrading needs to be carried out on the WiFi module of the electronic home equipment, and sends an OTA upgrading instruction to the electronic home equipment, so that the electronic home equipment carries out OTA upgrading on the WiFi module in the electronic home equipment according to the OTA upgrading instruction.
In a third aspect, an embodiment of the present invention further provides an electronic home device, including a processor and a WiFi module;
the processor is configured to acquire access configuration information for configuring the WiFi module to access the server after the electronic home equipment is started, and transmit the acquired access configuration information to the WiFi module; if the server accessed by the WiFi module is not a target server, the processor transmits preset access configuration information of the target server to the WiFi module; performing OTA upgrading operation according to the OTA upgrading instruction transmitted by the WiFi module; the target server is a preset server comprising an OTA upgrading unit, and the OTA upgrading unit is used for performing OTA upgrading on a WiFi module in the electronic home equipment;
the WiFi module is configured to access a server according to the access configuration information; accessing the target server according to the preset access configuration information of the target server, and reporting the version information of the WiFi module to the target server; after receiving an OTA upgrading instruction returned by the target server, transmitting the OTA upgrading instruction to the processor; and the OTA upgrading instruction is returned after the target server determines that the WiFi module needs to be upgraded according to the reported version information of the WiFi module.
In some exemplary embodiments, the processor is further configured to, prior to obtaining access configuration information for configuring the WiFi module access server, obtain network configuration information representing a network status of the WiFi module; if the network configuration information shows that the WiFi module is in a state to be configured with a network, the processor transmits the network configuration information to the WiFi module; taking the access configuration information corresponding to the identification information of the server contained in the network configuration information as the access configuration information of the server to which the WiFi module needs to be accessed; if the network configuration information indicates that the WiFi module is in a non-distribution network state, the processor acquires the stored access configuration information from the memory as the access configuration information of the server to which the WiFi module needs to be accessed;
the WiFi module is configured to access a network according to the network configuration information transmitted by the processor.
Optionally, the processor is configured to monitor a distribution network instruction triggered by a user in a serial port polling manner if access configuration information for configuring the electronic home device to access the server is not acquired; after the distribution network instruction is received, accessing a network through the WiFi module according to network configuration information contained in the distribution network instruction; and using the access configuration information corresponding to the identification information of the server contained in the network configuration information as the access configuration information of the server to which the electronic home equipment needs to access.
Optionally, the processor is configured to determine, according to the identifier information of the server included in the network configuration information and a preset correspondence between the identifier information of the server and the access configuration information of the server, access configuration information corresponding to the identifier information included in the network configuration information; and using the access configuration information corresponding to the identification information contained in the network configuration information as the access configuration information of the server to which the electronic home equipment needs to access.
Optionally, the processor is further configured to transmit the status information of the electronic home device to the WiFi module after accessing the server according to the acquired access configuration information; receiving a control instruction transmitted by the WiFi module and issued by the accessed server, and executing corresponding operation according to the control instruction;
the WiFi module is configured to receive the state information of the electronic home equipment transmitted by the processor and report the state information to the accessed server; and receiving a control instruction issued by the accessed server, and transmitting the control instruction to the processor.
Optionally, the processor is further configured to, after accessing to a server according to the acquired access configuration information, transmit version information of a WiFi module of the electronic home device to the WiFi module if the server accessed by the electronic home device is a target server; receiving an OTA upgrading instruction transmitted by the WiFi module and returned by the target server, and executing OTA upgrading operation according to the OTA upgrading instruction;
the WiFi module is also configured to receive the version information of the WiFi module of the electronic home equipment transmitted by the processor and report the version information of the WiFi module to the target server; and receiving an OTA upgrading instruction returned by the target server, and transmitting the OTA upgrading instruction to the processor.
In a fourth aspect, an embodiment of the present invention further provides a server, including a transceiver unit and an OTA upgrading unit;
the OTA upgrading unit is configured to receive the version information of the WiFi module reported by the electronic home equipment and transmitted by the transceiving unit, and acquire the stored version information of the WiFi module; if the version information of the WiFi module reported by the electronic home equipment is different from the stored version information of the WiFi module, determining that OTA upgrading needs to be carried out on the WiFi module of the electronic home equipment, and transmitting an OTA upgrading instruction to the transceiving unit;
the transceiver unit is configured to receive version information of a WiFi module of the electronic home equipment reported by the electronic home equipment; and sending the OTA upgrading instruction transmitted by the OTA upgrading unit to the electronic home equipment so that the electronic home equipment carries out OTA upgrading on a WiFi module in the electronic home equipment according to the OTA upgrading instruction.
In a fifth aspect, an OTA upgrading apparatus for an electronic home device includes:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring access configuration information for configuring an access server of the electronic home equipment after the electronic home equipment is started, and accessing the server according to the acquired access configuration information; the target server is a preset server comprising an OTA upgrading unit, and the OTA upgrading unit is used for performing OTA upgrading on a WiFi module in the electronic home equipment;
the reporting module is used for accessing the target server according to preset access configuration information of the target server if the server accessed by the electronic home equipment is not the target server; reporting the version information of a WiFi module of the electronic home equipment to the target server, and executing OTA upgrading operation according to an OTA upgrading instruction after receiving the OTA upgrading instruction returned by the target server; and the OTA upgrading instruction is returned after the target server determines that the WiFi module of the electronic home equipment needs to be upgraded according to the version information of the WiFi module reported by the electronic home equipment.
Optionally, before obtaining the access configuration information for configuring the electronic home device to access the server, the obtaining module is further configured to:
acquiring network configuration information for representing the network state of the electronic home equipment;
when acquiring access configuration information for configuring the electronic home device access server, the acquiring module is specifically configured to:
if the network configuration information shows that the electronic home equipment is in a state to be configured with a network, accessing the network according to the network configuration information; taking the access configuration information corresponding to the identification information of the server contained in the network configuration information as the access configuration information of the server to which the electronic home equipment needs to access;
and if the network configuration information shows that the electronic home equipment is in a non-network-distribution state, acquiring the stored access configuration information of the server from the memory as the access configuration information of the server to which the electronic home equipment needs to be accessed.
Optionally, the obtaining module is further configured to:
if the access configuration information for configuring the electronic home equipment access server is not acquired, monitoring a distribution network instruction triggered by a user in a serial port polling mode; and after receiving the distribution network instruction, accessing a network according to network configuration information contained in the distribution network instruction, and taking access configuration information corresponding to identification information of a server contained in the network configuration information as access configuration information of the server to which the electronic home equipment needs to be accessed.
Optionally, the obtaining module is specifically configured to:
determining access configuration information corresponding to the identification information contained in the network configuration information according to the identification information of the server contained in the network configuration information and the corresponding relationship between the preset identification information of the server and the access configuration information of the server; and the access configuration information corresponding to the identification information contained in the network configuration information is used as the access configuration information of the server which needs to be accessed by the electronic home equipment.
Optionally, after accessing the server according to the obtained access configuration information, the reporting module is further configured to:
and reporting the state information of the electronic home equipment through the accessed server, receiving a control instruction issued by the accessed server, and executing corresponding operation according to the control instruction.
Optionally, after accessing the server according to the acquired access configuration information, the reporting module is further configured to:
if the server accessed by the electronic home equipment is a target server, directly reporting the version information of the WiFi module of the electronic home equipment to the target server, and after receiving an OTA (over the air) upgrading instruction returned by the target server, executing OTA upgrading operation according to the OTA upgrading instruction.
In a sixth aspect, an OTA upgrading apparatus for electronic home devices includes:
the receiving module is used for receiving the version information of the WiFi module of the electronic home equipment reported by the electronic home equipment and acquiring the version information of the WiFi module stored in the OTA upgrading unit; the OTA upgrading unit is used for performing OTA upgrading on a WiFi module in the electronic home equipment;
and the sending module is used for determining that the WiFi module of the electronic home equipment needs to be subjected to OTA upgrading if the version information of the WiFi module reported by the electronic home equipment is different from the version information of the WiFi module stored in the OTA upgrading unit, and sending an OTA upgrading instruction to the electronic home equipment so that the electronic home equipment can perform OTA upgrading on the WiFi module in the electronic home equipment according to the OTA upgrading instruction.
In a seventh aspect, the present invention also provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor, performs the steps of the method of the first or second aspect.
In addition, for technical effects brought by any one implementation manner of the second aspect to the sixth aspect, reference may be made to technical effects brought by different implementation manners of the first aspect, and details are not described here.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 illustrates a network topology diagram of a prior art multi-server OTA upgrade scheme for WiFi modules;
fig. 2 is a schematic network topology diagram illustrating an OTA upgrade scheme of a WiFi module supporting multiple servers according to an embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating an application scenario provided by an embodiment of the present invention;
fig. 4 is an interaction diagram illustrating an OTA upgrading method for an electronic home device according to an embodiment of the present invention;
fig. 5 is an interaction diagram illustrating an OTA upgrading method for an electronic home device according to an embodiment of the present invention;
fig. 6 is a flowchart illustrating an OTA upgrading method for an electronic home device according to an embodiment of the present invention;
fig. 7 is a flowchart illustrating an OTA upgrading method for an electronic household device according to an embodiment of the present invention;
fig. 8 schematically illustrates a structural diagram of an electronic home device according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram illustrating a server according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram illustrating an OTA upgrading apparatus of an electronic household device according to an embodiment of the present invention;
fig. 11 schematically shows a structural diagram of an OTA upgrading apparatus of an electronic household device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present application will be described in detail and clearly with reference to the accompanying drawings. In the description of the embodiments herein, "/" means "or" unless otherwise specified, for example, a/B may mean a or B; "and/or" in the text is only an association relationship describing an associated object, and means that three relationships may exist, for example, a and/or B may mean: three cases of a alone, a and B both, and B alone exist, and in addition, "a plurality" means two or more than two in the description of the embodiments of the present application.
Some terms appearing herein are explained below:
1. the term "application" in embodiments of the present invention is a computer program that performs one or more specific tasks, and has a visual display interface for interacting with a user.
2. The term WiFi module in the embodiment of the invention, also named as a serial port WiFi module, belongs to an Internet of things transmission layer, and has the function of converting a serial port or TTL level into an embedded module which accords with a WiFi wireless network communication standard. The traditional hardware equipment is embedded into a WiFi module, wiFi can be directly used for accessing To the Internet, and the system is an important component for realizing application of Internet of things such as wireless smart home, machine-To-Machine (M2M) and the like.
3. In the embodiment of the present invention, the term "SSID", i.e., service Set Identifier (SSID), may divide a wireless local area network into several sub-networks requiring different authentication, where each sub-network requires independent authentication, and only users passing authentication may enter the corresponding sub-network, so as to prevent unauthorized users from entering the local network.
4. The term "MAC address", i.e. a Medium Access Control (MAC) address, also called a local area network address, an ethernet address or a physical address, is used to identify the location of a network device. The MAC address is used to uniquely identify a network card in the network, and if one or more network cards exist in a device, each network card needs to have a unique MAC address.
Fig. 1 shows a network topology diagram of an alternative WiFi module multi-server OTA upgrade scheme. The network comprises electronic home equipment 10, a WiFi router 12, a server 13 and a control terminal 15; the WiFi module 11 in the electronic home device 10 is used to access a gateway device (i.e., a WiFi router 12), so as to implement connection between the electronic home device 10 and a server 13; the server 13 comprises an OTA upgrading unit 14, and the OTA upgrading unit 14 is used for performing OTA upgrading on the WiFi module 11 of the electronic home equipment 10; the control terminal 15 is provided with a control application corresponding to the electronic home device 10.
When the WiFi module 11 of the electronic home device 10 is upgraded, which server the WiFi module is connected to may be used, and the OTA upgrading unit on the server is used to upgrade the WiFi module, however, on the server corresponding to each vendor, the OTA upgrading unit is usually managed by using its own software version management specification, and the public server also uses another OTA upgrading unit management specification, so that the OTA upgrading unit management specifications on each server are different, and the WiFi versions maintained by the OTA upgrading units in different servers are different and the upgrading logics are different.
The embodiment of the invention provides an OTA upgrading scheme of electronic home equipment, which is characterized in that an OTA upgrading unit for performing OTA upgrading on a WiFi module in the electronic home equipment is deployed on a specific server, so that OTA upgrading management specifications are unified, and OTA upgrading of the WiFi module in the electronic home equipment is facilitated. After the electronic home equipment is started, starting a WiFi module to acquire access configuration information for configuring a WiFi module access server in the electronic home equipment; after the access configuration information is acquired, the WiFi module accesses a server according to the acquired access configuration information; the electronic home equipment judges whether a server accessed by the WiFi module is a target server or not, if the electronic home equipment determines that the server accessed by the WiFi module is not the target server, the WiFi module in the electronic home equipment is accessed to the target server according to preset access configuration information of the target server; then, the electronic home equipment reports the version information of the WiFi module of the electronic home equipment to a target server; after receiving the version information of the WiFi module reported by the electronic home equipment, the target server compares the version information with the version information stored in an OTA (over the air) upgrading unit contained in the target server; if the target server determines that the version information of the WiFi module reported by the electronic home equipment is different from the version information stored in the OTA upgrading unit, sending an OTA upgrading instruction to the electronic home equipment; and after receiving the OTA upgrading instruction sent by the target server, the electronic home equipment executes OTA upgrading operation according to the OTA upgrading instruction.
The embodiment of the invention provides an OTA upgrading scheme of electronic home equipment, through the scheme, the electronic home equipment can access a server according to acquired access configuration information for configuring an access server of the electronic home equipment, and then, when the accessed server is determined not to be a target server, the electronic home equipment is accessed into the target server according to preset access configuration information of the target server, so that OTA upgrading of a WiFi module in the electronic home equipment is unified on the target server on the basis of not increasing hardware cost input, namely, an OTA upgrading unit for performing OTA upgrading on the WiFi module in the electronic home equipment is deployed on the target server, and the problem of disordered upgrading logic and software version of the upgraded WiFi module of the electronic home equipment caused by OTA upgrading of the WiFi module through the accessed OTA unit in the server is solved.
The electronic home equipment control system according to the embodiment of the invention is described below with reference to the accompanying drawings. As shown in fig. 2, a network topology schematic diagram of an OTA upgrading scheme for WiFi modules supporting multiple servers according to an embodiment of the present invention includes an electronic home device 10, a WiFi router 12, a server 13, and a control terminal 15; the WiFi module 11 in the electronic home device 10 is used to access a gateway device (i.e., a WiFi router 12), so as to implement connection between the electronic home device 10 and a server 13; the OTA upgrading unit 14 is used for performing OTA upgrading on the WiFi module 11 of the electronic home equipment 10; the control terminal 15 is provided with a control application corresponding to the electronic home device 10.
In some exemplary embodiments, the server 13 may be a separate physical server or a server cluster, and correspondingly, if the server 13 is a separate physical server, the OTA upgrading unit 14 may be deployed inside the physical server; if the server 13 is a server cluster, the OTA upgrade unit 14 can be a server in the server cluster.
Referring to fig. 2, in the embodiment of the present invention, an OTA upgrading unit 14 for performing OTA upgrading on a WiFi module 11 in an electronic household device 10 is uniformly deployed inside a specific server 13, and for convenience of description of the scheme, in the embodiment of the present invention, the specific server 13 on which the OTA upgrading unit is deployed is denoted as a target server. When the WiFi module 11 configured by the electronic home device 10 and supporting multiple servers 13 is subjected to OTA upgrade, no matter which server 13 the electronic home device 10 accesses, the target server needs to be accessed according to the preset access configuration information of the target server, so that OTA upgrade of the WiFi module 11 in the electronic home device is completed.
It should be noted that, in the embodiment of the present invention, for convenience of describing the scheme expansion, the OTA upgrading unit 14 is considered to be deployed in the server 13. However, the implementation of the present solution is not limited to the application scenario in which the OTA upgrading unit 14 is deployed in the server 13.
In some embodiments, after the electronic home equipment is started, the WiFi module may be started according to a received control instruction triggered by a user on a control terminal corresponding to the electronic home equipment; and the WiFi module can also be started according to the received corresponding operation executed by the user on the display screen of the electronic home equipment.
Specifically, after the electronic home equipment is started, the WiFi module obtains network configuration information used for representing a network state from a local memory, and the network configuration information may be prestored in the electronic home equipment or stored in the local memory based on network configuration information in a network distribution instruction of a user last time; the network configuration information indicates the network state of the electronic home device, and includes but is not limited to: the electronic home equipment is in a state of waiting for network distribution, and the electronic home equipment is in a state of not distributing the network;
after the electronic home equipment is started, acquiring network configuration information from a local memory;
the network configuration information comprises identification information used for indicating whether the network is in a distribution network state or not; for example, when the network configuration information includes "0", it indicates that the electronic home equipment is in a non-network-distribution state; and when the network configuration information contains '1', the electronic home equipment is in a state of network to be configured.
It should be noted that, when the network configuration information includes identification information indicating that the electronic home devices are in a to-be-networked state, the network configuration information may further include at least one or more of the following information: SSID of a network needing to be accessed, identity authentication information and identification information of an accessed server;
in the embodiment of the invention, the corresponding relationship between the identification information of the server and the access configuration information of the server can be preset, and the corresponding relationship is prestored in the local memory of the electronic home equipment, so that after the electronic home equipment acquires the network configuration information, the access configuration information corresponding to the identification information of the server contained in the network configuration information can be determined according to the preset corresponding relationship between the identification information of the server and the access configuration information of the server, and the access configuration information of the corresponding server is accessed.
The following describes different network states of the electronic home devices.
1. The electronic home equipment is in a state of being matched with the network.
In some embodiments, the network configuration information acquired by the electronic home equipment indicates that a WiFi module in the electronic home equipment is in a state to be configured with a network, and the electronic home equipment accesses the network according to the network configuration information;
the network configuration information at least comprises an SSID of a network to be accessed, identity authentication information and identification information of a server.
One optional mode is that after the electronic home equipment is started, network configuration information is acquired from a local memory, and the network is accessed according to an SSID and identity verification information contained in the network configuration information to complete network configuration.
After the electronic home equipment completes network configuration, the electronic home equipment accesses a server corresponding to the identification information of the server according to the identification information of the server contained in the network configuration information;
in implementation, the electronic home device determines access configuration information corresponding to the identification information of the server included in the network configuration information, uses the access configuration information corresponding to the identification information of the server included in the network configuration information as access configuration information of the server to which the electronic home device needs to access, and stores the access configuration information in a local memory of the electronic home device.
Optionally, the electronic home device determines the access configuration information corresponding to the identification information of the server included in the network configuration information according to the following manner:
the electronic home equipment determines access configuration information of the server corresponding to the identification information contained in the network configuration information according to the identification information of the server contained in the network configuration information and a corresponding relationship between the preset identification information of the server and the access configuration information of the server; and taking the determined access configuration information of the server as the access configuration information of the server which needs to be accessed by the electronic home equipment, wherein the access configuration information at least comprises domain name information of the server and interface information of the server.
The network configuration information and the access configuration information both comprise identification information of the server, so the network configuration information and the access configuration information are in one-to-one correspondence, and the electronic home equipment can correspondingly determine the access configuration information based on the identification information of the server contained in the obtained network configuration information, so that the electronic home equipment can be smoothly accessed to the server.
2. The electronic home equipment is in a non-distribution network state.
In some embodiments, the network configuration information acquired by the electronic home devices indicates that the WiFi module in the electronic home devices is in a non-distribution network state, and then the electronic home devices further acquire access configuration information for configuring the electronic home devices to access the server.
Specifically, if the electronic home devices have accessed the server, the electronic home devices may store the access configuration information of the corresponding access server in the local memory, and the electronic home devices may obtain the access configuration information of the access server from the local memory, and use the obtained access configuration information as the access configuration information of the server to which the electronic home devices need to access.
If the electronic home equipment determines that the access configuration information of the access server is not stored in the local memory, the electronic home equipment does not acquire the access configuration information for configuring the access server of the electronic home equipment, and the electronic home equipment monitors a distribution network instruction triggered by a user in a serial port polling mode.
In some embodiments, when the electronic home device receives a distribution network instruction triggered by a user, the electronic home device accesses the network according to network configuration information included in the distribution network instruction received, and accesses configuration information corresponding to identification information of a server included in the network configuration information as access configuration information of the server to which the electronic home device needs to access;
in implementation, the distribution network instruction received by the electronic home equipment is sent to the electronic home equipment by a user through a control terminal corresponding to the electronic home equipment; the network configuration instruction comprises network configuration information, wherein the network configuration information at least comprises an SSID (service set identifier) of a network to be accessed, authentication information and identification information of a server;
in implementation, the electronic home equipment determines access configuration information corresponding to the identification information of the server included in the network configuration information according to the following modes:
the electronic home equipment determines access configuration information corresponding to the identification information contained in the network configuration information according to the identification information of the server contained in the network configuration information and the corresponding relationship between the preset identification information of the server and the access configuration information of the server; the determined access configuration information is used as the access configuration information of a server which needs to be accessed by the electronic home equipment;
the access configuration information at least comprises domain name information of the server and interface information of the server;
the preset correspondence between the identification information of the server and the access configuration information of the server may be stored in the WiFi module of the electronic home device in advance.
In some embodiments, after the electronic home devices acquire access configuration information for configuring a WiFi module of the electronic home devices to access a server, the electronic home devices access the corresponding server according to the acquired access configuration information.
For example, referring to fig. 3, an electronic home device is taken as an example of an intelligent washing machine.
Assume that server 1 is the target server, the identification information of the target server is "1", the identification information of server 2 is "2", and the identification information of server 3 is "3".
Further, assume that the identification information of the server included in the network configuration information acquired by the intelligent washing machine is 2.
Then, the intelligent washing machine determines access configuration information, such as domain name information (www.xxx.com) and server interface information, corresponding to the identification information of the server included in the network configuration information, according to the identification information (i.e., 2) of the target server included in the acquired network configuration information and a preset correspondence between the identification information of the server and the access configuration information of the server.
The intelligent washing machine takes the determined access configuration information as the access configuration information of the server needing to be accessed, accesses the corresponding server according to the domain name information in the determined access configuration information, and accesses the server 2 by adopting the server interface information in the access configuration information.
According to the embodiment of the invention, after the electronic home equipment is accessed to the server according to the acquired access configuration information of the access server, whether the accessed server is a target server needs to be judged; the target server is a preset server comprising an OTA upgrading unit, and the OTA upgrading unit is used for OTA upgrading of a WiFi module in the electronic home equipment.
In implementation, the electronic home equipment can judge whether the accessed server is the target server or not by comparing the acquired access configuration information with the access configuration information of the preset target server; if the obtained access configuration information is different from the preset access configuration information of the target server, the server accessed by the electronic home equipment is not the target server, and if the obtained access configuration information is the same as the preset access configuration information of the target server, the server accessed by the electronic home equipment is the target server; the following description is made for different cases, respectively:
in the first case, a server accessed by the electronic home equipment is a target server.
In implementation, after the electronic home equipment determines that the accessed server is the target server, the electronic home equipment can report version information of a WiFi module of the electronic home equipment to the target server;
after receiving the version information of the WiFi module reported by the electronic home equipment, the target server compares the received version information of the WiFi module reported by the electronic home equipment with the version information of the WiFi module stored in the OTA upgrading unit;
if the target server determines that the received WiFi module version information is different from the version information stored in the local OTA upgrading unit, an OTA upgrading instruction is sent to the electronic home equipment;
and after receiving the OTA upgrading instruction sent by the target server, the electronic home equipment carries out OTA upgrading on the WiFi module in the electronic home equipment according to the OTA upgrading instruction.
In specific implementation, an OTA upgrading instruction sent by a target server to electronic home equipment carries a software version required by OTA upgrading;
after receiving an OTA upgrading instruction pushed by a target server, the electronic home equipment carries out OTA upgrading; after the OTA is upgraded, the WiFi module can be automatically restarted, and the working state of the WiFi module is displayed on a display screen of the electronic home equipment.
In the embodiment of the invention, after the electronic home equipment is connected with the target server, the electronic home equipment can be connected with the control terminal through the connected target server, after the electronic home equipment is connected with the control terminal, the control terminal responds to the operation triggered by a user and sends the control instruction to the target server, the target server sends the control instruction to the electronic home equipment, and the electronic home equipment executes corresponding operation according to the received control instruction.
After the electronic home equipment executes corresponding processing operation according to the received control command, state feedback information used for feeding back the electronic home equipment after the processing operation is executed is sent to a target server through a WiFi module and a WiFi router, the target server sends the state feedback information to a control terminal, and the control terminal displays the state of the electronic home equipment on a control application matched with the electronic home equipment.
As shown in fig. 4, an OTA upgrading method for an electronic home device in an embodiment of the present invention includes the following steps:
step S401, after the electronic home equipment is started, obtaining access configuration information for configuring the electronic home equipment access server.
And S402, the electronic home equipment accesses the server according to the acquired access configuration information.
Step S403, the electronic home device determines that the accessed server is a target server.
And S404, the electronic home equipment reports the version information of the WiFi module of the electronic home equipment to a target server.
Step S405, the target server compares the received version information of the WiFi module reported by the electronic home equipment with the version information stored in the OTA upgrading unit contained in the target server.
Step S406, the target server determines that the version information of the WiFi module reported by the electronic home equipment is different from the version information stored in the OTA upgrading unit, and sends an OTA upgrading instruction to the electronic home equipment.
And S407, the electronic home equipment executes OTA upgrading operation according to the received OTA upgrading instruction sent by the target server.
Step S408, the target server sends the received control instruction sent by the control terminal to the electronic home equipment;
and the control instruction is sent to the target server by the control terminal after responding to the operation triggered by the user.
And step S409, the electronic home equipment executes corresponding operation according to the received control instruction sent by the target server.
And S410, the electronic home equipment sends a state feedback message for feeding back the electronic home equipment to execute the processing operation to the target server.
It should be noted that, in the embodiment of the present invention, the execution sequence of steps 403 to 407 and steps 408 to 410 is not limited, and step 403 to 407 may be executed first, or step 408 to step 410 may be executed first, or step 403 to step 407 and step 408 to step 410 may be executed at the same time.
And in the second situation, the server accessed by the electronic home equipment is not a target server.
In implementation, after determining that the accessed server is not the target server, the electronic home device accesses the target server according to preset access configuration information of the target server.
In case two, the electronic home equipment establishes a connection with two servers:
firstly, connection is established between the electronic home equipment and a server corresponding to the acquired access configuration information;
in the following description, a server accessed by the electronic home device according to the obtained access configuration information is referred to as a "configuration server";
in the embodiment of the invention, after the electronic home equipment is connected with the configuration server, the electronic home equipment can be connected with the control terminal through the connected configuration server, after the electronic home equipment is connected with the control terminal, the control terminal responds to the operation triggered by a user and sends the control instruction to the configuration server, the configuration server sends the control instruction to the electronic home equipment, and the electronic home equipment executes corresponding operation according to the received control instruction.
After the electronic home equipment executes corresponding processing operation according to the received control command, state feedback information used for feeding back the electronic home equipment after the processing operation is executed is sent to the configuration server through the WiFi module and the WiFi router, the configuration server sends the state feedback information to the control terminal, and the control terminal displays the state of the electronic home equipment on a control application matched with the electronic home equipment.
Secondly, connection is established between the electronic home equipment and a target server;
after the electronic home equipment is accessed to the target server, the version information of the WiFi module of the electronic home equipment is reported to the target server.
After receiving the version information of the WiFi module reported by the electronic home equipment, the target server compares the received version information of the WiFi module reported by the electronic home equipment with the version information stored in the OTA upgrading unit;
and if the target server determines that the version information of the WiFi module reported by the electronic home equipment is different from the version information stored in the OTA upgrading unit, sending an OTA upgrading instruction to the electronic home equipment.
After receiving the OTA upgrading instruction sent by the target server, the electronic home equipment carries out OTA upgrading on the WiFi module in the electronic home equipment according to the OTA upgrading instruction.
In specific implementation, an OTA upgrading instruction sent by a target server to electronic home equipment carries a software version required by OTA upgrading;
after receiving an OTA upgrading instruction pushed by a target server, the electronic home equipment carries out OTA upgrading; after the OTA is upgraded, the WiFi module can be automatically restarted, and the working state of the WiFi module is displayed on a display screen of the electronic home equipment.
It should be noted that the target server only performs OTA upgrade on the electronic home devices, and the control instruction issued by the user to the electronic home devices through the control terminal is issued through the server to which the electronic home devices are firstly accessed, that is, the control instruction to the electronic home devices is issued through the configuration server; and the electronic home equipment sends a state feedback message for feeding back the electronic home equipment after executing the processing operation to the configuration server.
As shown in fig. 5, an OTA upgrading method for an electronic home device in an embodiment of the present invention includes the following steps:
step S501, after the electronic home equipment is started, obtaining access configuration information for configuring the electronic home equipment to access the server.
And S502, the electronic home equipment accesses the configuration server according to the acquired access configuration information.
Step S503, the electronic home equipment determines that the accessed configuration server is not the target server.
And S504, the electronic home equipment accesses the target server according to preset access configuration information of the target server.
And step S505, the electronic home equipment reports the version information of the WiFi module of the electronic home equipment to the target server.
Step S506, the target server compares the received version information of the WiFi module reported by the electronic home equipment with the version information stored in the OTA upgrading unit contained in the target server.
And step S507, the target server determines that the version information of the WiFi module reported by the electronic home equipment is different from the version information stored in the OTA upgrading unit, and then sends an OTA upgrading instruction to the electronic home equipment.
And step S508, the electronic home equipment executes OTA upgrading operation according to the received OTA upgrading instruction sent by the target server.
Step S509, the configuration server sends the received control instruction sent by the control terminal to the electronic home equipment;
the control instruction is sent to the configuration server after the control terminal responds to the operation triggered by the user.
And step S510, the electronic home equipment executes corresponding operation according to the received control instruction sent by the configuration server.
And step S511, the electronic home equipment sends a state feedback message for feeding back the electronic home equipment after executing the processing operation to the configuration server.
It should be noted that the order of executing steps 503 to 508 and steps 509 to 511 is not limited, and steps 503 to 508, or steps 509 to 511, or steps 503 to 508 and 509 to 511 may be executed first, or steps 503 to 508 and 509 to 511 may be executed at the same time.
As shown in fig. 6, an embodiment of the present invention provides an OTA upgrading method for an electronic home device, which is applied to an electronic home device side, and includes the following steps:
step S601: after the electronic home equipment is started, obtaining access configuration information for configuring an electronic home equipment access server, and accessing the server according to the obtained access configuration information; the target server is a preset server comprising an OTA upgrading unit, and the OTA upgrading unit is used for performing OTA upgrading on a WiFi module in the electronic home equipment; .
Step S602: if the server accessed by the electronic home equipment is not the target server, the electronic home equipment is accessed to the target server according to preset access configuration information of the target server; reporting the version information of a WiFi module of the electronic home equipment to a target server, and executing OTA upgrading operation according to an OTA upgrading instruction after receiving the OTA upgrading instruction returned by the target server; and the OTA upgrading instruction is returned after the target server determines that the WiFi module of the electronic home equipment needs to be upgraded by the OTA according to the version information of the WiFi module reported by the electronic home equipment.
Optionally, before the electronic home device obtains the access configuration information for configuring the electronic home device access server, the method further includes:
the electronic home equipment acquires network configuration information used for representing the network state of the electronic home equipment;
the method for the electronic home equipment to obtain the access configuration information for configuring the electronic home equipment access server comprises the following steps:
if the network configuration information shows that the electronic home equipment is in a state to be configured with a network, the electronic home equipment is accessed to the network according to the network configuration information; taking the access configuration information corresponding to the identification information of the server contained in the network configuration information as the access configuration information of the server to which the electronic home equipment needs to access;
and if the network configuration information shows that the electronic home equipment is in a non-network-distribution state, the electronic home equipment acquires the stored access configuration information of the server from the memory as the access configuration information of the server to which the electronic home equipment needs to access.
Optionally, the method further includes:
if the electronic home equipment does not acquire access configuration information for configuring the electronic home equipment access server, the electronic home equipment monitors a distribution network instruction triggered by a user in a serial port polling mode;
and after receiving the distribution network instruction, the electronic home equipment accesses a network according to network configuration information contained in the distribution network instruction, and takes access configuration information corresponding to identification information of a server contained in the network configuration information as access configuration information of the server to which the electronic home equipment needs to access.
Optionally, the using, by the electronic home device, the access configuration information corresponding to the identification information of the server included in the network configuration information as the access configuration information of the server to which the electronic home device needs to access includes:
the electronic home equipment determines access configuration information corresponding to the identification information contained in the network configuration information according to the identification information of the server contained in the network configuration information and the corresponding relationship between the preset identification information of the server and the access configuration information of the server;
and the electronic home equipment takes the determined access configuration information as the access configuration information of the server to which the electronic home equipment needs to access.
Optionally, after the electronic home device accesses the server according to the obtained access configuration information, the method further includes:
the electronic home equipment reports the state information of the electronic home equipment through the accessed server, receives a control instruction issued by the accessed server, and executes corresponding operation according to the control instruction.
Optionally, after the electronic home device accesses the server according to the obtained access configuration information, the method further includes:
if the server accessed by the electronic home equipment is a target server, the electronic home equipment directly reports the version information of the WiFi module of the electronic home equipment to the target server, and after receiving an OTA upgrading instruction returned by the target server, the electronic home equipment executes OTA upgrading operation according to the OTA upgrading instruction.
As shown in fig. 7, an embodiment of the present invention provides an OTA upgrading method for an electronic home device, which is applied to a server side, and includes the following steps:
step S701: the method comprises the steps that a server receives version information of a WiFi module of electronic home equipment reported by the electronic home equipment and obtains the version information of the WiFi module stored in an OTA (over the air) upgrading unit of the server; the OTA upgrading unit is used for carrying out OTA upgrading on a WiFi module in the electronic home equipment.
Step S702: if the version information of the WiFi module reported by the electronic home equipment is different from the version information of the WiFi module stored in the OTA upgrading unit, the server determines that the OTA upgrading of the WiFi module of the electronic home equipment is needed, and sends an OTA upgrading instruction to the electronic home equipment, so that the electronic home equipment carries out OTA upgrading on the WiFi module in the electronic home equipment according to the OTA upgrading instruction.
Based on the same inventive concept, an embodiment of the present invention further provides an electronic home device, as shown in fig. 8, the electronic home device includes a processor 801 and a WiFi module 802;
the processor 801 is configured to, after the electronic home device is started, acquire access configuration information for configuring the WiFi module 802 to access a server, and transmit the acquired access configuration information to the WiFi module 802; if the server accessed by the WiFi module 802 is not a target server, the processor 701 transmits preset access configuration information of the target server to the WiFi module 802; and, according to the OTA upgrade order that the WiFi module 802 transmits, carry out OTA upgrade operation; the target server is a preset server comprising an OTA upgrading unit, and the OTA upgrading unit is used for performing OTA upgrading on a WiFi module in the electronic home equipment;
the WiFi module 802 is configured to access a server according to the access configuration information; accessing the target server according to the preset access configuration information of the target server, and reporting the version information of the WiFi module 802 to the target server; after receiving an OTA upgrading instruction returned by the target server, transmitting the OTA upgrading instruction to the processor 801;
the target server is a preset server comprising an OTA upgrading unit, and the OTA upgrading unit is used for performing OTA upgrading on a WiFi module 802 in the electronic home equipment; the OTA upgrade instruction is returned after the target server determines that the WiFi module 802 needs to be upgraded according to the reported version information of the WiFi module 802.
Optionally, the processor 801 is further configured to, before acquiring the access configuration information for configuring the WiFi module 802 to access the server, acquire network configuration information for indicating a network status of the WiFi module 802; if the network configuration information indicates that the WiFi module 802 is in a state to be configured, the processor 801 transmits the network configuration information to the WiFi module 802; the access configuration information corresponding to the identification information of the server included in the network configuration information is used as the access configuration information of the server to which the WiFi module 802 needs to access; if the network configuration information indicates that the WiFi module 802 is in a non-distribution network state, the processor 801 acquires the stored access configuration information from the memory, and uses the access configuration information as access configuration information of a server that the WiFi module 802 needs to access;
the WiFi module 802 is configured to access a network according to the network configuration information transmitted by the processor 801.
Optionally, the processor 801 is configured to monitor a distribution network instruction triggered by a user in a serial port polling manner if access configuration information for configuring the electronic home device to access the server is not obtained; after receiving the distribution network instruction, accessing a network through the WiFi module 802 according to network configuration information contained in the distribution network instruction; and using the access configuration information corresponding to the identification information of the server contained in the network configuration information as the access configuration information of the server to which the electronic home equipment needs to access.
Optionally, the processor 801 is configured to determine, according to the identification information of the server included in the network configuration information and a preset correspondence between the identification information of the server and the access configuration information of the server, access configuration information corresponding to the identification information included in the network configuration information; and using the access configuration information corresponding to the identification information contained in the network configuration information as the access configuration information of the server to which the electronic home equipment needs to access.
Optionally, the processor 801 is further configured to, after accessing to a server according to the acquired access configuration information, transmit the status information of the electronic home device to the WiFi module; receiving a control instruction transmitted by the WiFi module 802 and issued by the server, and executing a corresponding operation according to the control instruction;
the WiFi module 802 is configured to receive the status information of the electronic home device transmitted by the processor 801, and report the status information to the accessed server; and receiving a control instruction issued by the accessed server, and transmitting the control instruction to the processor 801.
Optionally, the processor 801 is further configured to, after accessing to a server according to the acquired access configuration information, if the server accessed by the electronic home device is a target server, transmit version information of a WiFi module of the electronic home device to the WiFi module 802; receiving an OTA upgrading instruction returned by the target server and transmitted by the WiFi module 802, and executing OTA upgrading operation according to the OTA upgrading instruction;
the WiFi module 802 is further configured to receive version information of the WiFi module 802 of the electronic home device transmitted by the processor, and report the version information of the WiFi module to the target server; and receiving the OTA upgrading instruction returned by the target server, and transmitting the OTA upgrading instruction to the processor 801.
Based on the same inventive concept, an embodiment of the present invention provides a server, as shown in fig. 9, the server includes an OTA upgrading unit 901 and a transceiver unit 902;
the OTA upgrading unit 901 is configured to receive the version information of the WiFi module reported by the electronic home device and transmitted by the transceiver unit, and acquire the stored version information of the WiFi module; if the version information of the WiFi module reported by the electronic home device is different from the stored version information of the WiFi module, determining that OTA upgrade needs to be performed on the WiFi module of the electronic home device, and transmitting an OTA upgrade instruction to the transceiving unit 902;
the transceiver unit 902 is configured to receive version information of a WiFi module of the electronic home device, which is reported by the electronic home device; and sending the OTA upgrading instruction transmitted by the OTA upgrading unit 901 to the electronic home equipment, so that the electronic home equipment performs OTA upgrading on a WiFi module in the electronic home equipment according to the OTA upgrading instruction.
As shown in fig. 10, an OTA upgrading apparatus for an electronic home device includes:
an obtaining module 1001, configured to obtain access configuration information for configuring an access server of an electronic home device after the electronic home device is started, and access the server according to the obtained access configuration information; the target server is a preset server comprising an OTA upgrading unit, and the OTA upgrading unit is used for performing OTA upgrading on a WiFi module in the electronic home equipment;
a reporting module 1002, configured to access a target server according to preset access configuration information of the target server if a server accessed by the electronic home device is not the target server; reporting the version information of a WiFi module of the electronic home equipment to the target server, and executing OTA upgrading operation according to an OTA upgrading instruction after receiving the OTA upgrading instruction returned by the target server; the target server is a preset server comprising an OTA upgrading unit, and the OTA upgrading unit is used for performing OTA upgrading on a WiFi module in the electronic home equipment; and the OTA upgrading instruction is returned after the target server determines that the WiFi module of the electronic home equipment needs to be upgraded according to the version information of the WiFi module reported by the electronic home equipment.
Optionally, before obtaining the access configuration information for configuring the electronic home device access server, the obtaining module 1001 is further configured to:
acquiring network configuration information for representing the network state of the electronic home equipment;
when acquiring access configuration information for configuring the access server of the electronic home device, the acquiring module 1001 is specifically configured to:
if the network configuration information shows that the electronic home equipment is in a state to be configured with a network, accessing the network according to the network configuration information; taking the access configuration information corresponding to the identification information of the server contained in the network configuration information as the access configuration information of the server to which the electronic home equipment needs to access;
and if the network configuration information indicates that the electronic household equipment is in a non-distribution network state, acquiring the stored access configuration information of the server from the memory as the access configuration information of the server to which the electronic household equipment needs to be accessed.
Optionally, the obtaining module 1001 is further configured to:
if the access configuration information for configuring the electronic home equipment access server is not acquired, monitoring a distribution network instruction triggered by a user in a serial port polling mode; and after receiving the distribution network instruction, accessing a network according to network configuration information contained in the distribution network instruction, and using access configuration information corresponding to identification information of a server contained in the network configuration information as access configuration information of the server to which the electronic home equipment needs to be accessed.
Optionally, the obtaining module 1001 is specifically configured to:
determining access configuration information corresponding to the identification information contained in the network configuration information according to the identification information of the server contained in the network configuration information and the corresponding relationship between the preset identification information of the server and the access configuration information of the server; and the access configuration information corresponding to the identification information contained in the network configuration information is used as the access configuration information of the server which needs to be accessed by the electronic home equipment.
Optionally, after accessing the server according to the obtained access configuration information, the reporting module 1002 is further configured to:
and reporting the state information of the electronic home equipment through the accessed server, receiving a control instruction issued by the accessed server, and executing corresponding operation according to the control instruction.
Optionally, after accessing the server according to the acquired access configuration information, the reporting module 1002 is further configured to:
and if the server accessed by the electronic home equipment is a target server, directly reporting the version information of the WiFi module of the electronic home equipment to the target server, and executing OTA upgrading operation according to the OTA upgrading instruction after receiving the OTA upgrading instruction returned by the target server.
As shown in fig. 11, an OTA upgrading apparatus for an electronic home device includes:
the receiving module 1101 is configured to receive version information of a WiFi module of the electronic home device reported by the electronic home device, and acquire version information of the WiFi module stored in the OTA upgrading unit; the OTA upgrading unit is used for performing OTA upgrading on a WiFi module in the electronic home equipment;
the sending module 1102 is configured to determine that OTA upgrade needs to be performed on the WiFi module of the electronic home device if it is determined that the version information of the WiFi module reported by the electronic home device is different from the version information of the WiFi module stored in the OTA upgrade unit, and send an OTA upgrade instruction to the electronic home device, so that the electronic home device performs OTA upgrade on the WiFi module in the electronic home device according to the OTA upgrade instruction.
The embodiment of the invention also provides a computer-readable storage medium, wherein computer program instructions are stored in the computer-readable storage medium, and when the instructions are run on a computer, the computer is enabled to execute the steps of the OTA upgrading method of the electronic home equipment.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (10)

1. The electronic home equipment is characterized by comprising a processor and a WiFi module;
the processor is configured to acquire access configuration information for configuring the WiFi module to access the server after the electronic home equipment is started, and transmit the acquired access configuration information to the WiFi module; if the server accessed by the WiFi module is not the target server, the processor transmits preset access configuration information of the target server to the WiFi module; performing OTA upgrading operation according to the OTA upgrading instruction transmitted by the WiFi module; the target server is a preset server comprising an OTA upgrading unit, and the OTA upgrading unit is used for performing OTA upgrading on a WiFi module in the electronic home equipment;
the WiFi module is configured to access a server according to the access configuration information; accessing the target server according to the preset access configuration information of the target server, and reporting the version information of the WiFi module to the target server; after receiving an OTA upgrading instruction returned by the target server, transmitting the OTA upgrading instruction to the processor; and the OTA upgrading instruction is returned after the target server determines that the WiFi module needs to be upgraded according to the reported version information of the WiFi module.
2. The electronic home device of claim 1, wherein the processor is further configured to, prior to obtaining access configuration information for configuring the WiFi module access server, obtain network configuration information representing a network status of the WiFi module; if the network configuration information indicates that the WiFi module is in a state to be configured with a network, the processor transmits the network configuration information to the WiFi module; taking the access configuration information corresponding to the identification information of the server contained in the network configuration information as the access configuration information of the server to which the WiFi module needs to be accessed; if the network configuration information indicates that the WiFi module is in a non-distribution network state, the processor acquires the stored access configuration information from the memory as the access configuration information of the server to which the WiFi module needs to be accessed;
the WiFi module is configured to access a network according to the network configuration information transmitted by the processor.
3. The electronic home device according to claim 1, wherein the processor is configured to monitor a distribution network instruction triggered by a user in a serial port polling manner if access configuration information for configuring the electronic home device to access the server is not acquired; after the distribution network instruction is received, accessing a network through the WiFi module according to network configuration information contained in the distribution network instruction; and using the access configuration information corresponding to the identification information of the server contained in the network configuration information as the access configuration information of the server to which the electronic home equipment needs to access.
4. The electronic home device according to claim 2 or 3, wherein the processor is configured to determine access configuration information corresponding to the identification information included in the network configuration information according to the identification information of the server included in the network configuration information and a preset correspondence between the identification information of the server and the access configuration information of the server; and using the access configuration information corresponding to the identification information contained in the network configuration information as the access configuration information of the server to which the electronic home equipment needs to access.
5. The electronic home device according to claim 1, wherein the processor is further configured to transmit status information of the electronic home device to the WiFi module after accessing a server according to the acquired access configuration information; receiving a control instruction transmitted by the WiFi module and issued by the accessed server, and executing corresponding operation according to the control instruction;
the WiFi module is configured to receive the state information of the electronic home equipment transmitted by the processor and report the state information to the accessed server; and receiving a control instruction issued by the accessed server, and transmitting the control instruction to the processor.
6. The electronic home equipment according to claim 1, wherein the processor is further configured to, after accessing a server according to the acquired access configuration information, transmit version information of a WiFi module of the electronic home equipment to the WiFi module if the server accessed by the electronic home equipment is a target server; receiving an OTA upgrading instruction transmitted by the WiFi module and returned by the target server, and executing OTA upgrading operation according to the OTA upgrading instruction;
the WiFi module is also configured to receive the version information of the WiFi module of the electronic home equipment transmitted by the processor and report the version information of the WiFi module to the target server; and receiving an OTA upgrading instruction returned by the target server, and transmitting the OTA upgrading instruction to the processor.
7. A server is characterized by comprising a transceiving unit and an OTA upgrading unit;
the OTA upgrading unit is configured to receive the version information of the WiFi module reported by the electronic home equipment and transmitted by the transceiving unit, and acquire the stored version information of the WiFi module; if the version information of the WiFi module reported by the electronic home equipment is different from the stored version information of the WiFi module, determining that OTA upgrading needs to be carried out on the WiFi module of the electronic home equipment, and transmitting an OTA upgrading instruction to the transceiving unit;
the transceiver unit is configured to receive version information of a WiFi module of the electronic home equipment reported by the electronic home equipment; and sending the OTA upgrading instruction transmitted by the OTA upgrading unit to the electronic home equipment so that the electronic home equipment carries out OTA upgrading on the WiFi module in the electronic home equipment according to the OTA upgrading instruction.
8. A space download technology OTA upgrading method of electronic home equipment is characterized by comprising the following steps:
after the electronic home equipment is started, obtaining access configuration information for configuring an access server of the electronic home equipment, and accessing the server according to the obtained access configuration information; the target server is a preset server comprising an OTA upgrading unit, and the OTA upgrading unit is used for performing OTA upgrading on a WiFi module in the electronic home equipment;
if the server accessed by the electronic home equipment is not the target server, the electronic home equipment is accessed to the target server according to preset access configuration information of the target server; reporting the version information of a WiFi module of the electronic home equipment to the target server, and executing OTA upgrading operation according to an OTA upgrading instruction after receiving the OTA upgrading instruction returned by the target server; and the OTA upgrading instruction is returned after the target server determines that the WiFi module of the electronic home equipment needs to be upgraded according to the version information of the WiFi module reported by the electronic home equipment.
9. The method of claim 8, before the obtaining, by the electronic home device, access configuration information for configuring the electronic home device to access the server, further comprising:
the electronic home equipment acquires network configuration information used for representing the network state of the electronic home equipment;
the method for the electronic home equipment to acquire the access configuration information for configuring the electronic home equipment access server includes the following steps:
if the network configuration information shows that the electronic home equipment is in a state to be configured with a network, the electronic home equipment is accessed to the network according to the network configuration information; taking the access configuration information corresponding to the identification information of the server contained in the network configuration information as the access configuration information of the server to which the electronic home equipment needs to access;
and if the network configuration information indicates that the electronic home equipment is in a non-distribution network state, the electronic home equipment acquires the stored access configuration information of the server from the memory as the access configuration information of the server to which the electronic home equipment needs to access.
10. A space download technology OTA upgrading method of electronic home equipment is characterized by comprising the following steps:
the method comprises the steps that a server receives version information of a WiFi module of electronic home equipment reported by the electronic home equipment, and obtains the version information of the WiFi module stored in an OTA (over the air) upgrading unit of the server; the OTA upgrading unit is used for performing OTA upgrading on a WiFi module in the electronic home equipment;
if the version information of the WiFi module reported by the electronic home equipment is different from the version information of the WiFi module stored in the OTA upgrading unit, the server determines that the OTA upgrading of the WiFi module of the electronic home equipment is needed, and sends an OTA upgrading instruction to the electronic home equipment, so that the electronic home equipment carries out OTA upgrading on the WiFi module in the electronic home equipment according to the OTA upgrading instruction.
CN202110549874.2A 2021-05-20 2021-05-20 OTA upgrading method and equipment for electronic home equipment Active CN115378750B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110549874.2A CN115378750B (en) 2021-05-20 2021-05-20 OTA upgrading method and equipment for electronic home equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110549874.2A CN115378750B (en) 2021-05-20 2021-05-20 OTA upgrading method and equipment for electronic home equipment

Publications (2)

Publication Number Publication Date
CN115378750A true CN115378750A (en) 2022-11-22
CN115378750B CN115378750B (en) 2023-09-19

Family

ID=84058947

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110549874.2A Active CN115378750B (en) 2021-05-20 2021-05-20 OTA upgrading method and equipment for electronic home equipment

Country Status (1)

Country Link
CN (1) CN115378750B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101510089A (en) * 2008-02-15 2009-08-19 冲电气工业株式会社 Electrical equipment management system, electrical equipment management server and electrical equipment management method
US20100262467A1 (en) * 2007-10-12 2010-10-14 Barnhill Jr John A System and Method for Automatic Configuration and Management of Home Network Devices Using a Hierarchical Index Model
CN105245377A (en) * 2015-10-08 2016-01-13 黎宜 Smart home host and control system thereof
CN105450779A (en) * 2015-12-31 2016-03-30 九阳股份有限公司 Method for achieving connection between one household electric appliance and multiple servers
CN107357618A (en) * 2017-06-29 2017-11-17 九阳股份有限公司 A kind of intelligent appliance upgrade method and device
CN110278114A (en) * 2019-06-19 2019-09-24 深圳逗号互联科技有限公司 A kind of method of the remote software upgrading of logistics retrospect equipment
CN110488617A (en) * 2019-07-08 2019-11-22 湖南优创智能科技有限公司 Intelligent home control system, method and terminal device
CN111770169A (en) * 2020-06-29 2020-10-13 百度在线网络技术(北京)有限公司 Method, device, equipment and storage medium for upgrading equipment firmware
CN111949293A (en) * 2020-08-06 2020-11-17 曙光信息产业(北京)有限公司 Firmware upgrading method and device, computer equipment and storage medium
CN112148330A (en) * 2020-09-23 2020-12-29 南京爱奇艺智能科技有限公司 Target equipment system upgrading method and device
CN112187531A (en) * 2020-09-17 2021-01-05 青岛海尔科技有限公司 Module upgrading method and system, storage medium and electronic device
CN112596406A (en) * 2020-12-18 2021-04-02 深圳市欧瑞博科技股份有限公司 Control method and device of intelligent equipment, control panel and storage medium
CN112817617A (en) * 2019-11-18 2021-05-18 华为技术有限公司 Software upgrading method, device and system

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100262467A1 (en) * 2007-10-12 2010-10-14 Barnhill Jr John A System and Method for Automatic Configuration and Management of Home Network Devices Using a Hierarchical Index Model
CN101510089A (en) * 2008-02-15 2009-08-19 冲电气工业株式会社 Electrical equipment management system, electrical equipment management server and electrical equipment management method
CN105245377A (en) * 2015-10-08 2016-01-13 黎宜 Smart home host and control system thereof
CN105450779A (en) * 2015-12-31 2016-03-30 九阳股份有限公司 Method for achieving connection between one household electric appliance and multiple servers
CN107357618A (en) * 2017-06-29 2017-11-17 九阳股份有限公司 A kind of intelligent appliance upgrade method and device
CN110278114A (en) * 2019-06-19 2019-09-24 深圳逗号互联科技有限公司 A kind of method of the remote software upgrading of logistics retrospect equipment
CN110488617A (en) * 2019-07-08 2019-11-22 湖南优创智能科技有限公司 Intelligent home control system, method and terminal device
CN112817617A (en) * 2019-11-18 2021-05-18 华为技术有限公司 Software upgrading method, device and system
CN111770169A (en) * 2020-06-29 2020-10-13 百度在线网络技术(北京)有限公司 Method, device, equipment and storage medium for upgrading equipment firmware
CN111949293A (en) * 2020-08-06 2020-11-17 曙光信息产业(北京)有限公司 Firmware upgrading method and device, computer equipment and storage medium
CN112187531A (en) * 2020-09-17 2021-01-05 青岛海尔科技有限公司 Module upgrading method and system, storage medium and electronic device
CN112148330A (en) * 2020-09-23 2020-12-29 南京爱奇艺智能科技有限公司 Target equipment system upgrading method and device
CN112596406A (en) * 2020-12-18 2021-04-02 深圳市欧瑞博科技股份有限公司 Control method and device of intelligent equipment, control panel and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
CONRADA A. OMONHINMIN; DEMOLA OLOPADE; ABOLADE AFOLABI; ADEREMI A. ATAYERO: ""Open education and digital scholarly communication in covenant university"", 《2014 INTERNATIONAL CONFERENCE ON WEB AND OPEN ACCESS TO LEARNING (ICWOAL)》 *
秦利红;秦会斌;诸坚彬;曹曙光;: "基于Android平台智能家居客户端的设计与实现", 计算机应用与软件, no. 09 *

Also Published As

Publication number Publication date
CN115378750B (en) 2023-09-19

Similar Documents

Publication Publication Date Title
CN107995215B (en) Control method and device of intelligent household equipment and cloud platform server
CN110365704B (en) Equipment binding method and device and electronic equipment
EP3214891B1 (en) Switching-on method, base station and storage medium
US20060230128A1 (en) Method and apparatus interfacing for controlling a device between an application and a library of a master on home network
WO2015143794A1 (en) Creating and upgrading methods, server, terminal, upgrading system, and storage media
US9425982B2 (en) Server and method for providing device management service and device receiving the device management service
CN112671904B (en) Method and device for transmitting equipment state information, storage medium and electronic device
CN107483297B (en) Active monitoring system and method for quality of service carried on embedded equipment
CN105635146A (en) Method and system for configuring protocol dynamically
CN107347202B (en) initial access method and device of terminal under network slice architecture
CN105357664A (en) Wireless control system and data communication method thereof
CN111934904B (en) Capacity expansion method, controller and system
CN112764803A (en) Version upgrading method and device, storage medium and electronic device
CN112073555A (en) Method for configuring IP address, electronic device and computer readable storage medium
CN107968725B (en) Method and device for returning and configuring configuration information of home gateway unit type terminal device
TWI482461B (en) Device management system and method
CN106559236B (en) Equipment resource management method and device of service board, main control board and frame type equipment
CN115378750B (en) OTA upgrading method and equipment for electronic home equipment
CN110505075B (en) Device management method and related device
KR20070117585A (en) Method of configuring network profile of network system
CN103002564B (en) Wireless Internet access method, radio networking device, server and wireless networking system
CN105207811B (en) Method and device for replacing non-AllJoyn equipment
CN103873284A (en) Equipment management system and method
CN108964989B (en) Method and device for connecting with service platform and computer readable storage medium
CN112596763A (en) Method, device and equipment for wireless upgrading of intelligent household equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 266555, No. 218, Bay Road, Qingdao economic and Technological Development Zone, Shandong

Applicant after: Hisense Group Holding Co.,Ltd.

Applicant after: Qingdao Hisense Mobile Communication Technology Co.,Ltd.

Address before: 266555, No. 218, Bay Road, Qingdao economic and Technological Development Zone, Shandong

Applicant before: Hisense Group Holding Co.,Ltd.

Applicant before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant