Equipment network access method and device and electronic equipment

During the smart home device distribution process, the device to be connected to the network scans the signal and determines the target parent device, establishes a communication connection to indirectly access the server, solves the problem of long time for the device distribution and poor user experience, and realizes the equipment Timely access to the network and improve the user experience.

CN119420593APending Publication Date: 2025-02-11GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411577458.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-06
Publication Date
2025-02-11

AI Technical Summary

Technical Problem

In the prior art, the equipment distribution time is long, resulting in poor user experience, especially when the server load is heavy or the number of devices is large, the equipment takes a long time or may fail during the registration process of the home, and the distribution process needs to be re-executed.

Method used

By scanning the connected signal of the device to be entered, obtaining the list of connected devices and the list of connected devices, determining the target parent device, establishing a communication connection with the target parent device, and indirectly accessing the server through the target parent device.

Benefits of technology

When the device to be connected to the network cannot quickly access the server, the target parent device that has been connected to the server is indirectly connected to the server, so that the device to be connected to the network can communicate with the server network, improve user experience, and solve the problem of the long time of the device network distribution and Problem of poor user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119420593A_ABST
    Figure CN119420593A_ABST
Patent Text Reader

Abstract

The invention provides an equipment network access method and device and electronic equipment. The method is applied to a device to be accessed to the Internet, the device to be accessed to the Internet represents a device to be accessed to the Internet, and the method comprises the steps that the device to be accessed to the Internet scans a connectable signal to obtain a connectable device list, the connectable signal is a connection signal between devices, and the connectable device list comprises one or more device identifiers corresponding to the connectable devices; the connectable device is a device which sends out a connectable signal and allows other devices to access through the connectable signal; the to-be-networked device obtains a networked device list, and a target parent device is determined according to the connectable device list and the networked device list; and the to-be-accessed equipment establishes communication connection with the target parent equipment, and accesses the server through the target parent equipment. Through the method and the device, the problems of long equipment network distribution time and poor user experience in the prior art are solved, and the effect of enabling the equipment to access the network in time to improve the user experience is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of network configuration of smart home devices, and in particular to a method, apparatus, computer-readable storage medium and electronic device for accessing a device network. Background Art

[0002] The speed of network configuration has a great impact on the experience of smart home. Generally, the network configuration strategy that pursues strong consistency (that is, let the user wait for all the background processing to be completed) will greatly affect the experience of smart home because the background will experience a long operation time and a more complex link during the network configuration process, plus a certain failure rate. Sub-devices are a control implementation method in smart home. Generally, they are transmitted through a WiFi or TCP (Transmission Control Protocol) parent device that can directly communicate with the server, so that the sub-devices mounted under it (generally short-distance communication, so they cannot directly interact with the server) can communicate with the server through it.

[0003] Device network configuration usually requires the following steps: establish a connection with the device through the app; the app passes the detailed information of the home wireless network and the registration information of the smart home server to the device; the device will establish a connection with the wireless network and establish contact with the server; the server will register the device into the user's home, which includes assigning a specific port to the device and assigning it to the corresponding home; after the server completes the registration, the user needs to refresh the app interface to view the newly added device and operate it. However, in actual use, due to the heavy load of the server or the large number of connected devices, it will take longer for the server to search for free ports and try to establish a connection with the device, which may cause the device to spend a long time in the "registering into the home" stage, and sometimes even cause the network configuration process to fail, so that the entire network configuration process needs to be re-executed, which greatly reduces the experience. Summary of the invention

[0004] The main purpose of the present application is to provide a method, apparatus, computer-readable storage medium and electronic device for accessing a device network, so as to at least solve the problem in the prior art that the device network configuration time is long and the user experience is poor.

[0005] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a method for accessing a device network is provided, which is applied to a device to be networked, wherein the device to be networked represents a device to be accessed to the Internet, comprising: the device to be networked scans a connectable signal to obtain a connectable device list, wherein the connectable signal is a connection signal between devices, and the connectable device list includes one or more device identifiers corresponding to the connectable devices, and the connectable device is a device that sends the connectable signal and allows other devices to access through the connectable signal; the device to be networked obtains a list of connected devices, and determines a target parent device based on the connectable device list and the list of connected devices, wherein the list of connected devices includes one or more device identifiers corresponding to devices that have already accessed a server, and the target parent device is a device that allows other devices to access through the connectable signal and has already accessed the server; the device to be networked establishes a communication connection with the target parent device, and accesses the server through the target parent device.

[0006] Optionally, determining the target parent device based on the connectable device list and the connected device list includes: the device to be networked selects a device identifier that belongs to both the connectable device list and the connected device list to obtain a parent device list, wherein the parent device list includes one or more parent devices; the device to be networked determines the device with the largest signal strength of the connectable signal in the parent device list as the target parent device.

[0007] Optionally, the device to be networked establishes a communication connection with the target parent device and accesses the server through the target parent device, including: the device to be networked receives a forwarding instruction sent by the target parent device, and performs device processing according to the forwarding instruction, wherein the forwarding instruction is sent by the server to the target parent device so that the target parent device forwards it to the device to be networked; the device to be networked generates a response instruction, and sends the response instruction to the target parent device, so that the target parent device sends the response instruction to the server, and further enables the server to generate a mount identifier of the device to be networked to access the server, wherein the response instruction is an instruction for the device to be networked to respond to the forwarding instruction, and the mount identifier is an identifier representing that the device to be networked is indirectly accessed through the target parent device.

[0008] Optionally, before the device to be connected scans for connectable signals, the method further includes: the device to be connected sends a connection request instruction to the server, so that the server determines the access port of the device to be connected, wherein the connection request instruction is an instruction requesting connection to the server.

[0009] Optionally, after accessing the server through the target parent device, the method further includes: the device to be connected receives a connection permission instruction sent by the server and accesses the server, wherein the connection permission instruction is an instruction allowing the device to access the server and is generated after the server determines the access port of the device to be connected.

[0010] Optionally, after accessing the server through the target parent device, the method further includes: the device to be connected receives a disconnection instruction from the target parent device and disconnects from the target parent device, wherein the disconnection instruction is generated by the server after connecting to the device to be connected and sent to the target parent device, and is used to instruct the target parent device to disconnect from the device to be connected.

[0011] Optionally, after the device to be connected receives a disconnection instruction from the target parent device and disconnects from the target parent device, the server deletes the mount identifier corresponding to the device to be connected, wherein the mount identifier is an identifier that represents that the device to be connected is indirectly connected through the target parent device.

[0012] According to another aspect of the present application, a device to be connected to the network is provided, wherein the device to be connected to the network represents a device to be connected to the Internet, and includes: a scanning unit, used to scan a connectable signal to obtain a connectable device list, wherein the connectable signal is a connection signal between devices, and the connectable device list includes one or more device identifiers corresponding to the connectable devices, and the connectable device is a device that sends out the connectable signal and allows other devices to access through the connectable signal; a determination unit, used to receive a list of connected devices, and determine a target parent device according to the connectable device list and the connected device list, wherein the connected device list includes one or more device identifiers corresponding to devices that have been connected to a server, and the target parent device is a device that allows other devices to access through the connectable signal and has been connected to the server; a first access unit, used to establish a communication connection with the target parent device, and access the server through the target parent device.

[0013] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute any one of the device network access methods.

[0014] According to another aspect of the present application, an electronic device is provided, comprising: one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include a method for executing any one of the device network access methods.

[0015] Applying the technical solution of the present application, the device to be connected to the network scans the connectable signal to obtain a list of connectable devices, the connectable signal is a connection signal between devices, the connectable device list includes one or more device identifiers corresponding to the connectable device, and the connectable device is a device that sends a connectable signal and allows other devices to access through the connectable signal; then obtain the list of connected devices, determine the target parent device according to the connectable device list and the list of connected devices, wherein the list of connected devices includes one or more device identifiers corresponding to devices that have been connected to the server, and the target parent device is a device that allows other devices to access through the connectable signal and has been connected to the server; establish a communication connection with the target parent device, and access the server through the target parent device. Compared with the method in the prior art where the device configuration time is long and the user experience is poor, the present application indirectly accesses the server through the target parent device that has been connected to the server when the device to be connected to the network cannot quickly access the server, so that the device to be connected to the network can communicate with the server over the network, thereby improving the user experience. Therefore, it can solve the problem of long device configuration time and poor user experience in the prior art, and achieve the effect of enabling the device to access the network in a timely manner to improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The drawings constituting part of the present application are used to provide a further understanding of the present application. The exemplary embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0017] Figure 1 A schematic diagram showing a flow chart of a method for accessing a device network provided in an embodiment of the present application;

[0018] Figure 2 A schematic diagram showing a flow chart of a specific device network access method provided in an embodiment of the present application;

[0019] Figure 3 A structural block diagram of a device to be networked provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0020] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0021] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0022] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0023] As introduced in the background technology, in the prior art, the device network configuration time is long and the user experience is poor. To solve the problem of the device network configuration time being long and the user experience is poor, the embodiments of the present application provide a device network access method, apparatus, computer-readable storage medium and electronic device.

[0024] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0025] In this embodiment, a method for accessing a device network running on a mobile terminal, a computer terminal or a similar computing device is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0026] Figure 1 FIG. 1 is a flow chart of a method for accessing a device network according to an embodiment of the present application. Figure 1 As shown, the method comprises the following steps:

[0027] Step S201, the device to be connected to the network scans a connectable signal to obtain a connectable device list, wherein the connectable signal is a connection signal between devices, the connectable device list includes one or more device identifiers corresponding to the connectable devices, and the connectable device is a device that sends the connectable signal and allows other devices to access through the connectable signal;

[0028] Specifically, in a home device network environment, first establish a connection with the smart home device through the app, and the app passes the detailed information of the home wireless network and the registration information of the smart home server to the smart home device; the device establishes a connection with the wireless network and establishes contact with the server; the server registers the device into the user's home, which includes allocating a specific port for the device and assigning it to the corresponding home; after the server completes the registration, the user needs to refresh the app interface to view the newly added device and operate it. In this process, due to the heavy load of the server or the large number of connected devices, some devices cannot access the network server immediately. Therefore, the unconnected devices cannot be used temporarily, resulting in a poor user experience. The device that is temporarily not connected to the network is referred to as a waiting network device in this application. The device that has been connected to the network continues to release Bluetooth hotspots (i.e., the above-mentioned connectable signal) after completing the network configuration, and allows the waiting network device to connect to this Bluetooth signal. The waiting network device scans the nearby Bluetooth hotspots and obtains the mac list (the Bluetooth address list that can be used as the Bluetooth parent device in the home) A by descending order of strength. In this way, the waiting network device can indirectly access the network server through the connectable device, so that the user can control the waiting network device through the app. Since there may be more than one device with a connectable signal, ie, a Bluetooth signal, turned on at this time, a connectable device list is generated by device identifiers corresponding to all searchable Bluetooth signals, and the connectable device list can be arranged according to signal strength.

[0029] Step S202, the device to be connected to the network obtains a list of connected devices, and determines a target parent device according to the list of connectable devices and the list of connected devices, wherein the list of connected devices includes one or more device identifiers corresponding to devices that have been connected to the server, and the target parent device is a device that allows other devices to access through the connectable signal and has been connected to the server;

[0030] Specifically, after starting the network configuration, the app sends the home's Wi-Fi information, password, server information and other contents to the device to be networked. In addition, the app also sends the mac list B, i.e. the list of connected devices in the home that can serve as the parent device, to the above-mentioned device to be networked. In other words, a list consisting of device identifiers corresponding to one or more devices that have been connected to the network server is sent to the above-mentioned device to be networked. The device to be networked selects the device that exists in both list B and list A and is ranked first as the parent device, that is, the device that has been connected to the network server, has turned on the Bluetooth hotspot and is at the front of the list is selected as the target parent device.

[0031] Step S203, the device to be connected to the network establishes a communication connection with the target parent device, and accesses the server through the target parent device.

[0032] Specifically, after determining the target parent device, the device to be connected to the network establishes a communication connection with the target parent device, that is, the device to be connected to the network accesses the Bluetooth hotspot of the target parent device, thereby indirectly accessing the server to perform network communication.

[0033] Through this embodiment, the device to be connected to the network scans the connectable signal to obtain a list of connectable devices, the connectable signal is a connection signal between devices, the connectable device list includes one or more device identifiers corresponding to the connectable device, and the connectable device is a device that sends a connectable signal and allows other devices to access through the connectable signal; then obtain the list of connected devices, determine the target parent device according to the connectable device list and the list of connected devices, wherein the list of connected devices includes one or more device identifiers corresponding to devices that have been connected to the server, and the target parent device is a device that allows other devices to access through the connectable signal and has been connected to the server; establish a communication connection with the target parent device, and access the server through the target parent device. Compared with the method in the prior art where the device configuration time is long and the user experience is poor, this application indirectly accesses the server through the target parent device that has been connected to the server when the device to be connected to the network cannot quickly access the server, so that the device to be connected to the network can communicate with the server over the network, thereby improving the user experience. Therefore, it can solve the problem of long device configuration time and poor user experience in the prior art, and achieve the effect of enabling the device to access the network in a timely manner to improve the user experience.

[0034] In the specific implementation process, the above step S202 determines the target parent device according to the above connectable device list and the above connected device list, which can be implemented by the following steps: Step S2021: The above device to be connected to the network selects the device identifier that belongs to both the above connectable device list and the above connected device list to obtain the parent device list, wherein the above parent device list includes one or more of the above parent devices; Step S2022: The above device to be connected to the network determines the device with the largest signal strength of the above connectable signal in the above parent device list as the above target parent device. The method determines the target parent device through the above steps, so that the most suitable device can be selected as the target parent device to indirectly access the network, so as to ensure smooth communication and control of the device to be connected through the network.

[0035] Specifically, as mentioned above, the device that exists in both the above list B and the above list A and is ranked first is selected as the target parent device. The device identifiers in the list are sorted by the strength of the Bluetooth signal, that is, the device with the strongest connectable signal is selected as the target parent device. When the device to be connected to the network requests to directly establish a normal network connection with the router and server, it establishes a Bluetooth connection with the selected target parent device. After receiving the request to mount the child device, the target parent device sends the required information such as its own mac and the child device mac to the server in the agreed format, and registers it into the family in the form of child device mounting. The server notifies the app that a new device has joined the family through methods such as message queue push or callback function.

[0036] In the above step S203 of the present application, the above device to be connected to the network establishes a communication connection with the above target parent device, and accesses the above server through the above target parent device, which can be achieved through the following steps: Step S2031: The above device to be connected to the network receives the forwarding instruction sent by the above target parent device, and performs device processing according to the above forwarding instruction, wherein the above forwarding instruction is sent by the above server to the above target parent device so that the above target parent device forwards it to the above device to be connected to the network; Step S2032: The above device to be connected to the network generates a response instruction, and sends the above response instruction to the above target parent device, so that the above target parent device sends the above response instruction to the above server, and further enables the above server to generate a mount identifier of the above device to be connected to access the above server, wherein the above response instruction is an instruction for the above device to be connected to respond to the above forwarding instruction, and the above mount identifier is an identifier that represents that the above device to be connected to the network is indirectly accessed through the above target parent device. The method connects the device to be connected to the server of the network through the above steps, so that the network communication of the device to be connected to the network can be achieved by indirect access of the target parent device.

[0037] In the specific implementation process, after the above-mentioned device to be connected to the network establishes a communication connection with the above-mentioned target parent device, the user refreshes the home device list through the app. At this time, the above-mentioned device to be connected to the network can be seen in the home, which is also referred to as a new device below. By clicking to issue a command to the new device, the request first goes to the cloud. The cloud finds that the target device is a child device (i.e., a child device indirectly connected through the target parent device), and will encapsulate the target command with a layer of forwarding command, and issue it to the target parent device through a message queue or direct communication method; after the target parent device receives the command and finds that it is a forwarding command, it sends the content to be forwarded to the target Bluetooth mac (i.e., the device to be connected to the network), and the device to be connected to the network processes the above-mentioned command and generates a response command to respond to the target parent device. The target parent device then encapsulates the response command into a layer of forwarding response command and replies to the server or message queue. After the server receives the response command and parses it, it updates the display status of the device to be connected to the network. The server will generate a mounting mark, indicating that the device to be connected to the network is registered in the home network in the form of a child device mounting, thereby realizing the control process through the app.

[0038] Before the device to be connected to the network scans for connectable signals, the method further includes the following steps: Step S204: the device to be connected to the network sends a connection request instruction to the server, so that the server determines the access port of the device to be connected to the network, wherein the connection request instruction is an instruction requesting connection to the server. Through the above steps, the method requests direct connection to the server while indirectly accessing the network through the target parent device, so that when it is impossible to directly connect to the server, network control can be achieved while continuing to wait for direct connection to the server, so that the user can timely control the network of the device to be connected through the app.

[0039] Specifically, the server continues the normal network configuration process, and after receiving the connection request instruction of the device to be connected to the network, it continues to find a fixed port for the device to be connected to the network. Due to the large number of devices in the formal environment, it takes a long time to find an idle port and establish communication. After the device to be connected to the network completes the formal port binding and connection establishment, the device to be connected to the network will be added to the home network as a normal device.

[0040] In some embodiments, after accessing the server through the target parent device, the method further includes the following steps: Step S205: the device to be connected receives the connection permission instruction sent by the server and accesses the server, wherein the connection permission instruction is an instruction to allow the device to access the server and is generated after the server determines the access port of the device to be connected. The method directly accesses the server through the above steps, so that the device to be connected can directly access the network server, and the control of the device to be connected is more direct and efficient.

[0041] During the specific implementation process, the device to be connected to the network completes the formal port binding and connection establishment, and is added to the home as an ordinary device. At this time, from the background, there are two identical devices in one home network.

[0042] In some optional implementations, after accessing the server through the target parent device, the method further includes the following step S206: the device to be connected to the network receives the disconnection instruction of the target parent device and disconnects from the target parent device, wherein the disconnection instruction is generated by the server after connecting to the device to be connected to the network and sent to the target parent device, and is used to instruct the target parent device to disconnect from the device to be connected to the network. The method disconnects the target parent device from the device to be connected to the network through the above steps, so that the device to be connected to the network can be prevented from being repeatedly controlled.

[0043] Specifically, the server shows that two identical devices are connected, so a filter is performed: the newly connected common device and the existing device to be connected are essentially the same, so the child device connected through the target parent device is filtered out, but the app client still shows the same as before. In subsequent cloud control, the server directly communicates with the new device (the device to be connected directly).

[0044] During the specific implementation process, after the device to be connected receives the disconnection instruction from the target parent device and disconnects from the target parent device, the server deletes the mounting identifier corresponding to the device to be connected, wherein the mounting identifier is an identifier representing that the device to be connected is indirectly connected through the target parent device.

[0045] Specifically, after notifying the target parent device to release the Bluetooth connection with the child device, the server actively deletes the identifier of the duplicate child device, that is, the above-mentioned mounting identifier, in the background.

[0046] In actual application, there are occasional situations where direct network configuration is faster, that is, a new device directly joins the family earlier than a child device indirectly joins the family. When a child device joins the family, it first checks whether the device has actually joined the family list. If it has joined directly, the child device joining is abandoned and the parent device is notified to disconnect from the child device.

[0047] During the network configuration process, in addition to transmitting the home wireless network information and home information to the device to be networked, the app also sends the Bluetooth mac list of the home that can be used as a parent device (that is, it can communicate directly with the server and has Bluetooth function through Bluetooth network configuration) to the device to be networked. The device to be networked selects a parent device and establishes a Bluetooth connection, namely the target parent device, while the server processes the network configuration request. The target parent device registers the device to be networked as a child device into the home. After the server completes the network configuration for the new device and joins the home, the parent-child device relationship in the home is removed, and the parent device is notified to disconnect Bluetooth. The whole process is imperceptible to the user. After the new device is mounted into the home as a child device, the user can realize online control on the app (forwarding instructions through the parent device). After the subsequent server completes its network configuration, it will communicate directly with the server. This imperceptible process of changing from a child device to an ordinary home device can greatly shorten the time required from the beginning of network configuration to the final controllability, and improve the network configuration and smart home experience.

[0048] In order to enable those skilled in the art to more clearly understand the technical solution of the present application, the implementation process of the device network access method of the present application will be described in detail below in conjunction with specific embodiments.

[0049] This embodiment relates to a specific device network access method, such as Figure 2 As shown, the following steps are included:

[0050] Step S1: During the network configuration process, the new device is simultaneously mounted as a child device to an existing parent device in the home via Bluetooth;

[0051] Step S2: The control instruction of the new device is sent to the parent device and forwarded to the child device;

[0052] Step S3: After the real network configuration process is completed and the device is normally added to the home, delete the child device with the same MAC.

[0053] The embodiment of the present application also provides a device to be connected to the network. It should be noted that the device to be connected to the network in the embodiment of the present application can be used to execute the access method for the device network provided in the embodiment of the present application. The device is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0054] The following is an introduction to the device to be connected to the network provided in the embodiments of the present application.

[0055] Figure 3 Schematic diagram of a device to be connected to the network according to an embodiment of the present application. Figure 3As shown, the device comprises:

[0056] The scanning unit 10 is used to scan the connectable signal to obtain a connectable device list, wherein the connectable signal is a connection signal between devices, the connectable device list includes one or more device identifiers corresponding to the connectable devices, and the connectable device is a device that sends the connectable signal and allows other devices to access through the connectable signal;

[0057] Specifically, in a home device network environment, first establish a connection with the smart home device through the app, and the app passes the detailed information of the home wireless network and the registration information of the smart home server to the smart home device; the device establishes a connection with the wireless network and establishes contact with the server; the server registers the device into the user's home, which includes allocating a specific port for the device and assigning it to the corresponding home; after the server completes the registration, the user needs to refresh the app interface to view the newly added device and operate it. In this process, due to the heavy load of the server or the large number of connected devices, some devices cannot access the network server immediately. Therefore, the unconnected devices cannot be used temporarily, resulting in a poor user experience. The device that is temporarily not connected to the network is referred to as a waiting network device in this application. The device that has been connected to the network continues to release Bluetooth hotspots (i.e., the above-mentioned connectable signal) after completing the network configuration, and allows the waiting network device to connect to this Bluetooth signal. The waiting network device scans the nearby Bluetooth hotspots and obtains the mac list (the Bluetooth address list that can be used as the Bluetooth parent device in the home) A by descending order of strength. In this way, the waiting network device can indirectly access the network server through the connectable device, so that the user can control the waiting network device through the app. Since there may be more than one device with a connectable signal, ie, a Bluetooth signal, turned on at this time, a connectable device list is generated by device identifiers corresponding to all searchable Bluetooth signals, and the connectable device list can be arranged according to signal strength.

[0058] The determining unit 20 is used to receive a list of connected devices, and determine a target parent device according to the connectable device list and the connected device list, wherein the connected device list includes one or more device identifiers corresponding to devices that have been connected to the server, and the target parent device is a device that allows other devices to access through the connectable signal and has been connected to the server;

[0059] Specifically, after starting the network configuration, the app sends the home's Wi-Fi information, password, server information and other contents to the device to be networked. In addition, the app also sends the mac list B, i.e. the list of connected devices in the home that can serve as the parent device, to the above-mentioned device to be networked. In other words, a list consisting of device identifiers corresponding to one or more devices that have been connected to the network server is sent to the above-mentioned device to be networked. The device to be networked selects the device that exists in both list B and list A and is ranked first as the parent device, that is, the device that has been connected to the network server, has turned on the Bluetooth hotspot and is at the front of the list is selected as the target parent device.

[0060] The first access unit 30 is used to establish a communication connection with the target parent device and access the server through the target parent device.

[0061] Specifically, after determining the target parent device, the device to be connected to the network establishes a communication connection with the target parent device, that is, the device to be connected to the network accesses the Bluetooth hotspot of the target parent device, thereby indirectly accessing the server to perform network communication.

[0062] Through this embodiment, the device to be connected to the network scans the connectable signal to obtain a list of connectable devices, the connectable signal is a connection signal between devices, the connectable device list includes one or more device identifiers corresponding to the connectable device, and the connectable device is a device that sends a connectable signal and allows other devices to access through the connectable signal; then obtain the list of connected devices, determine the target parent device according to the connectable device list and the list of connected devices, wherein the list of connected devices includes one or more device identifiers corresponding to devices that have been connected to the server, and the target parent device is a device that allows other devices to access through the connectable signal and has been connected to the server; establish a communication connection with the target parent device, and access the server through the target parent device. Compared with the device in the prior art that has a long device configuration time and poor user experience, this application indirectly accesses the server through the target parent device that has been connected to the server when the device to be connected to the network cannot quickly access the server, so that the device to be connected to the network can communicate with the server through the network, thereby improving the user experience. Therefore, it can solve the problem of long device configuration time and poor user experience in the prior art, and achieve the effect of enabling the device to access the network in a timely manner to improve the user experience.

[0063] In the specific implementation process, the determination unit includes a selection module and a determination module. The selection module is used to select device identifiers that belong to both the connectable device list and the connected device list to obtain a parent device list, wherein the parent device list includes one or more parent devices; the determination module is used to determine the device with the largest signal strength of the connectable signal in the parent device list as the target parent device. The device determines the target parent device through the above steps, so that the most suitable device can be selected as the target parent device to indirectly access the network, so as to ensure smooth communication and control of the networked device through the network.

[0064] Specifically, as mentioned above, the device that exists in both the above list B and the above list A and is ranked first is selected as the target parent device. The device identifiers in the list are sorted by the strength of the Bluetooth signal, that is, the device with the strongest connectable signal is selected as the target parent device. When the device to be connected to the network requests to directly establish a normal network connection with the router and server, it establishes a Bluetooth connection with the selected target parent device. After receiving the request to mount the child device, the target parent device sends the required information such as its own mac and the child device mac to the server in the agreed format, and registers it into the family in the form of child device mounting. The server notifies the app that a new device has joined the family through message queue push or callback function and other means.

[0065] The above-mentioned first access unit of the present application includes a processing module and a generation module, the processing module is used to receive the forwarding instruction sent by the above-mentioned target parent device, and perform device processing according to the above-mentioned forwarding instruction, wherein the above-mentioned forwarding instruction is sent by the above-mentioned server to the above-mentioned target parent device so that the above-mentioned target parent device forwards it to the above-mentioned device to be connected to the network; the generation module is used to generate a response instruction, and send the above-mentioned response instruction to the above-mentioned target parent device, so that the above-mentioned target parent device sends the above-mentioned response instruction to the above-mentioned server, and further enables the above-mentioned server to generate the mounting identifier of the above-mentioned device to be connected to the network, so as to access the above-mentioned server, wherein the above-mentioned response instruction is an instruction for the above-mentioned device to be connected to respond to the above-mentioned forwarding instruction, and the above-mentioned mounting identifier is an identifier that represents that the above-mentioned device to be connected to the network is indirectly connected through the above-mentioned target parent device. The device connects the device to be connected to the server of the network through the above-mentioned steps, so that the network communication of the device to be connected can be realized by indirect access of the target parent device.

[0066] In the specific implementation process, after the above-mentioned device to be connected to the network establishes a communication connection with the above-mentioned target parent device, the user refreshes the home device list through the app. At this time, the above-mentioned device to be connected to the network can be seen in the home, which is also referred to as a new device below. By clicking to issue a command to the new device, the request first goes to the cloud. The cloud finds that the target device is a child device (i.e., a child device indirectly connected through the target parent device), and will encapsulate the target command into a layer of forwarding command, and issue it to the target parent device through a message queue or a direct communication device; after the target parent device receives the command and finds that it is a forwarding command, it sends the content to be forwarded to the target Bluetooth mac (i.e., the device to be connected to the network), and the device to be connected to the network processes the above-mentioned command and generates a response command to respond to the target parent device. The target parent device then encapsulates the response command into a layer of forwarding response command and replies to the server or message queue. After the server receives the response command and parses it, it updates the display status of the device to be connected to the network. The server will generate a mounting mark, indicating that the device to be connected to the network is registered in the home network in the form of a child device mounting, thereby realizing the control process through the app.

[0067] Before the device to be connected to the network scans for connectable signals, the device further includes a sending unit for sending a connection request instruction to the server, so that the server determines the access port of the device to be connected to the network, wherein the connection request instruction is an instruction requesting connection to the server. Through the above steps, the device indirectly accesses the network through the target parent device and requests to directly connect to the server. In this way, when it is impossible to directly connect to the server, network control can be achieved while continuing to wait for direct connection to the server, so that users can timely control the network of the device to be connected through the app.

[0068] Specifically, the server continues the normal network configuration process, and after receiving the connection request instruction of the device to be connected to the network, it continues to find a fixed port for the device to be connected to the network. Due to the large number of devices in the formal environment, it takes a long time to find an idle port and establish communication. After the device to be connected to the network completes the formal port binding and connection establishment, the device to be connected to the network will be added to the home network as a normal device.

[0069] In some embodiments, after accessing the server through the target parent device, the device further comprises a second access unit, which is used for the device to be connected to receive the connection permission instruction sent by the server and access the server, wherein the connection permission instruction is an instruction to allow the device to access the server, and is generated after the server determines the access port of the device to be connected to the network. The device directly accesses the server through the above steps, so that the device to be connected to the network can directly access the network server, and the control of the device to be connected to the network is more direct and efficient.

[0070] During the specific implementation process, the device to be connected to the network completes the formal port binding and connection establishment, and is added to the home as an ordinary device. At this time, from the background, there are two identical devices in one home network.

[0071] In some optional implementations, the device further includes a disconnection unit, which is used for the device to be connected to receive a disconnection instruction from the target parent device and disconnect from the target parent device, wherein the disconnection instruction is generated by the server after connecting to the device to be connected to the network and sent to the target parent device, and is used to instruct the target parent device to disconnect from the device to be connected to the network. The device disconnects the target parent device from the device to be connected through the above steps, thereby preventing the device to be connected from being repeatedly controlled.

[0072] Specifically, the server shows that two identical devices are connected, so a filter is performed: the newly connected common device and the existing device to be connected are essentially the same, so the child device connected through the target parent device is filtered out, but the app client still shows the same as before. In subsequent cloud control, the server directly communicates with the new device (the device to be connected directly).

[0073] During the specific implementation process, after the device to be connected receives the disconnection instruction from the target parent device and disconnects from the target parent device, the server deletes the mounting identifier corresponding to the device to be connected, wherein the mounting identifier is an identifier representing that the device to be connected is indirectly connected through the target parent device.

[0074] Specifically, after notifying the target parent device to release the Bluetooth connection with the child device, the server actively deletes the identifier of the duplicate child device, that is, the above-mentioned mounting identifier, in the background.

[0075] In actual application, there are occasional situations where direct network configuration is faster, that is, a new device directly joins the family earlier than a child device indirectly joins the family. When a child device joins the family, it first checks whether the device has actually joined the family list. If it has joined directly, the child device joining is abandoned and the parent device is notified to disconnect from the child device.

[0076] During the network configuration process, in addition to transmitting the home wireless network information and home information to the device to be networked, the app also sends the Bluetooth mac list of the home that can be used as a parent device (that is, it can communicate directly with the server and has Bluetooth function through Bluetooth network configuration) to the device to be networked. The device to be networked selects a parent device and establishes a Bluetooth connection, namely the target parent device, while the server processes the network configuration request. The target parent device registers the device to be networked as a child device into the home. After the server completes the network configuration for the new device and joins the home, the parent-child device relationship in the home is removed, and the parent device is notified to disconnect Bluetooth. The whole process is imperceptible to the user. After the new device is mounted into the home as a child device, the user can realize online control on the app (forwarding instructions through the parent device). After the subsequent server completes its network configuration, it will communicate directly with the server. This imperceptible process of changing from a child device to an ordinary home device can greatly shorten the time required from the beginning of network configuration to the final controllability, and improve the network configuration and smart home experience.

[0077] The above-mentioned network access device includes a processor and a memory, and the above-mentioned scanning unit, determination unit and first access unit are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to implement corresponding functions. The above-mentioned modules are all located in the same processor; or, the above-mentioned modules are located in different processors in any combination.

[0078] The processor contains a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set, and the device can be indirectly configured by adjusting the kernel parameters.

[0079] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0080] An embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the device network access method.

[0081] Specifically, the device network access method includes:

[0082] Step S201, the device to be connected to the network scans a connectable signal to obtain a connectable device list, wherein the connectable signal is a connection signal between devices, the connectable device list includes one or more device identifiers corresponding to the connectable devices, and the connectable device is a device that sends the connectable signal and allows other devices to access through the connectable signal;

[0083] Specifically, in a home device network environment, first establish a connection with the smart home device through the app, and the app passes the detailed information of the home wireless network and the registration information of the smart home server to the smart home device; the device establishes a connection with the wireless network and establishes contact with the server; the server registers the device into the user's home, which includes allocating a specific port for the device and assigning it to the corresponding home; after the server completes the registration, the user needs to refresh the app interface to view the newly added device and operate it. In this process, due to the heavy load of the server or the large number of connected devices, some devices cannot access the network server immediately. Therefore, the unconnected devices cannot be used temporarily, resulting in a poor user experience. The device that is temporarily not connected to the network is referred to as a waiting network device in this application. The device that has been connected to the network continues to release Bluetooth hotspots (i.e., the above-mentioned connectable signal) after completing the network configuration, and allows the waiting network device to connect to this Bluetooth signal. The waiting network device scans the nearby Bluetooth hotspots and obtains the mac list (the Bluetooth address list that can be used as the Bluetooth parent device in the home) A by descending order of strength. In this way, the waiting network device can indirectly access the network server through the connectable device, so that the user can control the waiting network device through the app. Since there may be more than one device with a connectable signal, ie, a Bluetooth signal, turned on at this time, a connectable device list is generated by device identifiers corresponding to all searchable Bluetooth signals, and the connectable device list can be arranged according to signal strength.

[0084] Step S202, the device to be connected to the network obtains a list of connected devices, and determines a target parent device according to the list of connectable devices and the list of connected devices, wherein the list of connected devices includes one or more device identifiers corresponding to devices that have been connected to the server, and the target parent device is a device that allows other devices to access through the connectable signal and has been connected to the server;

[0085] Specifically, after starting the network configuration, the app sends the home's Wi-Fi information, password, server information and other contents to the device to be networked. In addition, the app also sends the mac list B, i.e. the list of connected devices in the home that can serve as the parent device, to the above-mentioned device to be networked. In other words, a list consisting of device identifiers corresponding to one or more devices that have been connected to the network server is sent to the above-mentioned device to be networked. The device to be networked selects the device that exists in both list B and list A and is ranked first as the parent device, that is, the device that has been connected to the network server, has turned on the Bluetooth hotspot and is at the front of the list is selected as the target parent device.

[0086] Step S203, the device to be connected to the network establishes a communication connection with the target parent device, and accesses the server through the target parent device.

[0087] Specifically, after determining the target parent device, the device to be connected to the network establishes a communication connection with the target parent device, that is, the device to be connected to the network accesses the Bluetooth hotspot of the target parent device, thereby indirectly accessing the server to perform network communication.

[0088] An embodiment of the present invention provides an electronic device, including a processor, a memory, and a program stored in the memory and executable on the processor, wherein when the processor executes the program, at least the following steps are implemented:

[0089] Step S201, the device to be connected to the network scans a connectable signal to obtain a connectable device list, wherein the connectable signal is a connection signal between devices, the connectable device list includes one or more device identifiers corresponding to the connectable devices, and the connectable device is a device that sends the connectable signal and allows other devices to access through the connectable signal;

[0090] Specifically, in a home device network environment, first establish a connection with the smart home device through the app, and the app passes the detailed information of the home wireless network and the registration information of the smart home server to the smart home device; the device establishes a connection with the wireless network and establishes contact with the server; the server registers the device into the user's home, which includes allocating a specific port for the device and assigning it to the corresponding home; after the server completes the registration, the user needs to refresh the app interface to view the newly added device and operate it. In this process, due to the heavy load of the server or the large number of connected devices, some devices cannot access the network server immediately. Therefore, the unconnected devices cannot be used temporarily, resulting in a poor user experience. The device that is temporarily not connected to the network is referred to as a waiting network device in this application. The device that has been connected to the network continues to release Bluetooth hotspots (i.e., the above-mentioned connectable signal) after completing the network configuration, and allows the waiting network device to connect to this Bluetooth signal. The waiting network device scans the nearby Bluetooth hotspots and obtains the mac list (the Bluetooth address list that can be used as the Bluetooth parent device in the home) A by descending order of strength. In this way, the waiting network device can indirectly access the network server through the connectable device, so that the user can control the waiting network device through the app. Since there may be more than one device with a connectable signal, ie, a Bluetooth signal, turned on at this time, a connectable device list is generated by device identifiers corresponding to all searchable Bluetooth signals, and the connectable device list can be arranged according to signal strength.

[0091] Step S202, the device to be connected to the network obtains a list of connected devices, and determines a target parent device according to the list of connectable devices and the list of connected devices, wherein the list of connected devices includes one or more device identifiers corresponding to devices that have been connected to the server, and the target parent device is a device that allows other devices to access through the connectable signal and has been connected to the server;

[0092] Specifically, after starting the network configuration, the app sends the home's Wi-Fi information, password, server information and other contents to the device to be networked. In addition, the app also sends the mac list B, i.e. the list of connected devices in the home that can serve as the parent device, to the above-mentioned device to be networked. In other words, a list consisting of device identifiers corresponding to one or more devices that have been connected to the network server is sent to the above-mentioned device to be networked. The device to be networked selects the device that exists in both list B and list A and is ranked first as the parent device, that is, the device that has been connected to the network server, has turned on the Bluetooth hotspot and is at the front of the list is selected as the target parent device.

[0093] Step S203, the device to be connected to the network establishes a communication connection with the target parent device, and accesses the server through the target parent device.

[0094] Specifically, after determining the target parent device, the device to be connected to the network establishes a communication connection with the target parent device, that is, the device to be connected to the network accesses the Bluetooth hotspot of the target parent device, thereby indirectly accessing the server to perform network communication.

[0095] The devices in this article can be servers, PCs, PADs, mobile phones, etc.

[0096] The present application also provides a computer program product, including a computer program. When the computer program is executed by a processor, the steps of the above method in each embodiment of the present application are implemented:

[0097] Step S201, the device to be connected to the network scans a connectable signal to obtain a connectable device list, wherein the connectable signal is a connection signal between devices, the connectable device list includes one or more device identifiers corresponding to the connectable devices, and the connectable device is a device that sends the connectable signal and allows other devices to access through the connectable signal;

[0098] Specifically, in a home device network environment, first establish a connection with the smart home device through the app, and the app passes the detailed information of the home wireless network and the registration information of the smart home server to the smart home device; the device establishes a connection with the wireless network and establishes contact with the server; the server registers the device into the user's home, which includes allocating a specific port for the device and assigning it to the corresponding home; after the server completes the registration, the user needs to refresh the app interface to view the newly added device and operate it. In this process, due to the heavy load of the server or the large number of connected devices, some devices cannot access the network server immediately. Therefore, the unconnected devices cannot be used temporarily, resulting in a poor user experience. The device that is temporarily not connected to the network is referred to as a waiting network device in this application. The device that has been connected to the network continues to release Bluetooth hotspots (i.e., the above-mentioned connectable signal) after completing the network configuration, and allows the waiting network device to connect to this Bluetooth signal. The waiting network device scans the nearby Bluetooth hotspots and obtains the mac list (the Bluetooth address list that can be used as the Bluetooth parent device in the home) A by descending order of strength. In this way, the waiting network device can indirectly access the network server through the connectable device, so that the user can control the waiting network device through the app. Since there may be more than one device with a connectable signal, ie, a Bluetooth signal, turned on at this time, a connectable device list is generated by device identifiers corresponding to all searchable Bluetooth signals, and the connectable device list can be arranged according to signal strength.

[0099] Step S202, the device to be connected to the network obtains a list of connected devices, and determines a target parent device according to the list of connectable devices and the list of connected devices, wherein the list of connected devices includes one or more device identifiers corresponding to devices that have been connected to the server, and the target parent device is a device that allows other devices to access through the connectable signal and has been connected to the server;

[0100] Specifically, after starting the network configuration, the app sends the home's Wi-Fi information, password, server information and other contents to the device to be networked. In addition, the app also sends the mac list B, i.e. the list of connected devices in the home that can serve as the parent device, to the above-mentioned device to be networked. In other words, a list consisting of device identifiers corresponding to one or more devices that have been connected to the network server is sent to the above-mentioned device to be networked. The device to be networked selects the device that exists in both list B and list A and is ranked first as the parent device, that is, the device that has been connected to the network server, has turned on the Bluetooth hotspot and is at the front of the list is selected as the target parent device.

[0101] Step S203, the device to be connected to the network establishes a communication connection with the target parent device, and accesses the server through the target parent device.

[0102] Specifically, after determining the target parent device, the device to be connected to the network establishes a communication connection with the target parent device, that is, the device to be connected to the network accesses the Bluetooth hotspot of the target parent device, thereby indirectly accessing the server to perform network communication.

[0103] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0104] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0105] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0106] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0107] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0108] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0109] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0110] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0111] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0112] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:

[0113] 1) In the device network access method of the present application, the device to be connected scans the connectable signal to obtain a list of connectable devices, the connectable signal is a connection signal between devices, the connectable device list includes one or more device identifiers corresponding to the connectable device, and the connectable device is a device that sends a connectable signal and allows other devices to access through the connectable signal; then obtain the list of connected devices, determine the target parent device according to the connectable device list and the list of connected devices, wherein the list of connected devices includes one or more device identifiers corresponding to devices that have been connected to the server, and the target parent device is a device that allows other devices to access through the connectable signal and has been connected to the server; establish a communication connection with the target parent device, and access the server through the target parent device. Compared with the method in the prior art where the device configuration time is long and the user experience is poor, the present application indirectly accesses the server through the target parent device that has been connected to the server when the device to be connected cannot quickly access the server, so that the device to be connected can communicate with the server through the network, thereby improving the user experience. Therefore, it can solve the problem of long device configuration time and poor user experience in the prior art, and achieve the effect of enabling the device to access the network in a timely manner and improving the user experience.

[0114] 2) In the device network access device of the present application, the device to be connected scans the connectable signal to obtain a list of connectable devices, the connectable signal is a connection signal between devices, the connectable device list includes one or more device identifiers corresponding to the connectable device, and the connectable device is a device that sends a connectable signal and allows other devices to access through the connectable signal; then obtain the list of connected devices, determine the target parent device according to the connectable device list and the list of connected devices, wherein the list of connected devices includes one or more device identifiers corresponding to devices that have been connected to the server, and the target parent device is a device that allows other devices to access through the connectable signal and has been connected to the server; establish a communication connection with the target parent device, and access the server through the target parent device. Compared with the device in the prior art that has a long device configuration time and poor user experience, the present application indirectly accesses the server through the target parent device that has been connected to the server when the device to be connected cannot quickly access the server, so that the device to be connected can communicate with the server through the network, thereby improving the user experience. Therefore, it can solve the problem of long device configuration time and poor user experience in the prior art, and achieve the effect of enabling the device to access the network in a timely manner to improve the user experience.

[0115] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A method for accessing a device network, characterized in that: Applicable to a device to be connected to the network, wherein the device to be connected to the network refers to a device to be connected to the Internet, including: The device to be connected to the network scans the connectable signal to obtain a connectable device list, wherein the connectable signal is a connection signal between devices, the connectable device list includes one or more device identifiers corresponding to the connectable devices, and the connectable device is a device that sends the connectable signal and allows other devices to access through the connectable signal; The device to be connected to the network obtains a list of connected devices, and determines a target parent device according to the connectable device list and the connected device list, wherein the connected device list includes one or more device identifiers corresponding to devices that have been connected to the server, and the target parent device is a device that allows other devices to access through the connectable signal and has been connected to the server; The device to be networked establishes a communication connection with the target parent device, and accesses the server through the target parent device.

2. The device network access method according to claim 1, characterized in that: Determining a target parent device according to the connectable device list and the networked device list includes: The device to be connected to the network selects a device identifier that belongs to both the connectable device list and the connected device list to obtain a parent device list, wherein the parent device list includes one or more parent devices; The device to be networked determines the device with the largest signal strength of the connectable signal in the parent device list as the target parent device.

3. The device network access method according to claim 1, characterized in that: The device to be connected to the network establishes a communication connection with the target parent device and accesses the server through the target parent device, including: The device to be connected to the network receives the forwarding instruction sent by the target parent device, and performs device processing according to the forwarding instruction, wherein the forwarding instruction is sent by the server to the target parent device so that the target parent device forwards it to the device to be connected to the network; The device to be connected to the network generates a response instruction and sends the response instruction to the target parent device, so that the target parent device sends the response instruction to the server, and further enables the server to generate a mount identifier of the device to be connected to the network to access the server, wherein the response instruction is an instruction for the device to be connected to the network to respond to the forwarding instruction, and the mount identifier is an identifier that represents that the device to be connected to the network is indirectly accessed through the target parent device.

4. The device network access method according to claim 1, characterized in that: Before the network access device scans for connectable signals, the method further includes: The device to be connected to the network sends a connection request instruction to the server, so that the server determines the access port of the device to be connected to the network, wherein the connection request instruction is an instruction requesting to connect to the server.

5. The device network access method according to claim 1, characterized in that: After accessing the server through the target parent device, the method further includes: The device to be connected receives the connection permission instruction sent by the server and connects to the server, wherein the connection permission instruction is an instruction to allow the device to access the server and is generated after the server determines the access port of the device to be connected.

6. The device network access method according to claim 1, characterized in that: After accessing the server through the target parent device, the method further includes: The device to be networked receives a disconnection instruction from the target parent device and disconnects from the target parent device, wherein the disconnection instruction is generated by the server after connecting to the device to be networked and sent to the target parent device, and is used to instruct the target parent device to disconnect from the device to be networked.

7. The device network access method according to claim 6, characterized in that: After the device to be connected receives the disconnection instruction from the target parent device and disconnects from the target parent device, the server deletes the mount identifier corresponding to the device to be connected, wherein the mount identifier is an identifier representing that the device to be connected is indirectly connected through the target parent device.

8. A device to be connected to the network, characterized in that: The device to be connected to the network refers to a device to be connected to the Internet, including: a scanning unit, configured to scan a connectable signal to obtain a connectable device list, wherein the connectable signal is a connection signal between devices, the connectable device list includes device identifiers corresponding to one or more connectable devices, and the connectable device is a device that sends the connectable signal and allows other devices to access through the connectable signal; a determination unit, configured to receive a list of connected devices, and determine a target parent device according to the connectable device list and the connected device list, wherein the connected device list includes device identifiers corresponding to one or more devices that have been connected to the server, and the target parent device is a device that allows other devices to access through the connectable signal and has been connected to the server; The first access unit is used to establish a communication connection with the target parent device and access the server through the target parent device.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the device network access method according to any one of claims 1 to 7.

10. An electronic device, characterized in that: include: One or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include a method for executing an access method to a device network as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Internet-of-things device configuration method and Internet-of-things device configuration system

    CN105451230A

  • Equipment network distribution method and device and household appliance

    CN109600252A

  • Network distribution method and device for bluetooth-based intelligent device and storage medium

    CN111918256A

  • Equipment access method and device, electronic equipment and storage medium

    CN114158021A

  • Intelligent equipment network distribution method and related device

    CN116112926A