Network access method and apparatus
Through the distribution network auxiliary equipment, the process of IoT devices accessing the home network is simplified, the problem of cumbersome user control steps is solved, and the accuracy and efficiency of access is improved.
Patent Information
- Application Number
- PCT/CN2024/109922
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-08-30
- Filing Date
- 2024-08-05
- Publication Date
- 2025-03-06
AI Technical Summary
During the process of IoT devices connecting to the home network, the user control process is relatively lengthy and cumbersome, especially in the steps of obtaining product information, entering WiFi passwords and PIN codes.
Through the distribution network auxiliary equipment, the location of the IoT device is determined using distance detection and broadcast message signal strength, and the access process of the IoT device is simplified through user authorization operations (such as touch, press, shake).
The process of IoT devices accessing target routers is simplified, the accuracy of network access is improved, and distance misjudgment is avoided due to inconsistent RF capabilities.
Smart Images

Figure CN2024109922_06032025_PF_FP_ABST
Abstract
Description
Network access method and device
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on August 30, 2023, with application number 202311128623.2 and application name “A Network Access Method and Device”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The embodiments of the present application relate to the field of Internet of Things, and more specifically, to a network access method and device. Background Art
[0003] With the rapid development of the Internet of Things (IoT) technology, more and more IoT devices are connected to home networks. Users can access IoT devices by installing applications (APPs) such as "Smart Life" (also known as home APPs, IoT APPs, etc.) on their mobile terminals. For IoT devices to connect to the home network, users need to scan the QR code of the IoT device to obtain product information stored by the IoT device manufacturer. Furthermore, users need to enter the wireless fidelity (WiFi) password, the personal identification number (PIN) of the IoT device, etc. to configure the IoT device before the connection is completed. Therefore, the user operation process of connecting IoT devices to the home network is lengthy and cumbersome.
[0004] Summary of the Invention
[0005] The embodiments of the present application provide a network access method and apparatus, which can simplify the process of IoT devices accessing a target router and make the timing of network access more accurate.
[0006] To achieve the above objectives, this application adopts the following technical solutions:
[0007] In a first aspect, a network access method is provided. This method can be performed by a network configuration auxiliary device, or by a component of the network configuration auxiliary device, such as a processor, chip, or chip system of the network configuration auxiliary device. It can also be implemented by a logic module or software that implements all or part of the functions of the network configuration auxiliary device. Taking the example of a method that can be performed by the network configuration auxiliary device, the method includes: when the network configuration auxiliary device and an Internet of Things (IoT) device are within a first distance, the network configuration auxiliary device prompts a user to perform an authorization operation; in response to the user's authorization operation, the network configuration auxiliary device sends first information to the IoT device, where the first information is used by the IoT device to connect to a target router.
[0008] In the network access method provided in an embodiment of the present application, when a network configuration auxiliary device determines that the distance to an IoT device is within a first distance, the device sends first information to the IoT device for the IoT device to access a target router, allowing the IoT device to quickly access the target router based on the first information. This simplifies the process of IoT device accessing the target router. Furthermore, having the network configuration auxiliary device determine the distance can avoid misjudgments of the distance between the network configuration auxiliary device and the IoT device, which could occur due to inconsistent radio frequency capabilities between different IoT devices, thereby ensuring more accurate timing for network access.
[0009] In an embodiment of the present application, the method further includes: the network configuration auxiliary device sends a first broadcast message; the network configuration auxiliary device receives a first response message, the first response message including the signal strength of the first broadcast message measured by the IoT device; the network configuration auxiliary device determines that the distance between the network configuration auxiliary device and the IoT device is within a first distance based on the signal strength of the first broadcast message. The network configuration auxiliary device sends a first broadcast message to the IoT device, and through the signal strength of the first broadcast message included in the first response message, the network configuration auxiliary device can determine whether the distance to the IoT device is within the first distance. Furthermore, in the case where the distance between the network configuration auxiliary device and the IoT device is within the first distance, the network configuration auxiliary device can prompt the user to perform an authorization operation. Among them, sending the first broadcast message by the network configuration auxiliary device can improve the stability of the first broadcast message.
[0010] In one possible implementation, the first response message also includes a device tag of the IoT device, where the device tag of the IoT device is used to identify the IoT device, or the device tag of the IoT device is used to identify the type of the IoT device; the network configuration auxiliary device determines that the distance between the network configuration auxiliary device and the IoT device is within a first distance based on the signal strength of the first broadcast message, including: the network configuration auxiliary device determines that the distance between the network configuration auxiliary device and the IoT device is within the first distance based on the signal strength of the first broadcast message and the device tag of the IoT device. Through the device tag, the network configuration auxiliary device can determine the first distance of the corresponding IoT device more flexibly; further, the network configuration auxiliary device can determine that the distance between the network configuration auxiliary device and the IoT device is within the first distance based on the signal strength of the first broadcast message and the device tag of the IoT device.
[0011] In the embodiment of the present application, the authorization operation includes at least one of the following: tap, click, and shake. Authorization based on user behavior can avoid the user from re-entering the password, simplifying the network configuration process of the IoT device.
[0012] In an embodiment of the present application, the method further includes: the network configuration auxiliary device sends a detection message, the detection message includes a first serial number and second information encrypted with a public key, and the second information is used to indicate the hardware response of the IoT device; in response to the hardware response of the IoT device, the network configuration auxiliary device sends a confirmation message to the IoT device, and the confirmation message is used to confirm the IoT device corresponding to the first serial number encrypted with a public key. The network configuration auxiliary device enables the IoT device to confirm that the detection message is directed to itself by sending a detection message carrying the first serial number and second information encrypted with a public key. Furthermore, the IoT device triggers a hardware response based on the second information, and the user can confirm the IoT device based on the hardware response. Then, the network configuration auxiliary device sends a confirmation message to the IoT device to confirm the IoT device. In one possible scenario, when there are multiple similar IoT devices in the environment, the IoT device can trigger the hardware response of the IoT device to enable the user to confirm the IoT device, thereby preventing economic losses caused by the mistaken access of illegal devices.
[0013] In an embodiment of the present application, the method further includes: the network configuration auxiliary device receiving a second broadcast message from the IoT device, the second broadcast message including the media access control (MAC) address and public key of the IoT device, the MAC address and public key being used to generate a first serial number encrypted by the public key. By sending the second broadcast message, the IoT device can cause the IoT device to be displayed in the scan results of the network configuration auxiliary device.
[0014] In the embodiment of the present application, the distance between the network configuration auxiliary device and the IoT device is obtained by periodic measurement. By periodically measuring the distance between the network configuration auxiliary device and the IoT device, the accuracy of the distance between the network configuration auxiliary device and the IoT device is improved.
[0015] In a second aspect, a network access method is provided. The method can be executed by an IoT device, or by a component of the IoT device, such as a processor, chip, or chip system of the IoT device, or by a logic module or software that can implement all or part of the functions of the IoT device. Taking the method as an example of being executed by an IoT device, the method includes: the IoT device receives first information, where the first information indicates that a network configuration auxiliary device determines that the distance to the IoT device is within a first distance, the network configuration auxiliary device prompts a user to perform an authorization operation, and the first information is sent in response to the user's authorization operation, and the IoT device accesses the target router based on the first information.
[0016] In the network access method provided in an embodiment of the present application, when a network configuration auxiliary device determines that the distance to an IoT device is within a first distance, the device sends first information to the IoT device for the IoT device to access a target router, allowing the IoT device to quickly access the target router based on the first information. This simplifies the process of IoT device accessing the target router. Furthermore, having the network configuration auxiliary device determine the distance can avoid misjudgments of the distance between the network configuration auxiliary device and the IoT device, which could occur due to inconsistent radio frequency capabilities between different IoT devices, thereby ensuring more accurate timing for network access.
[0017] In an embodiment of the present application, the method further includes: the IoT device receives a first broadcast message and measures the signal strength of the first broadcast message; the IoT device sends a first response message, and the first response message includes the signal strength of the first broadcast message measured by the IoT device. The IoT device receives the first broadcast message from the network configuration auxiliary device, and the IoT device sends a first response message to the network configuration auxiliary device. Through the signal strength of the first broadcast message included in the first response message, the network configuration auxiliary device can determine whether the distance to the IoT device is within the first distance. Furthermore, in the case where the distance between the network configuration auxiliary device and the IoT device is within the first distance, the network configuration auxiliary device can prompt the user to perform an authorization operation. Among them, sending the first broadcast message through the network configuration auxiliary device can improve the stability of the first broadcast message.
[0018] In one possible implementation, the first response message also includes a device tag for the IoT device. The device tag identifies the IoT device, or the type of the IoT device. Using the device tag, the network auxiliary device can determine the first distance to the IoT device, providing greater flexibility.
[0019] In the embodiment of the present application, the authorization operation includes at least one of the following: tap, click, and shake. Authorization based on user behavior can avoid the user from re-entering the password, simplifying the network configuration process of the IoT device.
[0020] In an embodiment of the present application, the method further includes: the IoT device receives a probe message from a network distribution auxiliary device, the probe message including a first serial number and second information encrypted with a public key, the second information being used to indicate a hardware response of the IoT device; the IoT device triggers a hardware response based on the second information; the IoT device receives confirmation information from the network distribution auxiliary device, and accesses a target router based on the confirmation information, the confirmation information being used to confirm the IoT device corresponding to the first serial number encrypted with the public key. The IoT device receives a probe message from the network distribution auxiliary device, wherein the probe message includes a first serial number and second information encrypted with a public key, so that the IoT device confirms that the probe message is directed to itself. Furthermore, the IoT device triggers a hardware response based on the second information, and the user can confirm the IoT device based on the hardware response. Then, the IoT device receives the confirmation information from the network distribution auxiliary device and accesses the target router based on the confirmation information. In one possible scenario, when there are multiple similar IoT devices in an environment, the IoT device can trigger a hardware response from the IoT device to allow the user to confirm the IoT device, thereby preventing economic losses caused by the erroneous access of illegal devices.
[0021] In an embodiment of the present application, the method further includes: the IoT device sending a second broadcast message to the network configuration auxiliary device, the second broadcast message including the media access control (MAC) address and public key of the IoT device, the MAC address and public key being used to generate a first serial number encrypted by the public key. This allows the IoT device to be displayed in the scan results of the network configuration auxiliary device.
[0022] In the embodiment of the present application, the distance between the network configuration auxiliary device and the IoT device is obtained by periodic measurement. By periodically measuring the distance between the network configuration auxiliary device and the IoT device, the accuracy of the distance between the network configuration auxiliary device and the IoT device is improved.
[0023] In a third aspect, a network access method is provided. This method can be executed by a network configuration auxiliary device, or by a component of the network configuration auxiliary device, such as a processor, chip, or chip system of the network configuration auxiliary device. It can also be implemented by a logic module or software that implements all or part of the functions of the network configuration auxiliary device. Taking the example of a method that can be executed by the network configuration auxiliary device, the method includes: the network configuration auxiliary device sending a probe message, the probe message including a first serial number encrypted with a public key and second information indicating a hardware response of an IoT device; in response to the hardware response of the IoT device, the network configuration auxiliary device sending a confirmation message to the IoT device, the confirmation message confirming the IoT device corresponding to the first serial number encrypted with a public key.
[0024] In the network access method provided in the embodiment of the present application, the network configuration auxiliary device sends a detection message carrying a first serial number and second information encrypted with a public key, so that the IoT device confirms that the detection message is directed to itself. Furthermore, the IoT device triggers a hardware response based on the second information, and the user can confirm the IoT device based on the hardware response. Then, the network configuration auxiliary device sends a confirmation message to the IoT device to confirm the IoT device. In one possible scenario, when there are multiple similar IoT devices in the environment, the IoT device can trigger the hardware response of the IoT device to allow the user to confirm the IoT device, thereby preventing economic losses caused by the accidental access of illegal devices.
[0025] In an embodiment of the present application, the method further includes: the network configuration auxiliary device receiving a second broadcast message from the IoT device, the second broadcast message including the media access control (MAC) address and public key of the IoT device, the MAC address and public key being used to generate a first serial number encrypted by the public key. By sending the second broadcast message, the IoT device can cause the IoT device to be displayed in the scan results of the network configuration auxiliary device.
[0026] In a fourth aspect, a network access method is provided. This method can be executed by an IoT device, or by a component of the IoT device, such as a processor, chip, or chip system of the IoT device. It can also be implemented by a logic module or software that can implement all or part of the IoT device's functions. Taking the example of an IoT device executing this method, the method includes: the IoT device receiving a probe message from a network distribution auxiliary device, the probe message including a first serial number encrypted with a public key and second information, the second information being used to indicate a hardware response of the IoT device; the IoT device triggering a hardware response based on the second information; and the IoT device receiving confirmation information from the network distribution auxiliary device and accessing a target router based on the confirmation information, the confirmation information being used to confirm the IoT device corresponding to the first serial number encrypted with a public key.
[0027] In the network access method provided by the embodiment of the present application, an IoT device receives a probe message from a network distribution auxiliary device, wherein the probe message includes a first serial number and second information encrypted with a public key, so that the IoT device confirms that the probe message is directed to itself. Furthermore, the IoT device triggers a hardware response based on the second information, and the user can confirm the IoT device based on the hardware response. Then, the IoT device receives the confirmation information from the network distribution auxiliary device and accesses the target router based on the confirmation information. In one possible scenario, when there are multiple similar IoT devices in an environment, the IoT device can trigger the hardware response of the IoT device to allow the user to confirm the IoT device, thereby preventing economic losses caused by the accidental access of illegal devices.
[0028] In an embodiment of the present application, the method further includes: the IoT device sending a second broadcast message to the network configuration auxiliary device, the second broadcast message including the media access control (MAC) address and public key of the IoT device, the MAC address and public key being used to generate a first serial number encrypted by the public key. This allows the IoT device to be displayed in the scan results of the network configuration auxiliary device.
[0029] In a fifth aspect, a communication device is provided for implementing the various methods described above. The communication device may be the network distribution auxiliary device described in the first or third aspect, or a device included in the network distribution auxiliary device, such as a chip; or the communication device may be the IoT device described in the second or fourth aspect, or a device included in the IoT device, such as a chip.
[0030] The communication device includes modules, units, or means corresponding to the above-mentioned method, which can be implemented by hardware, software, or hardware executing corresponding software implementation. The hardware or software includes one or more modules or units corresponding to the above-mentioned functions.
[0031] In some possible designs, the communication device may include a processing module and a communication module. The communication module may include an output module (or a sending module) and an input module (or a receiving module), respectively configured to implement the output (or sending) and input (or receiving) functions of any of the above aspects and any possible designs thereof. The processing module may be configured to implement the processing functions of any of the above aspects and any possible designs thereof.
[0032] Optionally, the communication device further includes a storage module for storing program instructions and data.
[0033] In a sixth aspect, a communication device is provided, comprising: at least one processor configured to execute a computer program or instruction, or to cause the communication device to execute the method described in any of the above aspects through a logic circuit. The communication device may be the network distribution auxiliary device described in the first or third aspect, or a device included in the network distribution auxiliary device, such as a chip; or the communication device may be the IoT device described in the second aspect, or a device included in the IoT device, such as a chip.
[0034] In some possible designs, the communication device further includes a memory for storing computer instructions and / or configuration files of logic circuits. Optionally, the memory is integrated with the processor, or the memory is independent of the processor.
[0035] In one possible design, the communication device further includes a communication interface for inputting and / or outputting signals.
[0036] In some possible designs, the communication interface is an interface circuit for reading and writing computer instructions. For example, the interface circuit is used to receive computer execution instructions (computer execution instructions are stored in a memory, may be read directly from the memory, or may pass through other devices) and transmit them to the processor.
[0037] In some possible designs, the communication interface is used to communicate with modules outside the communication device.
[0038] In some possible designs, the communication device may be a chip system. When the communication device is a chip system, the chip system may include a chip or may include a chip and other discrete devices.
[0039] In a seventh aspect, a communication device is provided, comprising: a logic circuit and an interface circuit; the interface circuit is configured to input and / or output information; and the logic circuit is configured to execute the method described in any of the above aspects, processing the input information and / or generating output information. The communication device may be the network distribution auxiliary device described in the first or third aspect, or a device included in the network distribution auxiliary device, such as a chip; or the communication device may be the IoT device described in the second or fourth aspect, or a device included in the IoT device, such as a chip.
[0040] It can be understood that when the communication device provided in any one of the fifth to seventh aspects is a chip, the above-mentioned sending action / function can be understood as output information, and the above-mentioned receiving action / function can be understood as input information.
[0041] In an eighth aspect, a computer-readable storage medium is provided, in which a computer program or instruction is stored. When the computer program or instruction is executed by a processor, the method described in any one of the above aspects is executed.
[0042] In a ninth aspect, a computer program product is provided, which, when executed by a processor, enables the method described in any one of the above aspects to be executed.
[0043] In a tenth aspect, a communication device is provided, which includes a module / unit for executing the method described in the first aspect or the second aspect.
[0044] In the eleventh aspect, a communication method is provided, which includes the method described in the first aspect and the method described in the second aspect.
[0045] In a twelfth aspect, a communication system is provided, comprising the network distribution auxiliary device described in the first or third aspect and the IoT device described in the second or fourth aspect. The network distribution auxiliary device and the IoT device can be implemented as the communication apparatus provided in any one of aspects 5 to 7.
[0046] Among them, the technical effects brought about by any design method in the fifth to twelfth aspects can refer to the technical effects brought about by the different design methods in the above-mentioned first to fourth aspects, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] FIG1 is a schematic diagram of an IoT device network configuration process according to an embodiment of the present application;
[0048] FIG2 is a schematic diagram of the process of configuring IoT devices using Soft AP technology according to an embodiment of the present application;
[0049] FIG3 is a schematic diagram of the system architecture of an embodiment of the present application;
[0050] FIG4 is a schematic structural diagram of a distribution network auxiliary device 100 provided in an embodiment of the present application;
[0051] FIG5 is a software structure block diagram of the network distribution auxiliary device 100 according to an embodiment of the present application;
[0052] FIG6 is a schematic structural diagram of an IoT device 200 provided in an embodiment of the present application;
[0053] FIG7 is a schematic diagram of a network access method provided in an embodiment of the present application;
[0054] FIG8 is a schematic diagram of the first application of the network distribution auxiliary device prompting the user to perform an authorization operation
[0055] FIG9 is a schematic diagram of a first application scanning result interface provided in an embodiment of the present application;
[0056] FIG10 is a schematic diagram of a plurality of similar devices in an environment provided by an embodiment of the present application;
[0057] FIG11 is a schematic diagram of a user confirmation IoT device provided in an embodiment of the present application;
[0058] FIG12 is a schematic diagram of another network access method provided in an embodiment of the present application;
[0059] FIG13 is a schematic diagram of a communication device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0060] In the description of this application, unless otherwise specified, " / " indicates that the objects associated before and after are in an "or" relationship, for example, A / B can represent A or B; "and / or" in this application is merely a description of the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural.
[0061] In the description of this application, unless otherwise specified, "plurality" means two or more than two. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b and / or c can be represented by: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or plural.
[0062] In addition, to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. Those skilled in the art will understand that the words "first" and "second" do not limit the quantity or execution order, and the words "first" and "second" do not necessarily mean different.
[0063] In the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner to facilitate understanding.
[0064] It will be understood that the “embodiment” mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, the various embodiments throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It will be understood that in the various embodiments of the present application, the size of the sequence number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.
[0065] It can be understood that in this application, "when" and "if" both mean that corresponding processing will be taken under certain objective circumstances, and do not limit the time, nor do they require any judgment action when implementing, nor do they mean that there are other limitations.
[0066] It is understood that some optional features in the embodiments of the present application may, in certain scenarios, be implemented independently of other features, such as the solution on which they are currently based, to solve corresponding technical problems and achieve corresponding effects. They may also be combined with other features in certain scenarios as needed. Accordingly, the devices provided in the embodiments of the present application may also implement these features or functions accordingly, which will not be described in detail here.
[0067] In this application, unless otherwise specified, the same or similar parts between the various embodiments can refer to each other. In the various embodiments of this application, unless otherwise specified and there is no logical conflict, the terms and / or descriptions between different embodiments are consistent and can be referenced to each other, and the technical features in different embodiments can be combined to form new embodiments based on their inherent logical relationships. The following description of the embodiments of this application does not constitute a limitation on the scope of protection of this application.
[0068] To facilitate understanding of the technical solutions provided by the embodiments of the present application, a brief introduction to the relevant technologies of the embodiments of the present application is first given.
[0069] 1. IoT device network configuration process.
[0070] Figure 1 is a schematic diagram of the IoT device network configuration process according to an embodiment of the present application. As shown in Figure 1, the IoT network configuration process includes: the user adding an IoT device pre-step, the IoT device network configuration step, and the account and IoT device binding step.
[0071] The pre-installation steps for users to add IoT devices include:
[0072] 1. The user discovers nearby IoT devices. For example, the user displays a list of nearby IoT devices scanned by the network configuration auxiliary device.
[0073] 2. The user selects the IoT device that requires network configuration. For example, the user selects the IoT device that requires network configuration from a list of nearby IoT devices scanned and displayed by the network configuration auxiliary device. Network configuration in this embodiment of the application refers to connecting the IoT device to an access point (AP). For example, the AP can be a home router.
[0074] 3. The user obtains the network configuration solution for the IoT device from the cloud. For example, the user obtains the network configuration solution for the IoT device from the cloud server through a network configuration auxiliary device.
[0075] In the embodiment of the present application, the user needs to perform APP scanning, device addition, manual password configuration, etc. before the IoT device can connect to the AP and execute the subsequent registration process to the server.
[0076] The IoT device network configuration steps include:
[0077] 1. The IoT device completes network configuration and connects to the AP.
[0078] 2. The AP notifies the device information of the IoT device that has completed network configuration.
[0079] The steps for binding an account to an IoT device include:
[0080] 1. The user completes IoT device binding.
[0081] 2. The user completes adding the IoT device.
[0082] The following uses Soft AP network configuration as an example. Figure 2 is a schematic diagram of the IoT device network configuration process using Soft AP technology in an embodiment of the present application. In this embodiment of the present application, Soft APs are not significantly different from APs, but their access capabilities and coverage are far inferior to those of APs. Soft APs can typically only connect to a few or a dozen wireless devices, are not suitable for permanent outdoor placement, and cannot be placed in high locations such as ceilings. Outdoor antenna installation is also not convenient, significantly limiting their signal coverage. In this embodiment of the present application, the Soft AP can be a home router.
[0083] As shown in Figure 2, the network configuration process includes the following steps:
[0084] Step 1: The Soft AP broadcasts the service set identifier (SSID).
[0085] Step 2: The network configuration auxiliary device connects to the Soft AP through the SSID and discovers the IoT device to be configured.
[0086] Step 3: The auxiliary network configuration device encrypts and transmits the SSID and password of the IoT device to be configured to the Soft AP.
[0087] Step 4: The Soft AP decrypts the SSID and password of the IoT device to be provisioned, allowing the IoT device to connect to the WiFi. For example, the Soft AP further registers the IoT device with the target server.
[0088] In the embodiment of the present application, when there is only a single IoT device to be networked, the user can easily identify the corresponding IoT device based on the SSID and / or the type of the IoT device.
[0089] FIG3 is a schematic diagram of a system architecture according to an embodiment of the present application, wherein the system architecture includes at least one network distribution auxiliary device 100 , at least one IoT device 200 , and a server 300 .
[0090] The network configuration auxiliary device 100 is used to bind an IoT device 200. The network configuration auxiliary device 100 can configure the network for the IoT device 200. In some embodiments, the network configuration auxiliary device 100 can be, for example, a mobile phone, a tablet computer, a personal computer (PC), a personal digital assistant (PDA), a smartwatch, a netbook, a wearable electronic device, etc. This application does not impose any particular restrictions on the specific form of the network configuration auxiliary device 100.
[0091] IoT devices 200, for example, can be smart home hardware devices, including mobile terminals, household appliances, and sensor devices. For example, IoT devices 200 can be smartphones, smart speakers, smart refrigerators, smart TVs, smart lights, smart sockets, air purifiers, humidifiers, smart range hoods, smart desk lamps, smart door locks, smart power strips, smart induction cookers, smart cameras, and the like. IoT devices 200 can also be smoke sensors, human motion sensors, temperature sensors, humidity sensors, door and window sensors, PM2.5 air sensors, and the like, though these are not limited in this embodiment of the present application.
[0092] The server 300 can be, for example, a cloud server, a home cloud server, or a server cluster consisting of multiple servers. In some embodiments, the network auxiliary device 100 can request the server 300 to register the IoT device. In this way, the server 300 records the home APP account information bound to the IoT device 200. In other words, the server 300 stores relevant control information of the IoT device 200, such as the account of the home application (such as the "Smart Life" application) or the IoT device application (such as the smart speaker application) logged in by the IoT device, as well as the device identifier of the IoT device.
[0093] For example, the system architecture of the embodiment of the present application can be applied to a whole-house smart scenario, where there are multiple IoT devices waiting for network configuration. Alternatively, for example, the system architecture of the embodiment of the present application can be applied to a whole-house smart scenario, where there are multiple IoT devices of the same model and a large number waiting for network configuration. The embodiment of the present application does not specifically limit the scenario in which the system architecture is applied.
[0094] FIG4 is a schematic structural diagram of a network distribution auxiliary device 100 provided in an embodiment of the present application.
[0095] The network connection auxiliary 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 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0096] It should be understood that the structure illustrated in the embodiments of this application does not constitute a specific limitation on the network distribution auxiliary device 100. In other embodiments of this application, the network distribution auxiliary device 100 may include more or fewer components than illustrated, or may combine or separate certain components, or employ a different component arrangement. The illustrated components may be implemented in hardware, software, or a combination of both.
[0097] 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 processing unit (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). The different processing units may be independent devices or integrated into one or more processors. The controller may generate operation control signals based on instruction opcodes and timing signals to control instruction fetching and execution.
[0098] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.
[0099] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.
[0100] It should be understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is merely illustrative and does not constitute a structural limitation on the network distribution auxiliary device 100. In other embodiments of the present application, the network distribution auxiliary device 100 may also adopt a different interface connection method from the above embodiments, or a combination of multiple interface connection methods.
[0101] The charging management module 140 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input via the wireless charging coil of the network auxiliary device 100. While charging the battery 142, the charging management module 140 can also power the electronic device through the power management module 141.
[0102] 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 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0103] The wireless communication function of the network distribution auxiliary 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.
[0104] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the network distribution auxiliary device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0105] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the network distribution auxiliary 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.
[0106] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the network distribution auxiliary device 100. The wireless communication module 160 can be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0107] In some embodiments, antenna 1 of the network configuration auxiliary device 100 is coupled to the mobile communication module 150, and antenna 2 is coupled to the wireless communication module 160, so that the network configuration auxiliary device 100 can communicate with the network and other devices via wireless communication technologies. The wireless communication technologies 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).
[0108] The network distribution auxiliary device 100 implements display functions through a GPU, display screen 194, and an application processor. The GPU is a microprocessor for image processing that connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.
[0109] The network configuration auxiliary device 100 can realize the shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194 and the application processor.
[0110] 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 distribution network auxiliary 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. The program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the distribution network auxiliary device 100 (such as audio data, a phone book, etc.), 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.
[0111] The network configuration auxiliary device 100 can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0112] The software system of the network configuration auxiliary device 100 can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a microservice architecture, or a cloud architecture. In the embodiment of the present application, the Android system with a layered architecture is used as an example to illustrate the software structure of the network configuration auxiliary device 100.
[0113] FIG5 is a software structure block diagram of the network distribution auxiliary device 100 according to an embodiment of the present application.
[0114] A layered architecture divides software into several layers, each with distinct roles and responsibilities. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.
[0115] The application layer may include a series of application packages. In the embodiment of the present application, the application layer may include a first application for providing a human-computer interaction interface between the network distribution auxiliary device 100 and the IoT device 200. The first application may be a smart home (e.g., a "Smart Life" app) or a dedicated application for a specific IoT device (e.g., a smart speaker app).
[0116] In an embodiment of the present application, one possible implementation method is: when a user carries the network configuration auxiliary device 100 close to the IoT device 200, if the distance between the network configuration auxiliary device 100 and the IoT device is within a first distance, the first application of the network configuration auxiliary device 100 will prompt the user to perform an authorization operation.
[0117] In this embodiment of the present application, the network configuration auxiliary device 100 can sink the capabilities and data related to IoT device network access in the first application to the framework layer. That is, the services related to IoT network access in the first application are set as system services, such as the "IoT device management module."
[0118] As shown in FIG5 , the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short message.
[0119] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions.
[0120] As shown in FIG5 , the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
[0121] 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. In the embodiment of the present application, the window manager is used to determine whether the network configuration auxiliary device has a status bar prompting the user to authorize.
[0122] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0123] The view system includes visual controls, such as controls for displaying text and images. 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. In the embodiments of the present application, the view system first applies to the display interface of the notification icon, etc.
[0124] The phone manager is used to provide communication functions for the network configuration auxiliary device 100, such as management of call status (including answering, hanging up, etc.).
[0125] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0126] The Notification Manager allows applications to display notifications in the status bar, such as notifications prompting the user to authorize. It can be used to convey informational messages and can disappear automatically after a short pause, without requiring user interaction. For example, the Notification Manager is used to notify the user of a completed download or provide message reminders. The Notification Manager can also display notifications in the form of icons or scrolling text in the top status bar of the system, such as notifications from applications running in the background, or in the form of dialog windows on the screen. Examples include displaying text messages in the status bar, sounding notifications, vibrating electronic devices, and flashing indicator lights.
[0127] Android Runtime includes core libraries and a virtual machine. Android Runtime is responsible for scheduling and management of the Android system.
[0128] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.
[0129] The application layer and application framework layer run in a virtual machine. The virtual machine executes Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.
[0130] The system library can include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0131] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
[0132] The media library supports playback and recording of a variety of common audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0133] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0134] A 2D graphics engine is a drawing engine for 2D drawings.
[0135] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, and sensor driver.
[0136] The following describes the software and hardware workflow of the network configuration auxiliary device 100 in conjunction with the capture and photographing scene.
[0137] When the touch sensor 280K receives a touch operation, the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch operation into a raw input event (including touch coordinates, touch operation timestamp, and other information). The raw input event is stored in the kernel layer. The application framework layer obtains the raw input event from the kernel layer and identifies the control corresponding to the input event. For example, if the touch operation is a touch single-click operation and the control corresponding to the single-click operation is the control of the camera application icon, the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer to capture a still image or video through the camera 193.
[0138] In addition, the composition structures shown in Figures 4 and 5 do not constitute a limitation on the distribution network auxiliary equipment 100. In addition to the components shown in Figures 4 and 5, the distribution network auxiliary equipment 100 may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0139] Figure 6 is a schematic diagram of the structure of an IoT device 200 provided in an embodiment of the present application. IoT device 200 may include one or more processors 210, one or more memories 220, one or more communication interfaces 230, a wireless communication module 240, and one or more antennas. Processor 210, memory 220, communication interface 230, and wireless communication module 240 are connected via a bus.
[0140] The processor 210 may include a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or an integrated circuit for controlling the execution of the program of the present application. In one example, the processor 210 may also include multiple CPUs, and the processor 210 may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. The processor here may refer to one or more devices, circuits, or processing cores for processing data (such as computer program instructions).
[0141] Memory 220 can be used to store computer-executable program code, including instructions. The internal memory may include a program storage area and a data storage area. The program storage area can store an operating system and programs or instructions required for use in embodiments of the present application.
[0142] The communication interface 230 can be used to communicate with other devices or communication networks, such as Ethernet, wireless local area networks (WLAN), etc. In some examples, the IoT device 200 may not include the communication interface 230, which is not limited in the embodiments of the present application.
[0143] The wireless communication module 240 can provide wireless communication solutions for IoT device 200, including WLAN (such as Wi-Fi), Bluetooth, NFC, infrared technology, and other technologies. The wireless communication module 240 can be one or more devices that integrate at least one communication processing module. The wireless communication module 240 receives electromagnetic waves via an antenna, frequency-modulates and filters the electromagnetic wave signals, and transmits the processed signals to the processor 210. The wireless communication module 240 can also receive signals to be transmitted from the processor 210, frequency-modulate them, amplify them, and convert them into electromagnetic waves for radiation via the antenna.
[0144] In addition, the composition structure shown in Figure 6 does not constitute a limitation on the IoT device 200. In addition to the components shown in Figure 6, the IoT device 200 may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0145] The network access method provided in the embodiment of the present application is described below in conjunction with the system architecture shown in FIG3 .
[0146] It should be noted that in the following embodiments of the present application, the message names, parameter names, or information names between devices are only examples. In other embodiments, they may also be other names, and the method provided in this application does not make specific limitations on this.
[0147] It is understood that in the embodiments of the present application, each device may perform some or all of the steps in the embodiments of the present application. These steps or operations are merely examples, and the embodiments of the present application may also perform other operations or variations of various operations. In addition, the steps may be performed in a different order than those presented in the embodiments of the present application, and it is possible that not all operations in the embodiments of the present application need to be performed.
[0148] Figure 7 is a schematic diagram of an example of a network access method provided in an embodiment of the present application. The method is illustrated by taking the interaction between a network distribution auxiliary device and an IoT device as an example. Of course, the subject that executes the action of the network distribution auxiliary device in the method can also be a device / module in the network distribution auxiliary device, such as a chip, processor, processing unit, etc. in the network distribution auxiliary device; the subject that executes the action of the IoT device in the method can also be a device / module in the IoT device, such as a chip, processor, processing unit, etc. in the IoT device, and the embodiment of the present application does not make specific limitations on this. The processing performed by a single execution subject (for example, a network distribution auxiliary device or an IoT device) in the embodiment of the present application can also be divided into executions by multiple execution subjects, and these execution subjects can be logically and / or physically separated.
[0149] As shown in FIG7 , the network access method 700 provided in the embodiment of the present application includes:
[0150] S750: When the distance between the network configuration auxiliary device and the IoT device is within the first distance, the network configuration auxiliary device prompts the user to perform an authorization operation.
[0151] In the embodiment of the present application, the network configuration auxiliary device is a device that has been connected to the target router, and the network configuration auxiliary device stores the configuration information of the target router, such as the WiFi configuration information of the target router.
[0152] In the embodiment of the present application, the network configuration auxiliary device prompts the user to perform the authorization operation, and the first application of the network configuration auxiliary device prompts the user to perform the authorization operation.
[0153] Exemplarily, the network configuration auxiliary device may be a mobile phone, and the first application may be a mobile phone APP. When the user brings the mobile phone close to the IoT device, the network configuration auxiliary device prompts the user to perform an authorization operation. For example, the mobile phone APP pops up an interface to prompt the user to perform an authorization operation on the IoT device.
[0154] Alternatively, for example, the network configuration auxiliary device may be a button device. When the user holds the button close to the IoT device, the button may light up or the LED light may flash to prompt the user to perform an authorization operation.
[0155] Alternatively, for example, the network distribution auxiliary device can be an independent product or other IoT device, and the user can perform authorization operations according to the display interface of the corresponding device. This embodiment of the present application does not limit this.
[0156] Figure 8 is a schematic diagram of a first application on a network configuration auxiliary device prompting a user to perform an authorization operation. As shown in Figure 8, taking a mobile phone as an example, when the mobile phone is within a first distance from the IoT device, the first application on the mobile phone pops up an interface prompting the user to perform an authorization operation.
[0157] S760: In response to the user's authorization operation, the network configuration auxiliary device sends the first information to the IoT device. Correspondingly, the IoT device receives the first information from the network configuration auxiliary device.
[0158] In this embodiment of the present application, the user's authorization action can include at least one of the following: a tap, a press, or a shake. For example, if the network configuration auxiliary device is a mobile phone, the user's authorization action can be a tap or a shake; or, if the network configuration auxiliary device is a button, the user's authorization action can be a button press. This embodiment of the present application is not limited to this. Authorization based on user behavior can avoid the user having to re-enter the password, simplifying the network configuration process for IoT devices.
[0159] In an embodiment of the present application, the first information can be used to enable the IoT device to access the target router. Exemplarily, the first information can include information related to the target router, such as the SSID and password described in the above-mentioned related art. Exemplarily, the target router can be a home router, and the first information is used to enable the IoT device to access the home router; or, exemplarily, the first information can also include a registration code for the IoT device obtained from the server by the network configuration auxiliary device, which is used to enable the IoT device to further register with the server after accessing the target router. This embodiment of the present application is not limited to this.
[0160] Exemplarily, the network configuration auxiliary device may send the first information to the IoT device via Bluetooth low energy (BLE).
[0161] S770: The IoT device accesses the target router according to the first information.
[0162] In the embodiment of the present application, the IoT device can access the target router and then register with the server based on the first information sent by the network configuration auxiliary device.
[0163] In the network access method provided in an embodiment of the present application, when a network configuration auxiliary device determines that the distance to an IoT device is within a first distance, it transmits first information to the IoT device for the IoT device to access a target router, allowing the IoT device to quickly access the target router based on the first information. Compared to existing technologies, this method can, on the one hand, simplify the process of IoT device accessing the target router; on the other hand, having the network configuration auxiliary device determine the distance can avoid misjudgments of the distance between the network configuration auxiliary device and the IoT device, which could result from inconsistent radio frequency capabilities of different IoT devices, thereby making network access timing more accurate.
[0164] Optionally, the network access method provided in the embodiment of the present application also includes: a step in which the network distribution auxiliary device determines whether the distance to the IoT device is within the first distance. The following exemplifies an implementation method in which the network distribution auxiliary device determines whether the distance to the IoT device is within the first distance, including steps S751-S753. It should be understood that steps S751-S753 are a way for the network distribution auxiliary device to determine whether the distance to the IoT device is within the first distance. Other methods can also be used to determine whether the distance between the network distribution auxiliary device and the IoT device is within the first distance. The embodiment of the present application does not make specific limitations on this. For example, as shown in Figure 7, the network access method provided in the embodiment of the present application can also include the following steps:
[0165] S751: The network distribution auxiliary device sends a first broadcast message. Correspondingly, the IoT device receives the first broadcast message from the network distribution auxiliary device.
[0166] In the embodiment of the present application, the first broadcast message may be a broadcast scan message.
[0167] S752: The IoT device sends a first response message to the network configuration auxiliary device. In response, the network configuration auxiliary device receives the first response message from the IoT device.
[0168] In the embodiment of the present application, the first response message includes the signal strength of the first broadcast message. Exemplarily, the signal strength of the first broadcast message may be a received signal strength indication (RSSI), which is not limited in the embodiment of the present application.
[0169] In an embodiment of the present application, the first response message also includes a device tag of the IoT device. Optionally, the device tag of the IoT device is used to identify the IoT device, or, alternatively, the device tag of the IoT device is used to identify the type of the IoT device. Exemplarily, the device tag of the IoT device identifies the IoT device as a lighting device, or identifies the type of the IoT device as a lighting device. Furthermore, the network distribution auxiliary device can determine the first distance corresponding to the IoT device based on this tag. For example, the first distance of the IoT device corresponding to the IoT device tag is 0.5m.
[0170] S753: The network configuration auxiliary device determines, based on the signal strength of the first broadcast message, that the distance to the IoT device is within a first distance.
[0171] Optionally, in the embodiments of the present application, the first distance may be preconfigured by the network configuration auxiliary device. For example, if the network configuration auxiliary device preconfigures a first distance of 0.5m for a lighting device or a lighting-type device, and the network configuration auxiliary device calculates a distance of 0.4m from the IoT device based on the signal strength of the first broadcast message, the network configuration auxiliary device may determine that the distance to the IoT device is within the first distance.
[0172] Alternatively, optionally, the first distance in the embodiment of the present application may be indicated by an IoT device tag. In this case, the network configuration auxiliary device determines that the distance to the IoT device is within the first distance based on the signal strength of the first broadcast message, which may include: the network configuration auxiliary device determines that the distance to the IoT device is within the first distance based on the signal strength of the first broadcast message and the device tag of the IoT device. Exemplarily, the first distance of the lighting device or lighting-type device identified by the device tag included in the first response message is 0.5, and if the distance to the IoT device calculated by the network configuration auxiliary device based on the signal strength of the first broadcast message is 0.4m, the network configuration auxiliary device can determine that the distance to the IoT device is within the first distance.
[0173] In an embodiment of the present application, the distance between the network configuration auxiliary device and the IoT device is obtained by periodic measurement by the network configuration auxiliary device. Exemplarily, the network configuration auxiliary device improves the accuracy of the distance between the network configuration auxiliary device and the IoT device by adjusting the transmission frequency and scanning duty cycle of the first broadcast message.
[0174] In an embodiment of the present application, a network configuration auxiliary device sends a first broadcast message to an IoT device. Based on the signal strength of the first broadcast message included in a first response message, the network configuration auxiliary device can determine whether it is within a first distance from the IoT device. Furthermore, if the distance between the network configuration auxiliary device and the IoT device is within the first distance, the network configuration auxiliary device can prompt the user to perform an authorization operation. Transmitting the first broadcast message via the network configuration auxiliary device can improve the stability of the first broadcast message.
[0175] Optionally, the network access method provided in the embodiment of the present application further includes: the network configuration auxiliary device confirms the IoT device that wishes to access the target router. The following exemplary process for the network configuration auxiliary device to confirm the IoT device that wishes to access the target router is provided, including steps S710 to S740. It should be understood that steps S710 to S740 are a way for the network configuration auxiliary device to confirm the IoT device that wishes to access the target router, and the network configuration auxiliary device may also confirm the IoT device that wishes to access the target router in other ways, and the embodiment of the present application does not specifically limit this. For example, as shown in Figure 7, the network access method provided in the embodiment of the present application may also include the following steps:
[0176] S710: The IoT device sends a second broadcast message. Correspondingly, the network configuration auxiliary device receives the second broadcast message.
[0177] In an embodiment of the present application, after the IoT device is powered on, it can send a second broadcast message. Exemplarily, the second broadcast message includes the media access control (MAC) address and public key information of the IoT device. The MAC address and public key information are used to generate a first serial number encrypted by the public key, where the first serial number corresponds to the IoT device.
[0178] For example, in a scenario where multiple IoT devices are powered on and simultaneously transmit broadcast messages, a user can use a first application to view scan results for nearby IoT devices and select the IoT device they wish to connect to the target router. For example, the first application can be the first application described in the software application layer of the network configuration auxiliary device shown in FIG. 5 , but this embodiment of the present application is not limited thereto.
[0179] For example, Figure 9 is a schematic diagram of a first application scanning result interface provided by an embodiment of the present application. In one possible scenario, a user uses the first application to view scan results for nearby IoT devices, such as lighting devices. The first application interface displays the labels of multiple scanned lighting devices, and the user can select one of the lighting devices. However, since the lighting devices displayed in the scan results have similar labels, the user cannot determine which lighting device in the environment is the lighting device selected by the user in the first application's scanning result interface.
[0180] S720: The network auxiliary device sends a detection message. In response, the IoT device receives the detection message from the network auxiliary device.
[0181] In an embodiment of the present application, the detection message includes a first serial number encrypted by a public key and second information, and the second information is used to indicate the hardware response of the IoT device. For example, the second information indicates that the hardware response of the IoT device is a flashing light emitting diode (LED) or a sound from a speaker, etc. This embodiment of the present application is not limited to this.
[0182] In this embodiment of the present application, the network configuration auxiliary device sends a probe message. The network configuration auxiliary device does not know in advance which IoT device the probe message is intended for. The probe message only carries a first sequence number encrypted with a public key. The IoT device receives the probe message from the network configuration auxiliary device and determines, based on the first sequence number encrypted with the public key in the probe message, that the probe message is intended for it. Furthermore, the IoT device determines the IoT device's hardware response based on the second information.
[0183] S730: The IoT device triggers a hardware response according to the second information.
[0184] In an embodiment of the present application, the IoT device triggers a hardware response based on the hardware response indicated by the second information. For example, if the hardware response indicated by the second information is a flashing LED, the IoT device triggers its own LED to flash; if the hardware response indicated by the second information is a sound from a speaker, the IoT device triggers its own speaker to sound.
[0185] Accordingly, the user can determine which IoT device in the environment the selected IoT device in the scanning interface represents based on the hardware response of the IoT device. Figure 10 is a schematic diagram of an environment with multiple similar devices, as provided by an embodiment of the present application. As shown in Figure 10 , there are multiple lights in the environment. The user can determine which light in the environment the selected IoT device in the scanning interface represents based on the flashing LED lights. The shading in Figure 10 represents the flashing LED lights.
[0186] S740: The network configuration auxiliary device sends a confirmation message to the IoT device. In response, the IoT device receives the confirmation message from the network configuration auxiliary device.
[0187] In the embodiment of the present application, the network auxiliary device sends a confirmation message to the IoT device to confirm the IoT device that triggered the hardware response. For example, as shown in Figure 11, the user can confirm the IoT device selected in the above scanning interface based on the hardware response of the IoT device.
[0188] Based on the above solution, the network configuration auxiliary device sends a probe message carrying a first serial number and second information encrypted with a public key, allowing the IoT device to confirm that the probe message is directed at it. Furthermore, the IoT device triggers a hardware response based on the second information, and the user can confirm the IoT device based on the hardware response. Furthermore, the network configuration auxiliary device sends a confirmation message to the IoT device to confirm the IoT device. In one possible scenario, when there are multiple similar IoT devices in an environment, the IoT device can trigger the IoT device's hardware response to allow the user to confirm the IoT device, preventing economic losses caused by the accidental access of unauthorized devices.
[0189] Figure 12 is a schematic diagram of another example of a network access method provided in an embodiment of the present application. The method is illustrated by taking the interaction between a network distribution auxiliary device and an IoT device as an example. Of course, the subject that executes the action of the network distribution auxiliary device in the method can also be a device / module in the network distribution auxiliary device, such as a chip, processor, processing unit, etc. in the network distribution auxiliary device; the subject that executes the action of the IoT device in the method can also be a device / module in the IoT device, such as a chip, processor, processing unit, etc. in the IoT device, and the embodiment of the present application does not make specific limitations on this. The processing performed by a single execution subject (for example, a network distribution auxiliary device or an IoT device) in the embodiment of the present application can also be divided into executions by multiple execution subjects, and these execution subjects can be logically and / or physically separated. Exemplarily, as shown in Figure 12, method 1200 includes:
[0190] S1210: The IoT device sends a second broadcast message. Correspondingly, the network configuration auxiliary device receives the second broadcast message.
[0191] In the embodiment of the present application, S1210 may refer to the relevant description in step S710 and will not be repeated here.
[0192] S1220: The network distribution auxiliary device sends a detection message. In response, the IoT device receives the detection message from the network distribution auxiliary device.
[0193] In the embodiment of the present application, S1220 may refer to the relevant description in step S720 and will not be repeated here.
[0194] S1230: The IoT device triggers a hardware response according to the second information.
[0195] In the embodiment of the present application, S1230 may refer to the relevant description in step S730 and will not be repeated here.
[0196] S1240: The network configuration auxiliary device sends confirmation information to the IoT device. Correspondingly, the IoT device receives the confirmation information from the network configuration auxiliary device.
[0197] In the embodiment of the present application, S1240 may refer to the relevant description in step S740 and will not be repeated here.
[0198] In the network access method provided in the embodiment of the present application, the network configuration auxiliary device sends a detection message carrying a first serial number and second information encrypted with a public key, so that the IoT device confirms that the detection message is directed to itself. Furthermore, the IoT device triggers a hardware response based on the second information, and the user can confirm the IoT device based on the hardware response. Then, the network configuration auxiliary device sends a confirmation message to the IoT device to confirm the IoT device. In one possible scenario, when there are multiple similar IoT devices in the environment, the IoT device can trigger the hardware response of the IoT device to allow the user to confirm the IoT device, thereby preventing economic losses caused by the accidental access of illegal devices.
[0199] The network access methods provided in method 700 and method 1200 will be described below through several specific examples.
[0200] For example, in a whole-house smart scenario, there is one AP (such as a home router) and one unconnected Bluetooth speaker. The user uses a mobile phone as a network connection auxiliary device. The steps for the mobile phone to connect the Bluetooth speaker to the network include:
[0201] Step 1: Connect the Bluetooth speaker to a power source and enter the network configuration process;
[0202] Step 2: The user brings the phone close to the Bluetooth speaker, and the phone periodically measures the distance between the phone and the Bluetooth speaker. Specifically:
[0203] The mobile phone sends a broadcast scan message (corresponding to the first broadcast message in method 700), the Bluetooth speaker receives and parses the broadcast message of the mobile phone, and parses the RSSI signal strength in the message; the Bluetooth speaker constructs a response frame (corresponding to the first response message in method 700) and replies to the mobile phone, the response frame carrying the detected RSSI signal strength and the device tag of the Bluetooth speaker; the mobile phone determines whether the distance between the mobile phone and the Bluetooth speaker is within the first distance based on the RSSI strength and device tag in the response frame;
[0204] When the distance between the two parties is within a first distance (e.g., 0.5 m), the smart home app on the mobile phone pops up an interface as shown in FIG8 , prompting the user to perform the authorization operation;
[0205] Step 3: The user performs an authorization operation, such as shaking the mobile phone. Further, the mobile phone can send the information of the home router to the Bluetooth speaker via Bluetooth, and the Bluetooth speaker can quickly connect to the home router based on the home router information.
[0206] For example, in a whole-home smart scenario, there is one AP (e.g., home router) and 10 IoT devices (e.g., lights). The user uses a mobile phone as a network auxiliary device. The process for the user to confirm the target lights includes:
[0207] Step 1: After being powered on, the 10 lighting devices send out broadcast frames carrying their own MAC addresses and public key information;
[0208] Step 2: The user views the scanning results of the accessory devices through the mobile phone whole house smart APP, and the logos of the 10 scanned lighting devices are displayed as shown in Figure 9.
[0209] Step 3: The user selects the 7th lighting device as shown in Figure 9 on the mobile phone's scan list. The mobile phone sends a device detection frame, carrying the internal serial number encrypted by the public key (that is, the first serial number corresponding to the 7th lighting device in the scan list) and the response information.
[0210] Step 4: After receiving the detection frame, the seventh lighting device triggers the device hardware response (such as LED flashing or speaker sounding) to clearly inform the user of its location.
[0211] Step 5: After the user observes the device hardware response, perform the confirmation operation as shown in Figure 11 in the scan list and proceed with the subsequent network configuration process.
[0212] The above primarily describes the solutions provided by the embodiments of the present application from the perspective of interaction between a network distribution auxiliary device and an IoT device. Accordingly, the embodiments of the present application also provide a communication device for implementing the various methods described above. The communication device may be the network distribution auxiliary device described in the method embodiments described above, or a device including the network distribution auxiliary device, or a component that can be used with the network distribution auxiliary device; alternatively, the communication device may be the IoT device described in the method embodiments described above, or a device including the IoT device, or a component that can be used with the IoT device. It is understood that, in order to implement the aforementioned functions, the communication device includes hardware structures and / or software modules corresponding to the respective functions. Those skilled in the art will readily appreciate that, in conjunction with the various exemplary units and algorithm steps described in the embodiments disclosed herein, the present application can be implemented in hardware or a combination of hardware and computer software. Whether a function is implemented in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this application.
[0213] In the embodiment of the present application, the communication device can be divided into functional modules according to the above method embodiment. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be understood that the division of modules in the embodiment of the present application is schematic and is only a logical functional division. In actual implementation, there may be other division methods.
[0214] For example, FIG13 is a schematic diagram of a communication device provided in an embodiment of the present application. Taking the communication device as the network distribution auxiliary device in the above method embodiment (which may be a chip of the network distribution auxiliary device, or a module of the network distribution auxiliary device, or an internal device of the network distribution auxiliary device) as an example, the network distribution auxiliary device includes a transceiver module 1310 and a processing module 1320. The transceiver module 1310, which may also be referred to as a transceiver unit, is used to implement transceiver functions, and may be, for example, a transceiver circuit, a transceiver, a transceiver, or a communication interface.
[0215] In one solution, the processing module 1320 is configured to prompt the user to perform an authorization operation when the distance between the network configuration auxiliary device and the IoT device is within a first distance.
[0216] The transceiver module 1310 is configured to send first information to the IoT device in response to a user's authorization operation, where the first information is used for the IoT device to access a target router.
[0217] In the embodiment of the present application, the transceiver module 1310 is further configured to send a first broadcast message and receive a first response message, where the first response message includes the signal strength of the first broadcast message measured by the IoT device.
[0218] The processing module 1320 is further configured to determine, based on the signal strength of the first broadcast message, that the distance between the network configuration auxiliary device and the IoT device is within a first distance.
[0219] In an embodiment of the present application, the first response message also includes a device tag of the IoT device, where the device tag of the IoT device is used to identify the IoT device, or the device tag of the IoT device is used to identify the type of the IoT device.
[0220] In an embodiment of the present application, the processing module 1320 is used to determine that the distance between the network configuration auxiliary device and the IoT device is within the first distance based on the signal strength of the first broadcast message, including: the processing module 1320 is used to determine that the distance between the network configuration auxiliary device and the IoT device is within the first distance based on the signal strength of the first broadcast message and the device tag of the IoT device.
[0221] Exemplarily, the authorization operation includes at least one of the following: tap, press, and shake.
[0222] In this embodiment of the present application, transceiver module 1310 is further configured to send a probe message, wherein the probe message includes a first serial number encrypted with a public key and second information, where the second information indicates a hardware response of the IoT device. In response to the hardware response of the IoT device, transceiver module 1310 is further configured to send a confirmation message to the IoT device, wherein the confirmation message is used to confirm the IoT device corresponding to the first serial number encrypted with the public key.
[0223] In an embodiment of the present application, the transceiver module 1310 is also used to receive a second broadcast message from the IoT device, where the second broadcast message includes the media access control MAC address and public key of the IoT device. The MAC address and public key are used to generate a first serial number encrypted by the public key.
[0224] Among them, all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, and will not be repeated here. Optionally, the communication device 1300 may also include a storage module 1330, which can be used to store instructions and / or data, and the processing module 1320 can read the instructions and / or data in the storage module 1330.
[0225] In the embodiments of the present application, the network distribution auxiliary device is presented in the form of integrated functional modules. "Module" here can refer to a specific ASIC, circuit, processor and memory executing one or more software or firmware programs, integrated logic circuit, and / or other devices that can provide the aforementioned functions. In a simple embodiment, those skilled in the art will appreciate that the network distribution auxiliary device can take the form of network distribution auxiliary device 100 shown in Figure 4.
[0226] For example, the processor 110 in the network configuration auxiliary device 100 shown in FIG4 may call computer-executable instructions stored in the internal memory 120 to enable the network configuration auxiliary device 100 to execute the communication method in the above method embodiment.
[0227] Specifically, the functions / implementation processes of the transceiver module 1310 and the processing module 1320 in FIG13 can be implemented by the processor 110 in the network distribution auxiliary device 100 shown in FIG4 calling computer-executable instructions stored in the internal memory 120. Alternatively, the functions / implementation processes of the processing module 1320 in FIG13 can be implemented by the processor 110 in the network distribution auxiliary device 100 shown in FIG4 calling computer-executable instructions stored in the internal memory 120, and the functions / implementation processes of the transceiver module 1310 in FIG13 can be implemented by the USB interface 130 in the network distribution auxiliary device 100 shown in FIG4.
[0228] Since the network distribution auxiliary equipment provided in the embodiment of the present application (which may be a chip of the network distribution auxiliary equipment, or a module of the network distribution auxiliary equipment, or an internal device of the network distribution auxiliary equipment) can execute the above-mentioned signal transmission method, the technical effects that can be obtained can be referred to the above-mentioned method embodiments and will not be repeated here.
[0229] Alternatively, taking the communication device as an IoT device in the above method embodiment (which may be a chip of an IoT device, a module of an IoT device, or an internal device of an IoT device) as an example, the IoT device includes a transceiver module 1310 and a processing module 1320. The transceiver module 1310, which may also be referred to as a transceiver unit, is used to implement transceiver functions, and may be, for example, a transceiver circuit, a transceiver, a transceiver, or a communication interface.
[0230] In one solution, the transceiver module 1310 is used to receive first information, where the first information is that the network configuration auxiliary device determines that the distance to the IoT device is within a first distance, and the network configuration auxiliary device prompts the user to perform an authorization operation. The first information is sent in response to the user's authorization operation, and is used for the IoT device to access the target router.
[0231] The processing module 1320 is configured to access a target router according to the first information.
[0232] In an embodiment of the present application, the transceiver module 1310 is used to receive a first broadcast message, measure the signal strength of the first broadcast message, and send a first response message, where the first response message includes the signal strength of the first broadcast message measured by the IoT device.
[0233] In an embodiment of the present application, the first response message also includes a device tag of the IoT device, where the device tag of the IoT device is used to identify the IoT device, or the device tag of the IoT device is used to identify the type of the IoT device.
[0234] Exemplarily, the authorization operation includes at least one of the following: tap, press, and shake.
[0235] In the embodiment of the present application, the transceiver module 1310 is used to receive a detection message from a distribution network auxiliary device. The detection message includes a first serial number and second information encrypted by a public key. The second information is used to indicate a hardware response of the IoT device.
[0236] The processing module 1320 is configured to trigger a hardware response according to the second information;
[0237] The transceiver module 1310 is used to receive confirmation information from the network distribution auxiliary device and access the target router according to the confirmation information. The confirmation information is used to confirm the IoT device corresponding to the first serial number encrypted by the public key.
[0238] The transceiver module 1310 is used to send a second broadcast message to the distribution network auxiliary device. The second broadcast message includes the media access control MAC address and public key of the IoT device. The MAC address and public key are used to generate a first serial number encrypted by the public key.
[0239] Among them, all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, and will not be repeated here. Optionally, the communication device 1300 may also include a storage module 1330, which can be used to store instructions and / or data, and the processing module 1320 can read the instructions and / or data in the storage module 1330.
[0240] In the embodiments of the present application, the IoT device is presented in the form of integrated functional modules. "Module" here can refer to a specific ASIC, circuit, processor and memory executing one or more software or firmware programs, integrated logic circuit, and / or other devices that can provide the aforementioned functionality. In a simple embodiment, those skilled in the art will appreciate that the IoT device can take the form of IoT device 200 shown in Figure 6.
[0241] For example, the processor 210 in the IoT device 200 shown in FIG6 can call the computer execution instructions stored in the memory 220 to enable the IoT device 200 to execute the communication method in the above method embodiment.
[0242] Specifically, the functions / implementation processes of the transceiver module 1310 and the processing module 1320 in FIG13 can be implemented by the processor 210 in the IoT device 200 shown in FIG6 calling computer-executable instructions stored in the memory 220. Alternatively, the functions / implementation processes of the processing module 1320 in FIG13 can be implemented by the processor 210 in the IoT device 200 shown in FIG6 calling computer-executable instructions stored in the memory 220, and the functions / implementation processes of the transceiver module 1310 in FIG13 can be implemented by the communication interface 230 in the IoT device 200 shown in FIG6.
[0243] For example, FIG13 is a schematic diagram of a communication device provided in an embodiment of the present application. Taking the communication device as the network distribution auxiliary device in the above method embodiment (which may be a chip of the network distribution auxiliary device, or a module of the network distribution auxiliary device, or an internal device of the network distribution auxiliary device) as an example, the network distribution auxiliary device includes a transceiver module 1310 and a processing module 1320. The transceiver module 1310, which may also be referred to as a transceiver unit, is used to implement transceiver functions, and may be, for example, a transceiver circuit, a transceiver, a transceiver, or a communication interface.
[0244] In one solution, the processing module 1320 is configured to send a probe message to the IoT device, where the probe message includes a first serial number and second information encrypted with a public key, where the second information is used to indicate a hardware response of the IoT device;
[0245] The transceiver module is further configured to send confirmation information to the IoT device in response to a hardware response of the IoT device, where the confirmation information is used to confirm the IoT device corresponding to the first serial number encrypted by the public key.
[0246] In an embodiment of the present application, the transceiver module 1310 is also used to receive a second broadcast message from the IoT device, where the second broadcast message includes the media access control MAC address and public key of the IoT device. The MAC address and public key are used to generate a first serial number encrypted by the public key.
[0247] Among them, all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, and will not be repeated here. Optionally, the communication device 1300 may also include a storage module 1330, which can be used to store instructions and / or data, and the processing module 1320 can read the instructions and / or data in the storage module 1330.
[0248] In the embodiments of the present application, the network distribution auxiliary device is presented in the form of integrated functional modules. "Module" here can refer to a specific ASIC, circuit, processor and memory executing one or more software or firmware programs, integrated logic circuit, and / or other devices that can provide the aforementioned functions. In a simple embodiment, those skilled in the art will appreciate that the network distribution auxiliary device can take the form of network distribution auxiliary device 100 shown in Figure 4.
[0249] For example, the processor 110 in the network configuration auxiliary device 100 shown in FIG4 may call computer-executable instructions stored in the internal memory 120 to enable the network configuration auxiliary device 100 to execute the communication method in the above method embodiment.
[0250] Specifically, the functions / implementation processes of the transceiver module 1310 and the processing module 1320 in FIG13 can be implemented by the processor 110 in the network distribution auxiliary device 100 shown in FIG4 calling computer-executable instructions stored in the internal memory 120. Alternatively, the functions / implementation processes of the processing module 1320 in FIG13 can be implemented by the processor 110 in the network distribution auxiliary device 100 shown in FIG4 calling computer-executable instructions stored in the internal memory 120, and the functions / implementation processes of the transceiver module 1310 in FIG13 can be implemented by the USB interface 130 in the network distribution auxiliary device 100 shown in FIG4.
[0251] Since the network distribution auxiliary equipment provided in the embodiment of the present application (which may be a chip of the network distribution auxiliary equipment, or a module of the network distribution auxiliary equipment, or an internal device of the network distribution auxiliary equipment) can execute the above-mentioned signal transmission method, the technical effects that can be obtained can be referred to the above-mentioned method embodiments and will not be repeated here.
[0252] Alternatively, taking the communication device as an IoT device in the above method embodiment (which may be a chip of an IoT device, a module of an IoT device, or an internal device of an IoT device) as an example, the IoT device includes a transceiver module 1310 and a processing module 1320. The transceiver module 1310, which may also be referred to as a transceiver unit, is used to implement transceiver functions, and may be, for example, a transceiver circuit, a transceiver, a transceiver, or a communication interface.
[0253] In one solution, the transceiver module 1310 is configured to receive a probe message from a network distribution auxiliary device, the probe message including a first serial number and second information encrypted by a public key, the second information being used to indicate a hardware response of the IoT device;
[0254] A processing module 1320 is configured to trigger a hardware response according to the second information;
[0255] The transceiver module 1310 is further configured to receive confirmation information from the network distribution auxiliary device and access the target router according to the confirmation information. The confirmation information is used to confirm the IoT device corresponding to the first serial number encrypted by the public key.
[0256] In an embodiment of the present application, the transceiver module 1310 is also used to send a second broadcast message to the distribution network auxiliary device, and the second broadcast message includes the media access control MAC address and public key of the IoT device. The MAC address and public key are used to generate a first serial number encrypted by the public key.
[0257] Among them, all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, and will not be repeated here. Optionally, the communication device 1300 may also include a storage module 1330, which can be used to store instructions and / or data, and the processing module 1320 can read the instructions and / or data in the storage module 1330.
[0258] In the embodiments of the present application, the IoT device is presented in the form of integrated functional modules. "Module" here can refer to a specific ASIC, circuit, processor and memory executing one or more software or firmware programs, integrated logic circuit, and / or other devices that can provide the aforementioned functionality. In a simple embodiment, those skilled in the art will appreciate that the IoT device can take the form of IoT device 200 shown in Figure 6.
[0259] For example, the processor 210 in the IoT device 200 shown in FIG6 can call the computer execution instructions stored in the memory 220 to enable the IoT device 200 to execute the communication method in the above method embodiment.
[0260] Specifically, the functions / implementation processes of the transceiver module 1310 and the processing module 1320 in FIG13 can be implemented by the processor 210 in the IoT device 200 shown in FIG6 calling computer-executable instructions stored in the memory 220. Alternatively, the functions / implementation processes of the processing module 1320 in FIG13 can be implemented by the processor 210 in the IoT device 200 shown in FIG6 calling computer-executable instructions stored in the memory 220, and the functions / implementation processes of the transceiver module 1310 in FIG13 can be implemented by the communication interface 230 in the IoT device 200 shown in FIG6.
[0261] It should be understood that one or more of the above modules or units can be implemented by software, hardware, or a combination of the two. When any of the above modules or units is implemented in software, the software exists in the form of computer program instructions and is stored in a memory, and a processor can be used to execute the program instructions and implement the above method flow. The processor can be built into an SoC (system on chip) or an ASIC, or it can be an independent semiconductor chip. In addition to the core used to execute software instructions to perform calculations or processing within the processor, it can further include necessary hardware accelerators, such as field programmable gate arrays (FPGAs), PLDs (programmable logic devices), or logic circuits that implement dedicated logic operations.
[0262] When the above modules or units are implemented in hardware, the hardware can be any one or any combination of a CPU, a microprocessor, a digital signal processing (DSP) chip, a microcontroller unit (MCU), an artificial intelligence processor, an ASIC, a SoC, an FPGA, a PLD, a dedicated digital circuit, a hardware accelerator or a non-integrated discrete device, which can run the necessary software or not rely on the software to execute the above method flow.
[0263] Optionally, an embodiment of the present application further provides a communication device (for example, the communication device may be a chip or a chip system), which includes a processor for implementing the method in any of the above method embodiments. In one possible design, the communication device also includes a memory. The memory is used to store necessary program instructions and data, and the processor can call the program code stored in the memory to instruct the communication device to execute the method in any of the above method embodiments. Of course, the memory may not be in the communication device. When the communication device is a chip system, it may be composed of a chip, or it may include a chip and other discrete devices, which is not specifically limited in the embodiment of the present application.
[0264] Optionally, an embodiment of the present application also provides a computer-readable storage medium, which stores a computer program or instruction, and when the computer program or instruction is run on a communication device, enables the communication device to execute any of the above-mentioned method embodiments or any of its implementation methods.
[0265] Optionally, an embodiment of the present application further provides a communication system, which includes the IoT device of the above method embodiment and the network distribution auxiliary device of the above method embodiment.
[0266] In the above embodiments, all or part of the embodiments can be implemented by software, hardware, firmware, or any combination thereof. When implemented using a software program, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions according to the embodiments of the present application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more media integrated therein. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (eg, a solid state disk (SSD)).
[0267] Although the present application is described herein in conjunction with various embodiments, in the process of implementing the claimed application, those skilled in the art may understand and implement other variations of the disclosed embodiments by reviewing the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude multiple situations. A single processor or other unit may implement several functions listed in the claims. Certain measures are recorded in different dependent claims, but this does not mean that these measures cannot be combined to produce good results.
[0268] Although the present application has been described with reference to specific features and embodiments thereof, it is apparent that various modifications and combinations may be made thereto without departing from the spirit and scope of the present application. Accordingly, this specification and the drawings are merely illustrative of the present application as defined by the appended claims and are deemed to cover any and all modifications, variations, combinations or equivalents within the scope of the present application. Obviously, those skilled in the art may make various modifications and variations to the present application without departing from the spirit and scope of the present application. Thus, the present application is intended to include such modifications and variations as fall within the scope of the claims of the present application and their equivalents.
Claims
1. A network access method, characterized in that: The method is applied to a distribution network auxiliary device, and the method comprises: When the distance between the network distribution auxiliary device and the IoT device is within a first distance, prompting the user to perform an authorization operation; In response to the user's authorization operation, first information is sent to the IoT device, where the first information is used for the IoT device to access a target router.
2. The method according to claim 1, characterized in that The method further comprises: Sending a first broadcast message; receiving a first response message, where the first response message includes a signal strength of the first broadcast message measured by the IoT device; Determine, based on the signal strength of the first broadcast message, that the distance between the network distribution auxiliary device and the IoT device is within a first distance.
3. The method according to claim 2, characterized in that The first response message also includes a device tag of the IoT device, where the device tag of the IoT device is used to identify the IoT device, or the device tag of the IoT device is used to identify the type of the IoT device; The determining, according to the signal strength of the first broadcast message, that the distance between the network distribution auxiliary device and the IoT device is within the first distance includes: According to the signal strength of the first broadcast message and the device tag of the IoT device, it is determined that the distance between the network configuration auxiliary device and the IoT device is within the first distance.
4. The method according to any one of claims 1 to 3, characterized in that The authorization operation includes at least one of the following: tap, press, and shake.
5. The method according to any one of claims 1 to 4, characterized in that The method further comprises: Sending a detection message, where the detection message includes a first serial number and second information encrypted by a public key, where the second information is used to indicate a hardware response of the IoT device; In response to a hardware response of the IoT device, confirmation information is sent to the IoT device, where the confirmation information is used to confirm the IoT device corresponding to the first serial number encrypted by the public key.
6. The method according to claim 5, characterized in that The method further comprises: A second broadcast message is received from the IoT device, where the second broadcast message includes a media access control MAC address of the IoT device and the public key, where the MAC address and the public key are used to generate a first serial number encrypted by the public key.
7. The method according to any one of claims 1 to 6, characterized in that The distance between the network distribution auxiliary device and the IoT device is obtained by periodic measurement.
8. A network access method, characterized in that: The method is applied to a distribution network auxiliary device, and the method comprises: Sending a detection message, wherein the detection message includes a first serial number and second information encrypted by a public key, wherein the second information is used to indicate a hardware response of an IoT device; In response to a hardware response of the IoT device, confirmation information is sent to the IoT device, where the confirmation information is used to confirm the IoT device corresponding to the first serial number encrypted by the public key.
9. The method according to claim 8, characterized in that The method further comprises: A second broadcast message is received from the IoT device, where the second broadcast message includes a media access control MAC address of the IoT device and the public key, where the MAC address and the public key are used to generate a first serial number encrypted by the public key.
10. A network access method, characterized in that: The method is applied to an IoT device, and the method comprises: receiving first information, wherein the first information is sent by the network configuration auxiliary device in response to the user's authorization operation after the network configuration auxiliary device determines that the distance between the device and the IoT device is within a first distance, and the first information is used for the IoT device to access a target router; Access the target router according to the first information.
11. The method according to claim 10, characterized in that The method further comprises: receiving a first broadcast message, and measuring a signal strength of the first broadcast message; Send a first response message, wherein the first response message includes the signal strength of the first broadcast message measured by the IoT device. Spend.
12. The method according to claim 11, characterized in that The first response message also includes a device tag of the IoT device, where the device tag of the IoT device is used to identify the IoT device, or the device tag of the IoT device is used to identify the type of the IoT device.
13. The method according to any one of claims 10 to 12, characterized in that The authorization operation includes at least one of the following: tap, press, and shake.
14. The method according to any one of claims 10 to 13, characterized in that The method further comprises: Receiving a detection message from the network distribution auxiliary device, the detection message including a first serial number and second information encrypted by a public key, the second information being used to indicate a hardware response of the IoT device; triggering the hardware response according to the second information; Receive confirmation information from the network distribution auxiliary device, and access the target router according to the confirmation information, wherein the confirmation information is used to confirm the IoT device corresponding to the first serial number encrypted by the public key.
15. The method according to claim 14, characterized in that The method further comprises: A second broadcast message is sent to the network configuration auxiliary device, where the second broadcast message includes the media access control MAC address of the IoT device and the public key, where the MAC address and the public key are used to generate a first serial number encrypted by the public key.
16. The method according to any one of claims 10 to 15, characterized in that The distance between the network distribution auxiliary device and the IoT device is obtained by periodic measurement.
17. A network access method, characterized in that: The method is applied to an IoT device, and the method comprises: Receive a detection message from a network distribution auxiliary device, wherein the detection message includes a first serial number and second information encrypted by a public key, and the second information is used to indicate a hardware response of the IoT device; triggering the hardware response according to the second information; Receive confirmation information from the network distribution auxiliary device, and access the target router according to the confirmation information, wherein the confirmation information is used to confirm the IoT device corresponding to the first serial number encrypted by the public key.
18. The method according to claim 17, characterized in that The method further comprises: A second broadcast message is sent to the network configuration auxiliary device, where the second broadcast message includes the media access control MAC address of the IoT device and the public key, where the MAC address and the public key are used to generate a first serial number encrypted by the public key.
19. A communication device, characterized in that: include: A processing module, configured to prompt a user to perform an authorization operation when the distance between the network distribution auxiliary device and the IoT device is within a first distance; The transceiver module is used to send first information to the IoT device in response to the user's authorization operation, where the first information is used for the IoT device to access the target router.
20. A communication device, characterized in that: include: a transceiver module, configured to receive first information, wherein the first information is sent in response to the user's authorization operation when the network configuration auxiliary device determines that the distance between the network configuration auxiliary device and the IoT device is within a first distance and the network configuration auxiliary device prompts the user to perform an authorization operation, and the first information is used for the IoT device to access a target router; A processing module is used to access the target router according to the first information.
21. A communication device, characterized in that: include: A transceiver module, used to send a detection message to an IoT device, wherein the detection message includes a first serial number and second information encrypted by a public key, and the second information is used to indicate a hardware response of the IoT device; The transceiver module is also used to send confirmation information to the IoT device in response to a hardware response of the IoT device, where the confirmation information is used to confirm the IoT device corresponding to the first serial number encrypted by the public key.
22. A communication device, characterized in that: include: A transceiver module, used to receive a detection message from a distribution network auxiliary device, wherein the detection message includes a first serial number and second information encrypted by a public key, and the second information is used to indicate a hardware response of the IoT device; A processing module, configured to trigger the hardware response according to the second information; The transceiver module is also used to receive confirmation information from the network distribution auxiliary device, and access the target router according to the confirmation information, wherein the confirmation information is used to confirm the IoT device corresponding to the first serial number encrypted by the public key.
23. A communication device, characterized in that: The communication device comprises a processor; the processor is used to run a computer program or instruction, or to enable the communication device to execute the method according to any one of claims 1 to 7 through a logic circuit, or to enable the communication device to execute the method according to any one of claims 10 to 16.
24. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions or programs, which, when executed on a computer, enable the communication device to execute the method according to any one of claims 1 to 7, or enable the communication device to execute the method according to any one of claims 10 to 16.
25. A communication system, characterized in that: The communication system comprises the communication device according to claim 19 and claim 20.
26. A communication device, characterized in that: The communication device comprises a processor; the processor is used to run a computer program or instruction, or to enable the communication device to execute the method according to claim 8 or 9 through a logic circuit, or to enable the communication device to execute the method according to claim 17 or 18.
27. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions or programs, which, when executed on a computer, enable the communication device to execute the method according to claim 8 or 9, or enable the communication device to execute the method according to claim 17 or 18.
28. A communication system, characterized in that: The communication system comprises the communication device according to claim 19 and claim 20.
Citation Information
Patent Citations
Network access method and device
CN119584247A
Discovery and network distribution method, electronic equipment and system
CN113301543A
IoT device management method and terminal
CN114268931A
Network distribution method, device and equipment for smart home equipment
CN115150217A