CN113552808A - Network distribution method for electronic home equipment, electronic home equipment and mobile terminal - Google Patents

Network distribution method for electronic home equipment, electronic home equipment and mobile terminal Download PDF

Info

Publication number
CN113552808A
CN113552808A CN202010326055.7A CN202010326055A CN113552808A CN 113552808 A CN113552808 A CN 113552808A CN 202010326055 A CN202010326055 A CN 202010326055A CN 113552808 A CN113552808 A CN 113552808A
Authority
CN
China
Prior art keywords
network
mobile terminal
electronic home
home equipment
target network
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.)
Pending
Application number
CN202010326055.7A
Other languages
Chinese (zh)
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 Group Co Ltd
Hisense Mobile Communications Technology Co Ltd
Hisense Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
Hisense 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 Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN202010326055.7A priority Critical patent/CN113552808A/en
Publication of CN113552808A publication Critical patent/CN113552808A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2642Domotique, domestic, home control, automation, smart house
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a network distribution method for electronic home equipment, the electronic home equipment and a mobile terminal, which are used for solving the problem of low success rate when a network is distributed for the electronic home equipment at present. When the electronic home equipment is initially accessed to a network, starting a hot spot of a WiFi module, and establishing connection with a mobile terminal through the hot spot; the method comprises the steps that the electronic home equipment performs network scanning after receiving a scanning instruction sent by a mobile terminal, and sends at least one scanned available candidate network to the mobile terminal, so that the mobile terminal selects a target network from the at least one available candidate network; the electronic home equipment receives configuration information of a target network sent by the mobile terminal and accesses the target network according to the received configuration information. The candidate network is obtained by scanning the electronic home equipment, and the target network accessed according to the configuration information of the target network selected from the candidate network is an available network of the electronic home equipment, so that the success rate of the distribution network is improved.

Description

Network distribution method for electronic home equipment, electronic home equipment and mobile terminal
Technical Field
The invention relates to the technical field of internet of things, in particular to a network distribution method for electronic home equipment, the electronic home equipment and a mobile terminal.
Background
The intelligent home is embodied in an internet of things manner under the influence of the internet. The intelligent home is connected with various electronic home devices in the home, such as audio and video devices, lighting devices, curtains, air conditioners and the like, through the Internet of things technology, and provides multiple functions and means such as home appliance control, lighting control, indoor and outdoor remote control, heating and ventilation control, programmable timing control and the like.
The premise that the electronic home equipment is controlled through the application program installed on the mobile terminal is that a binding relation is established among the electronic home equipment, the cloud server and the mobile terminal application program, and a user sends a control instruction to the cloud server through the application program installed on the mobile terminal to control the electronic home equipment. Generally, the electronic home equipment is connected with the cloud server through the internet of things WiFi module, the electronic home equipment is connected with the access network and then connected with the cloud server, connection between the electronic home equipment and the cloud server is achieved, the network to which the electronic home equipment is connected is determined, and the process of connecting the electronic home equipment to the network is the process of distributing the network.
At present, when a network is distributed for electronic home equipment, a mobile terminal sends configuration information of a currently accessed network to the electronic home equipment, the electronic home equipment accesses the network accessed by the mobile terminal according to the received configuration information, and if the network connected with the mobile terminal is not matched with the electronic home equipment, the network distribution failure of the electronic home equipment is caused, so that the success rate of the current network distribution scheme for the electronic home equipment is low.
Disclosure of Invention
The invention provides a network distribution method for electronic home equipment, the electronic home equipment and a mobile terminal, and aims to solve the problem of low success rate when a network is distributed for the electronic home equipment at present.
According to a first aspect of the exemplary embodiments, there is provided an electronic home device network distribution method, including:
when the electronic home equipment is initially accessed to a network, starting a hotspot of the WiFi module, and establishing connection with the mobile terminal through the hotspot;
the electronic home equipment performs network scanning after receiving a scanning instruction sent by the mobile terminal, and sends at least one scanned available candidate network to the mobile terminal, so that the mobile terminal selects a target network from the at least one available candidate network;
and the electronic home equipment receives the configuration information of the target network sent by the mobile terminal and accesses the target network according to the received configuration information.
In the embodiment of the invention, the connection is established with the mobile terminal through the hot spot of the WiFi module of the electronic home equipment, network scanning is carried out according to the scanning instruction sent by the mobile terminal, and the scanned available candidate network is sent to the mobile terminal, so that the mobile terminal selects the target network from the available candidate network, receives the configuration information of the target network sent by the mobile terminal, and accesses the target network according to the configuration information of the target network. In the embodiment of the invention, because the at least one available candidate network is obtained by scanning the electronic home equipment, and the scanned at least one candidate network is available for the electronic home equipment, the mobile terminal selects the target network from the at least one available candidate network and then sends the configuration information of the target network to the electronic home equipment, and the target network accessed by the electronic home equipment according to the configuration information is the available network of the electronic home equipment, the situation that the target network is a network with unmatched electronic home equipment can be avoided, and the success rate of the distribution network is high.
In some exemplary embodiments, the establishing, by the electronic home device, a connection with a mobile terminal through the hotspot includes:
the electronic home equipment receives first identity verification information which is sent by the mobile terminal and used for accessing the hotspot; the first identity authentication information is authentication information input by a user through a display interface of the mobile terminal;
and if the mobile terminal passes the identity verification according to the first identity verification information, the electronic home equipment allows the mobile terminal to access the hotspot and establishes a TCP link with the mobile terminal through the hotspot.
In the embodiment of the invention, when the electronic home equipment passes the identity verification of the mobile terminal according to the first identity verification information sent by the mobile terminal, the mobile terminal is allowed to access the hotspot, the TCP link between the electronic home equipment and the mobile terminal is established according to the hotspot, and the communication between the electronic home equipment and the mobile terminal is carried out through the TCP link.
In some exemplary embodiments, the receiving, by the electronic home device, the scan instruction sent by the mobile terminal according to the following manner includes:
the electronic home equipment receives a scanning instruction sent by the mobile terminal through the TCP link;
the method for sending the scanned at least one available candidate network to the mobile terminal by the electronic home equipment includes:
and the electronic home equipment sends the scanned at least one available candidate network to the mobile terminal through the TCP link.
In the embodiment of the invention, the electronic home equipment communicates with the mobile terminal through the TCP link, the electronic home equipment scans according to the scanning instruction sent by the mobile terminal, and at least one scanned available candidate network is sent to the mobile terminal through the TCP link. Because at least one available candidate network is scanned by the electronic home equipment, the target network electronic home equipment selected by the mobile terminal from the candidate networks is available, the condition that the network determined by the mobile terminal is the electronic home equipment cannot be accessed is avoided, and the success rate of the distribution network is improved.
In some exemplary embodiments, the accessing, by the electronic home device, the target network according to the received configuration information includes:
and the electronic home equipment accesses the target network according to the SSID corresponding to the target network in the configuration information and the second identity authentication information.
In the embodiment of the invention, the electronic home equipment is accessed to the target network according to the second identity authentication information in the received configuration information of the target network, so that the network distribution process is simple, and the network distribution efficiency is high.
According to a second aspect of the exemplary embodiments, there is provided an electronic home device network distribution method, including:
after detecting a hotspot of a WiFi module of the electronic home equipment, the mobile terminal establishes connection with the electronic home equipment through the hotspot; the hot spot of the WiFi module is started when the electronic home equipment is initially accessed to a network;
the mobile terminal sends a scanning instruction to the electronic home equipment and receives at least one scanned available candidate network returned by the electronic home equipment;
and the mobile terminal selects a target network from the at least one available candidate network and sends the configuration information of the target network to the electronic home equipment so that the electronic home equipment can access the target network according to the configuration information.
In some exemplary embodiments, the establishing, by the mobile terminal, a connection with the electronic home device through the hot spot includes:
the mobile terminal acquires first identity authentication information input by a user through a display interface;
the mobile terminal sends the first identity verification information to the electronic home equipment, so that the electronic home equipment allows the mobile terminal to access the hotspot when the mobile terminal passes the identity verification according to the first identity verification information;
and the mobile terminal establishes a TCP link with the electronic home equipment through the hot spot.
In some exemplary embodiments, the sending, by the mobile terminal, a scanning instruction to the electronic home device includes:
the mobile terminal sends the scanning instruction to the electronic home equipment through the TCP link;
the mobile terminal receives the scanned at least one available candidate network returned by the electronic home equipment, and the method comprises the following steps:
and the mobile terminal receives at least one scanned available candidate network returned by the electronic home equipment through the TCP link.
In some exemplary embodiments, the selecting, by the mobile terminal, a target network from the at least one available candidate network includes:
the mobile terminal shows the at least one available candidate network to a user;
and the mobile terminal responds to the operation of selecting the network by the user and takes the network selected by the user from the at least one available candidate network as the target network.
According to a third aspect of the exemplary embodiments, there is provided an electronic home device comprising a processor and a first WiFi module:
the first WiFi module is configured to receive a scanning instruction sent by a mobile terminal and transmit the scanning instruction to the processor; sending the at least one available candidate network scanned by the processor to the mobile terminal so that the mobile terminal selects a target network from the at least one available candidate network; receiving the configuration information of the target network returned by the mobile terminal;
the processor is configured to start a hotspot of the first WiFi module when initially accessing a network, and establish connection with a mobile terminal through the hotspot; after receiving a scanning instruction transmitted by the first WiFi module, network scanning is carried out, and at least one scanned available candidate network is transmitted to the first WiFi module; and accessing the target network according to the configuration information of the target network received by the first WiFi module.
In some exemplary embodiments, the first WiFi module is specifically configured to receive first authentication information sent by the mobile terminal for accessing the hotspot; the first identity authentication information is authentication information input by a user through a display interface of the mobile terminal;
the processor is configured to allow the mobile terminal to access the hotspot if the mobile terminal passes the authentication according to the first authentication information, and establish a TCP link with the mobile terminal through the hotspot.
In some exemplary embodiments, the first WiFi module is specifically configured to receive a scan instruction sent by the mobile terminal over the TCP link; and sending the scanned at least one available candidate network to the mobile terminal through the TCP link.
In some exemplary embodiments, in accessing the target network according to the received configuration information, the processor is configured to:
and accessing the target network according to the SSID corresponding to the target network in the configuration information and the second identity authentication information.
According to a fourth aspect of the exemplary embodiments there is provided a mobile terminal comprising a processor and a second WiFi module:
the second WiFi module is configured to send a scanning instruction to the electronic home equipment, receive at least one scanned available candidate network returned by the electronic home equipment and transmit the at least one available candidate network to the processor; sending configuration information of a target network selected from the at least one available candidate network by the processor to the electronic home equipment so that the electronic home equipment can access the target network according to the configuration information;
the processor is configured to establish connection with the electronic home equipment through a hotspot after the hotspot of a first WiFi module of the electronic home equipment is detected; after receiving at least one available candidate network transmitted by the second WiFi module, selecting a target network from the at least one available candidate network, and transmitting configuration information of the target network to the second WiFi module;
the hotspot of the first WiFi module is started when the electronic home equipment is initially accessed to a network.
In some exemplary embodiments, the processor is configured to acquire first authentication information input by a user through a display interface; after the electronic home equipment allows the mobile terminal to access the hotspot, a TCP link between the electronic home equipment and the electronic home equipment is established through the hotspot;
the second WiFi module is specifically configured to send the first authentication information to the electronic home device, so that the electronic home device allows the mobile terminal to access the hotspot when the mobile terminal is authenticated according to the first authentication information.
In some exemplary embodiments, the second WiFi module is specifically configured to:
sending the scanning instruction to the electronic home equipment through the TCP link;
and receiving at least one scanned available candidate network returned by the electronic home equipment through the TCP link.
In some exemplary embodiments, in choosing a target network from the at least one available candidate network, the processor is configured to:
presenting the at least one available candidate network to a user;
and responding to the operation of selecting the network by the user, and taking the network selected by the user from the at least one available candidate network as the target network.
According to a fifth aspect of exemplary embodiments, there is provided a computer storage medium having stored therein computer program instructions, which when run on a computer, cause the computer to execute the electronic home equipment network distribution method according to the first aspect.
According to a sixth aspect of the exemplary embodiments, there is provided a computer storage medium having stored therein computer program instructions, which when run on a computer, cause the computer to execute the electronic household equipment network distribution method according to the second aspect.
On the basis of the common knowledge in the field, the above preferred conditions can be combined randomly to obtain the preferred embodiments of the application.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic diagram of an optional application scenario provided in an embodiment of the present invention;
fig. 2 is a schematic interface diagram of a mobile terminal acquiring first authentication information according to an embodiment of the present invention;
FIG. 3 is a schematic interface diagram of a candidate network scan result according to an embodiment of the present invention;
fig. 4 is a schematic interface diagram of a mobile terminal acquiring second authentication information according to an embodiment of the present invention;
fig. 5 is an interface schematic diagram of a first display page showing success of a distribution network according to an embodiment of the present invention;
fig. 6 is an interface diagram of a second display page showing a distribution network failure according to an embodiment of the present invention;
fig. 7 is an interaction flowchart of a network distribution method for electronic home devices according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
fig. 9 is a schematic diagram of a software architecture of a mobile terminal according to an embodiment of the present invention;
fig. 10 is a schematic diagram of a user interface of a mobile terminal according to an embodiment of the present invention;
fig. 11 is a flowchart of a network distribution method for electronic home devices according to an embodiment of the present invention;
fig. 12 is a flowchart of a network distribution method for electronic home devices according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present application will be described in detail and removed with reference to the accompanying drawings. In the description of the embodiments herein, "/" means "or" unless otherwise specified, for example, a/B may mean a or B; "and/or" in the text is only an association relationship describing an associated object, and means that three relationships may exist, for example, a and/or B may mean: three cases of a alone, a and B both, and B alone exist, and in addition, "a plurality" means two or more than two in the description of the embodiments of the present application.
In the following, the terms "first", "second" are used for descriptive purposes only and are not to be understood as implying or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature, and in the description of embodiments of the application, unless stated otherwise, "plurality" means two or more.
Some terms appearing herein are explained below:
1. the term "application" in embodiments of the present invention is a computer program that performs one or more specific tasks, and has a visual display interface for interacting with a user.
2. The term WiFi module in the embodiment of the invention, also named as a serial port WiFi module, belongs to an Internet of things transmission layer, and has the function of converting a serial port or TTL level into an embedded module which accords with a WiFi wireless network communication standard. The traditional hardware equipment is embedded into a WiFi module, WiFi can be directly used for accessing To the Internet, and the system is an important component for realizing application of Internet of things such as wireless smart home, Machine-To-Machine (M2M) and the like.
3. In the embodiment of the present invention, the term "SSID", i.e., Service Set Identifier (SSID), may divide a wireless local area network into several sub-networks requiring different authentication, where each sub-network requires independent authentication, and only users passing authentication may enter the corresponding sub-network, so as to prevent unauthorized users from entering the local network.
4. In the embodiment of the present invention, the term "MAC address", i.e. a Medium Access Control (MAC) address, also referred to as a local area network address, an ethernet address or a physical address, 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 one or more network cards exist in a device, each network card needs to have a unique MAC address.
5. The term "flash memory" in the embodiments of the present invention refers to a flash memory (flash memory) which is a form of electrically erasable programmable read-only memory, allowing multiple erasing or writing operations.
Along with the development of the internet of things technology, electronic home equipment is gradually common, and great convenience is provided for the life of a user. The user controls the electronic home equipment through an application program installed on the mobile terminal, and the control is usually realized by connecting a cloud server. Before the electronic home equipment is connected with the cloud server, the gateway equipment, such as a router, needs to be accessed through the WiFi module of the electronic home equipment, so that the connection between the electronic home equipment and the cloud server is realized. And determining a network to be accessed by the electronic home equipment and a process of accessing the network as a network distribution process.
At present, a network for an electronic home device is usually connected with a WiFi module and a gateway device through frequent switching of a mobile terminal, and an optional implementation manner is that, taking an access router network as an example, the mobile terminal accesses a router of the network to be distributed, acquires configuration information of the network of the router, disconnects the connection with the router network, connects the electronic home device, and sends the acquired configuration information to the electronic home device; if the electronic home equipment fails to access the network, the mobile terminal is required to disconnect the electronic home equipment, reconnect the other router networks, acquire the configuration information of the other networks, disconnect the router networks, reconnect the electronic home equipment, and have a complex distribution network process and low distribution network efficiency. In the embodiment, the mobile terminal sends the configuration information of the currently accessed network to the electronic home equipment, and when the electronic home equipment accesses the network according to the received configuration information, if the network connected with the mobile terminal is not matched with the electronic home equipment, the network distribution failure of the mobile terminal equipment can be caused.
Based on the above problem, an embodiment of the present invention provides a network distribution system for electronic home devices, including: electronic home equipment, mobile terminal.
The electronic home equipment is used for starting a hotspot of the WiFi module when initially accessing a network and establishing connection with the mobile terminal through the hotspot; the method comprises the steps that the electronic home equipment performs network scanning after receiving a scanning instruction sent by a mobile terminal, and sends at least one scanned available candidate network to the mobile terminal, so that the mobile terminal selects a target network from the at least one available candidate network; the electronic home equipment receives configuration information of a target network sent by the mobile terminal and accesses the target network according to the received configuration information;
the mobile terminal is used for establishing connection with the electronic home equipment through the hot spot after the hot spot of the WiFi module of the electronic home equipment is detected; the mobile terminal sends a scanning instruction to the electronic home equipment and receives at least one scanned available candidate network returned by the electronic home equipment; the mobile terminal selects a target network from at least one available candidate network and sends the configuration information of the target network to the electronic home equipment, so that the electronic home equipment can access the target network according to the configuration information.
As shown in fig. 1, which is a schematic view of an optional application scenario provided in the embodiment of the present invention, an application program is installed in a mobile terminal 10, so that the mobile terminal 10 can control an electronic home device 11, in a network distribution process, the electronic home device 11 starts a hot spot of a WiFi module, and the mobile terminal 10 and the electronic home device 11 establish a connection through the hot spot of the WiFi module of the electronic home device 11, so as to perform communication between the mobile terminal 10 and the electronic home device 11. The mobile terminal 10 sends a scanning instruction to the electronic home equipment 11, the electronic home equipment 11 performs network scanning after receiving the scanning instruction, and sends at least one scanned available candidate network to the mobile terminal 10, the mobile terminal 10 selects a target network from the at least one available candidate network, and sends configuration information of the target network to the electronic home equipment 11; after receiving the configuration information of the target network, the electronic home equipment 11 accesses the target network according to the received configuration information of the target network.
The electronic home device 11 shown in fig. 1 is only an example and does not limit the scope of the present invention. When the electronic home equipment 11 performs network scanning, at least one available candidate network is scanned, for example, the candidate network scanned by the intelligent washing machine includes a candidate network 1 and a candidate network 2; the candidate networks scanned by the intelligent refrigerator comprise a candidate network 1 and a candidate network 2; the candidate networks scanned by the smart sound include candidate network 1, candidate network 2, and candidate network 3. In implementation, the electronic home devices 11 accessing the target network is one of available candidate networks scanned by the electronic home devices 11.
In the embodiment of the invention, the connection is established with the mobile terminal through the hot spot of the WiFi module of the electronic home equipment, network scanning is carried out according to the scanning instruction sent by the mobile terminal, and the scanned available candidate network is sent to the mobile terminal, so that the mobile terminal selects the target network from the available candidate network, receives the configuration information of the target network sent by the mobile terminal, and accesses the target network according to the configuration information of the target network. In the embodiment of the invention, because the at least one available candidate network is obtained by scanning the electronic home equipment, and the scanned at least one candidate network is available for the electronic home equipment, the mobile terminal selects the target network from the at least one available candidate network and then sends the configuration information of the target network to the electronic home equipment, and the target network accessed by the electronic home equipment according to the configuration information is the available network of the electronic home equipment, the situation that the target network is a network with unmatched electronic home equipment can be avoided, and the success rate of the distribution network is high.
In addition, in the network distribution method for the electronic home devices provided by the embodiment of the invention, the electronic home devices and the mobile terminals are connected through hot spots of WiFi modules of the electronic home devices, communication is carried out through connection between the mobile terminals and the electronic home devices in the network distribution process, the electronic home devices receive scanning instructions sent by the mobile terminals and send scanned available candidate networks to the mobile terminals, the configuration information of target networks determined by the mobile terminals according to the available candidate networks is received, the target networks are accessed according to the configuration information, the mobile terminals are connected with the electronic home devices only once before the network distribution is completed, the mobile terminals do not need to be frequently switched to be connected with the WiFi modules and gateway devices, the network distribution process is simple, and the network distribution efficiency is high.
Before the network distribution is performed on the electronic home equipment, it is required to determine that the electronic home equipment is initially accessed to the network and needs to perform the network distribution.
In the implementation, after the electronic home device is powered on, whether the configuration information of the network is stored in advance is first read, wherein whether the configuration information of the network exists can be read in a flash of the electronic home device. If the SSID and the authentication information are determined to be stored in advance, the fact that the electronic home equipment is accessed to the network before is determined, the electronic home equipment is not initially accessed to the network, the fact that the network is not required to be distributed to the electronic home equipment is determined, and the electronic home equipment is accessed to the network according to the stored SSID and the authentication information; if the configuration information of the network is not stored in advance, the fact that the electronic home equipment has not accessed the network before is determined, namely the electronic home equipment is initially accessed to the network, and the fact that the network needs to be distributed for the electronic home equipment is determined.
When the electronic home equipment is determined to be initially accessed to the network, the electronic home equipment enters a distribution network state, and a hotspot of the WiFi module is started.
In the implementation, the hotspot of the WiFi module of the electronic home equipment is a softAP hotspot, the electronic home equipment reads the identity identification of the softAP hotspot and the authentication information corresponding to the softAP hotspot in the flash, and the softAP hotspot of the WiFi module is started according to the identity identification and the authentication information of the softAP hotspot.
It should be noted that, in the embodiment of the present invention, the identity of the SoftAP hotspot is generated according to a preset naming rule according to the MAC address of the WiFi module of the electronic home device, and the preset naming rule is not specifically limited in the embodiment of the present invention. The identity identification and the identity verification information of the SoftAP hotspot can be fixedly stored in a storage area of the electronic home equipment.
For example, the identity identifier corresponding to the SoftAP hotspot read by the electronic home device to the WiFi module is "sunZZ", the authentication information is "123456", and the SoftAP hotspot of the WiFi module can be started by calling a function for starting the SoftAP hotspot, for example, calling a function in wlan.
After detecting the hot spot of the WiFi module of the electronic home equipment, the mobile terminal establishes connection with the electronic home equipment through the hot spot.
In an optional implementation mode, the mobile terminal acquires first identity verification information input by a user through a display interface; the first identity authentication information is sent to the electronic home equipment, the electronic home equipment receives the first identity authentication information which is sent by the mobile terminal and used for accessing the hot spot, and if the mobile terminal passes the identity authentication according to the first identity authentication information, the electronic home equipment allows the mobile terminal to access the hot spot; and a TCP link between the mobile terminal and the electronic home equipment is established through the hot spot.
Specifically, a user inputs first authentication information on a display interface of the mobile terminal, the mobile terminal sends the first authentication information to the electronic home equipment, the electronic home equipment determines that the first authentication information is the same as authentication information corresponding to a hotspot, the authentication information of the mobile terminal passes through, the mobile terminal is allowed to access the hotspot, and a TCP link between the mobile terminal and the electronic home equipment is established according to the hotspot.
In implementation, as shown in fig. 2, a user opens an application installed on a mobile terminal device, and when a SoftAP hotspot of a WiFi module is scanned, first authentication information is input in a display page of the application installed on the mobile terminal, where the user determines whether the application is the SoftAP hotspot of the WiFi module of the electronic home device to be networked according to an identity of the hotspot, the user may search the identity of the SoftAP hotspot of the WiFi module of the electronic home device and corresponding authentication information in a use specification of the electronic home device, and input the searched authentication information as the first authentication information on a display interface of the mobile terminal, that is, a position corresponding to "please input a password" shown in fig. 2.
The mobile terminal device sends the first authentication information to the electronic home device, the electronic home device compares the received first authentication information with the authentication information of the softAP hotspot, if the received first authentication information is determined to be the same as the authentication information of the softAP hotspot, the authentication of the mobile terminal is passed, and the mobile terminal is allowed to access the softAP hotspot of the WiFi module of the electronic home device. For example, if the first authentication information sent by the mobile terminal is "123456", and the authentication information of the SoftAP hotspot is "123456", the mobile terminal accesses the SoftAP hotspot of the WiFi module of the electronic home device.
In implementation, after the mobile terminal accesses the hotspot, a connection is established with the electronic home device through the hotspot, specifically, a TCP link between the mobile terminal and only the device may be established.
After the mobile terminal is accessed to the hotspot, the IP of the electronic home equipment is acquired, a TCP link establishment request is sent to the electronic home equipment according to the acquired IP, the electronic home equipment confirms the TCP link establishment request, and then the TCP link between the mobile terminal and the electronic home equipment is established. After the TCP link between the mobile terminal and the electronic home device is established, communication, such as data transmission, is performed through the TCP link.
After the connection between the mobile terminal and the electronic home equipment is established, the mobile terminal sends a scanning instruction to the electronic home equipment, and the electronic home equipment performs network scanning after receiving the scanning instruction and sends at least one scanned available candidate network to the mobile terminal.
In an optional implementation manner, the mobile terminal sends a scanning instruction to the electronic home equipment through a TCP link; and the electronic home equipment sends the scanned at least one available candidate network to the mobile terminal through a TCP link.
Specifically, the mobile terminal sends a scanning instruction to the electronic home equipment through the TCP link, after receiving the scanning instruction, the electronic home equipment performs network scanning, and sends the scanned at least one available candidate network to the mobile terminal through the TCP link, wherein the electronic home equipment sends the SSID of the scanned at least one available candidate network to the mobile terminal through the TCP link.
In implementation, after the mobile terminal establishes a TCP link with the electronic home device, the mobile terminal may automatically send a scanning instruction to the electronic home device to instruct the electronic home device to perform network scanning, the electronic home device scans available networks and sends SSIDs corresponding to the scanned available networks to the mobile terminal, the available networks scanned by the electronic home device include at least one candidate network, and the scanned available candidate networks are all networks connectable to the electronic home device.
For example, the electronic home device scans 4 available candidate networks respectively corresponding to the SSID1, the SSID2, the SSID3 and the SSID4, and the electronic home device sends the scanned available candidate networks to the mobile terminal through the TCP connection.
It should be noted that the available candidate networks scanned by the electronic home device may be represented by the identifiers of the routers, that is, the electronic home device sends the scanned identifiers of the accessible routers around to the mobile terminal.
And after receiving the at least one available candidate network, the mobile terminal selects a target network from the at least one available candidate network.
In an alternative embodiment, the mobile terminal presents at least one available candidate network to the user, and the mobile terminal responds to the operation of selecting a network by the user, and takes the network selected by the user from the at least one available candidate network as a target network.
Specifically, after the mobile terminal receives at least one available candidate network, the SSID of all the candidate networks is displayed to the user in a display interface of the mobile terminal, as shown in fig. 3, the mobile terminal displays the received identifier of the router to the user in the display interface. The user performs an operation of selecting a network in the display interface shown in fig. 3, specifically, the SSID of the network to be selected is clicked in the display interface, and the network corresponding to the SSID selected by the user is taken as the target network.
It should be noted that, in an actual process, if the SSID of the network that the user wants to select is not included in the SSIDs of the candidate networks sent to the mobile terminal by the electronic home equipment, the user may select to rescan in the display interface of the mobile terminal, the mobile terminal may resend the scanning instruction to the electronic home equipment through the TCP link, and the electronic home equipment resends network scanning according to the scanning instruction again, and sends the scanning result to the mobile terminal through the TCP link.
After the user selects the target network on the display interface of the mobile terminal, the mobile terminal enters the display interface for acquiring the second authentication information according to the operation of the user selecting the network, as shown in fig. 4. The second authentication information is authentication information required for accessing the target network selected by the user.
After the mobile terminal acquires second identity authentication information corresponding to a target network input by a user on a display interface of the second identity authentication information, the SSID corresponding to the target network is combined with the second identity authentication information to obtain configuration information of the target network containing the SSID corresponding to the target network and the second identity authentication information, and the configuration information of the target network is sent to the electronic home equipment through the TCP channel.
And the electronic home equipment accesses the target network according to the configuration information after receiving the configuration information of the target network sent by the mobile terminal.
An optional implementation manner is that the electronic home device accesses the target network according to the SSID corresponding to the target network in the configuration information and the second authentication information.
In implementation, after receiving the configuration information of the target network, the electronic home device analyzes the received configuration information to obtain an SSID in the configuration information and second authentication information, and accesses the target network corresponding to the SSID contained in the configuration information according to the second authentication information.
In the embodiment of the invention, when the electronic home equipment accesses the target network according to the second identity authentication information, the access may be successful or failed.
An optional implementation manner is that, if the electronic home device successfully accesses the target network, the configuration information of the target network is stored and a first notification message indicating that the distribution network is successful is sent to the mobile terminal through the TCP link; and if the electronic home equipment is not successfully accessed to the target network, sending a second notification message indicating that the distribution network fails to be connected to the mobile terminal through the TCP link.
Specifically, the electronic home equipment accesses a target network according to the second identity authentication information, and if the electronic home equipment is successfully accessed to the target router, a first notification message is sent to the mobile terminal through a TCP link, wherein the first notification message indicates that the distribution network is successful; and the electronic home equipment stores the configuration information of the target network, and the electronic home equipment is used for directly reading the stored configuration information to access the network after being powered on next time.
In implementation, after the electronic home equipment is successfully accessed to the target network, the configuration information of the target network is stored in the flash, and when the electronic home equipment is started next time, if the SSID and the second authentication information are determined to be stored in the flash, the stored SSID and the second authentication information are directly read, and the connection is performed according to the stored second authentication information and the network corresponding to the stored SSID.
In implementation, if the electronic home device is successfully accessed to the target network, after the first notification message is sent to the mobile terminal through the TCP link, the SoftAP hotspot of the WiFi module of the electronic home device may also be disconnected.
And if the access to the target network fails, sending a second notification message to the mobile terminal, wherein the second notification message indicates that the distribution network fails.
According to an optional implementation manner, the mobile terminal receives a first notification message which is sent by the electronic home equipment through a TCP link and represents that the distribution network is successful, and generates a first display page which represents that the distribution network is successful according to the first notification message and displays the first display page to a user;
in the implementation, if the mobile terminal receives the first notification message, a first display page is generated according to the first notification message, and a successful distribution network result is displayed to the user. For example, a first display page is shown in FIG. 5.
Another optional implementation manner is that the mobile terminal receives a second notification message which is sent by the electronic home device through a TCP link and indicates that the distribution network fails, and generates a second display page which indicates that the distribution network fails according to the second notification message and displays the second display page to the user.
In the implementation, if the mobile terminal receives the second notification message, a second display page is generated according to the second notification message, and a distribution network failure result is displayed to the user. The second display page can display the reason of the distribution network failure, such as password error or poor network state, to the user; and the second display page can display options of part of the control instructions for the user, so that the user can select the corresponding control instructions in the second display page to control the distribution network of the electronic home equipment in the next step.
For example, as shown in fig. 6, the control commands for presentation may include "rescan the connectable network", "cancel", "retry", and "re-enter password", etc. And selecting a corresponding control instruction on the second display page by the user, and controlling the distribution network of the electronic home equipment by the mobile terminal according to the control instruction selected by the user.
Supposing that when the control instruction selected by the user is 'rescan connectable network', the mobile terminal retransmits a scanning instruction to the electronic home equipment, the electronic home equipment performs network scanning again according to the received scanning instruction, and transmits available candidate networks which are rescanned to the mobile terminal;
or when the control instruction selected by the user is 'cancel', ending the network distribution for the electronic home equipment, and disconnecting the mobile terminal from the SoftAP hotspot of the WiFi module of the electronic home equipment;
or when the control instruction selected by the user is retry, the mobile terminal resends the previously acquired configuration information containing the SSID corresponding to the target network and the second authentication information to the electronic home equipment, and the electronic home equipment resends the access request to the target network according to the second authentication information after receiving the configuration information of the target network again; or the mobile terminal sends a retry instruction for instructing the electronic home equipment to re-access the target network to the electronic home equipment, and after receiving the retry instruction, the electronic home equipment initiates an access request to the target network again according to the previously received configuration information of the target network.
Or the second display page may further include a reason why the electronic home device fails to access the target network, and the user may select the control instruction according to the reason of the failure, for example, the reason why the connection fails is that the second authentication information is wrong, the user selects a "re-input password" control instruction according to the reason of the failure, and the mobile terminal enters the display interface for inputting the second authentication information shown in fig. 4 according to the control instruction selected by the user.
It should be noted that the control instruction shown in the second presentation page is only an example, and does not limit the scope of the embodiment of the present invention.
As shown in fig. 7, a complete flow chart of a network distribution method for electronic home devices in an embodiment of the present invention includes:
in step S701, the electronic home device is started, it is determined that there is no pre-stored network configuration information in the memory, and the network distribution state is entered;
in step S702, the electronic home device starts a SoftAP hotspot of the WiFi module;
in step S703, the mobile terminal sends first authentication information to the electronic home device to request access to the SoftAP hotspot;
in step S704, when the electronic home device passes the authentication of the mobile terminal according to the first authentication information, allowing the mobile terminal to access the SoftAP hotspot;
in step S705, the mobile terminal sends a TCP link establishment request to the electronic home device;
in step S706, the electronic home device responds to the TCP link establishment request, and establishes a TCP link with the mobile terminal;
in step S707, the mobile terminal sends a scanning instruction to the electronic home device through the TCP link;
in step S708, the electronic home device performs network scanning after receiving the scanning instruction;
in step S709, the electronic home device sends the scanned at least one available candidate network to the mobile terminal through a TCP link;
in step S710, the mobile terminal selects a target network from at least one available candidate network, and determines configuration information of the target network;
in step S711, the mobile terminal sends the configuration information of the target network to the electronic home device;
in step S712, the electronic home device accesses the target network according to the configuration information of the target network;
in step S713, if the electronic home device successfully accesses the target network, sending a first notification message to the mobile terminal and disconnecting the SoftAP hotspot, thereby completing the distribution of the network;
in step S714, the mobile terminal generates a first display interface according to the first notification message, and notifies the user that the distribution network is completed.
It should be noted that, the flow chart of the network distribution method for the electronic home devices shown in fig. 7 is described in terms of the successful access of the electronic home devices to the target network, and does not limit the protection scope of the embodiment of the present invention; if the electronic home equipment fails to access the target network, the network distribution of the electronic home equipment is carried out according to the solution of network distribution failure provided by the embodiment of the invention.
The present invention provides an example of a mobile terminal, as shown in fig. 8, which is a schematic structural diagram of a mobile terminal 800.
The following describes an embodiment specifically by taking the mobile terminal 800 as an example. It should be understood that the mobile terminal 800 shown in fig. 8 is merely an example, and that the mobile terminal 800 may have more or fewer components than shown in fig. 8, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
A block diagram of a hardware configuration of a mobile terminal 800 according to an exemplary embodiment is exemplarily shown in fig. 8. As shown in fig. 8, the mobile terminal 800 includes: radio Frequency (RF) circuitry 810, memory 820, display unit 830, camera 840, sensor 850, audio circuitry 860, Wireless Fidelity (Wi-Fi) module 870, processor 880, bluetooth module 881, and power supply 890.
The RF circuit 810 may be used for receiving and transmitting signals during information transmission and reception or during a call, and may receive downlink data of a base station and then deliver the received downlink data to the processor 880 for processing; the uplink data may be transmitted to the base station. Typically, the RF circuitry includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
Memory 820 may be used to store software programs and data. The processor 880 performs various functions of the mobile terminal 800 and data processing by executing software programs or data stored in the memory 820. The memory 820 may include high speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. The memory 820 stores an operating system that enables the mobile terminal 800 to operate. The memory 820 may store an operating system and various application programs, and may also store codes for performing the methods described in the embodiments of the present application.
The display unit 830 may be used to receive input numeric or character information and generate signal input related to user settings and function control of the mobile terminal 800, and particularly, the display unit 830 may include a touch screen 831 disposed on a front surface of the mobile terminal 800 and may collect touch operations of a user thereon or nearby, such as clicking a button, dragging a scroll box, and the like.
The display unit 830 may also be used to display information input by the user or information provided to the user and a Graphical User Interface (GUI) of various menus of the communication terminal 800. In particular, the display unit 830 may include a display screen 832 disposed on a front surface of the mobile terminal 800. The display screen 832 may be configured in the form of a liquid crystal display, a light emitting diode, or the like. The display unit 830 may be used to display various graphical user interfaces described herein.
The touch screen 831 may cover the display screen 832, or the touch screen 831 and the display screen 832 may be integrated to implement an input and output function of the mobile terminal 800, and after the integration, the touch screen may be referred to as a touch display screen for short. The display unit 830 can display the application programs and the corresponding operation steps.
Camera 840 may be used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing elements convert the light signals into electrical signals which are then passed to the processor 180 for conversion into digital image signals.
The mobile terminal 800 may also include at least one sensor 850, such as an acceleration sensor 851, a distance sensor 852, a fingerprint sensor 853, and a temperature sensor 854. The communication terminal 800 may also be configured with other sensors such as a gyroscope, barometer, hygrometer, thermometer, infrared sensor, light sensor, motion sensor, and the like.
The audio circuit 860, speaker 861, microphone 862 may provide an audio interface between a user and the mobile terminal 800. The audio circuit 860 may transmit the electrical signal converted from the received audio data to the speaker 861, and convert the electrical signal into an acoustic signal for output by the speaker 861. The mobile terminal 800 may also be provided with a volume button for adjusting the volume of the sound signal. On the other hand, the microphone 862 converts collected sound signals into electrical signals, which are received by the audio circuit 860 and converted into audio data, which are then output to the RF circuit 810 for transmission to, for example, another terminal, or output to the memory 820 for further processing. In this application, the microphone 862 can capture the user's voice.
Wi-Fi belongs to a short-distance wireless transmission technology, and the mobile terminal 800 may help a user to receive and transmit e-mails, browse webpages, access streaming media, and the like through the Wi-Fi module 870, and provide wireless broadband internet access for the user. In the embodiment of the present invention, the mobile terminal 800 may send a scanning instruction to the electronic home device through the Wi-Fi module 870, and receive, through the Wi-Fi module 870, at least one scanned available candidate network returned by the electronic home device; after selecting a target network from at least one available candidate network, the mobile terminal 800 sends the configuration information of the target network to the electronic home equipment through the Wi-Fi module 870, so that the electronic home equipment accesses the target network according to the received configuration information, and a network distribution of the electronic home equipment is realized.
The processor 880 is a control center of the mobile terminal 800, connects various parts of the entire terminal using various interfaces and lines, performs various functions of the mobile terminal 800 and processes data by running or executing software programs stored in the memory 820 and calling data stored in the memory 820. In some embodiments, processor 880 may include one or more processing units; the processor 880 may also integrate an application processor, which mainly handles operating systems, user interfaces, applications, etc., and a baseband processor, which mainly handles wireless communication. It will be appreciated that the baseband processor described above may not be integrated into the processor 880. The processor 880 may run an operating system, an application program, a user interface display, a touch response, and the processing method described in the embodiments of the present application. Further, the processor 880 is coupled to the display unit 830.
And a bluetooth module 881, configured to perform information interaction with other bluetooth devices having a bluetooth module through a bluetooth protocol. For example, the mobile terminal 800 may establish a bluetooth connection with a wearable electronic device (e.g., a smart watch) also equipped with a bluetooth module through the bluetooth module 881, so as to perform data interaction.
The mobile terminal 800 also includes a power supply 890, such as a battery, for powering the various components. The power supply may be logically connected to the processor 880 through a power management system to manage charging, discharging, power consumption, and the like through the power management system. The mobile terminal 800 may also be configured with a power button for powering on and off the terminal, and locking the screen.
Fig. 9 is a block diagram of a software configuration of a mobile terminal 800 according to an embodiment of the present invention.
The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, an application layer, an application framework layer, an Android runtime (Android runtime) and system library, and a kernel layer from top to bottom.
The application layer may include a series of application packages.
As shown in fig. 9, the application package may include applications such as camera, gallery, calendar, phone call, map, navigation, WLAN, bluetooth, music, video, short message, etc.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 9, the application framework layers may include a window manager, content provider, view system, phone manager, resource manager, notification manager, and the like.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
The phone manager is used to provide communication functions of the mobile terminal 800. Such as management of call status (including on, off, etc.).
The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and the like.
The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a short dwell, and does not require user interaction. Such as a notification manager used to inform download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, text information is prompted in the status bar, a prompt tone is given, the communication terminal vibrates, and an indicator light flashes.
The Android Runtime comprises a core library and a virtual machine. The Android runtime is responsible for scheduling and managing an Android system.
The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. And executing java files of the application program layer and the application program framework layer into a binary file by the virtual machine. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface managers (surface managers), Media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), and the like.
The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
The media library supports a variety of commonly used audio, video format playback and recording, and still image files, among others. The media library may support a variety of audio-video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, and the like.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
The following describes exemplary software and hardware workflow of the mobile terminal 800 in connection with capturing a photo scene.
When the touch screen 831 receives a touch operation, a corresponding hardware interrupt is issued to the kernel layer. The kernel layer processes the touch operation into an original input event (including touch coordinates, a time stamp of the touch operation, and other information). The raw input events are stored at the kernel layer. And the application program framework layer acquires the original input event from the kernel layer and identifies the control corresponding to the input event. Taking the touch operation as a touch click operation, and taking a control corresponding to the click operation as a control of a camera application icon as an example, the camera application calls an interface of an application framework layer, starts the camera application, further starts a camera drive by calling a kernel layer, and captures a still image or a video through the camera 840.
The mobile terminal 800 in the embodiment of the present application may be a mobile phone, a tablet computer, a wearable device, a notebook computer, a television, and the like.
Fig. 10 is a schematic diagram for illustrating a user interface on a mobile terminal (e.g., mobile terminal 800 of fig. 8). In some implementations, a user can open a corresponding application by touching an application icon on the user interface, or can open a corresponding folder by touching a folder icon on the user interface.
Based on the same inventive concept, an embodiment of the present invention provides a network distribution method for electronic home devices, which is applied to an electronic home device side, and as shown in fig. 11, the network distribution method includes the following steps:
in step S1101, when the electronic home device initially accesses the network, starting a hotspot of the WiFi module, and establishing a connection with the mobile terminal through the hotspot;
in step S1102, the electronic home device performs network scanning after receiving a scanning instruction sent by the mobile terminal, and sends at least one scanned available candidate network to the mobile terminal, so that the mobile terminal selects a target network from the at least one available candidate network;
in step S1103, the electronic home device receives the configuration information of the target network sent by the mobile terminal, and accesses the target network according to the received configuration information.
Optionally, the establishing, by the electronic home device, a connection with the mobile terminal through the hotspot includes:
the electronic home equipment receives first identity verification information which is sent by the mobile terminal and used for accessing the hotspot; the first identity authentication information is authentication information input by a user through a display interface of the mobile terminal;
and if the mobile terminal passes the identity verification according to the first identity verification information, the electronic home equipment allows the mobile terminal to access the hotspot and establishes a TCP link with the mobile terminal through the hotspot.
Optionally, the receiving, by the electronic home device, the scanning instruction sent by the mobile terminal according to the following manner includes:
the electronic home equipment receives a scanning instruction sent by the mobile terminal through the TCP link;
the method for sending the scanned at least one available candidate network to the mobile terminal by the electronic home equipment includes:
and the electronic home equipment sends the scanned at least one available candidate network to the mobile terminal through the TCP link.
Optionally, the accessing, by the electronic home device, the target network according to the received configuration information includes:
and the electronic home equipment accesses the target network according to the SSID corresponding to the target network in the configuration information and the second identity authentication information.
Based on the same inventive concept, an embodiment of the present invention provides a network distribution method for electronic home devices, which is applied to a mobile terminal side, and as shown in fig. 12, the method includes the following steps:
in the step S1201, after the mobile terminal detects a hotspot of the WiFi module of the electronic home device, establishing a connection with the electronic home device through the hotspot;
the hot spot of the WiFi module is started when the electronic home equipment is initially accessed to a network;
in step S1202, the mobile terminal sends a scanning instruction to the electronic home device, and receives at least one scanned available candidate network returned by the electronic home device;
in step S1203, the mobile terminal selects a target network from at least one available candidate network, and sends configuration information of the target network to the electronic home device, so that the electronic home device accesses the target network according to the configuration information.
Optionally, the establishing, by the mobile terminal, a connection with the electronic home device through the hot spot includes:
the mobile terminal acquires first identity authentication information input by a user through a display interface;
the mobile terminal sends the first identity verification information to the electronic home equipment, so that the electronic home equipment allows the mobile terminal to access the hotspot when the mobile terminal passes the identity verification according to the first identity verification information;
and the mobile terminal establishes a TCP link with the electronic home equipment through the hot spot.
Optionally, the sending, by the mobile terminal, a scanning instruction to the electronic home device includes:
the mobile terminal sends the scanning instruction to the electronic home equipment through the TCP link;
the mobile terminal receives the scanned at least one available candidate network returned by the electronic home equipment, and the method comprises the following steps:
and the mobile terminal receives at least one scanned available candidate network returned by the electronic home equipment through the TCP link.
Optionally, the selecting, by the mobile terminal, a target network from the at least one available candidate network includes:
the mobile terminal shows the at least one available candidate network to a user;
and the mobile terminal responds to the operation of selecting the network by the user and takes the network selected by the user from the at least one available candidate network as the target network.
Since the communication terminal and the computer storage medium in the embodiment of the present invention may be applied to the processing method, reference may also be made to the above method embodiment for obtaining technical effects, and details of the embodiment of the present invention are not described herein again.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks. While specific embodiments of the invention have been described above, it will be appreciated by those skilled in the art that these are by way of example only, and that the scope of the invention is defined by the appended claims. Various changes and modifications to these embodiments may be made by those skilled in the art without departing from the spirit and scope of the invention, and these changes and modifications are within the scope of the invention.

Claims (10)

1. The utility model provides an electronic home equipment which characterized in that, includes processor and first wiFi module:
the first WiFi module is configured to receive a scanning instruction sent by a mobile terminal and transmit the scanning instruction to the processor; sending the at least one available candidate network scanned by the processor to the mobile terminal so that the mobile terminal selects a target network from the at least one available candidate network; receiving the configuration information of the target network returned by the mobile terminal;
the processor is configured to start a hotspot of the first WiFi module when initially accessing a network, and establish connection with a mobile terminal through the hotspot; after receiving a scanning instruction transmitted by the first WiFi module, network scanning is carried out, and at least one scanned available candidate network is transmitted to the first WiFi module; and accessing the target network according to the configuration information of the target network received by the first WiFi module.
2. The electronic home device of claim 1,
the first WiFi module is specifically configured to receive first identity verification information which is sent by the mobile terminal and used for accessing the hotspot; the first identity authentication information is authentication information input by a user through a display interface of the mobile terminal;
the processor is configured to allow the mobile terminal to access the hotspot if the mobile terminal passes the identity authentication according to the first identity authentication information, and establish a TCP link with the mobile terminal through the hotspot;
the first WiFi module is specifically configured to receive a scanning instruction sent by the mobile terminal through the TCP link; and sending the scanned at least one available candidate network to the mobile terminal through the TCP link.
3. The electronic home device of claim 1, wherein, upon accessing the target network in accordance with the received configuration information, the processor is configured to:
and accessing the target network according to the SSID corresponding to the target network in the configuration information and the second identity authentication information.
4. A mobile terminal, comprising a processor and a second WiFi module:
the second WiFi module is configured to send a scanning instruction to the electronic home equipment, receive at least one scanned available candidate network returned by the electronic home equipment and transmit the at least one available candidate network to the processor; sending configuration information of a target network selected from the at least one available candidate network by the processor to the electronic home equipment so that the electronic home equipment can access the target network according to the configuration information;
the processor is configured to establish connection with the electronic home equipment through a hotspot after the hotspot of a first WiFi module of the electronic home equipment is detected; after receiving at least one available candidate network transmitted by the second WiFi module, selecting a target network from the at least one available candidate network, and transmitting configuration information of the target network to the second WiFi module;
the hotspot of the first WiFi module is started when the electronic home equipment is initially accessed to a network.
5. The mobile terminal of claim 4,
the processor is configured to acquire first identity verification information input by a user through a display interface; after the electronic home equipment allows the mobile terminal to access the hotspot, a TCP link between the electronic home equipment and the electronic home equipment is established through the hotspot;
the second WiFi module is specifically configured to send the first authentication information to the electronic home equipment, so that the electronic home equipment allows the mobile terminal to access the hotspot when the mobile terminal passes the authentication according to the first authentication information; sending the scanning instruction to the electronic home equipment through the TCP link; and receiving at least one scanned available candidate network returned by the electronic home equipment through the TCP link.
6. The mobile terminal of claim 4, wherein, in choosing a target network from the at least one available candidate network, the processor is configured to:
presenting the at least one available candidate network to a user;
and responding to the operation of selecting the network by the user, and taking the network selected by the user from the at least one available candidate network as the target network.
7. A network distribution method for electronic home equipment is characterized by comprising the following steps:
when the electronic home equipment is initially accessed to a network, starting a hotspot of the WiFi module, and establishing connection with the mobile terminal through the hotspot;
the electronic home equipment performs network scanning after receiving a scanning instruction sent by the mobile terminal, and sends at least one scanned available candidate network to the mobile terminal, so that the mobile terminal selects a target network from the at least one available candidate network;
and the electronic home equipment receives the configuration information of the target network sent by the mobile terminal and accesses the target network according to the received configuration information.
8. The method of claim 7, wherein the accessing, by the electronic home device, the target network according to the received configuration information comprises:
and the electronic home equipment accesses the target network according to the SSID corresponding to the target network in the configuration information and the second identity authentication information.
9. A network distribution method for electronic home equipment is characterized by comprising the following steps:
after detecting a hotspot of a WiFi module of the electronic home equipment, the mobile terminal establishes connection with the electronic home equipment through the hotspot; the hot spot of the WiFi module is started when the electronic home equipment is initially accessed to a network;
the mobile terminal sends a scanning instruction to the electronic home equipment and receives at least one scanned available candidate network returned by the electronic home equipment;
and the mobile terminal selects a target network from the at least one available candidate network and sends the configuration information of the target network to the electronic home equipment so that the electronic home equipment can access the target network according to the configuration information.
10. A computer storage medium having computer program instructions stored therein which, when run on a computer, cause the computer to perform the method of any of claims 7 to 8 or claim 9.
CN202010326055.7A 2020-04-23 2020-04-23 Network distribution method for electronic home equipment, electronic home equipment and mobile terminal Pending CN113552808A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010326055.7A CN113552808A (en) 2020-04-23 2020-04-23 Network distribution method for electronic home equipment, electronic home equipment and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010326055.7A CN113552808A (en) 2020-04-23 2020-04-23 Network distribution method for electronic home equipment, electronic home equipment and mobile terminal

Publications (1)

Publication Number Publication Date
CN113552808A true CN113552808A (en) 2021-10-26

Family

ID=78101028

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010326055.7A Pending CN113552808A (en) 2020-04-23 2020-04-23 Network distribution method for electronic home equipment, electronic home equipment and mobile terminal

Country Status (1)

Country Link
CN (1) CN113552808A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114567919A (en) * 2022-03-31 2022-05-31 深圳市英威腾电气股份有限公司 Network access method, device, equipment and storage medium
CN115150217A (en) * 2022-06-30 2022-10-04 青岛海信移动通信技术股份有限公司 Network distribution method, device and equipment for intelligent household equipment
CN115243339A (en) * 2022-07-08 2022-10-25 深圳绿米联创科技有限公司 Network access method and device of target equipment, electronic equipment and intelligent home system

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104980994A (en) * 2015-03-27 2015-10-14 青岛海尔科技有限公司 Equipment control method, device and mobile terminal
CN105451230A (en) * 2015-11-12 2016-03-30 深圳市江波龙科技有限公司 Internet-of-things device configuration method and Internet-of-things device configuration system
WO2016078135A1 (en) * 2014-11-21 2016-05-26 广东瑞德智能科技股份有限公司 Method and system for smart household appliance accessing router
CN107018049A (en) * 2017-03-09 2017-08-04 广东美的制冷设备有限公司 Home appliance distribution methods, devices and systems
CN108834201A (en) * 2018-07-26 2018-11-16 广东美的制冷设备有限公司 Household appliance and its networking control method, device, mobile terminal
CN109041170A (en) * 2018-09-11 2018-12-18 上海庆科信息技术有限公司 A kind of method of network entry and its relevant apparatus of smart machine
CN109819426A (en) * 2019-01-31 2019-05-28 广东美的制冷设备有限公司 Household appliance matches network method, household appliance, mobile terminal and storage medium
CN110113744A (en) * 2019-04-18 2019-08-09 杭州涂鸦信息技术有限公司 Communication means, device, equipment and storage medium
CN110601938A (en) * 2019-10-08 2019-12-20 海信容声(广东)冰箱有限公司 Intelligent household appliance unique identification code writing method, network terminal device and system
CN110703622A (en) * 2019-11-05 2020-01-17 四川虹美智能科技有限公司 Control device, method and system of intelligent household appliance

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016078135A1 (en) * 2014-11-21 2016-05-26 广东瑞德智能科技股份有限公司 Method and system for smart household appliance accessing router
CN104980994A (en) * 2015-03-27 2015-10-14 青岛海尔科技有限公司 Equipment control method, device and mobile terminal
CN105451230A (en) * 2015-11-12 2016-03-30 深圳市江波龙科技有限公司 Internet-of-things device configuration method and Internet-of-things device configuration system
CN107018049A (en) * 2017-03-09 2017-08-04 广东美的制冷设备有限公司 Home appliance distribution methods, devices and systems
CN108834201A (en) * 2018-07-26 2018-11-16 广东美的制冷设备有限公司 Household appliance and its networking control method, device, mobile terminal
CN109041170A (en) * 2018-09-11 2018-12-18 上海庆科信息技术有限公司 A kind of method of network entry and its relevant apparatus of smart machine
CN109819426A (en) * 2019-01-31 2019-05-28 广东美的制冷设备有限公司 Household appliance matches network method, household appliance, mobile terminal and storage medium
CN110113744A (en) * 2019-04-18 2019-08-09 杭州涂鸦信息技术有限公司 Communication means, device, equipment and storage medium
CN110601938A (en) * 2019-10-08 2019-12-20 海信容声(广东)冰箱有限公司 Intelligent household appliance unique identification code writing method, network terminal device and system
CN110703622A (en) * 2019-11-05 2020-01-17 四川虹美智能科技有限公司 Control device, method and system of intelligent household appliance

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114567919A (en) * 2022-03-31 2022-05-31 深圳市英威腾电气股份有限公司 Network access method, device, equipment and storage medium
CN114567919B (en) * 2022-03-31 2024-05-07 深圳市英威腾电气股份有限公司 Method, device, equipment and storage medium for accessing network
CN115150217A (en) * 2022-06-30 2022-10-04 青岛海信移动通信技术股份有限公司 Network distribution method, device and equipment for intelligent household equipment
CN115243339A (en) * 2022-07-08 2022-10-25 深圳绿米联创科技有限公司 Network access method and device of target equipment, electronic equipment and intelligent home system

Similar Documents

Publication Publication Date Title
CN111818669B (en) Mobile terminal and data transmission method thereof
CN105634881B (en) Application scene recommendation method and device
CN112423238B (en) Electronic device, control terminal, storage medium, and device connection method
CN110034986B (en) Apparatus and method for content backup in home network system
EP4013003A1 (en) Communication protocol switching method, apparatus and system
CN113552808A (en) Network distribution method for electronic home equipment, electronic home equipment and mobile terminal
US11435975B2 (en) Preview display method based on multi-angle and communication system
US10353561B2 (en) Method and apparatus for generating or using interaction activity information
US20230054451A1 (en) Communication Connection Method and Electronic Device
CN110870353B (en) WiFi connection method and terminal
CN114629932A (en) Electronic equipment and cooperation method between electronic equipment
US20240196454A1 (en) File sharing method and terminal device
CN113207115B (en) Mobile terminal and network searching control method
CN114071652B (en) Binding relation establishing method and related equipment
CN115599265A (en) Intelligent device control method, terminal device, server and storage medium
CN112000411B (en) Mobile terminal and display method of recording channel occupation information thereof
CN114007202A (en) Method for establishing binding relationship and related equipment
CN115250427A (en) Bluetooth connection establishment method, mobile terminal and electronic household equipment
CN114339591A (en) Method for positioning based on ultra-wideband chip and related device
CN114637214A (en) Control method and device of electronic home equipment and computer storage medium
CN113938890A (en) Data sharing method and terminal equipment
CN112954622A (en) Mobile terminal and short message sending method thereof
CN114095913A (en) Network distribution method of electronic household equipment and electronic household equipment
US20240179364A1 (en) Display apparatus, terminal device and communication connection method
CN115150265B (en) Dual-system data processing method, device and apparatus

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20211026