Network distribution method and electronic equipment
By including PID in the tag of the smart device and automatically distribute the network according to the PID using the first electronic device, the problem of inefficiency in the distribution network caused by not including SN and MAC addresses in the smart device tag is solved, and the effect of efficient distribution network and reducing production costs is achieved.
Patent Information
- Application Number
- CN202311541324.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-16
- Publication Date
- 2025-05-16
AI Technical Summary
When smart devices such as smart lamps and smart ovens do not contain serial number (SN) and media access control (MAC) addresses in the tag, their distribution network status cannot be determined, resulting in inefficient distribution networks. In addition, manufacturers need to set up separate production stations to match the tags and SN/MAC addresses, which increases production costs.
By including product type identification (PID) in the tag of the smart device, using the first electronic device (such as a mobile phone) to touch or close to the tag of the smart device, the PID of the device is obtained, and based on the PID, it is determined that the device is in the network state to be distributed, the corresponding interface is displayed, and the device is automatically distributed to the device in response to user operations.
This improves the efficiency of distribution network, reduces the production cost of smart device tags, and avoids setting up separate production stations to match tags and SN/MAC addresses.
Smart Images

Figure CN120018124A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic equipment, and in particular to a network distribution method and electronic equipment. Background Art
[0002] With the development of Internet of Things technology, more and more electronic devices can be connected to the Internet and remotely controlled through the Internet. However, it is not convenient for users to directly enter the network configuration information (such as the name and password of the router) for electronic devices such as smart lights and smart ovens, resulting in the inability of smart lights, smart ovens and other electronic devices to use the network configuration information to establish a connection with the router, and then unable to access the network to connect to the cloud server. Therefore, users can use mobile phones, tablets and other electronic devices to configure the network for the above electronic devices that are not convenient for users to directly enter the network configuration information.
[0003] For example, a mobile phone can obtain the serial number (SN) and / or media access control (MAC) address of the smart oven by touching the tag of the smart oven (such as a near field communication (NFC) tag), and determine the network configuration status of the smart oven based on the SN and / or MAC address of the smart oven. When the smart oven is in the waiting network configuration state, the mobile phone receives the network configuration information input by the user, and establishes a wireless fidelity (WIFI) channel with the smart oven based on the SN and / or MAC address of the smart oven, and sends the network configuration information to the smart oven through the WIFI channel, so that the smart oven can establish a connection with the router based on the network configuration information, thereby accessing the network and connecting to the cloud server. However, if the label of the smart oven does not include the SN and / or MAC address of the smart oven, the mobile phone will not be able to determine the network configuration status of the smart oven, nor will it be able to configure the network for the smart oven, and the network configuration efficiency will be low. If the label of the smart oven includes the SN and / or MAC address of the smart oven, the manufacturer will need to set up a separate production station to match the label of the smart oven with the SN and / or MAC address of the smart oven, and the production cost of the label will be high. Summary of the invention
[0004] The embodiments of the present application provide a network distribution method and an electronic device for improving the efficiency of network distribution and reducing the production cost of tags.
[0005] In a first aspect, an embodiment of the present application provides a network configuration method, which is applicable to a first electronic device, and the method includes: touching or approaching a tag of a second electronic device to obtain device information of the second electronic device, wherein the device information of the second electronic device includes a product type identification (PID) of the second electronic device; displaying a first interface, wherein the first interface includes information indicating that the second electronic device is in a state to be configured with a network; and in response to a first operation triggered by a user, configuring a network for the second electronic device according to the PID of the second electronic device.
[0006] In the embodiment of the present application, the first electronic device can determine that the second electronic device is in a state to be networked when the tag (e.g., NFC tag) of the second electronic device includes the PID of the second electronic device, and network the second electronic device in the state to be networked according to the PID of the second electronic device, thereby solving the problem in the prior art that the networked state of the second electronic device cannot be determined and the networked state of the second electronic device cannot be networked when the tag of the second electronic device does not include the SN and / or MAC address of the second electronic device, thereby improving the efficiency of networked distribution. Furthermore, since the SN and / or MAC address of the second electronic device is not required to determine the networked state of the second electronic device and networked the second electronic device in the state to be networked, the tag of the second electronic device does not need to be pre-burned with the SN and / or MAC address of the second electronic device, that is, the manufacturer does not need to set up a separate production station to match the tag of the second electronic device with the SN and / or MAC address of the second electronic device, thereby reducing the production cost of the tag.
[0007] In one possible implementation, configuring a network for the second electronic device according to the PID of the second electronic device includes: establishing a data link with the second electronic device according to the PID of the second electronic device, obtaining network configuration information required by the second electronic device, and sending the network configuration information to the second electronic device through the data link, wherein the network configuration information includes a service set identifier (SSID) and a password of a router that the second electronic device needs to access, and the router is used for the second electronic device to access a cloud server.
[0008] In this implementation, the first electronic device and the second electronic device can establish a data link (for example, a wireless network data link: a soft access point (softAP) data link or a neighborhood aware network (NAN) data link), and the first electronic device can send the network configuration information required by the second electronic device to the second electronic device through the data link, so that the second electronic device can establish a connection with the cloud server according to the network configuration information. Since the second electronic device will establish a connection with the cloud server according to the network configuration information only when it needs to access the network, and will not establish a connection with the cloud server according to the network configuration information when it does not need to access the network, the efficiency of the network configuration is improved.
[0009] In a possible implementation manner, obtaining the network configuration information required by the second electronic device includes: obtaining the network configuration information in response to a second operation triggered by a user; or obtaining the pre-stored network configuration information.
[0010] In this implementation, the first electronic device can obtain the network configuration information required by the second electronic device by receiving the network configuration information required by the second electronic device input by the user. Since the network configuration information required by the second electronic device is confirmed by the user, the reliability of the obtained network configuration information required by the second electronic device is improved. Alternatively, if the first electronic device pre-stores the network configuration information required by the second electronic device, the first electronic device can obtain the network configuration information required by the second electronic device locally. Since the user does not need to input the network configuration information required by the second electronic device to the first electronic device, user operations are reduced and the efficiency of network configuration is improved.
[0011] In one possible implementation, configuring a network for the second electronic device according to the PID of the second electronic device includes: establishing a data link with the second electronic device according to the PID of the second electronic device, and obtaining unique identification information of the second electronic device through the data link; and sending the unique identification information of the second electronic device to a cloud server.
[0012] In this implementation, the first electronic device and the second electronic device can establish a data link (for example, a Bluetooth data link: a Bluetooth low energy (BLE) data link), and the first electronic device can obtain the unique identification information of the second electronic device (for example, SN and / or MAC address) through the data link, and send the unique identification information of the second electronic device to the cloud server, so that the cloud server can establish a connection with the second electronic device based on the unique identification information of the second electronic device. Since the second electronic device does not need to establish a connection with the cloud server by establishing a connection with a router, the network configuration process is simplified, thereby shortening the time required for network configuration.
[0013] In one possible implementation, establishing a data link with the second electronic device based on the PID of the second electronic device includes: acquiring at least one device information by scanning, one device information in the at least one device information corresponds to one candidate electronic device in at least one candidate electronic device, and the one device information includes the PID of the one candidate electronic device; determining the second electronic device from the at least one candidate electronic device based on the at least one device information and the PID of the second electronic device; and establishing the data link with the second electronic device, wherein the data link is a wireless network data link or a Bluetooth data link.
[0014] In this implementation, the first electronic device can obtain at least one device information corresponding to at least one candidate electronic device by scanning, wherein the device information corresponding to a candidate electronic device includes the PID of the candidate electronic device (for example, device information 1 includes PID1, device information 2 includes PID2, and device information 3 includes PID3). Therefore, the first electronic device can determine the second electronic device from at least one candidate electronic device based on the PID of the second electronic device to establish a wireless network data link or a Bluetooth data link with the second electronic device. Since the SN and / or MAC address of the second electronic device is not required to determine the second electronic device from at least one candidate electronic device, the efficiency of network configuration is improved.
[0015] In a possible implementation, the one device information also includes the SN of the one candidate electronic device; determining the second electronic device from the at least one candidate electronic device based on the at least one device information and the PID of the second electronic device includes: determining at least one target electronic device from the at least one candidate electronic device based on the at least one device information and the PID of the second electronic device, the PID of each target electronic device in the at least one target electronic device matching the PID of the second electronic device; displaying a second interface when the number of the at least one target electronic device is greater than or equal to a first threshold, the second interface including information for indicating the SN of each target electronic device; and determining the second electronic device from the at least one target electronic device in response to a third operation triggered by the user.
[0016] In this implementation, there may be multiple device information including the PID of the second electronic device in at least one device information, for example, device information 1 includes PID1 and SN1, device information 3 includes PID1 and SN2, and device information 3 includes PID1 and SN3. At this time, since the SN of the second electronic device uniquely identifies the second electronic device, the first electronic device can determine the second electronic device from at least one target electronic device whose PID matches the PID of the second electronic device through the SN of the second electronic device input by the user, so as to establish a wireless network data link or a Bluetooth data link with the second electronic device, thereby improving the accuracy of network configuration.
[0017] In a possible implementation manner, the method further includes: acquiring unique identification information of the second electronic device through the data link.
[0018] In this implementation, after the first electronic device establishes a data link (e.g., a wireless network data link: a softAP data link or a NAN data link) with the second electronic device, the first electronic device can obtain the unique identification information (e.g., SN and / or MAC address) of the second electronic device through the data link. Since there is no need to obtain the SN and / or MAC address of the second electronic device through the label of the second electronic device, the label of the second electronic device does not need to be pre-burned with the SN and / or MAC address of the second electronic device, that is, the manufacturer does not need to set up a separate production station to match the label of the second electronic device with the SN and / or MAC address of the second electronic device, thereby reducing the production cost of the label.
[0019] In a possible implementation manner, the method further includes: writing the unique identification information of the second electronic device into a tag of the second electronic device.
[0020] In this implementation, after the first electronic device is networked for the second electronic device, it can write the unique identification information of the second electronic device (such as SN and / or MAC address) into the tag of the second electronic device, so that the tag of the second electronic device does not need to be pre-burned with the SN and / or MAC address of the second electronic device, that is, the manufacturer does not need to set up a separate production station to match the label of the second electronic device with the SN and / or MAC address of the second electronic device, thereby reducing the production cost of the label.
[0021] In a possible implementation, the method further includes: touching or approaching the tag of the second electronic device to obtain device information of the second electronic device, wherein the device information of the second electronic device includes unique identification information of the second electronic device; displaying a third interface, wherein the third interface includes information indicating that the second electronic device is in a network-connected state; and controlling the second electronic device in response to a fourth operation triggered by a user. In this implementation, the first electronic device can determine that the second electronic device is in a network-connected state when the tag of the second electronic device includes the SN and / or MAC address of the second electronic device, thereby improving the efficiency of network connection.
[0022] In a possible implementation, the unique identification information of the second electronic device includes the SN and / or MAC address of the second electronic device. In addition, other unique identification information may also be included, which is not limited.
[0023] In a possible implementation, the tag of the second electronic device is an NFC tag. In addition, other tags may also be included, which is not limited.
[0024] In a second aspect, an embodiment of the present application provides a network configuration method, which is applicable to a first electronic device, and the method includes: displaying a fourth interface, wherein the fourth interface includes information for indicating that a second electronic device is in a state to be configured with a network; touching or approaching a label of the second electronic device to obtain device information of the second electronic device, wherein the device information of the second electronic device includes a PID of the second electronic device; and configuring a network for the second electronic device according to the PID of the second electronic device.
[0025] In one possible implementation, configuring a network for the second electronic device according to the PID of the second electronic device includes: establishing a data link with the second electronic device according to the PID of the second electronic device, obtaining network configuration information required by the second electronic device, and sending the network configuration information to the second electronic device through the data link, wherein the network configuration information includes the SSID and password of a router that the second electronic device needs to access, and the router is used for the second electronic device to access a cloud server.
[0026] In a possible implementation manner, obtaining the network configuration information required by the second electronic device includes: obtaining the network configuration information in response to a second operation triggered by a user; or obtaining the pre-stored network configuration information.
[0027] In one possible implementation, configuring a network for the second electronic device according to the PID of the second electronic device includes: establishing a data link with the second electronic device according to the PID of the second electronic device, and obtaining unique identification information of the second electronic device through the data link; and sending the unique identification information of the second electronic device to a cloud server.
[0028] In one possible implementation, establishing a data link with the second electronic device based on the PID of the second electronic device includes: acquiring at least one device information by scanning, one device information in the at least one device information corresponds to one candidate electronic device in at least one candidate electronic device, and the one device information includes the PID of the one candidate electronic device; determining the second electronic device from the at least one candidate electronic device based on the at least one device information and the PID of the second electronic device; and establishing the data link with the second electronic device, wherein the data link is a wireless network data link or a Bluetooth data link.
[0029] In a possible implementation, the one device information also includes the SN of the one candidate electronic device; determining the second electronic device from the at least one candidate electronic device based on the at least one device information and the PID of the second electronic device includes: determining at least one target electronic device from the at least one candidate electronic device based on the at least one device information and the PID of the second electronic device, the PID of each target electronic device in the at least one target electronic device matching the PID of the second electronic device; displaying a second interface when the number of the at least one target electronic device is greater than or equal to a first threshold, the second interface including information for indicating the SN of each target electronic device; and determining the second electronic device from the at least one target electronic device in response to a third operation triggered by the user.
[0030] In a possible implementation manner, the method further includes: acquiring unique identification information of the second electronic device through the data link.
[0031] In a possible implementation manner, the method further includes: writing the unique identification information of the second electronic device into a tag of the second electronic device.
[0032] In one possible implementation, the method also includes: touching or approaching a tag of the second electronic device to obtain device information of the second electronic device, wherein the device information of the second electronic device includes unique identification information of the second electronic device; displaying a third interface, wherein the third interface includes information indicating that the second electronic device is in a network-connected state; and controlling the second electronic device in response to a fourth operation triggered by the user.
[0033] In a possible implementation, the unique identification information of the second electronic device includes the SN and / or MAC address of the second electronic device.
[0034] In a possible implementation manner, the tag of the second electronic device is an NFC tag.
[0035] In a third aspect, an embodiment of the present application further provides a network distribution device. The network distribution device has the function of implementing the behavior in the method embodiment described in the first aspect or any possible design of the first aspect. The network distribution device may be the electronic device described in the first aspect, or a functional module (such as a chip system) configured in the electronic device, or a larger device including the electronic device. The first device includes corresponding means (means) or modules for executing the above method. For example, the network distribution device may include a processing unit (sometimes also referred to as a processing module) and a transceiver unit (sometimes also referred to as a transceiver module).
[0036] Optionally, the processing unit is used to touch or approach a tag of a second electronic device to obtain device information of the second electronic device, wherein the device information of the second electronic device includes a PID of the second electronic device; display a first interface, wherein the first interface includes information indicating that the second electronic device is in a state to be networked; and in response to a first operation triggered by a user, network provisioning for the second electronic device according to the PID of the second electronic device.
[0037] In a fourth aspect, an embodiment of the present application further provides an electronic device, wherein the electronic device includes a tag, wherein the tag includes device information of the electronic device, and the device information of the electronic device includes the PID of the electronic device and / or unique identification information of the electronic device.
[0038] In a possible implementation, the unique identification information of the electronic device includes the SN and / or MAC address of the electronic device.
[0039] In a possible implementation, the tag is an NFC tag.
[0040] In a fifth aspect, an embodiment of the present application further provides an electronic device, comprising a processor, a memory, and one or more programs; wherein the one or more programs are stored in the memory, and the one or more programs include instructions, which, when executed by the processor, enable the electronic device to perform the method described in the first aspect or any possible design of the first aspect.
[0041] In a sixth aspect, an embodiment of the present application further provides a computer-readable storage medium, which is used to store a computer program. When the computer program runs on a computer, the computer executes the method described in the first aspect or any possible design of the first aspect.
[0042] In a seventh aspect, an embodiment of the present application further provides a computer program product, comprising a computer program, which, when executed on a computer, enables the computer to execute the method described in the first aspect or any possible design of the first aspect.
[0043] In an eighth aspect, an embodiment of the present application also provides a chip system, comprising a processor and an interface, wherein the processor is used to call and run instructions from the interface so that the chip system executes a method described in the above-mentioned first aspect or any possible design of the first aspect.
[0044] The beneficial effects of the above-mentioned second to eighth aspects and possible designs thereof can refer to the description of the beneficial effects of the method described in the above-mentioned first aspect and any possible design thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 It is a schematic diagram of the architecture of a distribution network system;
[0046] Figure 2 is a schematic diagram of the hardware structure of an electronic device 100;
[0047] Figure 3 is a schematic diagram of a software structure of an electronic device 100;
[0048] Figure 4 This is a schematic diagram of a network distribution scenario;
[0049] Figure 5 A schematic diagram of a flow chart of a network distribution method;
[0050] Figure 6 A schematic diagram of a user operation;
[0051] Figure 7 A schematic diagram of a user interface;
[0052] Figure 8 A schematic diagram for another user operation;
[0053] Fig. 9 is a schematic diagram of another user interface;
[0054] Fig.10 is a schematic diagram of yet another user interface;
[0055] Fig.11is a schematic diagram of yet another user interface;
[0056] Fig.12 is a schematic diagram of yet another user interface;
[0057] Fig.13 is a schematic diagram of yet another user interface;
[0058] Fig.14 This is a schematic diagram of another network distribution scenario;
[0059] Fig.15 It is a flowchart of another network distribution method;
[0060] Fig.16 is a schematic diagram of yet another user interface;
[0061] Fig.17 A flowchart of another network distribution method is shown;
[0062] Fig.18 A flowchart of another network distribution method is shown;
[0063] Fig.19 It is a schematic structural diagram of a first electronic device. DETAILED DESCRIPTION
[0064] Below, some terms in the embodiments of the present application are explained to facilitate understanding by those skilled in the art.
[0065] The at least one involved in the embodiments of the present application includes one or more; wherein, a plurality refers to greater than or equal to two. In addition, it should be understood that in the description of this specification, words such as "first" and "second" are only used for the purpose of distinguishing the description, and cannot be understood as an explicit or implicit relative importance, nor can they be understood as an explicit or implicit order. For example, the first operation and the second operation do not represent the importance of the two or the order of the two, but are only for distinguishing the description. In the embodiments of the present application, "and / or" is only a description of the association relationship, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the objects associated with each other are in an "or" relationship.
[0066] In the description of the embodiments of the present application, it should be noted that, unless otherwise clearly specified and limited, the terms "installation" and "connection" should be understood in a broad sense. For example, "connection" can be a detachable connection or a non-detachable connection; it can be a direct connection or an indirect connection through an intermediate medium. The directional terms mentioned in the embodiments of the present application, such as "upper", "lower", "left", "right", "inner", "outer", etc., are only referenced to the directions of the accompanying drawings. Therefore, the directional terms used are for better and clearer explanation and understanding of the embodiments of the present application, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the embodiments of the present application.
[0067] References to "one embodiment" or "some embodiments" etc. described in this specification mean that a particular feature, structure or characteristic described in conjunction with the embodiment is included in one or more embodiments of the specification. Thus, the phrases "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. appearing in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0068] The technical solutions of the embodiments of the present application can be applied to various distribution network systems. Figure 1 Figure 1 is a schematic diagram of the architecture of a distribution network system. Figure 1 As shown, the network distribution system may include an electronic device 100, an electronic device 200, a router 300, and a cloud server 400. The electronic device 100 may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, and a personal digital assistant (PDA). The electronic device 200 may be a smart light, a smart oven, a smart fan, a smart air conditioner, a smart TV, a smart bracelet, a smart speaker, a smart refrigerator, smart doors and windows, a smart car, a smart monitor, a smart robot, etc. The embodiments of the present application do not limit the specific types of the electronic device 100 and the electronic device 200.
[0069] It should be understood that Figure 1For ease of understanding only, a distribution network system is shown by way of example, but this should not constitute any limitation to the present application. The distribution network system may also include a greater number of electronic devices 100, or a greater number of electronic devices 200; the electronic devices 200 that interact with different electronic devices 100 may be the same electronic device 200, or different electronic devices 200; the number of electronic devices 200 that interact with different electronic devices 100 may be the same or different, and the embodiments of the present application do not make specific limitations on this.
[0070] The electronic device 100 (also called the master device) can be a device that can configure a network for the slave device, and the electronic device 200 (also called the slave device) can be a device that can access the network after configuring the network through the master device. That is, the electronic device 100 can configure the network for the electronic device 200.
[0071] The router 300 (also referred to as an access point device) may be a device that can provide network access services for a master device and a slave device. That is, the router 300 may provide network access services for the electronic device 100 and the electronic device 200. It should be understood that in the embodiment of the present application, the device that provides network access services for the electronic device 100 and the electronic device 200 is not limited to the router 300, and may also be other wireless access devices that provide network access services for the electronic device 100 and the electronic device 200.
[0072] It can be understood that the electronic device 100 can be in a connected state with the router 300, thereby accessing the network and connecting to the cloud server 400. That is, the electronic device 100 can be in a network-equipped state, and the electronic device 100 is a network-equipped device. The electronic device 200 can be in a waiting state with the router 300, thereby not accessing the network and not connecting to the cloud server 400. That is, the electronic device 200 can be in a waiting state for network configuration, which can be understood as the electronic device 100 is a waiting network configuration device.
[0073] Specifically, when the electronic device 100 configures the network for the electronic device 200, the electronic device 100 may send the network configuration information to the electronic device 200. The network configuration information may include the name of the router 300 (e.g., the service set identifier (SSID) of the router 300) and the password. The electronic device 200 may use the network configuration information to establish a connection with the router 300, thereby accessing the network and connecting to the cloud server 400.
[0074] The electronic device 100 may establish a binding relationship with the electronic device 200. For example, the electronic device 100 and the electronic device 200 may establish a binding relationship through the same account (eg, Huawei account).
[0075] The electronic device 100 can be connected to the cloud server 400 through a second generation (2G) network, a third generation (3G) network, a fourth generation (4G) network, a fifth generation (5G) network, a wireless local area network (WLAN), etc. The electronic device 100 can download an application for configuring the network for the electronic device 200 from the cloud server 400.
[0076] In addition, the electronic device 100 can remotely control electronic devices that are bound to the electronic device 100, such as the electronic device 200, through the cloud server 400. The electronic devices that are bound to the electronic device 100 can also report their own status information to the electronic device 100 through the cloud server 400.
[0077] The cloud server 400 can store the binding relationship between the electronic device 100 and the electronic device that has a binding relationship with the electronic device 100. In one possible implementation, the cloud server 400 can store information of multiple electronic devices associated with the same account. There is a binding relationship between the above-mentioned multiple electronic devices associated with the same account. For example, there is a binding relationship between the electronic device 100 and the electronic device 200. The cloud server 400 can receive instructions from the electronic device 100 for controlling the electronic device 200 (such as instructions to instruct the electronic device 200 to turn on). When it is determined that the electronic device 100 and the electronic device 200 are electronic devices associated with the same account, the cloud server 400 can send the control instruction to the electronic device 200, so that the electronic device 200 performs the operation corresponding to the control instruction. The cloud server 400 can also receive messages from the electronic device 200 for reporting its own status information to the electronic device 100 (for example, messages indicating the power level of the electronic device 200). When it is determined that electronic device 100 and electronic device 200 are electronic devices associated with the same account, cloud server 400 may send the message indicating the status information of electronic device 200 to electronic device 100, so that electronic device 100 updates the status information of electronic device 200.
[0078] In the embodiment of the present application, the network configuration of the electronic device 100 for the electronic device 200 may refer to the process that the electronic device 100 establishes a communication connection with the electronic device 200 and sends the acquired network configuration information to the electronic device 200, and the electronic device 200 uses the network configuration information to connect to the router 300 to access the network and connect to the cloud server 400. The above network configuration information may include the name and password of the router 300. The electronic device 100 may obtain the network configuration information by receiving the network configuration information input by the user. Alternatively, the electronic device 100 and the router 300 are in a connected state, the network configuration information is stored in the electronic device 100, and the electronic device 100 may send the stored network configuration information to the electronic device 200. In this way, when the electronic device 100 configures the network for the electronic device 200, the user does not need to input the network configuration information again, which reduces the user operation and improves the efficiency of the network configuration. The embodiment of the present application does not limit the method for the electronic device 100 to obtain the network configuration information.
[0079] Figure 2 FIG. 1 is a schematic diagram of the hardware structure of an electronic device 100. Figure 2 As shown, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.
[0080] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). Among them, different processing units may be independent devices or integrated into one or more processors. Among them, the controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction opcode and the timing signal to complete the control of fetching and executing instructions. A memory may also be set in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a high-speed cache memory. The memory may store instructions or data that the processor 110 has just used or circulated. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated access is avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved. The execution of the network configuration method provided in the embodiment of the present application can be controlled by the processor 110 or completed by calling other components, such as calling the processing program of the embodiment of the present application stored in the internal memory 121, or calling the processing program of the embodiment of the present application stored in a third-party device through the external memory interface 120.
[0081] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, and software code of at least one application, etc. The data storage area can store data generated during the use of the electronic device 100 (such as captured images, recorded videos, etc.). In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0082] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing files such as pictures and videos in the external memory card.
[0083] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and peripheral devices. The charging management module 140 is used to receive charging input from the charger. The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and provides power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160.
[0084] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0085] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0086] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0087] The wireless communication module 160 can provide wireless communication solutions including WLAN (such as wireless fidelity (WIFI) network), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication technology (NFC), infrared technology (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0088] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0089] The display screen 194 is used to display the display interface of the application, such as displaying the display page of the application installed on the electronic device 100. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0090] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0091] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0092] Among them, the sensor module 180 may include a pressure sensor 180A, an acceleration sensor 180B, a touch sensor 180C, etc.
[0093] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be disposed on the display screen 194 .
[0094] The touch sensor 180C is also called a "touch panel". The touch sensor 180C can be set on the display screen 194, and the touch sensor 180C and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor 180C is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180C can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.
[0095] The button 190 includes a power button, a volume button, etc. The button 190 can be a mechanical button. It can also be a touch button. The electronic device 100 can receive the button input and generate a key signal input related to the user settings and function control of the electronic device 100. The motor 191 can generate a vibration prompt. The motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization. The indicator 192 can be an indicator light, which can be used to indicate the charging status, power changes, and can also be used to indicate messages, missed calls, notifications, etc. The SIM card interface 195 is used to connect the SIM card. The SIM card can be inserted into the SIM card interface 195, or pulled out from the SIM card interface 195 to achieve contact and separation with the electronic device 100.
[0096] Understandably, Figure 2 The components shown do not constitute a specific limitation on the electronic device 100. The electronic device 100 may also include more or fewer components than shown, or combine some components, or separate some components, or arrange the components differently. Figure 2 The combination / connection relationship between the components can also be adjusted and modified.
[0097] Figure 3 FIG. 1 is a schematic diagram of a software structure of an electronic device 100. Figure 3 As shown, the software structure of the electronic device can be a layered architecture, for example, the software can be divided into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the operating system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer (framework, FWK), the runtime (runtime) and the system library, and the kernel layer.
[0098] The application layer can include a series of application packages. Figure 3As shown, the application layer may include camera, settings, skin module, user interface (UI), third-party applications, etc. Among them, the third-party applications may include gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
[0099] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer may include some predefined functions. Figure 3 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, and a notification manager.
[0100] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc. The content provider is used to store and obtain data and make the data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0101] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
[0102] The phone manager is used to provide communication functions for electronic devices, such as the management of call status (including answering, hanging up, etc.).
[0103] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0104] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
[0105] The runtime includes the core library and the virtual machine. The runtime is responsible for the scheduling and management of the operating system.
[0106] The core library consists of two parts: one is the function that the Java language needs to call, and the other is the core library of the operating system. The application layer and the application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0107] The system library may include multiple functional modules, such as surface manager, media libraries, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0108] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0109] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0110] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0111] A 2D graphics engine is a drawing engine for 2D drawings.
[0112] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
[0113] The hardware layer can include various types of sensors, such as accelerometers, gravity sensors, touch sensors, etc.
[0114] The above content explains the system architecture and possible application scenarios applicable to the technical solution of the embodiments of the present application. In order to better understand the technical solution of the embodiments of the present application, the relevant technical features involved in the embodiments of the present application are explained below.
[0115] With the development of Internet of Things technology, more and more electronic devices can be connected to the Internet and remotely controlled through the Internet. However, it is not convenient for users to directly enter the network configuration information (such as the SSID and password of the router) for electronic devices such as smart lights and smart ovens, resulting in the inability of smart lights, smart ovens and other electronic devices to use the network configuration information to establish a connection with the router, and then unable to access the network to connect to the cloud server. Therefore, users can use mobile phones, tablets and other electronic devices to configure the network for the above electronic devices that are not convenient for users to directly enter the network configuration information.
[0116] For example, Figure 4 This is a schematic diagram of a network distribution scenario, taking a smart oven as a WIFI device as an example. Figure 4 As shown, the mobile phone can obtain the device information of the smart oven by touching the near field communication (NFC) tag of the smart oven, determine the network configuration status of the smart oven based on the device information of the smart oven, receive the network configuration information input by the user when the smart oven is in the waiting network configuration state, and establish a WIFI channel with the smart oven based on the device information of the smart oven, and send the network configuration information to the smart oven through the WIFI channel. The smart oven can establish a connection with the router based on the network configuration information, thereby accessing the network and connecting to the cloud server. The specific steps are as follows:
[0117] Step 1: The mobile phone obtains the device information of the smart oven by touching the NFC tag of the smart oven.
[0118] The NFC tag of the smart oven contains the serial number (SN) and / or the media access control (MAC) address of the smart oven. The SN and MAC address of the smart oven are used to uniquely identify the smart oven, for example, SN1 and MAC address 1 are used to identify smart oven 1, and SN2 and MAC address 2 are used to identify smart oven 2.
[0119] Step 2: The mobile phone downloads the application for networking the smart oven from the cloud server.
[0120] For example, a mobile phone can download the atomization capability of a smart oven from the application market and display the atomization capability interface of the smart oven on the display screen. Among them, the atomization capability is a form of application program with an independent entrance and free installation. It should be understood that the atomization capability is only a term used in the embodiments of the present application, and its meaning has been recorded in the embodiments of the present application, and its name does not constitute any limitation to the embodiments of the present application. For example, in some other embodiments, the atomization capability may also be referred to as meta-capability, atomic capability, atomic service, atomic service and other nouns.
[0121] Step 3: In response to the user-triggered operation of pairing the smart oven with the network, the mobile phone sends a request 1 to the cloud server, where the request 1 is used to request the cloud server to determine the login status of the user account. The cloud server sends a response 1 to the mobile phone, where the response 1 is used to indicate the login status of the user account.
[0122] The user account refers to the user account associated with the mobile phone, and the login status of the user account refers to whether the user account is logged in.
[0123] Step 4: When the user account is logged in, the mobile phone sends request 2 to the cloud server. Request 2 is used to request the cloud server to determine the network configuration status of the smart oven. Request 2 carries the device information of the smart oven. The cloud server sends response 2 to the mobile phone. Response 2 is used to indicate the network configuration status of the smart oven.
[0124] For example, the cloud service can determine whether the user account associated with the mobile phone has been associated with the smart oven based on the device information of the smart oven.
[0125] Step 5: When the smart oven is in the waiting state for network configuration, the mobile phone receives the network configuration information input by the user.
[0126] For example, the network configuration information may be the SSID and password of a router, which is used to provide network access services for mobile phones and smart ovens.
[0127] Step 6: The mobile phone establishes a WIFI channel with the smart oven based on the device information of the smart oven, and sends the network configuration information to the smart oven through the WIFI channel.
[0128] For example, the smart oven can turn on the WIFI function to enter the access point (AP) mode, and then the smart oven can provide the SSID of the smart oven (i.e., the name of the WIFI provided by the smart oven), where the SSID of the smart oven does not have a corresponding password. The mobile phone can turn on the WIFI function to enter the station mode, start scanning to discover the SSIDs of multiple devices, where the SSID of the device is a string including the SN of the device. Therefore, the mobile phone can determine the SSID of the smart oven from the SSIDs of multiple devices discovered by the scan based on the SN of the smart oven in the device information of the smart oven, connect to the smart oven, and form a local area network with the smart oven, thereby sending the network configuration information to the smart oven.
[0129] Step 7: The smart oven establishes a connection with the router based on the network information, thereby accessing the network and connecting to the cloud server.
[0130] Step 8: The mobile phone controls the smart oven through the cloud server and monitors the status of the smart oven.
[0131] However, in the above Figure 4 In the network configuration scenario shown, if the NFC tag of the smart oven does not include the SN and / or MAC address of the smart oven, the mobile phone will not be able to determine the network configuration status of the smart oven, and will not be able to configure the network for the smart oven, and the network configuration efficiency will be low. If the NFC tag of the smart oven includes the SN and / or MAC address of the smart oven, the manufacturer will need to set up a separate production station to match the NFC tag of the smart oven with the SN and / or MAC address of the smart oven, and the production cost of the NFC tag will be high.
[0132] In view of the above problems, an embodiment of the present application provides a network distribution method for improving the efficiency of network distribution and reducing the production cost of tags.
[0133] The following will combine the above Figure 1 The structure of the distribution network system shown in Figure 2 , Figure 3 The structure of the electronic device 100 shown further introduces the network configuration method provided in the embodiment of the present application.
[0134] Figure 5 is a schematic diagram of a network configuration method, and the specific process of the network configuration method is described as follows. The first electronic device described below may be Figure 1 , Figure 2 , Figure 3 The electronic device 100 shown in FIG. 1 may be Figure 1 The electronic device 200 shown in FIG. 1 and the router described below may be Figure 1 The router 300 shown in FIG. 1 and the cloud server described below may be Figure 1 The cloud server 400 is shown. In the embodiment of the present application, the first electronic device is taken as the execution subject of the method for example. Alternatively, the execution subject of the method may also be other devices or systems, such as a chip, chip system or processor applied to the first electronic device.
[0135] S501: A first electronic device touches or approaches a tag of a second electronic device to obtain device information of the second electronic device.
[0136] In an embodiment of the present application, the first electronic device may touch or approach the tag of the second electronic device to obtain the device information of the second electronic device stored in the tag of the second electronic device. The tag of the second electronic device may be an NFC tag, or may be other electronic tags, which is not specifically limited in the embodiment of the present application. The device information of the second electronic device may include a product type identification (PID) and / or unique identification information of the second electronic device. The PID of the second electronic device may be used to identify the product type of the second electronic device, wherein the product type of the second electronic device may refer to the brand to which the second electronic device belongs, such as PID1 is used to identify brand 1, and PID2 is used to identify brand 2; or it may also refer to the function of the second electronic device, such as PID1 is used to identify a smart oven, PID2 is used to identify a smart rice cooker, and PID1 is used to identify a "xx" series smart oven, and PID2 is used to identify a "yy" series smart oven; or it may refer to the brand and function of the second electronic device, such as PID1 is used to identify a smart oven of brand 1, and PID2 is used to identify a smart rice cooker of brand 2, and PID1 is used to identify a "xx" series smart oven of brand 1, and PID2 is used to identify a "yy" series smart oven of brand 2, which is not specifically limited in the embodiment of the present application. The unique identification information of the second electronic device may include but is not limited to the SN and MAC address of the second electronic device, that is, the SN and MAC address of the second electronic device may be used to uniquely identify the second electronic device. It can be understood that the PIDs of multiple electronic devices may be the same but the SN and MAC addresses of the multiple electronic devices are different. For example, PID1 is used to identify smart oven 1 and smart oven 2, SN1 and MAC address 1 are used to identify smart oven 1, and SN2 and MAC address 2 are used to identify smart oven 2.
[0137] For example, the first electronic device is a mobile phone and the second electronic device is a smart oven 1. Figure 6 As shown, the mobile phone can touch or approach the NFC tag 601 of the smart oven 1. When the mobile phone touches or approaches the NFC tag 601 of the smart oven 1, the mobile phone can obtain the device information of the smart oven 1 stored in the NFC tag 601 of the smart oven 1, such as the PID1, SN1 or MAC address 1 of the smart oven 1.
[0138] S502: The first electronic device displays a first interface.
[0139] In the embodiment of the present application, after the first electronic device obtains the device information of the second electronic device, if the device information of the second electronic device only includes the PID of the second electronic device, the first electronic device can determine that the first electronic device is touching or approaching the tag of the second electronic device for the first time, and then determine that the second electronic device is in a state of waiting for network configuration. At this time, the first electronic device can display a first interface on the display screen, wherein the first interface may include information for indicating that the second electronic device is in a state of waiting for network configuration.
[0140] For example, taking the first electronic device as a mobile phone and the second electronic device as a smart oven 1 as an example, the mobile phone may display the following on the display screen: Figure 7 The user interface shown in the figure may display a picture of the smart oven 1 in the state of waiting for network configuration, and operation buttons for prompting the user whether the mobile phone is required to configure the network for the smart oven 1 in the state of waiting for network configuration, such as the "Cancel" operation button 701 and the "Connect" operation button 702. The user may determine that the mobile phone is required to configure the network for the smart oven 1 in the state of waiting for network configuration by selecting the "Connect" operation button 702. When the mobile phone detects that the user selects the "Connect" operation button 702, in response to the operation, the mobile phone may configure the network for the smart oven 1 in the state of waiting for network configuration.
[0141] In a possible implementation, the second electronic device may enter the network configuration ready state when a user operation for triggering the second electronic device to enter the network configuration ready state is detected. The user operation for triggering the second electronic device to enter the network configuration ready state may be, for example, the above-mentioned Figure 6 In the example shown, the first electronic device (e.g., a mobile phone) touches or approaches the NFC tag 601 of the second electronic device (e.g., the smart oven 1). At this time, since the user does not need to perform other user operations to trigger the second electronic device to enter the waiting network configuration state, the user operations in the network configuration process are simplified and the user experience is improved. Alternatively, the user operation used to trigger the second electronic device to enter the waiting network configuration state may also be, for example, Figure 8 The long press operation (eg, long press for 3 seconds) on the button 801 of the second electronic device (eg, smart oven 1) is shown. The embodiment of the present application does not limit the user operation for triggering the second electronic device to enter the waiting network configuration state.
[0142] S503: In response to a first operation triggered by a user, the first electronic device configures a network for the second electronic device according to a PID of the second electronic device.
[0143] In the embodiment of the present application, after the first electronic device displays the first interface, if the first electronic device detects a first operation triggered by a user, then in response to the first operation, the first electronic device can pair the second electronic device with a network according to the PID of the second electronic device. The first operation is an operation in which the user determines that the first electronic device needs to pair the second electronic device with a network, for example, the user selects the above Figure 7 Operation of the "Connect" operation button 702 is shown.
[0144] In a possible implementation, the first electronic device may not display the first interface after the user touches or approaches the label of the second electronic device, but may display the first interface before the user touches or approaches the label of the second electronic device. After the first electronic device displays the first interface, if the first electronic device detects a first operation triggered by the user, the first electronic device may display the following in response to the first operation: Fig. 9 The interface shown includes information for indicating touching or approaching the tag of the second electronic device, such as "Please touch or approach the NFC tag of the smart oven". The first electronic device can touch or approach the tag of the second electronic device to obtain the device information of the second electronic device. If the device information of the second electronic device only includes the PID of the second electronic device, the first electronic device can determine that the first electronic device is touching or approaching the tag of the second electronic device for the first time, and then determine that the second electronic device is in a state of waiting for network configuration. At this time, the first electronic device can configure the network for the second electronic device according to the PID of the second electronic device. Among them, the above-mentioned first operation can, for example, be an operation of the user opening the "Smart Life" application, which has triggered the first electronic device to actively discover at least one device that can be configured in the surrounding area. Furthermore, prompt information for prompting the user to touch the device to be configured can appear on the interface presented by the first electronic device, such as "Please touch the smart device that needs to be connected to the network".
[0145] In a specific implementation, if the second electronic device has the ability to connect to the cloud server through a router, for example, the second electronic device is a WIFI device, the first electronic device and the second electronic device can perform the following steps to configure the network for the second electronic device according to the PID of the second electronic device:
[0146] Step A1: In response to a first operation triggered by a user, the first electronic device may establish a data link with the second electronic device according to the PID of the second electronic device.
[0147] Among them, the data link between the first electronic device and the second electronic device can be a wireless network data link, such as a soft access point (softAP) data link or a neighborhood aware network (NAN) data link, which is not limited in the embodiments of the present application.
[0148] In a possible implementation, the above step A1 may include the following steps A11 to A13:
[0149] Step A11: The first electronic device may obtain at least one piece of device information by scanning, wherein one piece of device information in the at least one piece of device information corresponds to one of the at least one candidate electronic device, and one piece of device information includes a PID and a SN of one of the candidate electronic devices.
[0150] Step A12: The first electronic device may determine the second electronic device from at least one candidate electronic device according to the at least one device information and the PID of the second electronic device.
[0151] Step A13: The first electronic device may establish a data link with the second electronic device.
[0152] Exemplarily, taking the first electronic device as a mobile phone and the second electronic device as a smart oven 1 as an example, after the smart oven 1 enters the waiting network configuration state, the WIFI function can be automatically turned on to enter the AP mode, and the SSID of the smart oven 1 (that is, the name of the WIFI provided by the smart oven 1) is provided. The mobile phone can turn on the WIFI function to enter the station mode, and start scanning to find the SSIDs of three devices in the nearby area, where the SSID of each device is a string including the PID and SN of the device, such as Hi-AA...AA-XYYYYSSNNNN, where "YYYY" represents the PID of the device and "NNNN" represents the SN of the device. If the PIDs included in the SSIDs of the three devices scanned and found by the above mobile phone are different, the mobile phone can determine the SSID of the smart oven 1 from the SSIDs of the three devices scanned and found according to the PID of the smart oven 1, connect to the smart oven 1, and form a local area network with the smart oven 1. For example, the SSIDs of the three devices scanned and found by the mobile phone are SSID1, SSID2 and SSID3 respectively. Among them, SSID1 is a string including PID1 and SN1, SSID2 is a string including PID2 and SN2, and SSID3 is a string including PID3 and SN3. The mobile phone can match the PID of smart oven 1 with the PIDs included in the SSIDs of the three devices respectively, wherein the match can be an exact match, for example, the two PIDs are exactly the same, or a fuzzy match, for example, the two PIDs are partially the same, which is not specifically limited in the embodiments of the present application. If the PID of smart oven 1 is PID1, the mobile phone can determine that PID1 included in SSID1 matches the PID of smart oven 1, and then determine that SSID1 is the SSID of smart oven 1, and establish a wireless network data link with smart oven 1 through SSID1.
[0153] In a possible implementation, the above step A12 may include the following steps A121 to A123:
[0154] Step A121: The first electronic device may determine at least one target electronic device from at least one candidate electronic device based on at least one device information and the PID of the second electronic device. The PID of each target electronic device in the at least one target electronic device matches the PID of the second electronic device. The match may be an exact match, for example, the two PIDs are exactly the same, or a fuzzy match, for example, the two PIDs are partially the same, which is not specifically limited in the embodiments of the present application.
[0155] Step A122: The first electronic device may display a second interface when the number of at least one target electronic device is greater than or equal to the first threshold. The first threshold may be a default value or a value set by the user as required, which is not limited in the embodiment of the present application. The second interface may include information indicating the SN of each target electronic device in the at least one target electronic device.
[0156] Step A123: In response to the third operation triggered by the user, the first electronic device may determine the second electronic device from at least one target electronic device, wherein the third operation is an operation in which the user determines the SN of the second electronic device from the SN of each target electronic device in the at least one target electronic device.
[0157] For example, taking the first electronic device as a mobile phone and the second electronic device as a smart oven 1 and the first threshold as 2, if the PIDs included in the SSIDs of the three devices scanned and discovered by the mobile phone are the same, the mobile phone can display the SNs included in the SSIDs of the three devices scanned and discovered by the mobile phone. For example, the SSIDs of the three devices scanned and discovered by the mobile phone are SSID1, SSID2, and SSID3, respectively. Among them, SSID1 is a string including PID1 and SN1, SSID2 is a string including PID1 and SN2, and SSID3 is a string including PID1 and SN3. The mobile phone can display the following on the display screen: Fig.10The user interface shown in (1) may display an SN selection box 1000, which may include SN1 of SSID1, SN2 of SSID2, and SN3 of SSID3, such as "310****0901" 1000A, "310****0902" 1000B, and "310****0903" 1000C. When the user sees that the SN of smart oven 1 is SN1 (i.e., "310****0901"), the user may select "310****0901" 1000A to determine that SSID1 is the SSID of smart oven 1. When the mobile phone detects that the user selects "310****0901" 1000A, in response to the operation, the mobile phone may determine that SSID1 is the SSID of smart oven 1, and establish a wireless network data link with smart oven 1 through SSID1.
[0158] Optionally, in order to facilitate the user to view the SN of the smart oven 1, the user interface may also display information for prompting the user how to view the SN of the smart oven 1, such as a "?" icon 1001. The user may determine how to view the SN of the smart oven 1 by selecting the "?" icon 1001. When the mobile phone detects that the user selects the "?" icon 1001, in response to the operation, the mobile phone may display a Fig.10 The user interface shown in (2) may display information indicating the location of the SN of the smart oven 1.
[0159] Step A2: The first electronic device may obtain the network configuration information required by the second electronic device, and send the network configuration information required by the second electronic device to the second electronic device through the data link between the first electronic device and the second electronic device.
[0160] Specifically, the first electronic device can obtain the network configuration information required by the second electronic device in response to the second operation triggered by the user. The second operation is an operation in which the user inputs the network configuration information required by the second electronic device to the first electronic device. The network configuration information required by the second electronic device may include the SSID and password of the router that the second electronic device needs to access. The router that the second electronic device needs to access is used for the second electronic device to access the cloud server. Since it is confirmed by the user, the reliability of the network configuration information required by the second electronic device is improved.
[0161] For example, taking the first electronic device as a mobile phone and the second electronic device as a smart oven 1 as an example, the mobile phone may display the following on the display screen: Fig.11The user interface shown in the figure may display a network configuration information input box 1100. The network configuration information input box 1100 may include a name input field 1100A, a password input field 1100B, and a confirmation control 1100C. Among them, the name input field 1100A can be used by the user to input the SSID of the router that the smart oven 1 needs to access (that is, the name of the WIFI that the smart oven 1 needs to access). The password input field 1100B can be used by the user to input the password of the router that the smart oven 1 needs to access (that is, the password of the WIFI that the smart oven 1 needs to access). The confirmation control 1100C can be used by the mobile phone to confirm that the user has completed the input of the SSID and password of the router that the smart oven 1 needs to access.
[0162] Alternatively, if the first electronic device has pre-stored the network configuration information required by the second electronic device, the first electronic device can obtain the network configuration information required by the second electronic device locally. Since the user does not need to input the network configuration information required by the second electronic device into the first electronic device, user operations are reduced and network configuration efficiency is improved.
[0163] Step A3: The second electronic device can access the router according to the network configuration information required by the second electronic device, and send the unique identification information (such as SN and / or MAC address) of the second electronic device to the cloud server through the router.
[0164] Exemplarily, taking the first electronic device as a mobile phone and the second electronic device as a smart oven 1, if the smart oven 1 receives the network configuration information required by the smart oven 1 from the mobile phone (such as the SSID and password of the router), the smart oven 1 can switch from AP mode to station mode, and according to the received network configuration information required by the smart oven 1, start scanning to find routers configured with the same SSID and password in the nearby area, so as to connect to the routers configured with the same SSID and password in the nearby area, thereby accessing the network and registering on the cloud server, so that the cloud server associates the smart oven 1 and the mobile phone to the same user account.
[0165] In one possible implementation, the first electronic device can also obtain the unique identification information (such as SN and / or MAC address) of the second electronic device through a data link (such as a soft AP data link or a NAN data link) between the first electronic device and the second electronic device, and write the unique identification information of the second electronic device into a tag of the second electronic device (such as an NFC tag).
[0166] In a specific implementation, if the second electronic device does not have the ability to connect to the cloud server through a router, for example, the second electronic device is a Bluetooth device (for example, a Bluetooth low energy (BLE) device), the first electronic device can perform the following steps to configure the network for the second electronic device according to the PID of the second electronic device:
[0167] Step B1: In response to the first operation triggered by the user, the first electronic device may establish a data link with the second electronic device according to the PID of the second electronic device, and obtain the unique identification information (such as SN and / or MAC address) of the second electronic device through the data link. The data link may be a Bluetooth data link (such as a BLE data link).
[0168] In a possible implementation, the above step B1 may include the following steps B11-B13:
[0169] Step B11: The first electronic device may obtain at least one piece of device information by scanning, wherein one piece of device information in the at least one piece of device information corresponds to one of the at least one candidate electronic device, and one piece of device information includes a PID and a SN of one of the candidate electronic devices.
[0170] The details of step B11 may refer to the above step A11, which will not be described again here.
[0171] Step B12: The first electronic device may determine the second electronic device from at least one candidate electronic device according to the at least one device information and the PID of the second electronic device.
[0172] The details of step B12 may refer to the above step A12, which will not be described again here.
[0173] Step B13: The first electronic device may establish a data link with the second electronic device, and obtain unique identification information (eg, SN and / or MAC address) of the second electronic device through the data link.
[0174] Exemplarily, taking the first electronic device as a mobile phone and the second electronic device as a smart oven 1 as an example, the smart oven 1 can broadcast the SSID of the smart oven 1 after entering the waiting network configuration state. The mobile phone can start scanning to find the SSIDs of three devices in the nearby area, wherein the SSID of each device is a string including the PID and SN of the device, such as Hi-AA…AA-XYYYYSSNNNN, wherein "YYYY" represents the PID of the device and "NNNN" represents the SN of the device. If the PIDs included in the SSIDs of the three devices scanned and found by the above mobile phone are different, the mobile phone can determine the SSID of the smart oven 1 from the SSIDs of the three devices scanned and found according to the PID of the smart oven 1, connect to the smart oven 1, and form a local area network with the smart oven 1, thereby obtaining the SN and / or MAC address of the smart oven 1. For example, the SSIDs of the three devices scanned and found by the mobile phone are SSID1, SSID2 and SSID3 respectively. Among them, SSID1 is a string including PID1 and SN1, SSID2 is a string including PID2 and SN2, and SSID3 is a string including PID3 and SN3. The mobile phone can match the PID of smart oven 1 with the PIDs included in the SSIDs of the three devices respectively, wherein the match can be an exact match, for example, the two PIDs are exactly the same, or a fuzzy match, for example, the two PIDs are partially the same, which is not specifically limited in the embodiment of the present application. If the PID of smart oven 1 is PID1, the mobile phone can determine that PID1 included in SSID1 matches the PID of smart oven 1, and then determine that SSID1 is the SSID of smart oven 1, establish a Bluetooth data link with smart oven 1 through SSID1, and obtain the SN and / or MAC address of smart oven 1 through the Bluetooth data link.
[0175] In a possible implementation, the above step B12 may include the following steps B121 to B123:
[0176] Step B121: The first electronic device may determine at least one target electronic device from at least one candidate electronic device based on at least one device information and the PID of the second electronic device. The PID of each target electronic device in the at least one target electronic device matches the PID of the second electronic device. The match may be an exact match, for example, the two PIDs are exactly the same, or a fuzzy match, for example, the two PIDs are partially the same, which is not specifically limited in the embodiments of the present application.
[0177] The details of step B121 may refer to the above step A121, which will not be described again here.
[0178] Step B122: The first electronic device may display a second interface when the number of at least one target electronic device is greater than a first threshold. The first threshold may be a default value or a value set by the user as required, which is not limited in the embodiment of the present application. The second interface may include information indicating the SN of each target electronic device in the at least one target electronic device.
[0179] The details of step B121 may refer to the above step A122, which will not be described again here.
[0180] Step B123: In response to the third operation triggered by the user, the first electronic device may determine the second electronic device from at least one target electronic device, wherein the third operation is an operation in which the user determines the SN of the second electronic device from the SN of each target electronic device in the at least one target electronic device.
[0181] The details of step B123 may refer to the above step A123, which will not be repeated here.
[0182] Step B2: The first electronic device may send the unique identification information (e.g., SN and / or MAC address) of the second electronic device to the cloud server. The first electronic device may directly send the unique identification information of the second electronic device to the cloud server, or may indirectly send the unique identification information of the second electronic device to the cloud server through other devices, which is not specifically limited in the embodiments of the present application.
[0183] For example, taking the first electronic device as a mobile phone and the second electronic device as a smart oven 1, if the mobile phone obtains the SN and / or MAC address of the smart oven 1 through the Bluetooth data link, the mobile phone can send the SN and / or MAC address of the smart oven 1 to the cloud server, thereby registering the smart oven 1 on the cloud server, so that the cloud server associates the smart oven 1 and the mobile phone to the same user account.
[0184] In a possible implementation, the first electronic device may also write the unique identification information (eg, SN and / or MAC address) of the second electronic device into a tag (eg, NFC tag) of the second electronic device.
[0185] In a possible implementation, after the first electronic device obtains the device information of the second electronic device, if the device information of the second electronic device includes the SN and / or MAC address of the second electronic device, the first electronic device can determine that it is not the first time that the first electronic device touches or approaches the tag of the second electronic device, and further determines that the second electronic device is in a network-connected state. At this time, the first electronic device can display a third interface on the display screen, wherein the third interface may include information for indicating that the second electronic device is in a network-connected state. If the first electronic device detects a fourth operation triggered by the user, then in response to the fourth operation, the first electronic device can control the second electronic device. Among them, the fourth operation is an operation for the user to control the second electronic device.
[0186] For example, taking the first electronic device as a mobile phone and the second electronic device as a smart oven 1 as an example, the mobile phone may display the following on the display screen: Fig.12 The user interface shown may display a picture of the smart oven 1 in a network-connected state, and operation buttons for the user to control the smart oven 1, such as the "temperature" operation button 1201 and the "time" operation button 1202. Among them, the user can adjust the working temperature of the smart oven 1 by selecting the "temperature" operation button 1201, or adjust the working time of the smart oven by selecting the "time" operation button 1202. When the mobile phone detects that the user selects the "time" operation button 1202, in response to the operation, the mobile phone can send an instruction to the cloud server (for example, an instruction indicating that the working time of the smart oven 1 is 4 minutes). When the cloud server determines that the mobile phone and the smart oven 1 are associated with the same user account, the cloud server can send the instruction to the smart oven 1, so that the smart oven 1 performs the operation corresponding to the instruction.
[0187] In one possible implementation, the first electronic device can control one or more electronic devices through the smart life application. For example, the first electronic device can use the smart life application to configure the network for an electronic device in a state to be configured, or the first electronic device can use the smart life application to control an electronic device in a configured state. Therefore, before the first electronic device touches or approaches a tag (such as an NFC tag) of the second electronic device, if the first electronic device has configured the network for the second electronic device through the smart life application, the first electronic device can display an interface including information indicating that the first electronic device touches or approaches the tag of the second electronic device on the display screen.
[0188] For example, taking the first electronic device as a mobile phone and the second electronic device as a smart oven 1 as an example, the mobile phone may display the following on the display screen: Fig.13The user interface shown in (1) is a smart life application interface, in which one or more smart device controls are displayed, wherein one smart device control corresponds to one smart device, and is used to indicate the name, location (e.g., bedroom, living room), online status (e.g., online, offline), etc. of the smart device. For example, the control 1301 corresponding to the smart oven 1 includes, but is not limited to: the name of the smart oven 1, and the online status of the smart oven 1 (e.g., "online"), and may also include the location of the smart oven 1 (e.g., "kitchen").
[0189] If the above Fig.13 The user interface shown in (1) shows a control 1301 corresponding to the smart oven 1, and the mobile phone can display the following on the display screen: Fig.13 The user interface shown in (2) displays information for instructing the mobile phone to touch or approach the NFC tag of the smart oven 1, such as "Please touch or approach the NFC tag of the smart oven".
[0190] To facilitate understanding, the above network configuration method is further introduced below with reference to specific examples. Fig.14 Schematic diagram of another network configuration scenario. For example, the first electronic device is a mobile phone and the second electronic device is a smart oven, and the smart oven is a WIFI device. Fig.14 As shown, the mobile phone can perform the following steps to connect the smart oven to the network:
[0191] Step a: The mobile phone can obtain the device information of the smart oven by touching or approaching the NFC tag of the smart oven.
[0192] Step b: If the device information of the smart oven only includes the PID of the smart oven, the mobile phone can determine that the smart oven is in a state of waiting for network configuration, and display interface 1. Interface 1 displays information for prompting the user to determine whether the mobile phone needs to configure the network for the smart oven in a state of waiting for network configuration.
[0193] Step c: If the user determines that the mobile phone needs to configure the network for the smart oven in the waiting state, the mobile phone can display interface 2. Among them, interface 2 displays information for prompting the user to enter the network configuration information required by the smart oven into the mobile phone (for example, the SSID and password of the router that the smart oven needs to access).
[0194] Step d: The mobile phone establishes a WIFI channel with the smart oven according to the PID of the smart oven, and sends the network configuration information required by the smart oven to the smart oven through the WIFI channel.
[0195] Step e: The mobile phone obtains the SN and / or MAC address of the smart oven through the WIFI channel.
[0196] Step f: The smart oven establishes a connection with the router according to the network configuration information required by the smart oven, thereby accessing the network to connect to the cloud server.
[0197] Step g: The mobile phone controls the smart oven through the cloud server and monitors the status of the smart oven.
[0198] Step h: The mobile phone writes the SN and / or MAC address of the smart oven into the NFC tag of the smart oven.
[0199] Fig.15 is a flow chart of another network configuration method, and the specific flow of the network configuration method is described as follows. The first electronic device described below may be Figure 1 , Figure 2 , Figure 3 The electronic device 100 shown in FIG. 1 may be Figure 1 The electronic device 200 shown in FIG. 1 and the router described below may be Figure 1 The router 300 shown in FIG. 1 and the cloud server described below may be Figure 1 The cloud server 400 is shown. In the embodiment of the present application, the first electronic device is taken as the execution subject of the method for example. Alternatively, the execution subject of the method may also be other devices or systems, such as a chip, chip system or processor applied to the first electronic device.
[0200] S1501: The first electronic device displays a fourth interface.
[0201] In an embodiment of the present application, the first electronic device can control one or more electronic devices through a smart life application. For example, the first electronic device can configure a network for an electronic device in a state to be configured with a network through a smart life application, or the first electronic device can control an electronic device in a configured state through a smart life application.
[0202] The user can log in to the smart life application of the first electronic device, wherein the smart life application can be a system application in the first electronic device, or can be a third-party application in the first electronic device, and the embodiments of the present application are not limited to this. Exemplarily, the user can enter login information on the smart life application login interface of the first electronic device to log in to the smart life application of the first electronic device, or the user can also log in to the smart life application of the first electronic device by triggering "one-click login with mobile phone number". When the user logs in to the smart life application of the first electronic device, the first electronic device can display a fourth interface on the display screen of the first electronic device, wherein the fourth interface may include information for indicating that the second electronic device is in a state to be networked.
[0203] For example, taking the first electronic device as a mobile phone and the second electronic device as a smart oven as an example, the mobile phone may display the following on the display screen: Fig.16 The user interface shown may display a picture of a smart oven in a state of waiting for network configuration, and information for prompting the user whether the mobile phone is required to configure the network for the smart oven in a state of waiting for network configuration, such as "please touch or approach the NFC tag of the smart oven". The user may move the mobile phone to touch or approach the NFC tag of the smart oven, thereby starting the network configuration for the smart oven in a state of waiting for network configuration.
[0204] S1502: The first electronic device touches or approaches a tag of the second electronic device to obtain device information of the second electronic device.
[0205] In the embodiment of the present application, the specific implementation process of S1502 can refer to the content of S501 above and will not be repeated here.
[0206] S1503: The first electronic device configures a network for the second electronic device according to the PID of the second electronic device.
[0207] In the embodiment of the present application, the specific implementation process of S1503 can refer to the content of "the first electronic device configures the network for the second electronic device according to the PID of the second electronic device" in the above S503, and will not be repeated here.
[0208] Fig.17 FIG. 1 is a flow chart of another network configuration method. Taking the first electronic device and the second electronic device as WIFI devices as an example, Fig.17 As shown, the first electronic device can touch or approach the tag of the second electronic device to obtain the PID of the second electronic device; the first electronic device can establish a data link (such as a wireless network data link) with the second electronic device based on the PID of the second electronic device, and send the SSID and password of the router to the second electronic device through the data link between the first electronic device and the second electronic device; the second electronic device can establish a connection with the router based on the SSID and password of the router, and send the SN and / or MAC address of the second electronic device to the cloud server through the router, thereby registering the second electronic device on the cloud server, so that the cloud server associates the first electronic device and the second electronic device to the same user account; the first electronic device can also obtain the SN and / or MAC address of the second electronic device through the data link between the first electronic device and the second electronic device, and write the SN and / or MAC address of the second electronic device into the tag of the second electronic device.
[0209] Fig.18 FIG. 1 is a flow chart of another network configuration method. Taking the first electronic device and the second electronic device as Bluetooth devices as an example, Fig.18As shown, the first electronic device can touch or approach the tag of the second electronic device to obtain the PID of the second electronic device; the first electronic device can establish a data link (such as a Bluetooth data link) with the second electronic device based on the PID of the second electronic device, obtain the SN and / or MAC address of the second electronic device through the data link between the first electronic device and the second electronic device, and send the SN and / or MAC address of the second electronic device to the cloud server, thereby registering the second electronic device on the cloud server, so that the cloud server associates the first electronic device and the second electronic device to the same user account; the first electronic device can also write the SN and / or MAC address of the second electronic device into the tag of the second electronic device.
[0210] According to the above scheme, when the tag (e.g., NFC tag) of the second electronic device includes the PID of the second electronic device, the first electronic device can determine that the second electronic device is in a state to be networked, and network the second electronic device in the state to be networked according to the PID of the second electronic device, thereby solving the problem in the prior art that the networked state of the second electronic device cannot be determined and the networked state of the second electronic device cannot be networked when the tag of the second electronic device does not include the SN and / or MAC address of the second electronic device, thereby improving the networked efficiency. Furthermore, since the SN and / or MAC address of the second electronic device is not required to determine the networked state of the second electronic device and network the second electronic device in the state to be networked, the tag of the second electronic device does not need to be pre-burned with the SN and / or MAC address of the second electronic device, that is, the manufacturer does not need to set up a separate production station to match the tag of the second electronic device with the SN and / or MAC address of the second electronic device, thereby reducing the production cost of the tag.
[0211] Based on the above embodiments and the same concept, an embodiment of the present application further provides a first electronic device, which is used to implement the network configuration method provided in the embodiment of the present application.
[0212] like Fig.19 As shown, the first electronic device 1900 may include: a memory 1901, one or more processors 1902, and one or more computer programs (not shown in the figure). The above-mentioned devices may be coupled via one or more communication buses 1903. Optionally, when the first electronic device 1900 is used to implement the network configuration method provided in the embodiment of the present application, the first electronic device 1900 may also include a display screen 1904.
[0213] Among them, the memory 1901 stores one or more computer programs (codes), and the one or more computer programs include computer instructions; one or more processors 1902 call the computer instructions stored in the memory 1901, so that the first electronic device 1900 executes the network configuration method provided in the embodiment of the present application. The display screen 1904 is used to display related user interfaces such as images, videos, and application interfaces.
[0214] In a specific implementation, the memory 1901 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more disk storage devices, flash memory devices or other non-volatile solid-state storage devices. The memory 1901 may store an operating system (hereinafter referred to as the system), such as an embedded operating system such as ANDROID, IOS, WINDOWS, or LINUX. The memory 1901 may be used to store the implementation program of the embodiment of the present application. The memory 1901 may also store a network communication program, which may be used to communicate with one or more additional devices, one or more user devices, and one or more network devices. One or more processors 1902 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application.
[0215] It should be noted that Fig.19 This is only one implementation of the first electronic device 1900 provided in the embodiment of the present application. In actual applications, the first electronic device 1900 may also include more or fewer components, which is not limited here.
[0216] Based on the above embodiments and the same concept, an embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a computer, the computer executes the network configuration method provided in the above embodiments.
[0217] Based on the above embodiments and the same concept, the embodiments of the present application also provide a computer program product, which includes a computer program or instructions. When the computer program or instructions are run on a computer, the computer executes the network configuration method provided in the above embodiments.
[0218] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0219] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0220] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0221] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0222] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A network distribution method, characterized in that: Applicable to a first electronic device, comprising: Touch or approach a tag of a second electronic device to obtain device information of the second electronic device, where the device information of the second electronic device includes a product type identification PID of the second electronic device; Displaying a first interface, wherein the first interface includes information indicating that the second electronic device is in a state of waiting for network configuration; In response to a first operation triggered by a user, a network is configured for the second electronic device according to the PID of the second electronic device.
2. The method according to claim 1, characterized in that Providing network configuration for the second electronic device according to the PID of the second electronic device includes: establishing a data link with the second electronic device according to the PID of the second electronic device, The network configuration information required by the second electronic device is obtained, and the network configuration information is sent to the second electronic device through the data link, wherein the network configuration information includes the service set identifier SSID and password of the router that the second electronic device needs to access, and the router is used by the second electronic device to access the cloud server.
3. The method according to claim 2, characterized in that Acquiring network configuration information required by the second electronic device includes: In response to a second operation triggered by a user, obtaining the network configuration information; or, Acquire the pre-stored network configuration information.
4. The method according to claim 1, characterized in that Providing network configuration for the second electronic device according to the PID of the second electronic device includes: establishing a data link with the second electronic device according to the PID of the second electronic device, and obtaining unique identification information of the second electronic device through the data link; The unique identification information of the second electronic device is sent to the cloud server.
5. The method according to claim 2 or 4, characterized in that Establishing a data link with the second electronic device according to the PID of the second electronic device includes: Acquire at least one device information by scanning, wherein one device information in the at least one device information corresponds to one candidate electronic device in at least one candidate electronic device, and the one device information includes a PID of the one candidate electronic device; determining the second electronic device from the at least one candidate electronic device according to the at least one device information and the PID of the second electronic device; The data link is established with the second electronic device, where the data link is a wireless network data link or a Bluetooth data link.
6. The method according to claim 5, characterized in that The one device information also includes the SN of the one candidate electronic device; Determining the second electronic device from the at least one candidate electronic device according to the at least one device information and the PID of the second electronic device includes: Determine at least one target electronic device from the at least one candidate electronic device according to the at least one device information and the PID of the second electronic device, wherein the PID of each target electronic device in the at least one target electronic device matches the PID of the second electronic device; When the number of the at least one target electronic device is greater than or equal to the first threshold, displaying a second interface including information indicating the SN of each target electronic device; In response to a third operation triggered by the user, the second electronic device is determined from the at least one target electronic device.
7. The method according to claim 2, characterized in that The method further comprises: The unique identification information of the second electronic device is obtained through the data link.
8. The method according to claim 4 or 7, characterized in that The method further comprises: The unique identification information of the second electronic device is written into the tag of the second electronic device.
9. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: Touching or approaching the tag of the second electronic device to obtain device information of the second electronic device, where the device information of the second electronic device includes unique identification information of the second electronic device; Displaying a third interface, wherein the third interface includes information indicating that the second electronic device is in a network-connected state; In response to a fourth operation triggered by the user, the second electronic device is controlled.
10. The method according to any one of claims 7 to 9, characterized in that: The unique identification information of the second electronic device includes a serial number SN and / or a media access control MAC address of the second electronic device.
11. The method according to claim 8 or 9, characterized in that: The tag of the second electronic device is a near field communication NFC tag.
12. An electronic device, characterized in that: The electronic device includes a tag, the tag includes device information of the electronic device, and the device information of the electronic device includes a PID of the electronic device and / or unique identification information of the electronic device.
13. The electronic device according to claim 12, characterized in that: The unique identification information of the electronic device includes the SN and / or MAC address of the electronic device.
14. The electronic device according to claim 12, characterized in that: The tag is an NFC tag.
15. An electronic device, characterized in that: The electronic device comprises: a processor, a memory, and one or more programs; The one or more programs are stored in the memory, and the one or more programs include instructions, and when the instructions are executed by the processor, the electronic device executes the method as described in any one of claims 1-11.
16. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, and when the computer program is executed on a computer, the computer is caused to execute the method according to any one of claims 1 to 11.
17. A computer program product, characterized in that The invention comprises a computer program, which, when being executed on a computer, enables the computer to execute the method as claimed in any one of claims 1 to 11.