A method for a device to access a network

By obtaining Wi-Fi network configuration information through the NFC module of the terminal device and automatically determining the access method, the problem of users having to manually enter the Wi-Fi password is solved, enabling convenient device access to the network and improving user experience and application scope.

CN116347563BActive Publication Date: 2025-11-25ZHEJIANG SHAOXING SUPOR DOMESTIC ELECTRICAL APPLIANCE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211575395.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-08
Publication Date
2025-11-25
Estimated Expiration
2042-12-08

AI Technical Summary

Technical Problem

Users often make multiple mistakes when manually entering Wi-Fi passwords, especially complex and long ones, resulting in a poor user experience.

Method used

The network configuration information of the Wi-Fi network is obtained through the NFC module of the terminal device, and the network access method is determined according to the type of terminal device. The configuration information is automatically displayed or copied using a preset application or browser, so that access can be achieved without the user having to manually enter a password.

Benefits of technology

It improves user experience, simplifies the process of device access to the network, enables different types of devices to easily access the wireless network, and expands the scope of application.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116347563B_ABST
    Figure CN116347563B_ABST
Patent Text Reader

Abstract

The embodiment of the present specification provides a method for a device to access a network, the method comprising: a terminal device obtaining network configuration information of a Wi-Fi network through NFC; determining a network access mode of the terminal device according to the network configuration information based on a device type of the terminal device, so that the terminal device accesses the Wi-Fi network according to the network access mode. After the user configures the network for the terminal device through the NFC function, the device can access the network without the user manually inputting a password to connect to the network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This specification relates to the field of smart home appliance technology, and in particular to a method for connecting a device to a network. Background Technology

[0002] Currently, when users connect their electronic devices to Wi-Fi, they need to be prompted for Wi-Fi information, manually access the device's Wi-Fi connection interface, and then manually select the Wi-Fi network and enter the password. For example, when a guest arrives at a hotel, they must first access the hotel's Wi-Fi network on their phone, find the Wi-Fi network, ask for or search for the Wi-Fi password, and then manually enter the password to connect. However, manually entering the Wi-Fi password may result in errors, and if the Wi-Fi password is complex or long, multiple attempts may be required to connect, leading to a poor user experience. Summary of the Invention

[0003] In view of this, embodiments of this specification provide at least one method for a device to access a network.

[0004] Specifically, the embodiments in this specification are implemented through the following technical solutions:

[0005] Firstly, a method for a device to access a network is provided, the method comprising:

[0006] Terminal devices obtain Wi-Fi network configuration information via NFC;

[0007] Based on the device type of the terminal device itself, the network access method of the terminal device according to the distribution network information is determined so that the terminal device can access the Wi-Fi network according to the network access method.

[0008] Secondly, an apparatus for a device to access a network is provided, the apparatus comprising:

[0009] The acquisition module is used to: acquire Wi-Fi network configuration information via NFC;

[0010] The method determination module is used to: determine the network access method of the terminal device according to the network configuration information based on the device type of the terminal device itself, so that the terminal device can access the Wi-Fi network according to the network access method.

[0011] Thirdly, an electrical product is provided, the electrical product having an NFC module, a Wi-Fi module and a main control module connected together;

[0012] The main control module updates the network configuration information in the data area of ​​the NFC module according to the network information after the Wi-Fi module accesses the network. This allows the device to access the network to establish an NFC connection with the NFC module of the electrical appliance through its own NFC module. Then, through the NFC connection, the main control module reads the network configuration information in the NFC module of the electrical appliance. Based on the device type of the terminal device, the main control module determines the network access method of the terminal device according to the network configuration information, so that the terminal device can access the Wi-Fi network according to the network access method.

[0013] Fourthly, an electronic device is provided, the device including a memory and a processor, the memory being used to store computer instructions executable on the processor, and the processor being used to implement the device accessing a network method according to any embodiment of this specification when executing the computer instructions.

[0014] Fifthly, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the method for accessing a network by a device as described in any embodiment of this specification.

[0015] In the above technical solution, network configuration information is obtained through the NFC of the terminal device, enabling convenient network access without requiring users to manually query wireless network information or enter passwords, thus improving the user experience. Furthermore, the terminal device determines the network access method based on its own device type, making it suitable for various types of devices. This allows different types of devices to access the network through configuration information, broadening the scope of application of this solution.

[0016] In some embodiments, determining the network access method of the terminal device based on its own device type according to the network configuration information includes:

[0017] When the terminal device itself is an iOS or Android operating system, determining the network access method of the terminal device based on the network configuration information includes:

[0018] Determine whether the terminal device has a preset application installed. If so, display the network configuration information in the preset application.

[0019] If the device has a pre-installed application, the network distribution information can be displayed in the application to make it convenient for users to directly obtain the network distribution information.

[0020] In some embodiments, the preset application includes at least one of the following: a control app, a browser.

[0021] Network distribution information can be displayed either through a control app associated with the electrical appliance or through the browser built into an iOS device.

[0022] In some embodiments, when the application is a control APP for the electrical appliance, determining the network access method of the terminal device based on the distribution network information includes:

[0023] The network configuration information is copied to the clipboard of the terminal device. When a user triggers the command, the terminal device is controlled to jump to the Wi-Fi connection interface and connect to the network by pasting the network configuration information.

[0024] The control app for electrical appliances automatically copies the network configuration information to the clipboard of the terminal device. When the user confirms the use of this network configuration information, a command is triggered on the control app to call up the Wi-Fi connection interface of the terminal device, so that the user can quickly paste the network configuration information without asking for wireless network information or manually entering the password. The user can simply paste to access the network. This method can also be applied to Android devices.

[0025] In some embodiments, when the application is the browser, determining the network access method of the terminal device based on the network configuration information includes:

[0026] The browser's URL address bar is retrieved, and the network configuration information is displayed in the browser's URL address bar. The terminal device connects to the network by copying the network configuration information from the URL address bar and pasting it into the Wi-Fi connection interface.

[0027] For devices without a control app installed, a method for connecting to the network is also provided, making the application scope of this solution wider and further improving the user experience. No matter what type of device the user uses, as long as it has NFC functionality, they can easily connect to the wireless network.

[0028] In some embodiments, determining the network access method of the terminal device based on the network configuration information, based on the device type of the terminal device itself, includes:

[0029] When the terminal device itself is a non-iOS operating system type, determining the network access method of the terminal device based on the network configuration information includes:

[0030] The acquired distribution network information is displayed in a pop-up window on the terminal device's display interface. Upon receiving a user's trigger command, the terminal device is controlled to access the network based on the distribution network information.

[0031] When the user's device is not an iOS operating system type, simply enable the device's NFC function and tap it against the NFC area of ​​the appliance. The obtained network configuration information will then be displayed in a pop-up window on the terminal device's display interface. After the user confirms and triggers the connection, the device can access the Wi-Fi network used by the appliance without requiring any other manual network connection operations, making it convenient and quick.

[0032] In some embodiments, the terminal device communicates with the electrical appliance via NFC, wherein the NFC data area of ​​the electrical appliance includes network configuration information of the connected Wi-Fi network;

[0033] Based on the communication connection, the terminal device obtains the power distribution network information.

[0034] The device establishes an NFC connection with the appliance using its NFC. This connection automatically reads the network configuration information stored in the appliance's NPC data area. Because NFC technology has near-field characteristics (meaning the device and appliance must be close enough to establish an NFC connection), the device obtaining network configuration information from the appliance via NFC indicates that they are in the same environment, ensuring that the network configuration information used is from the wireless network in the device's environment. The device and appliance do not need to be bound together; as long as the device supports NFC, it can obtain Wi-Fi information and achieve network sharing.

[0035] In some embodiments, the network configuration information in the NFC data area of ​​the electrical appliance includes the media access control MAC address of the electrical appliance.

[0036] After the terminal device obtains the distribution network information, the method further includes:

[0037] The terminal device sends a query message containing the MAC address to the cloud server, so that the cloud server, if it has stored the wireless network information corresponding to the MAC address, will send the wireless network information back to the terminal device. The wireless network information is the information sent by the electrical product to the cloud server after it accesses the network.

[0038] The terminal device receives the wireless network information and accesses the network based on the wireless network information. This fully utilizes the identification and storage characteristics of the NFC module, enabling not only local acquisition of wireless network information but also cloud-based acquisition, a method unrestricted by the device's operating system.

[0039] In some embodiments, the network configuration information further includes connection identification information, which is used to identify whether the Wi-Fi module is connected to the network;

[0040] The terminal device sends a query message containing the MAC address to the cloud server, including:

[0041] When the connection identification information indicates that the electrical product has been connected to the network, the terminal device sends a query message containing the MAC address to the cloud server.

[0042] To ensure the availability of wireless network information, you can also query the cloud server for relevant Wi-Fi information that the appliance is connected to after verifying that the appliance has successfully connected to the network. Attached Figure Description

[0043] To more clearly illustrate the technical solutions in one or more embodiments or related technologies of this specification, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments recorded in one or more embodiments of this specification. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0044] Figure 1 This is a flowchart illustrating a method for a device to access a network according to at least one embodiment of this specification;

[0045] Figure 2 This is a schematic diagram illustrating a device interaction according to at least one embodiment of this specification;

[0046] Figure 3 This is a flowchart illustrating a device configuration network according to at least one embodiment of this specification;

[0047] Figure 4 This is a flowchart illustrating another device configuration network as shown in at least one embodiment of this specification;

[0048] Figure 5 This is a schematic diagram illustrating another device interaction as shown in at least one embodiment of this specification;

[0049] Figure 6 This is a flowchart illustrating yet another device configuration network as shown in at least one embodiment of this specification;

[0050] Figure 7 This is a block diagram illustrating a device accessing a network according to at least one embodiment of this specification;

[0051] Figure 8 This is a block diagram illustrating yet another device accessing a network, as shown in at least one embodiment of this specification;

[0052] Figure 9 This is a schematic diagram of the hardware structure of an electronic device shown in at least one embodiment of this specification. Detailed Implementation

[0053] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this specification. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this specification as detailed in the appended claims.

[0054] The terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to be limiting of this specification. The singular forms “a,” “the,” and “the” as used in this specification and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.

[0055] It should be understood that although the terms first, second, third, etc., may be used in this specification to describe various information, this information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of this specification, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to determination."

[0056] The electrical products described in this manual generally refer to electrical products used in various environments, including home, commercial, and other settings. For example, they may include cooking appliances with a specific cooking function, such as electric pressure cookers, electric frying pans, and coffee makers. Alternatively, they may include electronic products with communication transmission functions, such as routers and switches.

[0057] The electrical products described in this manual have the conventional structure and functions of electrical products currently on the market (such as product casing, power interface, basic home appliance functions, etc.), and will not be described in detail here.

[0058] Currently, some electrical appliances on the market can connect to the network via a built-in Wi-Fi module. In the technical solution provided in this specification, the electrical appliance has an interconnected NFC module and a Wi-Fi module, and the data area of ​​the NFC module includes network configuration information when the Wi-Fi module accesses the network.

[0059] The network configuration information described in this manual typically includes authentication information for enabling devices with Wi-Fi modules to connect to the wireless network, or includes methods for obtaining authentication information from the wireless network. The authentication information for the wireless network is usually a wireless network identifier (e.g., the router's SSID) and a wireless network password.

[0060] like Figure 1 As shown, Figure 1 This is a flowchart illustrating at least one embodiment of a method for a device to access a network. This method can be used with a terminal device that has NFC functionality. The terminal device can be a smart terminal used by a user, such as a mobile phone or tablet, and includes the following steps:

[0061] In step 102, the terminal device obtains the Wi-Fi network configuration information via NFC.

[0062] In step 104, based on the device type of the terminal device itself, the network access method of the terminal device according to the network configuration information is determined so that the terminal device can access the Wi-Fi network according to the network access method.

[0063] This embodiment does not limit the method by which the terminal device obtains distribution network information via NFC. For example, the terminal device can establish a communication connection with a pre-set NFC tag via NFC and read the distribution network information from the data area of ​​the NFC tag; or, for example, the terminal device can establish a communication connection with an electrical appliance with an NFC module and read the distribution network information from the NFC data area of ​​the electrical appliance.

[0064] When obtaining network configuration information from an NFC tag, users can pre-write the Wi-Fi network configuration information into the NFC tag.

[0065] When obtaining network distribution information from electrical appliances, the terminal device communicates with the electrical appliances via NFC, wherein the NFC data area of ​​the electrical appliances includes network distribution information of the connected Wi-Fi network; based on the communication connection, the terminal device obtains the network distribution information.

[0066] NFC on a terminal device is typically controlled by the device's operating system. When a user brings the device close to the NFC sensing area of ​​an appliance (the area where the appliance's NFC can detect data), it triggers an NFC connection between the terminal device and the appliance. After the NFC connection is established, the terminal device's operating system can control the user's mobile terminal device's NFC module to act as a reader, reading data from the appliance's NFC module's data area, thereby retrieving the network configuration information from the appliance's NFC module.

[0067] It should be noted that this embodiment does not limit the way the NFC module of the electrical appliance obtains the network configuration information. It can be set by the user in advance on the human-machine interface of the electrical appliance, or it can be transmitted to the electrical appliance by the user through other user mobile terminal devices. For example, the user can input the network configuration information in the interface of the corresponding product application of the electrical appliance installed on other user mobile terminal devices, and then write it into the data area of ​​the NFC module of the electrical appliance through NFC connection. The Wi-Fi module of the electrical appliance accesses the network based on the network configuration information in the data area of ​​the NFC module.

[0068] When a terminal device establishes an NFC connection with an appliance's NFC module via its own NFC module, the appliance's Wi-Fi module can be connected to the internet. This means the appliance is already connected to a router in that environment, and the terminal device can also connect to that router using the network configuration information. Alternatively, the appliance's Wi-Fi module can be offline. For example, when the appliance is not plugged into a power source, although the Wi-Fi module is not connected to the network, its NFC data area can still be read by the terminal device's operating system, allowing it to connect to the network.

[0069] The NFC data area of ​​electrical products contains network configuration information applicable to different types of terminal devices. Different types of terminal devices need to use different network access methods, such as iOS operating system type and Android operating system type, so that the terminal device can determine the network access method used by the terminal device based on its own device type and network configuration information.

[0070] In the above technical solution, the NFC function of the terminal device is used to automatically read the network configuration information, thereby enabling the terminal device to conveniently access the network through the network configuration information. Users do not need to query wireless network information or manually enter passwords, which improves the user experience.

[0071] Because NFC technology has near-field characteristics (meaning a connection can only be established when the terminal device and the appliance are close enough), the terminal device obtains network configuration information from the appliance via NFC. This implies that the appliance and the terminal device are in the same environment, ensuring that the network configuration information used is from the wireless network in the terminal device's environment. Furthermore, the terminal device determines its network access method based on its own device type, making it suitable for various types of devices. This allows different types of devices to access the network via configuration information, thus broadening the scope of application of this solution.

[0072] Furthermore, it should be noted that the aforementioned power distribution information is stored in the data area of ​​the NFC module of the electrical product in the form of standard NFC records. The data area of ​​existing NFC modules typically includes several standard NFC records. Standard NFC records are data structures defined by the NFC protocol and use the NFC data exchange format, NDEF. Existing NFC protocols specify several common NFC data exchange formats (such as URL (Uniform Resource Locator) data types, image data types, and application / vnd.wfa.wsc (Android configuration) data types), and also allow device manufacturers to define NFC data exchange formats for other data types.

[0073] For ease of explanation, Table 1 below illustrates the structure of the data area of ​​an NFC module in an electrical product:

[0074]

[0075] Table 1

[0076] The NFC header data area typically stores the identification information of the NFC chip. The Record data area uses the data exchange format (NDEF format) agreed upon by the NFC protocol. Record#1, Record#2, Record#3, and Record#4 are multiple NFC records already written in the original Record data area, and the reserved portion can be used to write new NFC records.

[0077] Generally, NFC-enabled terminal devices support the NFC protocol by default and can recognize standard NFC records with a universal NFC data exchange format in the NFC data area. However, terminal devices operating different operating systems may recognize and execute different NFC data exchange formats after reading the data area of ​​the NFC module of an appliance or NFC tag. To ensure broad applicability to various types of terminal devices operating systems and improve user experience, this manual provides multiple methods for devices to access the network.

[0078] In one implementation, determining the network access method of the terminal device based on its own device type according to the network distribution information includes:

[0079] When the terminal device itself is an iOS or Android operating system, determining the network access method of the terminal device based on the network configuration information includes:

[0080] Determine whether the terminal device has a preset application installed. If so, display the network configuration information in the preset application.

[0081] For iOS devices, if a pre-installed application is available, the network configuration information can be displayed in the application to allow users to directly access the information.

[0082] Pre-installed applications on a terminal device can be understood as pre-installed applications in the terminal device's operating system. Pre-installed applications are a broad concept, which can refer to application clients (such as APP), or lightweight applications (or quick applications), mini-programs, etc.

[0083] In one embodiment, the preset application includes at least one of the following: a control app for the electrical appliance and a browser. The control app for the electrical appliance is paired with the appliance; "paired" means that the control app is developed by the appliance manufacturer or a third-party developer commissioned by the appliance manufacturer. The manufacturer provides the control app to the user, who can then use it on their own terminal to configure certain functions of the appliance. Thus, network configuration information can be displayed either through the control app associated with the appliance or through the browser built into an iOS device.

[0084] In one embodiment, when the application is a control APP for the electrical appliance, determining the network access method of the terminal device based on the distribution network information includes:

[0085] The network configuration information is copied to the clipboard of the terminal device. When a user triggers the command, the terminal device is controlled to jump to the Wi-Fi connection interface and connect to the network by pasting the network configuration information.

[0086] The control app for electrical appliances automatically copies the network configuration information to the clipboard of the terminal device. When the user confirms the use of this network configuration information, a command is triggered on the control app to call the Wi-Fi connection interface of the terminal device, so that the user can quickly paste the network configuration information without asking for wireless network information or manually entering the password. Simply pasting is enough to connect to the network.

[0087] This embodiment does not limit the trigger command. The trigger command can be the user tapping the screen, the user shaking the phone, or the user uttering a specific voice.

[0088] In some embodiments, when the application is the browser, determining the network access method of the terminal device based on the network configuration information includes:

[0089] The browser's URL address bar is retrieved, and the network configuration information is displayed in the browser's URL address bar. The terminal device connects to the network by copying the network configuration information from the URL address bar and pasting it into the Wi-Fi connection interface.

[0090] For iOS devices without a control app installed, a method for accessing the network is also provided, making the application scope of this solution wider and further improving the user experience. No matter what type of device the user uses, as long as it has NFC functionality, they can easily access the wireless network.

[0091] To enable iOS operating system type devices to access the network, the data area of ​​the NFC module of the electrical product includes a first NFC record. The first NFC record has an NFC data exchange format of URL data type and includes network configuration information and the identifier of a preset application.

[0092] The data area of ​​the NFC module in an electrical appliance can include a standard NFC record with a URL data exchange format, referred to as the first NFC record. If an application is installed on the terminal device, and the pre-installed application is not running, the user brings the terminal device close to the sensing area of ​​the appliance's NFC module, establishing an NFC connection. The terminal device's operating system, such as iOS, then reads the URL containing the application's identifier from the first NFC record via the NFC connection, triggering the operating system to launch the pre-installed application. If the application is already running, the operating system will jump to the application.

[0093] The terminal device's default application will parse the first NFC record to obtain the network configuration information, such as the Wi-Fi password, and copy it to the clipboard of the user's terminal device. It can also display the parsed Wi-Fi information, such as the Wi-Fi name, on the application's page and then redirect to the terminal device's Wi-Fi connection interface to help the user find the Wi-Fi to connect to. After the user pastes the Wi-Fi password into the Wi-Fi connection interface, the terminal device connects to the network.

[0094] For example, SSID and PWD identifiers are added to the original Record#1 in the data area of ​​the NFC module shown in Table 1 beforehand. The first NFC record in this example is the newly added Record#1. The following...

[0095] Table 2 provides an example of the internal structure of Record#1.

[0096]

[0097] Table 2

[0098] To ensure data security, the main control module on the electrical product side, such as the microcontroller unit (MCU), can read and write the NFC data area, while the terminal device side can only read and not write.

[0099] Among them, appSchema: general link; PID: product ID, assigned by the AIoT product center; SN: anti-counterfeiting code or barcode information of electrical products, initialized through electronic control; WiFiMac: MAC address of the Wi-Fi module; wifiConn: whether the Wi-Fi module is currently connected to an available router; count: cumulative number of times the mobile phone touches the NFC; error: alarm information of the host or module; SSID: Wi-Fi name to which the Wi-Fi module is connected; PWD: Wi-Fi password to which the Wi-Fi module is connected.

[0100] The network configuration information includes: SSID: the name of the Wi-Fi network to which the Wi-Fi module is connected; PWD: the password of the Wi-Fi network to which the Wi-Fi module is connected.

[0101] For example, the URL included in the first NFC record could be: https: / / i.supor.com / nfcx.htm?p=A001&s=12245678901224567&m=245DFC608652&c=1&cnt=000a&e=0&ssid=aiottest&pwd=aiottest

[0102] The URL contained in the first NFC record has the following functions: If the control APP for the electrical product is already installed on the terminal device, the operating system can directly launch the control APP; if the control APP is not installed on the user terminal, then if the operating system is not Android (such as iOS), the application download page is opened in the browser, and the URL is displayed in the address bar of the browser. If the operating system is Android, the user can directly enter the application market built into the Android system to download and install the application.

[0103] If the terminal device does not have a control app installed or the default application is a browser, the user brings the terminal device close to the NFC module sensing area of ​​the appliance. This establishes an NFC connection between the terminal device's NFC and the appliance's NFC. The terminal device's operating system, such as iOS, then reads the URL from the first NFC record via the NFC connection. This triggers the operating system to launch the browser and open the URL, which is then displayed in the browser's address bar. The user can then click on the browser's address bar and manually copy the network configuration information from the address bar, and paste it into the corresponding Wi-Fi setting in the Wi-Fi connection interface to connect the terminal device to the network.

[0104] For non-iOS operating system devices, this manual also provides a more convenient way to access the network.

[0105] In one implementation, determining the network access method of the terminal device based on the distribution network information, based on the device type of the terminal device itself, includes:

[0106] When the terminal device itself is a non-iOS operating system type, determining the network access method of the terminal device based on the network configuration information includes:

[0107] For non-iOS operating systems, such as Android, the acquired network configuration information can be displayed in a pop-up window on the terminal device's screen. Upon receiving a user's trigger command, such as clicking the confirmation button on the pop-up window or clicking anywhere on the screen, the terminal device can be controlled to access the network based on the network configuration information. This embodiment does not limit the trigger command; it can be a user clicking the screen, shaking the phone, or uttering a specific voice command.

[0108] To enable non-iOS operating system type terminal devices to access the network, the data area of ​​the NFC module of the electrical product includes a second NFC record. The second NFC record has an NFC data exchange format of Android configuration data type. The NFC data exchange format of Android configuration data type is used for Android system network configuration, so that the non-iOS operating system type terminal device will display the network configuration information pop-up window after reading it.

[0109] The Android configuration data type uses the application / vnd.wfa.wsc standard format agreed upon by the Wi-Fi Alliance. The Android system uses this standard format to configure Wi-Fi networks. Because the second NFC record contains network configuration information, when the terminal device is running an Android operating system, this second NFC record with the Android configuration data type can trigger the Android mobile terminal device to initiate the system's Wi-Fi configuration process and display a pop-up window. In other words, when the Android system reads the data area via NFC connection, it can identify and execute the network configuration information in the second NFC record within the data area, and connect to the network based on this information after user activation.

[0110] For example, a Record#5 is added in advance to the reserved part of the data area of ​​the NFC module shown in Table 1. The second NFC record in this example is the newly added Record#5. The internal structure of Record#5 is given in Table 3 below as an example.

[0111]

[0112] Table 3

[0113] To ensure data security, the main control module on the electrical product side, such as the microcontroller unit (MCU), can read and write the NFC data area, while the terminal device side can only read and not write.

[0114] Network configuration information includes: SSID: Wi-Fi name; ETWORK KEY: Wi-Fi password; AUTHENTICATION TYPE: Wi-Fi encryption method. For example, Record#5 records: SSID: aiottest; network key: aiottest; authentication type: WPA / WPA2.

[0115] When the user's terminal device is an Android operating system, simply enable the NFC function of the terminal device and tap it against the NFC area of ​​the appliance. The obtained network configuration information will then be displayed in a pop-up window on the terminal device's screen. After the user confirms, the device can connect to the Wi-Fi network used by the appliance without requiring any further manual network connection operations, making it convenient and quick.

[0116] It should be noted that, in order to be widely applicable to various types of terminal devices, the NFC data area of ​​electrical products includes both a first NFC record and a second NFC record. The following is a combination of... Figure 2 To explain, Figure 2This is a schematic diagram illustrating the interaction between a terminal device (mobile phone) seeking network access and an electrical appliance. The electrical appliance includes an NFC module, a Wi-Fi module, and a main control module (MCU) connected to each other.

[0117] like Figure 2 As shown, in a hypothetical application scenario, a friend visits the host's home and wants to connect their mobile phone to the host's home Wi-Fi. Before the solution of this invention is implemented, the host has already connected to the appliance using their own user terminal with the APP that comes with the appliance installed, and performed online binding to configure the appliance to connect to the home Wi-Fi. The Wi-Fi module of the appliance is then connected to the home Wi-Fi, and the "tap to connect to Wi-Fi" function is enabled on the APP (i.e., the function implemented by the device network access method of this solution).

[0118] Correspondingly, on the appliance side, the MCU can update Record#1 in the NFC module's data area based on the Wi-Fi module's network connectivity. This involves adding: ssid = {connected Wi-Fi name}, pwd = {connected Wi-Fi password} to the original Record#1, and adding Record#5, where Type:

[0119] "application / vnd.wfa.wsc"; Data: "SSID: Connected Wi-Fi name, network key: Connected Wi-Fi password, authentication type: Connected Wi-Fi authentication method", and the c flag can also be updated.

[0120] A friend uses their phone, which is to be connected to the network, to "tap" (i.e., bring the phone's NFC module close to the sensing area of ​​the appliance's NFC module) to connect to the appliance. The phone's operating system first reads the network configuration information from the data area of ​​the appliance's NFC module, that is, reads the second NFC record (used for Android system network configuration) and the first NFC record (containing a URL, which contains the identifier of a preset application).

[0121] Scenario 1 (App installed / not installed, Android phone)

[0122] With my friend's phone being an Android phone, the phone recognizes the second NFC record, namely the newly added Record#5, and then the Android phone's operating system automatically presses... Figure 3 The process shown is to connect to home Wi-Fi: Touch your phone to the NFC sensing area of ​​the appliance, and a pop-up window on your phone will prompt you to connect to the network. Click to connect and you can connect to the network.

[0123] Of course, Android phones can also recognize the first NFC record. Generally speaking, Android phones respond to the second NFC record first, or the response speed to the second NFC record is faster. If the application is installed and running on the Android phone, it can also respond to the first NFC record.

[0124] Scenario 2 (Control app already installed, Apple phone)

[0125] If your friend's phone is not an Android phone and the control app is installed, such as an iPhone, the phone can only recognize the first NFC record, i.e., Record #1. Press... Figure 4 The process shown is as follows: Touch the NFC sensing area of ​​the product with your mobile phone. A pop-up window on your phone will prompt you to open it in the control APP. Click to open the control APP. The Wi-Fi information currently connected to the appliance will be displayed on the page, and the Wi-Fi password will be copied to the clipboard. Click the Wi-Fi information display area to jump to the Wi-Fi settings page on your mobile phone. Find the Wi-Fi name currently connected to the appliance and paste the Wi-Fi password into the password input box. Click Join, and the mobile phone will be successfully connected to the network.

[0126] Scenario 3 (Control app not installed, Apple phone)

[0127] If your friend's phone is not an Android phone and the control app is not installed, such as an iPhone, the phone can only recognize the first NFC record, i.e., Record #1. Press... Figure 4 The process shown is as follows to connect to home Wi-Fi: Touch your phone to the NFC sensing area of ​​the product. A pop-up window will prompt you to open the app in "Safari". Click to enter the control app download page; click the browser address bar to view the Wi-Fi information currently connected to the appliance, and manually copy the Wi-Fi password to the clipboard; manually enter the Wi-Fi settings page on your phone, find the Wi-Fi name currently connected to the appliance, and paste the Wi-Fi password into the password input box; click "Join", and your phone will successfully connect to the network.

[0128] In the application scenario of this solution, after the electrical appliance is successfully bound to the network, the user can enable the "tap to connect to Wi-Fi" function of the appliance through the APP. After successful activation, any mobile phone, regardless of device type, can connect to Wi-Fi by tapping the NFC sensing area of ​​the appliance with NFC.

[0129] Furthermore, in some embodiments, the format of the Record data area in the original NFC module can be retained, allowing the cloud server to query the relevant Wi-Fi information that the electrical appliance has connected to. In this embodiment, the network configuration information in the data area of ​​the electrical appliance's NFC module includes the MAC address (Media Access Control Address) of the Wi-Fi module. The MAC address is recorded in the data area in a common NFC data exchange format so that devices of various operating systems can recognize it. For example, the location where the MAC address is recorded can be seen in Table 3.

[0130] The above methods also include:

[0131] The terminal device sends a query message containing the MAC address to the cloud server, so that the cloud server, if it has stored the wireless network information corresponding to the MAC address, will send the wireless network information back to the terminal device. The wireless network information is the information sent to the cloud server by the Wi-Fi module after it successfully accesses the network.

[0132] The terminal device receives the wireless network information and accesses the network according to the wireless network information.

[0133] In this example, once the appliance's Wi-Fi module successfully connects to the network, it sends the currently connected wireless network information to the cloud server in the form of data packets. The cloud server can then parse the Wi-Fi module's MAC address and wireless network information from the data packets and store them. The wireless network information may include the wireless network identifier and the wireless network password.

[0134] When a user brings the terminal device to be connected to the network close to the NFC area of ​​an appliance, the NFC of the terminal device is triggered to establish an NFC connection with the NFC of the appliance. The operating system of the terminal device reads the network configuration information in the second NFC record in the NFC module of the appliance through the NFC connection to obtain the MAC address.

[0135] In this step, the application accompanying the electrical product on the terminal device can send a query message containing the MAC address to the cloud server. If the cloud server stores the wireless network information corresponding to the MAC address, it will then send that wireless network information back to the terminal device. The terminal device can also automatically connect to the network based on this information. This eliminates the hassle of the user having to ask for wireless network information and enter a password.

[0136] In some embodiments, based on the above embodiments, to ensure the availability of wireless network information, after verifying that the electrical appliance has successfully connected to the network, the relevant Wi-Fi information of the electrical appliance can be queried from the cloud server. In this example, the network configuration information also includes connection identification information, which is used to identify whether the Wi-Fi module is connected to the network.

[0137] The terminal device sends a query message containing the MAC address to the cloud server, including:

[0138] When the connection identification information indicates that the Wi-Fi module has been connected to the network, the terminal device sends a query message containing the MAC address to the cloud server.

[0139] The connection identification information can be the c flag bit in Record#1 of Table 3, wifiConn: whether the Wi-Fi module is currently connected to an available router. When c is 1, it means that the Wi-Fi module has accessed the network and is connected to an available router; when c is not 1, it means that the Wi-Fi module has not accessed the network and is not connected to an available router.

[0140] See Figure 5 The diagram showing the information interaction between terminal devices and electrical products, and Figure 6 The flowchart is shown below. On the appliance side, the MCU can update the Record#1c flag in the NFC module's data area based on the Wi-Fi module's network connectivity, sending the currently connected Wi-Fi information to the cloud. The cloud then saves the relevant Wi-Fi information based on the MAC address. On the user's terminal device side, an app compatible with the appliance can be pre-installed. When the terminal device touches the appliance's NFC sensing area, it reads the c flag and MAC address in Record#1 via NFC connection. The c flag checks the appliance's network connectivity; if c is 1, a query containing the MAC address is sent to the cloud server; otherwise, no action is taken. The cloud returns the saved Wi-Fi information to the terminal device based on the MAC address, allowing the terminal device to manually or automatically connect to the network.

[0141] This manual expands the application of electrical appliances in scenarios where they assist mobile devices such as smartphones in connecting to the internet, making it faster and more convenient for these devices to connect to WiFi. It is compatible with all operating systems, including Android and Apple. It fully utilizes the identification and storage capabilities of the NFC module, enabling the acquisition of Wi-Fi information locally or via the cloud. Electrical appliances and terminal devices do not need to be bound together; as long as the terminal device supports NFC, it can acquire Wi-Fi information and achieve network sharing.

[0142] This specification also provides an electrical product having an NFC module, a Wi-Fi module, and a main control module connected to each other. The main control module, after the Wi-Fi module accesses the network, updates the network configuration information in the data area of ​​the NFC module according to the information of the accessed network. This allows a terminal device seeking to access the network to establish an NFC connection with the electrical product's NFC module via its own NFC module, and then read the network configuration information from the electrical product's NFC module through the NFC connection, and access the network according to the network configuration information.

[0143] like Figure 7 As shown, Figure 7 This is a block diagram illustrating at least one embodiment of a device accessing a network, the device being used in a device with NFC functionality, the device comprising:

[0144] The acquisition module 21 is used to: acquire Wi-Fi network configuration information via NFC;

[0145] The method determination module 22 is used to: determine the network access method of the terminal device according to the network configuration information based on the device type of the terminal device itself, so that the terminal device can access the Wi-Fi network according to the network access method.

[0146] In some embodiments, the method determining module 22 is specifically used for:

[0147] When the terminal device itself is an iOS or Android operating system, determining the network access method of the terminal device based on the network configuration information includes:

[0148] Determine whether the terminal device has a preset application installed. If so, display the network configuration information in the preset application.

[0149] In some embodiments, the preset application includes at least one of the following: a control app for the electrical product, and a browser.

[0150] In some embodiments, when the application is a control APP for the electrical product, the method determination module 22, when determining the network access method of the terminal device according to the distribution network information, includes:

[0151] The network configuration information is copied to the clipboard of the terminal device. When a user triggers the command, the terminal device is controlled to jump to the Wi-Fi connection interface and connect to the network by pasting the network configuration information.

[0152] In some embodiments, when the application is the browser, the method determination module 22, when determining the network access method of the terminal device according to the network configuration information, includes:

[0153] The browser's URL address bar is retrieved, and the network configuration information is displayed in the browser's URL address bar. The terminal device connects to the network by copying the network configuration information from the URL address bar and pasting it into the Wi-Fi connection interface.

[0154] In some embodiments, the method determining module 22 is specifically used for:

[0155] When the terminal device itself is a non-iOS operating system type, determining the network access method of the terminal device based on the network configuration information includes:

[0156] The acquired distribution network information is displayed in a pop-up window on the terminal device's display interface. Upon receiving a user's trigger command, the terminal device is controlled to access the network based on the distribution network information.

[0157] In some embodiments, the acquisition module 21 is specifically used for:

[0158] The terminal device communicates with the electrical appliance via NFC, wherein the NFC data area of ​​the electrical appliance includes the network configuration information of the connected Wi-Fi network;

[0159] Based on the communication connection, the terminal device obtains the power distribution network information.

[0160] In some embodiments, the network configuration information in the NFC data area of ​​the electrical appliance includes the MAC address of the electrical appliance.

[0161] like Figure 8 As shown, the device further includes: an information query module 23, used to: after the terminal device obtains the network configuration information, send query information containing the MAC address to the cloud server, so that the cloud server, when storing the wireless network information corresponding to the MAC address, can feed back the wireless network information to the terminal device, wherein the wireless network information is the information sent to the cloud server by the electrical product after it accesses the network;

[0162] The device further includes an information receiving module 24, used to receive the wireless network information and access the network based on the wireless network information.

[0163] In some embodiments, the power distribution information further includes connection identification information, which is used to identify whether the electrical appliance is connected to the network;

[0164] Information query module 23 is specifically used for:

[0165] When the connection identification information indicates that the electrical product has been connected to the network, the terminal device sends a query message containing the MAC address to the cloud server.

[0166] The specific implementation process of the functions and roles of each module in the above device can be found in the implementation process of the corresponding steps in the above method, and will not be repeated here.

[0167] This disclosure also provides an electronic device, such as... Figure 9 As shown, the electronic device includes a memory 91 and a processor 92. The memory 91 is used to store computer instructions that can be executed on the processor, and the processor 92 is used to implement the device access network method according to any embodiment of this disclosure when executing the computer instructions.

[0168] This specification also provides a computer program product, which includes a computer program / instructions that, when executed by a processor, implement the device access network method described in any embodiment of this specification.

[0169] This specification also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for device access to a network as described in any embodiment of this specification.

[0170] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to in the description of the method embodiments. The device embodiments described above are merely illustrative. The modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of the solution in this specification according to actual needs. Those skilled in the art can understand and implement this without creative effort.

[0171] The foregoing has described specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require the specific or sequential order shown to achieve the desired result. In some embodiments, multitasking and parallel processing are possible or may be advantageous.

[0172] Other embodiments of this specification will readily occur to those skilled in the art upon consideration of the specification and practice of the invention claimed herein. This specification is intended to cover any variations, uses, or adaptations that follow the general principles of this specification and include common knowledge or customary techniques in the art not claimed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this specification are indicated by the following claims.

[0173] It should be understood that this specification is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this specification is limited only by the appended claims.

[0174] The above description is merely a preferred embodiment of this specification and is not intended to limit this specification. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this specification should be included within the scope of protection of this specification.

Claims

1. A method for a device to access a network, characterized in that, The method includes: The terminal device obtains the network configuration information of the Wi-Fi network through Near Field Communication (NFC); ​​wherein, the terminal device establishes a communication connection with an electrical product with an NFC module through NFC, and reads the network configuration information from the NFC data area of ​​the electrical product, the NFC data area of ​​the electrical product including the network configuration information of the connected Wi-Fi network; Based on the device type of the terminal device itself, the network access method of the terminal device according to the network configuration information is determined so that the terminal device can access the Wi-Fi network according to the network access method; wherein, the terminal device copies the network configuration information and accesses the Wi-Fi network by pasting the network configuration information; The network access methods include: Determine whether the terminal device has a preset application installed. If so, display the network configuration information in the preset application, or The acquired distribution network information is displayed in a pop-up window on the terminal device's display interface. Upon receiving a user's trigger command, the terminal device is controlled to access the network based on the distribution network information.

2. The method according to claim 1, characterized in that, Determining the network access method of the terminal device based on its own device type, according to the network distribution information, includes: When the terminal device itself is an iOS or Android operating system, determine whether the terminal device has a preset application installed. If so, display the network configuration information in the preset application.

3. The method according to claim 2, characterized in that, The preset application includes at least one of the following: a control app, a browser.

4. The method according to claim 3, characterized in that, When the application is a control APP, the network access method of the terminal device based on the network configuration information is determined to include: The network configuration information is copied to the clipboard of the terminal device. When a user triggers the command, the terminal device is controlled to jump to the Wi-Fi connection interface and connect to the network by pasting the network configuration information.

5. The method according to claim 3, characterized in that, When the application is the browser, the network access method of the terminal device based on the network configuration information is determined to include: The browser's URL address bar is retrieved, and the network configuration information is displayed in the browser's URL address bar. The terminal device connects to the network by copying the network configuration information from the URL address bar and pasting it into the Wi-Fi connection interface.

6. The method according to claim 1, characterized in that, Determining the network access method of the terminal device based on its own device type, according to the network distribution information, includes: When the terminal device itself is a non-iOS operating system type, the obtained network configuration information will be displayed in a pop-up window on the terminal device's display interface. When a user triggers the command, the terminal device will be controlled to access the network according to the network configuration information.

7. The method according to claim 1, characterized in that, The terminal device obtains Wi-Fi network configuration information via NFC, including: The terminal device communicates with the electrical appliance via NFC, wherein the NFC data area of ​​the electrical appliance includes the network configuration information of the connected Wi-Fi network; Based on the communication connection, the terminal device obtains the power distribution network information.

8. The method according to claim 7, characterized in that, The network configuration information in the NFC data area of ​​the electrical product includes the media access control MAC address of the electrical product. After the terminal device obtains the distribution network information, the method further includes: The terminal device sends a query message containing the MAC address to the cloud server, so that the cloud server, if it has stored the wireless network information corresponding to the MAC address, will send the wireless network information back to the terminal device. The wireless network information is the information sent by the electrical product to the cloud server after it accesses the network. The terminal device receives the wireless network information and accesses the network according to the wireless network information.

9. The method according to claim 8, characterized in that, The power distribution information also includes connection identification information, which is used to identify whether the electrical product is connected to the network. The terminal device sends a query message containing the MAC address to the cloud server, including: When the connection identification information indicates that the electrical product has been connected to the network, the terminal device sends a query message containing the MAC address to the cloud server.

10. An apparatus for connecting a device to a network, characterized in that, The device includes: The acquisition module is used to acquire the network configuration information of the Wi-Fi network via NFC; wherein, the terminal device establishes a communication connection with the electrical product with the NFC module via NFC, and reads the network configuration information from the NFC data area of ​​the electrical product, the NFC data area of ​​the electrical product including the network configuration information of the connected Wi-Fi network; The method determination module is used to determine the network access method of the terminal device based on its own device type, according to the network configuration information, so that the terminal device can access the Wi-Fi network according to the network access method; wherein, the terminal device copies the network configuration information and accesses the Wi-Fi network by pasting the network configuration information; the network access method includes: Determine whether the terminal device has a preset application installed. If so, display the network configuration information in the preset application, or The acquired distribution network information is displayed in a pop-up window on the terminal device's display interface. Upon receiving a user's trigger command, the terminal device is controlled to access the network based on the distribution network information.

11. An electrical product, characterized in that, The electrical product has an NFC module, a Wi-Fi module, and a main control module; After the Wi-Fi module connects to the Wi-Fi network, the main control module updates the network configuration information in the NFC data area according to the information of the connected network. This allows the terminal device to connect to the network to obtain the network configuration information based on the communication connection after it establishes a communication connection with the electrical appliance. Based on the device type of the terminal device, the module determines the network access method of the terminal device according to the network configuration information, so that the terminal device can access the Wi-Fi network according to the network access method. The terminal device establishes a communication connection with the electrical appliance with an NFC module via NFC and reads the network configuration information from the NFC data area of ​​the electrical appliance. The NFC data area of ​​the electrical appliance includes the network configuration information of the connected Wi-Fi network. The terminal device copies the network configuration information and accesses the Wi-Fi network by pasting the network configuration information. The network access method includes: determining whether the terminal device has a preset application installed. If so, the network configuration information is displayed in the preset application, or the obtained network configuration information is displayed in a pop-up window on the display interface of the terminal device. When a user trigger command is received, the terminal device is controlled to access the network according to the network configuration information.

12. An electronic device, characterized in that, The device includes a memory and a processor, the memory being used to store computer instructions that can run on the processor, and the processor being used to implement the method of any one of claims 1 to 9 when executing the computer instructions.

13. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method described in any one of claims 1 to 9.

Citation Information

Patent Citations

  • Network distribution method, storage medium, mobile terminal, household appliance and network distribution system

    CN113938342A

  • Method for connecting household electrical appliance product to product server

    CN115348123A