CN115378750B - OTA upgrading method and equipment for electronic home equipment - Google Patents

OTA upgrading method and equipment for electronic home equipment Download PDF

Info

Publication number
CN115378750B
CN115378750B CN202110549874.2A CN202110549874A CN115378750B CN 115378750 B CN115378750 B CN 115378750B CN 202110549874 A CN202110549874 A CN 202110549874A CN 115378750 B CN115378750 B CN 115378750B
Authority
CN
China
Prior art keywords
server
electronic home
configuration information
wifi module
home equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110549874.2A
Other languages
Chinese (zh)
Other versions
CN115378750A (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

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 equipment for electronic home equipment, which are used for solving the problems of disordered upgrading logic and software version of a WiFi module of the electronic home equipment in the upgrading process. After the electronic home equipment is started, the electronic home equipment is accessed to the server according to the acquired access configuration information for configuring the electronic home equipment access server; if the server accessed by the electronic home equipment is not a preset target server comprising an OTA upgrading unit, accessing the target server according to the access configuration information of the preset target server; and the version information of the WiFi module of the electronic home equipment is reported to the target server, and then the OTA upgrading operation is executed according to the received OTA upgrading instruction returned by the target server, so that the OTA upgrading management specification is unified, and the OTA upgrading of the electronic home equipment is conveniently realized.

Description

OTA upgrading method and equipment for electronic home equipment
Technical Field
The invention relates to the technical field of wireless transmission, in particular to an OTA upgrading method and equipment for electronic home equipment.
Background
With the development of the internet of things, electronic home devices with Wireless-Fidelity (WiFi) modules of the internet of things are widely used, such as intelligent washing machines, intelligent televisions, intelligent refrigerators, sweeping robots and the like. Accordingly, each manufacturer pushes out respective Internet of things platform, which is collectively called a server; the electronic home equipment is connected with a certain server through a WiFi module, and a bound intelligent terminal Application program (APP) is obtained to send out a control instruction, so that the aim of intelligently controlling the home appliance is fulfilled.
Under the prior art, when the space downloading Technology (OTA) is updated to the WiFi module of the electronic home equipment, the OTA upgrading unit in the server accessed by the electronic home equipment is used for upgrading. Usually, the electronic home device receives an OTA upgrade instruction issued by an OTA upgrade unit in the accessed server, and upgrades the WiFi module according to the OTA upgrade instruction.
Because the WiFi versions maintained by the OTA upgrading units in different servers are different and upgrading logic is different, if the OTA upgrading units deployed in the accessed servers are still adopted by the electronic home equipment to carry out OTA upgrading of the WiFi modules under the condition that the electronic home equipment can be accessed to a plurality of different servers, the upgrading logic and software version confusion of the WiFi modules of the electronic home equipment in the upgrading process can be caused.
Disclosure of Invention
The invention provides an OTA upgrading method and equipment of electronic home equipment and a computer storage medium, which are used for solving the problems of disordered upgrading logic and software version of a WiFi module of the electronic home equipment in the upgrading process.
According to a first aspect in an exemplary embodiment, an OTA upgrading method of an electronic home device is provided, and the method is applied to the electronic home device, and includes:
After the electronic home equipment is started, access configuration information for configuring an access server of the electronic home equipment is obtained, and the electronic home equipment is accessed to 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 carrying out 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 accesses the target server according to the preset access configuration information of the target server; reporting version information of a 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; and the OTA upgrading instruction is that the target server determines that the WiFi module of the electronic home equipment needs to be returned after OTA upgrading according to the version information of the WiFi module reported by the electronic home equipment.
According to the scheme, the electronic home equipment can be accessed to the server according to the acquired access configuration information for configuring the access server of the electronic home equipment, then the target server is accessed according to the preset access configuration information of the target server when the accessed server is determined not to be the target server, so that on the basis of not increasing hardware cost investment, the OTA upgrading of the WiFi module in the electronic home equipment is unified to the target server, namely, the OTA upgrading unit for carrying out OTA upgrading on the WiFi module in the electronic home equipment is deployed on the target server, and therefore, when the electronic home equipment carries out OTA upgrading on the WiFi module in the electronic home equipment, the same OTA upgrading management specification can be adopted, so that the OTA upgrading of the WiFi module in the electronic home equipment is facilitated, and the problems of complex OTA software upgrading logic and disordered software version management caused by the OTA upgrading of the respective accessed server in the prior art are solved.
In some exemplary embodiments, 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 for representing the network state of the electronic home equipment;
the electronic home equipment obtains access configuration information for configuring the access server of the electronic home equipment, and the method comprises the following steps:
if the network configuration information indicates that the electronic home equipment is in a network state to be configured, the electronic home equipment is accessed to a network according to the network configuration information; the access configuration information corresponding to the identification information of the server contained in the network configuration information is used as the access configuration information of the server which the electronic home equipment needs to access;
if the network configuration information indicates that the electronic home equipment is in a non-network configuration state, the electronic home equipment acquires stored access configuration information of the server from a memory and uses the access configuration information as the access configuration information of the server to be accessed by the electronic home equipment.
In some exemplary embodiments, the method further comprises:
if the electronic home equipment does not acquire the access configuration information for configuring the access server of the electronic home equipment, the electronic home equipment monitors a network allocation instruction triggered by a user in a serial port polling mode;
After receiving the network allocation instruction, the electronic home equipment accesses a network according to network configuration information contained in the network allocation instruction, and takes 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.
In some exemplary embodiments, the electronic home device uses access configuration information corresponding to identification information of a server included in the network configuration information as access configuration information of a server to which the electronic home device needs to access, including:
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 relation 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 a server 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 the 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:
if the server accessed by the electronic home equipment is a target server, the electronic home equipment directly reports version information of a WiFi module of the electronic home equipment to the target server, and after receiving an OTA upgrading instruction returned by the target server, OTA upgrading operation is executed 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 version information of the WiFi module stored in an OTA upgrading unit of the server; the OTA upgrading unit is used for carrying out OTA upgrading on the 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 WiFi module of the electronic home equipment needs to be subjected to OTA upgrading, 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 access 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 access configuration information of a preset target server to the WiFi module; and executing 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 carrying out 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 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 that the target server determines that the WiFi module needs to be subjected to OTA upgrading and then returns the WiFi module according to the reported version information of the WiFi module.
In some exemplary embodiments, the processor is further configured to obtain network configuration information representing a network state of the WiFi module prior to obtaining access configuration information for configuring the WiFi module access server; if the network configuration information indicates that the WiFi module is in a network state to be configured, the processor transmits the network configuration information to the WiFi module; the access configuration information corresponding to the identification information of the server contained in the network configuration information is used as the access configuration information of the server which the WiFi module needs to access; if the network configuration information indicates that the WiFi module is in a non-distribution network state, the processor acquires stored access configuration information from a memory to serve as access configuration information of a 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 network allocation instruction triggered by a user in a serial port polling manner if access configuration information for configuring the access server of the electronic home equipment is not obtained; after receiving the network allocation instruction, accessing a network through the WiFi module according to network configuration information contained in the network allocation instruction; and 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 which the electronic home equipment needs to access.
Optionally, the processor is configured to determine, according to the identification information of the server included in the network configuration information and a corresponding relationship between preset identification information of the server and access configuration information of the server, access configuration information corresponding to the identification information included in the network configuration information; and taking the access configuration information corresponding to the identification information contained in the network configuration information as the access configuration information of the server which the electronic home equipment needs to access.
Optionally, the processor is further configured to transmit the state 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 transmitted 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, after the processor is further configured to access the server according to the acquired access configuration information, if the server accessed by the electronic home device is a target server, the processor is further configured to transmit version information of a WiFi module of the electronic home device to the WiFi module; receiving an OTA upgrading instruction returned by the target server and transmitted by the WiFi module, and executing OTA upgrading operation according to the OTA upgrading instruction;
the WiFi module is further configured to receive version information of the WiFi module of the electronic home equipment, which is transmitted by the processor, and report the version information of the WiFi module to the target server; and receiving an OTA upgrade instruction returned by the target server and transmitting the OTA upgrade 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, which is reported by the electronic home equipment and transmitted by the receiving and transmitting 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 the WiFi module of the electronic home equipment needs to be subjected to OTA upgrading, and transmitting an OTA upgrading instruction to the receiving and transmitting unit;
the receiving and transmitting unit is configured to receive version information of a WiFi module of the electronic home equipment, which is reported by the electronic home equipment; and sending the OTA upgrading instruction transmitted by the OTA upgrading unit to the electronic household equipment, so that the electronic household equipment performs OTA upgrading on the WiFi module in the electronic household equipment according to the OTA upgrading instruction.
In a fifth aspect, an OTA upgrading apparatus for an electronic home device includes:
the electronic home equipment access server comprises an acquisition module, a control module and a control module, wherein the acquisition module is used for acquiring access configuration information for configuring the electronic home equipment access server 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 carrying out 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 version information of a 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; and the OTA upgrading instruction is that the target server determines that the WiFi module of the electronic home equipment needs to be returned after OTA upgrading according to the version information of the WiFi module reported by the electronic home equipment.
Optionally, before acquiring the access configuration information for configuring the access server of the electronic home device, the acquiring module is further configured to:
acquiring network configuration information for representing the network state of the electronic home equipment;
when obtaining access configuration information for configuring the access server of the electronic home equipment, the obtaining module is specifically configured to:
if the network configuration information indicates that the electronic home equipment is in a network state to be configured, accessing a network according to the network configuration information; the access configuration information corresponding to the identification information of the server contained in the network configuration information is used as the access configuration information of the server which the electronic home equipment needs to access;
If the network configuration information indicates that the electronic home equipment is in a non-network configuration state, the stored access configuration information of the server is obtained from the memory and is used as the access configuration information of the server which the electronic home equipment needs to access.
Optionally, the acquiring module is further configured to:
if the access configuration information for configuring the access server of the electronic home equipment is not obtained, monitoring a network allocation instruction triggered by a user in a serial port polling mode; and after receiving the network allocation instruction, accessing to a network according to network configuration information contained in the network allocation instruction, and taking 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 be accessed.
Optionally, the acquiring 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 relation 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 the electronic home equipment needs to access.
Optionally, after accessing the server according to the acquired access configuration information, the reporting module is further configured to:
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, the version information of the WiFi module of the electronic home equipment is directly reported to the target server, and after an OTA upgrading instruction returned by the target server is received, OTA upgrading operation is executed according to the OTA upgrading instruction.
In a sixth aspect, an OTA upgrading apparatus for an electronic home device includes:
the receiving module is used for receiving 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 carrying out OTA upgrading on the 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 carry out 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 having stored thereon a computer program which when executed by a processor performs the steps of the method of the first or second aspect.
In addition, the technical effects caused by any implementation manner of the second aspect to the sixth aspect may refer to the technical effects caused by different implementation manners of the first aspect, which are not described herein.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments will be briefly described below, it will be apparent that the drawings in the following description are only some embodiments of the present invention, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a network topology of a prior art WiFi module multi-server OTA upgrade scheme;
fig. 2 is a schematic diagram illustrating a network topology of an OTA upgrade scheme of a WiFi module supporting multiple servers according to an embodiment of the present invention;
fig. 3 schematically illustrates an application scenario provided by an embodiment of the present invention;
fig. 4 is an interaction diagram of an OTA upgrading method of electronic home equipment according to an embodiment of the present invention;
fig. 5 is an interaction diagram of an OTA upgrading method of electronic home equipment according to an embodiment of the present invention;
fig. 6 is a flowchart schematically illustrating an OTA upgrading method of an electronic home device according to an embodiment of the present invention;
fig. 7 is a flowchart schematically illustrating an OTA upgrading method of an electronic home device according to an embodiment of the present invention;
fig. 8 schematically illustrates a structural schematic diagram of an electronic home device according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a server according to an embodiment of the present invention;
fig. 10 schematically illustrates a structural diagram of an OTA upgrading device of an electronic home device according to an embodiment of the present invention;
Fig. 11 is a schematic structural diagram of an OTA upgrading device of an electronic home device according to an embodiment of the present application.
Detailed Description
The technical solutions of the embodiments of the present application will be clearly and thoroughly described below with reference to the accompanying drawings. Wherein, in the description of the embodiments of the present application, unless otherwise indicated, "/" means or, for example, a/B may represent a or B; the text "and/or" is merely an association relation describing the associated object, and indicates that three relations may exist, for example, a and/or B may indicate: the three cases where a exists alone, a and B exist together, and B exists alone, and furthermore, in the description of the embodiments of the present application, "plural" means two or more than two.
Some terms appearing hereinafter are explained:
1. the term "application" in embodiments of the present application is a computer program that performs one or more specific tasks and that has a visual display interface that enables interaction with a user.
2. The embodiment of the application discloses a WiFi module, which is also called a serial port WiFi module, and belongs to an Internet of things transmission layer. The traditional hardware device is embedded into the WiFi module and can be directly connected To the Internet by utilizing WiFi, so that the wireless intelligent home, machine-To-Machine (M2M) and other important components for Internet of things application are realized.
3. In the embodiment of the invention, the term SSID, namely service set identifier (Service Set Identifier, SSID), can divide a wireless local area network into a plurality of sub-networks requiring different identity verification, each sub-network requires independent identity verification, and only users passing the identity verification can enter the corresponding sub-network to prevent unauthorized users from entering the network.
4. The term "MAC address", i.e. a medium access control (Medium Access Control, MAC) address, also known as local area network address, ethernet address or physical address, of an embodiment of the invention is an address used to confirm the location of a network device. The MAC address is used to uniquely identify a network card in the network, and if a device has one or more network cards, each network card needs and has a unique MAC address.
Fig. 1 shows a network topology diagram of an alternative multi-server OTA upgrade scheme for WiFi modules. 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 the gateway device (i.e., the WiFi router 12), so as to connect the electronic home device 10 and the server 13; the server 13 includes an OTA upgrading unit 14, and the OTA upgrading unit 14 is configured to perform OTA upgrading on the WiFi module 11 of the electronic home device 10; the control terminal 15 is provided with a control application corresponding to the electronic home equipment 10.
When upgrading the WiFi module 11 of the electronic home device 10, it may be which server the WiFi module is connected to, and the WiFi module is upgraded by using the OTA upgrading unit on the server, however, on the server corresponding to each large manufacturer, the respective OTA upgrading unit is generally managed by adopting its own software version management specification, and on the public server, the management specification of another OTA upgrading unit is adopted, so that the management specification of the OTA upgrading unit on each server is different, the WiFi versions maintained by the OTA upgrading units in different servers are different, and the upgrading logic is different, and if the electronic home device still adopts the OTA upgrading unit deployed in the accessed server to perform the OTA upgrading of the WiFi module, the upgrading logic and the software version of the WiFi module of the electronic home device are disordered in the upgrading process.
The embodiment of the invention provides an OTA upgrading scheme of electronic home equipment, which is characterized in that an OTA upgrading unit for OTA upgrading a WiFi module in the electronic home equipment is deployed on a specific server, so that OTA upgrading management specifications are unified, and further 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 the server according to the acquired access configuration information; the electronic home equipment judges whether the server accessed by the WiFi module is a target server or not, and 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 accesses the target server according to preset access configuration information of the target server; then, the electronic home equipment reports version information of a 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 version information stored in an OTA 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, an OTA upgrading instruction is sent to the electronic home equipment; and after the electronic home equipment receives the OTA upgrading instruction sent by the target server, executing OTA upgrading operation according to the OTA upgrading instruction.
According to the scheme, the electronic home equipment can be accessed to the server according to the acquired access configuration information for configuring the access server of the electronic home equipment, then the target server is accessed according to the preset access configuration information of the target server when the accessed server is determined not to be the target server, so that on the basis of not increasing hardware cost investment, the OTA upgrading of the WiFi module in the electronic home equipment is unified to the target server, namely, the OTA upgrading unit for carrying out OTA upgrading on the WiFi module in the electronic home equipment is deployed on the target server, and therefore the same OTA upgrading management standard can be adopted when the electronic home equipment carries out OTA upgrading on the WiFi module in the electronic home equipment, and the problem of disordered upgrading logic and software version of the WiFi module of the electronic home equipment after the WiFi module is upgraded when the WiFi module carries out OTA upgrading through the OTA upgrading unit in the accessed server is solved.
The following describes an electronic home equipment control system according to an embodiment of the present invention with reference to the accompanying drawings. As shown in fig. 2, a network topology diagram of an OTA upgrade scheme of a WiFi module 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 the gateway device (i.e., the WiFi router 12), so as to connect the electronic home device 10 and the server 13; the OTA upgrading unit 14 is configured to perform OTA upgrading on the WiFi module 11 of the electronic home device 10; the control terminal 15 is provided with a control application corresponding to the electronic home equipment 10.
In some exemplary embodiments, the server 13 may be a separate physical server, or may be a server cluster, and 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 may be one server in the server cluster.
Referring to fig. 2, in the embodiment of the present invention, an OTA upgrade unit 14 for performing OTA upgrade on a WiFi module 11 in an electronic home device 10 is uniformly deployed inside a specific server 13, and in the embodiment of the present invention, in order to facilitate description of a solution, the specific server 13 deployed with the OTA upgrade unit is denoted as a target server. When the WiFi module 11 supporting multiple servers 13 configured by the electronic home device 10 performs OTA upgrade, no matter which server 13 the electronic home device 10 accesses, the electronic home device needs to access the target server according to the access configuration information of the preset target server, so that the 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, in order to facilitate description of the scheme deployment, the OTA upgrading unit 14 is regarded as being deployed in the server 13. However, in the embodiment of the present invention, the application scenario in which the OTA upgrading unit 14 is deployed in the server 13 is not limited.
In some embodiments, after the electronic home equipment is started, the WiFi module may be started according to a received control instruction triggered by the user on a control terminal corresponding to the electronic home equipment; and the WiFi module can be started according to the received corresponding operation executed by the user on the display screen of the electronic household equipment.
Specifically, after the electronic home equipment is started, a WiFi module is started, the WiFi module acquires network configuration information for representing the network state from a local memory, and the network configuration information can be pre-stored in the electronic home equipment or can be stored in the local memory based on the network configuration information in a network allocation instruction of the last time of a user; wherein, the network configuration information indicates the network state of the electronic home device, including but not limited to: the electronic home equipment is in a network to be distributed state, and the electronic home equipment is in a non-network distribution state;
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 configuration information is in a distribution network state or not; for example, when the network configuration information includes "0", it indicates that the electronic home device is in a non-configured state; when the network configuration information contains 1, the electronic home equipment is in a network state to be allocated.
It should be noted that, when the network configuration information includes identification information indicating that the electronic home device is in a to-be-configured network state, the network configuration information may further include at least one or more of the following information: SSID of network to be accessed, authentication information and identification information of server to be accessed;
in the embodiment of the invention, the corresponding relation between the identification information of the server and the access configuration information of the server can be preset, and the corresponding relation is pre-stored in the local memory of the electronic home equipment, so that the electronic home equipment can determine the access configuration information corresponding to the identification information of the server contained in the network configuration information according to the corresponding relation between the preset identification information of the server and the access configuration information of the server after acquiring the network configuration information, thereby acquiring the access configuration information of the corresponding server.
The following description is directed to different network states of the electronic home device.
1. The electronic home equipment is in a network waiting state.
In some embodiments, the network configuration information obtained by the electronic home device indicates that the WiFi module in the electronic home device is in a network state to be configured, and the electronic home device accesses to the network according to the network configuration information;
The network configuration information at least comprises the SSID of the network to be accessed, the identity verification information and the identification information of the server.
In an optional mode, after the electronic home equipment is started, network configuration information is obtained from a local memory, and the network is accessed according to the SSID and the identity authentication 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 the implementation, the electronic home equipment determines access configuration information corresponding to the identification information of the server contained in the network configuration information, takes 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 which the electronic home equipment needs to access, and stores the access configuration information in a local memory of the electronic home equipment.
Optionally, the electronic home device determines 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 the 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 the corresponding relation 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.
Because the network configuration information and the access configuration information both contain the identification information of the server, 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 obtained identification information of the server contained in the 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-network-matched state.
In some embodiments, the network configuration information obtained by the electronic home device indicates that the WiFi module in the electronic home device is in a non-network configuration state, and then the electronic home device further obtains access configuration information for configuring an access server of the electronic home device.
Specifically, if the electronic home device accesses the server, the electronic home device stores the access configuration information of the corresponding access server in the local memory, and the electronic home device can acquire the access configuration information of the access server from the local memory, and uses the acquired access configuration information as the access configuration information of the server to which the electronic home device needs 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 monitors a network allocation instruction triggered by a user in a serial port polling mode.
In some embodiments, when the electronic home device receives a network allocation instruction triggered by a user, the electronic home device accesses a network according to network configuration information contained in the received network allocation instruction, and uses 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 device needs to access;
in the implementation, the network allocation 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 the SSID of a network to be accessed, identity verification information and identification information of a server;
in implementation, the electronic home device determines 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 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 relation 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 corresponding relation between the preset identification information of the server and the access configuration information of the server can be stored in the WiFi module of the electronic home equipment in advance.
In some embodiments, after the electronic home device obtains access configuration information for configuring a WiFi module of the electronic home device to access a server, the electronic home device accesses the corresponding server according to the obtained access configuration information.
For example, referring to fig. 3, an electronic home device is taken as an example of an intelligent washing machine.
Assuming that the server 1 is a target server, the identification information of the target server is "1", the identification information of the server 2 is "2", and the identification information of the server 3 is "3".
It is also assumed 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 the correspondence between the preset 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 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, the electronic home equipment judges whether the accessed server is a target server or not according to the acquired access configuration information of the accessed server after accessing the server; the target server is a preset server comprising an OTA upgrading unit, and the OTA upgrading unit is used for carrying out OTA upgrading on a WiFi module in the electronic home equipment.
In the implementation, the electronic home equipment can judge whether the accessed server is the target server or not in a mode of comparing the acquired access configuration information with the access configuration information of the preset target server; if the acquired access configuration information is different from the access configuration information of the preset target server, the server accessed by the electronic home equipment is not the target server, and if the acquired access configuration information is the same as the access configuration information of the preset target server, the server accessed by the electronic home equipment is the target server; the following description will be made for different cases:
In the first case, the server accessed by the electronic home equipment is a target server.
In the 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 version information of the WiFi module is different from the version information stored in the local OTA upgrading unit, an OTA upgrading instruction is sent 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 the implementation, an OTA upgrading instruction sent by the target server to the 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 performs OTA upgrading; after the OTA is upgraded, the WiFi module can be restarted automatically, 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 accessed to the target server, connection can be established between the accessed target server and the control terminal, after the connection between the electronic home equipment and the control terminal is established, the control terminal responds to the operation triggered by the 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, a state feedback message for feeding back the processing operation executed by the electronic home equipment is sent to a target server through a WiFi module and a WiFi router, the target server sends the state feedback message 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 of an electronic home device according to an embodiment of the present invention includes the following steps:
step S401, after the electronic home equipment is started, access configuration information for configuring an access server of the electronic home equipment is obtained.
Step S402, the electronic home equipment accesses the server according to the acquired access configuration information.
Step S403, the electronic home equipment determines that the accessed server is a target server.
And step S404, the electronic home equipment reports version information of the WiFi module of the electronic home equipment to the target server.
And step 405, comparing 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 by the target server.
In step S406, if the target server determines that the version information of the WiFi module reported by the electronic home device is different from the version information stored in the OTA upgrading unit, the target server sends an OTA upgrading instruction to the electronic home device.
Step 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;
the control instruction is sent to the target server after the control terminal responds to the operation triggered by the user.
Step S409, the electronic home equipment executes corresponding operation according to the received control instruction sent by the target server.
Step S410, the electronic home device sends a status feedback message for feeding back the processing operation performed by the electronic home device to the target server.
It should be noted that, the execution sequence of steps 403 to 407 and steps 408 to 410 in the embodiment of the present invention is not limited, and steps 403 to 407 may be executed first, or steps 408 to 410 may be executed first, or steps 403 to 407 and steps 408 to 410 may be executed simultaneously.
And in the second case, 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 the second case, the electronic home device establishes a connection with two servers:
the method comprises the steps that firstly, the electronic home equipment is connected with a server corresponding to the acquired access configuration information;
the server accessed by the electronic home equipment according to the acquired access configuration information is called as a configuration server in the following description;
in the embodiment of the invention, after the electronic home equipment is accessed to the configuration server, connection can be established between the configuration server and the control terminal through the accessed configuration server, after the connection between the electronic home equipment and the control terminal is established, the control terminal responds to the operation triggered by the 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, a WiFi module and a WiFi router send a state feedback message for feeding back the processing operation executed by the electronic home equipment to a configuration server, the configuration server sends the state feedback message 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.
Secondly, the connection between the electronic home equipment and the target server is established;
and after the electronic home equipment is accessed to the target server, reporting version information of the 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 stored in the OTA upgrading unit;
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, an OTA upgrading instruction is sent 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 the implementation, an OTA upgrading instruction sent by the target server to the 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 performs OTA upgrading; after the OTA is upgraded, the WiFi module can be restarted automatically, 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 equipment, and the control instruction issued by the user to the electronic home equipment through the control terminal is issued through the server which is accessed by the electronic home equipment first, namely, the control instruction issued to the electronic home equipment through the configuration server; and the electronic home equipment sends a state feedback message for feeding back the processing operation executed by the electronic home equipment to the configuration server.
As shown in fig. 5, an OTA upgrading method of an electronic home device according to an embodiment of the present invention includes the following steps:
step S501, after the electronic home device is started, access configuration information for configuring an access server of the electronic home device is obtained.
Step S502, the electronic home equipment accesses the configuration server according to the acquired access configuration information.
In step S503, the electronic home device determines that the accessed configuration server is not the target server.
Step S504, the electronic home equipment accesses the target server according to the preset access configuration information of the target server.
Step S505, the electronic home equipment reports version information of a WiFi module of the electronic home equipment to the target server.
And 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.
Step S507, 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, an OTA upgrading instruction is sent to the electronic home equipment.
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.
Step S510, the electronic home equipment executes corresponding operation according to the received control instruction sent by the configuration server.
Step S511, the electronic home equipment sends a state feedback message for feeding back the processing operation executed by the electronic home equipment to the configuration server.
The order of execution of steps 503 to 508 and steps 509 to 511 is not limited, and steps 503 to 508 may be executed first, steps 509 to 511 may be executed first, or steps 503 to 508 and steps 509 to 511 may be executed simultaneously.
As shown in fig. 6, an embodiment of the present invention provides an OTA upgrading method of an electronic home device, applied to an electronic home device side, including the following steps:
step S601: after the electronic home equipment is started, access configuration information for configuring an access server of the electronic home equipment is obtained, and the electronic home equipment is accessed to 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 carrying out 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 accesses the target server according to the preset access configuration information of the target server; version information of a WiFi module of the electronic home equipment is reported to the target server, and after an OTA upgrading instruction returned by the target server is received, OTA upgrading operation is executed according to the OTA upgrading instruction; and the OTA upgrading instruction is returned after the target server determines that the WiFi module of the electronic home equipment needs to be subjected to OTA upgrading 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 access server of the electronic home device, the method further includes:
the electronic home equipment acquires network configuration information for representing the network state of the electronic home equipment;
the electronic home equipment obtains access configuration information for configuring the access server of the electronic home equipment, and the method comprises the following steps:
if the network configuration information indicates that the electronic home equipment is in a network state to be configured, the electronic home equipment is accessed to a network according to the network configuration information; the access configuration information corresponding to the identification information of the server contained in the network configuration information is used as the access configuration information of the server which the electronic home equipment needs to access;
if the network configuration information indicates that the electronic home equipment is in a non-network configuration state, the electronic home equipment acquires stored access configuration information of the server from a memory and uses the access configuration information as the access configuration information of the server to be accessed by the electronic home equipment.
Optionally, the method further comprises:
if the electronic home equipment does not acquire the access configuration information for configuring the access server of the electronic home equipment, the electronic home equipment monitors a network allocation instruction triggered by a user in a serial port polling mode;
After receiving the network allocation instruction, the electronic home equipment accesses a network according to network configuration information contained in the network allocation instruction, and takes 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.
Optionally, the electronic home device uses 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 be accessed, including:
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 relation 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 a server which the electronic home equipment needs to access.
Optionally, 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 the 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 version information of a WiFi module of the electronic home equipment to the target server, and after receiving an OTA upgrading instruction returned by the target server, OTA upgrading operation is executed according to the OTA upgrading instruction.
As shown in fig. 7, an embodiment of the present invention provides an OTA upgrading method of an electronic home device, applied to a server side, including 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 version information of the WiFi module stored in an OTA upgrading unit of the server; the OTA upgrading unit is used for carrying out OTA upgrading on the 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 WiFi module of the electronic home equipment needs to be subjected to OTA upgrading, and sends an OTA upgrading instruction to the electronic home equipment, so that the electronic home equipment can carry out OTA upgrading on the WiFi module in the electronic home equipment according to the OTA upgrading instruction.
Based on the same inventive concept, the embodiment of the invention also provides an electronic home device, as shown in fig. 8, which comprises a processor 801 and a WiFi module 802;
the processor 801 is configured to obtain access configuration information for configuring the WiFi module 802 to access a server after the electronic home device is started, and transmit the obtained access configuration information to the WiFi module 802; if the server to which the WiFi module 802 is connected is not a target server, the processor 701 transmits access configuration information of a preset target server to the WiFi module 802; and, performing an OTA upgrade operation according to the OTA upgrade instruction transmitted by the WiFi module 802; the target server is a preset server comprising an OTA upgrading unit, and the OTA upgrading unit is used for carrying out OTA upgrading on the 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 version information of the WiFi module 802 to the target server; after receiving an OTA upgrade instruction returned by the target server, transmitting the OTA upgrade instruction to the processor 801;
the target server is a preset server including an OTA upgrading unit, and the OTA upgrading unit is configured to perform OTA upgrading on the WiFi module 802 in the electronic home device; the OTA upgrade instruction is that the target server determines that the WiFi module 802 needs to be returned after OTA upgrade according to the reported version information of the WiFi module 802.
Optionally, the processor 801 is further configured to obtain network configuration information for indicating a network state of the WiFi module 802 before obtaining access configuration information for configuring an access server of the WiFi module 802; if the network configuration information indicates that the WiFi module 802 is in a to-be-configured network state, the processor 801 transmits the network configuration information to the WiFi module 802; and 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 be accessed by the WiFi module 802; if the network configuration information indicates that the WiFi module 802 is in a non-configured network state, the processor 801 will acquire stored access configuration information from the memory, and use the access configuration information as access configuration information of a server to which the WiFi module 802 needs to be accessed;
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 network allocation instruction triggered by a user in a serial port polling manner if access configuration information for configuring the access server of the electronic home device is not obtained; after receiving the network allocation instruction, accessing a network through the WiFi module 802 according to network configuration information contained in the network allocation instruction; and 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 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 correspondence between preset identification information of the server and access configuration information of the server, access configuration information corresponding to the identification information included in the network configuration information; and taking the access configuration information corresponding to the identification information contained in the network configuration information as the access configuration information of the server which the electronic home equipment needs to access.
Optionally, the processor 801 is further configured to transmit status information of the electronic home device to the WiFi module after accessing the server according to the acquired access configuration information; and receiving a control instruction transmitted by the WiFi module 802 and issued by the accessed server, and executing 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, after accessing the server according to the acquired access configuration information, if the server accessed by the electronic home device is a target server, the processor 801 is further configured to transmit version information of a WiFi module of the electronic home device to the WiFi module 802; receiving an OTA upgrade instruction returned by the target server and transmitted by the WiFi module 802, and executing OTA upgrade operation according to the OTA upgrade instruction;
the WiFi module 802 is further configured to receive version information of the WiFi module 802 of the electronic home device, which is transmitted by the processor, and report the version information of the WiFi module to the target server; and receiving an OTA upgrade instruction returned by the target server, and transmitting the OTA upgrade 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 upgrade unit 901 and a transceiver unit 902;
the OTA upgrading unit 901 is configured to receive version information of a WiFi module reported by the electronic home device and transmitted by the transceiver unit, and obtain 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 an OTA upgrade needs to be performed on the WiFi module of the electronic home device, and transmitting an OTA upgrade instruction to the transceiver unit 902;
the transceiver unit 902 is configured to receive version information of a WiFi module of the electronic home device, where the version information 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 the WiFi module in the electronic home equipment according to the OTA upgrading instruction.
As shown in fig. 10, an OTA upgrading device for an electronic home device includes:
the acquiring module 1001 is configured to acquire 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 acquired access configuration information; the target server is a preset server comprising an OTA upgrading unit, and the OTA upgrading unit is used for carrying out OTA upgrading on the WiFi module in the electronic home equipment;
A reporting module 1002, configured to access the target server according to preset access configuration information of the target server if the server accessed by the electronic home device is not the target server; reporting version information of a 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; the target server is a preset server comprising an OTA upgrading unit, and the OTA upgrading unit is used for carrying out OTA upgrading on a WiFi module in the electronic home equipment; and the OTA upgrading instruction is that the target server determines that the WiFi module of the electronic home equipment needs to be returned after OTA upgrading according to the version information of the WiFi module reported by the electronic home equipment.
Optionally, before acquiring the access configuration information for configuring the access server of the electronic home device, the acquiring module 1001 is further configured to:
acquiring network configuration information for representing the network state of the electronic home equipment;
in the step of obtaining the access configuration information for configuring the access server of the electronic home device, the obtaining module 1001 is specifically configured to:
If the network configuration information indicates that the electronic home equipment is in a network state to be configured, accessing a network according to the network configuration information; the access configuration information corresponding to the identification information of the server contained in the network configuration information is used as the access configuration information of the server which the electronic home equipment needs to access;
if the network configuration information indicates that the electronic home equipment is in a non-network configuration state, the stored access configuration information of the server is obtained from the memory and is used as the access configuration information of the server which the electronic home equipment needs to access.
Optionally, the obtaining module 1001 is further configured to:
if the access configuration information for configuring the access server of the electronic home equipment is not obtained, monitoring a network allocation instruction triggered by a user in a serial port polling mode; and after receiving the network allocation instruction, accessing to a network according to network configuration information contained in the network allocation instruction, and taking 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 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 relation 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 the electronic home equipment needs to access.
Optionally, after accessing the server according to the acquired access configuration information, the reporting module 1002 is further configured to:
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:
if the server accessed by the electronic home equipment is a target server, the version information of the WiFi module of the electronic home equipment is directly reported to the target server, and after an OTA upgrading instruction returned by the target server is received, OTA upgrading operation is executed according to the OTA upgrading instruction.
As shown in fig. 11, an OTA upgrading device 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 obtain version information of the WiFi module stored in the OTA upgrading unit; the OTA upgrading unit is used for carrying out OTA upgrading on the WiFi module in the electronic home equipment;
and the sending module 1102 is configured to determine that an 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 an OTA upgrade on the WiFi module in the electronic home device according to the OTA upgrade instruction.
The embodiment of the application also provides a computer readable storage medium, wherein the computer storage medium stores computer program instructions, and when the instructions run on a computer, the computer is caused to execute the steps of the OTA upgrading method of the electronic home equipment.
It will be appreciated by those skilled in the art that 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 the like) 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 flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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 modifications and variations can be made to the present application without departing from the spirit or scope of the application. Thus, it is intended that the present application also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

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 access 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 access configuration information of a preset target server to the WiFi module; and executing 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 carrying out 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 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 that the target server determines that the WiFi module needs to be subjected to OTA upgrading and then returns the WiFi module 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 obtain network configuration information representing a network state of the WiFi module prior to obtaining access configuration information for configuring the WiFi module access server; if the network configuration information indicates that the WiFi module is in a network state to be configured, the processor transmits the network configuration information to the WiFi module; the access configuration information corresponding to the identification information of the server contained in the network configuration information is used as the access configuration information of the server which the WiFi module needs to access; if the network configuration information indicates that the WiFi module is in a non-distribution network state, the processor acquires stored access configuration information from a memory to serve as access configuration information of a 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 of claim 1, wherein the processor is configured to monitor a user-triggered network allocation instruction by means of serial port polling if access configuration information for configuring the electronic home device access server is not obtained; after receiving the network allocation instruction, accessing a network through the WiFi module according to network configuration information contained in the network allocation instruction; and 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 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 correspondence between preset identification information of the server and access configuration information of the server; and taking the access configuration information corresponding to the identification information contained in the network configuration information as the access configuration information of the server which the electronic home equipment needs to access.
5. The electronic home device of 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 transmitted 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 device of claim 1, wherein the processor is further configured to, after accessing the 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 to which the electronic home device is accessed is a target server; receiving an OTA upgrading instruction returned by the target server and transmitted by the WiFi module, and executing OTA upgrading operation according to the OTA upgrading instruction;
The WiFi module is further configured to receive version information of the WiFi module of the electronic home equipment, which is transmitted by the processor, and report the version information of the WiFi module to the target server; and receiving an OTA upgrade instruction returned by the target server and transmitting the OTA upgrade instruction to the processor.
7. The server is characterized by comprising a receiving and transmitting unit and an OTA upgrading unit;
the OTA upgrading unit is configured to receive the version information of the WiFi module, which is reported by the electronic home equipment and transmitted by the receiving and transmitting 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 the WiFi module of the electronic home equipment needs to be subjected to OTA upgrading, and transmitting an OTA upgrading instruction to the receiving and transmitting unit;
the receiving and transmitting unit is configured to receive version information of a WiFi module of the electronic home equipment, which is reported by the electronic home equipment; and sending the OTA upgrading instruction transmitted by the OTA upgrading unit to the electronic household equipment, so that the electronic household equipment performs OTA upgrading on the WiFi module in the electronic household equipment according to the OTA upgrading instruction.
8. An OTA upgrading method for a space downloading technology of electronic home equipment is characterized by comprising the following steps:
after the electronic home equipment is started, access configuration information for configuring an access server of the electronic home equipment is obtained, and the electronic home equipment is accessed to 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 carrying out 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 accesses the target server according to preset access configuration information of the target server; reporting version information of a 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; and the OTA upgrading instruction is that the target server determines that the WiFi module of the electronic home equipment needs to be returned after OTA upgrading according to the version information of the WiFi module reported by the electronic home equipment.
9. The method of claim 8, further comprising, prior to the electronic home device obtaining access configuration information for configuring the electronic home device access server:
The electronic home equipment acquires network configuration information for representing the network state of the electronic home equipment;
the electronic home equipment obtains access configuration information for configuring the access server of the electronic home equipment, and the method comprises the following steps:
if the network configuration information indicates that the electronic home equipment is in a network state to be configured, the electronic home equipment is accessed to a network according to the network configuration information; the access configuration information corresponding to the identification information of the server contained in the network configuration information is used as the access configuration information of the server which the electronic home equipment needs to access;
if the network configuration information indicates that the electronic home equipment is in a non-network configuration state, the electronic home equipment acquires stored access configuration information of the server from a memory and uses the access configuration information as the access configuration information of the server to be accessed by the electronic home equipment.
10. An OTA upgrading method for a space downloading technology 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 version information of the WiFi module stored in an OTA upgrading unit of the server; the OTA upgrading unit is used for carrying out OTA upgrading on the 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 WiFi module of the electronic home equipment needs to be subjected to OTA upgrading, 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 CN115378750A (en) 2022-11-22
CN115378750B true 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 (12)

* 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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8473325B2 (en) * 2007-10-12 2013-06-25 Pie Digital, Inc. System and method for automatic configuration and management of home network devices using a hierarchical index model

Patent Citations (12)

* 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
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)》.2015,全文. *
秦利红 ; 秦会斌 ; 诸坚彬 ; 曹曙光 ; .基于Android平台智能家居客户端的设计与实现.计算机应用与软件.2016,(09),全文. *

Also Published As

Publication number Publication date
CN115378750A (en) 2022-11-22

Similar Documents

Publication Publication Date Title
CN109600252B (en) Equipment network distribution method and device and household electrical appliance
JP2016220531A (en) Systems and methods for configuring power distribution unit
US20060230128A1 (en) Method and apparatus interfacing for controlling a device between an application and a library of a master on home network
CN110365704B (en) Equipment binding method and device and electronic equipment
WO2019020171A1 (en) Method, system and options for multi-operator service life cycle management
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
US20060161893A1 (en) Method and apparatus interfacing between an application and a library of a master for network managing
CN111934904B (en) Capacity expansion method, controller and system
CN107968725B (en) Method and device for returning and configuring configuration information of home gateway unit type terminal device
CN105827496B (en) Manage the method and device of PE equipment
TWI482461B (en) Device management system and method
CN104253792A (en) Substrate management controller virtual system and method
CN115378750B (en) OTA upgrading method and equipment for electronic home equipment
CN112073555A (en) Method for configuring IP address, electronic device and computer readable storage medium
CN109525417B (en) Household appliance access method based on internet access, household appliance controller and storage medium
KR20070117585A (en) Method of configuring network profile of network system
CN110505075B (en) Device management method and related device
CN103873284A (en) Equipment management system and method
CN114338383A (en) Simplified configuration method and system for video equipment
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
CN109661010A (en) Method for network access control and device
CN114697345B (en) Information updating method and device, storage medium and electronic device
CN113938332B (en) Control method and communication device

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
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.

GR01 Patent grant
GR01 Patent grant