Equipment network access method and system, related electronic equipment and network access control equipment
By obtaining and optimizing the network access capabilities of devices, the problem of complex processes and low efficiency in the process of device access to the network is solved, and efficient and simple operation of device access to the network is achieved, which is suitable for the access of smart devices in the field of the Internet of Things.
Patent Information
- Application Number
- CN202410966883.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-10-01
AI Technical Summary
Existing methods for device network access are complicated and inefficient. Especially in the field of the Internet of Things, there are multiple connection methods during the identity authentication and network access process of smart devices, resulting in complex operations and low efficiency.
Obtain the network access capability of the device to be connected to the network based on the first communication connection, and perform adaptive processing or optimization based on whether the network access capability is met, including directly performing network access processing when the conditions are met, and prompting the user through the information interaction medium when the conditions are not met. Adjust the environment foundation to optimize network access capabilities.
It simplifies the process of device network connection, improves network connection efficiency, reduces the waste of communication resources, and realizes efficient and simple operation of device network connection.
Smart Images

Figure CN118741644A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a device network access method and system, and related electronic equipment and network access control equipment. Background Art
[0002] In the field of Internet of Things, the identity of smart devices needs to be authenticated in order to bind the smart devices so that they can be viewed, controlled, and operated.
[0003] In the related art, for smart device authentication, users usually need to connect the smart device to the network and activate the smart device. Due to the existence of multiple connection methods such as Bluetooth connection, Wi-Fi connection, Ethernet connection, etc., the existing device network access method has problems such as complex process and low efficiency. Summary of the invention
[0004] The present application provides a device network access method, system and related electronic equipment and network access control equipment to at least solve the problems of complex processes and low efficiency in the prior art.
[0005] According to a first aspect of an embodiment of the present application, a method for device network access is provided, the method comprising: obtaining a network access capability of the device to be networked based on a first communication connection, the network access capability including a network connection mode different from the first communication connection;
[0006] Performing network access processing for the device when the network access capability meets the network access conditions;
[0007] In the case that the network access capability does not meet the network access condition, the network access processing of the device is performed after the network access capability is optimized based on the information interaction medium corresponding to the network access capability, and the information interaction medium is used for user interaction.
[0008] According to a second aspect of an embodiment of the present application, a device network access method is provided, which is applied to a device to be networked, and the device network access method includes:
[0009] Sending the network access capability of the device to be networked to the network access control device based on the first communication connection, where the network access capability includes a network connection mode different from that of the first communication connection;
[0010] When the network access capability satisfies the network access condition, establishing a network connection based on the network access capability to perform network access processing for the device;
[0011] In the case that the network access capability does not meet the network access conditions, a network connection is established based on the optimized network access capability to perform network access processing for the device.
[0012] According to a third aspect of an embodiment of the present application, an electronic device is provided, the electronic device comprising:
[0013] a memory for storing one or more computer instructions;
[0014] The processor is used to call and execute the one or more computer instructions to implement the device network access method provided by the first aspect or the second aspect of the embodiment of the present application.
[0015] According to a fourth aspect of an embodiment of the present application, a network access control device for a device to access a network is provided, the network access control device comprising:
[0016] A network access capability acquisition module, configured to acquire the network access capability of the device to be networked based on the first communication connection, wherein the network access capability includes a network connection mode different from the first communication connection;
[0017] A first network access processing module, used for performing device network access processing when the network access capability meets the network access conditions;
[0018] The second network access processing module is used to optimize the network access capability based on the information interaction medium corresponding to the network access capability and then perform device network access processing when the network access capability does not meet the network access conditions, and the information interaction medium is used for user interaction.
[0019] According to a fifth aspect of an embodiment of the present application, a device to be networked for device network access is provided, and the device to be networked includes:
[0020] A network access capability sending module, configured to send the network access capability of the device to be networked to the network access control device based on the first communication connection, wherein the network access capability includes a network connection mode different from the first communication connection;
[0021] A first network module, configured to establish a network connection based on the network access capability to perform network access processing for the device when the network access capability meets the network access condition;
[0022] The second network module is used to establish a network connection based on the optimized network access capability to perform network access processing for the device when the network access capability does not meet the network access conditions.
[0023] According to a sixth aspect of an embodiment of the present application, a device network access system is provided, the device network access system comprising a network access control device and a device to be networked, wherein:
[0024] The network access control device obtains the network access capability of the device to be networked from the device to be networked based on the first communication connection, where the network access capability includes a network connection mode different from the first communication connection;
[0025] In the case where the network access capability meets the network access condition, the device to be networked establishes a network connection based on the network access capability, the network access control device sends network access related information to the device to be networked, and the device to be networked performs device network access processing based on the network access related information and the established network connection;
[0026] In the case that the network access capability does not meet the network access conditions, the network access control device optimizes the network access capability based on the information interaction medium corresponding to the network access capability and sends the network access related information to the device to be networked; the device to be networked establishes a network connection based on the optimized network access capability, and performs device network access processing based on the network access related information and the established network connection.
[0027] According to the seventh aspect of the embodiments of the present application, a computer-readable storage medium is provided, storing a computer program that can be loaded by a processor and execute the device network access method provided in the first aspect or the second aspect of the embodiments of the present application.
[0028] According to an eighth aspect of an embodiment of the present application, a computer program product is provided, including a computer program, which, when executed by a processor, implements the device network access method provided in the first aspect or the second aspect of the embodiment of the present application.
[0029] In the embodiment of the present application, the network access capability of the device to be networked is directly obtained through the first communication connection, and network access or network access capability optimization is adaptively performed according to the network access capability, the process is simple and the network access efficiency is high. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1A This is a schematic diagram of terminal interaction in an embodiment of the present application;
[0031] Figure 1B This is a schematic diagram of the interaction between a terminal and a server in an embodiment of the present application;
[0032] Figure 2 It is a flowchart of a method for device network access in one embodiment of the present application;
[0033] Figure 3 It is a flowchart of a method for device network access in one embodiment of the present application;
[0034] Figure 4 It is a flowchart of a method for accessing a device to a network in an embodiment of the present application;
[0035] Figure 5A-5F is a schematic diagram of interactive media at different process nodes in one embodiment of the present application;
[0036] Figure 6is a structural diagram of a network access control device in one embodiment of the present application;
[0037] Figure 7 is a schematic diagram of the structure of a device to be connected to the network in an embodiment of the present application;
[0038] Figure 8 It is a structural schematic diagram of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION
[0039] 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.
[0040] 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 sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. 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.
[0041] According to an embodiment of the present application, an embodiment of a method for device access to a network 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.
[0042] The device network access method provided in this application can be applied, for example, to Figure 1AIn the application environment shown. Among them, terminal 001 and terminal 003 communicate through the network. Terminal 001 and terminal 003 can be, but are not limited to, various smart phones, personal computers, laptops, tablet computers, smart control panels, portable wearable devices or other electronic devices that can implement network connection, such as smart home products, gateways, etc. Terminal 001 and terminal 003 can be the same type of devices or different types of devices. Exemplarily, terminal 001 can be a mobile phone and terminal 003 can be a gateway device or a smart home device. Terminal 001 is used to obtain the network access capability of terminal 003 from terminal 003 and perform related processing of network access / optimization of network access capability when the network access capability of terminal 003 meets / does not meet the network access conditions.
[0043] The device network access method provided in this application can also be applied, for example, to Figure 1B In the application environment shown. Among them, terminal 001 and terminal 003 are as described above. In addition, terminal 001 and terminal 003 communicate with server 002 through the network. Server 002 can obtain information related to device network access from terminal 001 and terminal 003 to implement device network access (including the association between the device and the account). Server 002 can be implemented by an independent server or a server cluster composed of multiple servers.
[0044] Based on this, this application provides a method for device access to the network. Figure 1A or Figure 1B Taking the application environment shown in the figure as an example, assuming that terminal 003 is a device that needs to be connected to the network, the terminal 001 executes the device network access method. Figure 2 As shown, the method comprises the following steps:
[0045] 100: Obtaining the network access capability of the device to be networked based on the first communication connection. The network access capability is used to reflect whether the device to be networked can achieve network access. For example, the network access capability at least includes a network connection mode different from the communication mode of the first communication connection, including Ethernet, Wi-Fi, etc.
[0046] In this embodiment, compared with the existing technology of first discovering devices by scanning LAN broadcasts and then discovering devices by scanning Bluetooth broadcasts if no devices are scanned, the above step 100 can be used to obtain the network access capability of the networked device based only on the first communication connection (for example, Bluetooth, Huawei Star Flash, etc. Bluetooth is used as an example below), which simplifies the process and reduces the waste of communication resources.
[0047] 102: Performing network access processing for the device when the network access capability meets the network access condition. In this embodiment, "the network access capability meets the network access condition" means that the device to be networked can achieve network access based on its network access capability.
[0048] 104: When the network access capability does not meet the network access conditions, the network access capability is optimized based on the information interaction medium corresponding to the network access capability, and then the device network access process is performed. The information interaction medium is used for user interaction. In this embodiment, optimizing the network access capability means that after determining the network connection method supported by the device to be connected to the network, the environment basis required for network access based on the network connection method is further provided or the user is prompted / guided to change the environment basis. The environment basis includes network information (for example, Wi-Fi login information) and / or hardware status (for example, network cable insertion status).
[0049] In this embodiment, exemplarily, the information interaction medium can be an information input interface, thereby obtaining the environment basis input by the user, such as obtaining the network information filled in by the user; the information interaction medium can also be an information prompt / guidance interface, through which the user is prompted to make changes to the environment basis, such as reminding the user to plug in a network cable.
[0050] By adopting the device network access method provided in this embodiment, the network access capability of the device to be networked is directly obtained through the first communication connection, and the device network access / network access capability is adaptively optimized according to whether the network access capability meets the network access conditions, thereby simplifying the device network access process, improving network access efficiency, and reducing the waste of communication resources.
[0051] Optionally, in an implementation of this embodiment, before acquiring the network access capability of the device to be networked based on the first communication connection, the method further includes:
[0052] The first device identifier is obtained based on pattern scanning; for example, a QR code uniquely corresponding to the device to be networked is scanned to obtain the first device identifier.
[0053] Receive a Bluetooth broadcast sent by an environmental device, wherein the Bluetooth broadcast includes a second device identifier of the environmental device. "Environmental device" refers to any smart home device located around the terminal 001 and capable of sending Bluetooth broadcasts, and the number is one or more, including devices to be added to the network and devices that may exist and are not related to the device adding to the network. The second device identifier corresponds to the environmental device.
[0054] The environment device whose second device identifier is the same as the first device identifier is determined as the device to be connected to the network, and a first communication connection is established with the device to be connected to the network. With this implementation, the device to be connected to the network can be matched and determined efficiently and accurately, thereby improving the efficiency of device connection (or device activation).
[0055] For example, a magicPair (a Bluetooth protection framework) QR code can be set when a smart home device leaves the factory. The QR code can be pasted on the smart home device. The QR code contains a discriminator (device identifier) as the unique identifier of the device. After the device is powered on, Bluetooth will be automatically turned on and Bluetooth broadcast will be performed. The Bluetooth broadcast of the device will include this discriminator.
[0056] When a user needs to access a device to be connected to the network, he can scan the QR code on the device to be connected to the network through the network control device (i.e., terminal 001) to obtain the discriminator of the device to be connected to the network. At the same time, after the user plugs in the device to be connected to the network, the device to be connected to the network can turn on Bluetooth and establish a Bluetooth connection with the network control device. The network control device can receive Bluetooth broadcasts sent by all environmental devices and identify which device to be connected to the network based on the discriminator obtained by scanning the QR code.
[0057] Optionally, in an implementation of this embodiment, acquiring the network access capability of the device to be networked based on the first communication connection (processing 100) may be implemented in the following manner:
[0058] Step A: Obtain the network connection mode supported by the device to be connected to the network through the first preset command. Step B: In the case where the network connection mode supported by the device to be connected to the network includes Ethernet, obtain the network cable insertion status of the device to be connected to the network through the second preset command (the network cable insertion status is used to determine whether the network access conditions are met under Ethernet).
[0059] In a practical application, step A can be implemented in the following manner: terminal 001 sends a first preset command to the device to be connected to the network (terminal 003), terminal 001 receives a first status symbol fed back by the device to be connected to the network in response to the first preset command, and terminal 001 determines the network connection mode supported by the device to be connected to the network according to the first status symbol. Exemplarily, different bits in the first status symbol correspond to different network connection modes, and different values of each bit indicate whether the corresponding network connection mode is supported or not. By adopting step A, the network connection mode supported by the device to be connected to the network can be directly obtained from the device to be connected to the network.
[0060] In a practical application, step B can be implemented in the following manner: terminal 001 sends a second preset command to the device to be connected to the network (terminal 003), terminal 001 receives a second status symbol fed back by the device to be connected to the network in response to the second preset command, and terminal 001 determines the network cable insertion status of the device to be connected to the network according to the second status symbol. Exemplarily, the second status symbol is a bool (Boolean) value, and when the bool value is true, it indicates that the network cable insertion status is inserted, and when the bool value is false, it indicates that the network cable insertion status is not inserted. By adopting step B, the network cable insertion status of the device to be connected to the network can be directly obtained from the device to be connected to the network.
[0061] By adopting this implementation, the network connection mode and network cable insertion status supported by the device to be connected to the network can be obtained through two commands, thereby activating the device efficiently, directly and stably based on the wired network connection.
[0062] The first preset command and the second preset command may be function commands, and the aforementioned step A and step B are implemented through customized commands and interaction methods that comply with the Bluetooth communication protocol.
[0063] Optionally, in an implementation of this embodiment, obtaining the network access capability of the device to be networked based on the first communication connection (processing 100) can be implemented in the following manner: determining the network connection mode supported by the device to be networked through a first preset command; and determining whether the device to be networked has logged into Wi-Fi through a third preset command when the device to be networked supports Wi-Fi. This implementation is consistent with the logic of the previous implementation and will not be described in detail.
[0064] Optionally, in an implementation of this embodiment, obtaining the network access capability of the device to be networked based on the first communication connection (processing 100) can be implemented in the following manner: determining the network connection mode supported by the device to be networked through a first preset command. For example, when the device to be networked only supports Wi-Fi and the device to be networked has known the Wi-Fi login information in advance, it can be determined in processing 100 that the device to be networked supports Wi-Fi, and then directly determine that the network access capability meets the network access conditions.
[0065] Optionally, in one implementation of this embodiment, the network access capability satisfies the network access conditions, including: the network connection mode supported by the device to be networked includes Ethernet, and the network cable insertion status of the device to be networked is inserted; or, the network connection mode supported by the device to be networked is Wi-Fi, and the device to be networked is connected to Wi-Fi.
[0066] Optionally, in an implementation of this embodiment, the network access capability does not meet the network access conditions including: the network connection mode supported by the device to be networked includes Ethernet, and the network cable insertion status of the device to be networked is not inserted. At this time, the user can be reminded to insert the network cable through the first information interaction medium, thereby optimizing the network access capability. Among them, the first information interaction medium corresponds to the current network access capability of the device to be networked, and can include a text reminder such as "Please insert the network cable first" or a corresponding graphic reminder. With this implementation, when the device to be networked supports Ethernet, the device can be preferentially connected to the network based on Ethernet to ensure the stability of the device network access process.
[0067] In which, when the user is reminded to insert the network cable through the first information interaction medium, the network cable insertion status of the device to be connected to the network is periodically obtained until the network cable insertion status is determined to be inserted, or until information indicating that the user cancels the insertion of the network cable is obtained. For example, while the first information interaction medium contains information to remind the user to insert the network cable, it can also contain input items such as "do not insert the network cable" / "select other network connection methods" for the user to choose, so that the information that the user cancels the insertion of the network cable can be obtained. Of course, such input items can also be displayed through an information interaction medium different from the first information interaction medium. For example, after the first information interaction medium displays a set time, it jumps to the information interaction medium containing such input items.
[0068] Optionally, in an implementation of this embodiment, the network access capability does not meet the network access condition includes: the network connection mode supported by the device to be connected to the network is Wi-Fi, and the device to be connected to the network is not connected to Wi-Fi. Figure 5E ) obtains Wi-Fi login information to optimize network access capabilities. The second information interaction medium corresponds to the current network access capabilities of the device to be networked, and may include text information such as "Please enter Wi-Fi account, password" and a corresponding input box. With this implementation, the device network access processing can be implemented when the network connection method supported by the device to be networked is Wi-Fi.
[0069] Optionally, in an implementation of this embodiment, the network access capability does not meet the network access condition includes: the network connection methods supported by the device to be connected to the network include Ethernet and Wi-Fi, and the network cable insertion status of the device to be connected to the network is not inserted. Figure 5D ) obtain the user's choice of network connection mode, and when the user selects Ethernet, the fourth information interaction medium (reference Figure 5D In the example above, the user is prompted to insert the network cable. When the user selects Wi-Fi, the fifth information interaction medium (reference Figure 5E) to obtain Wi-Fi login information. With this implementation, the device can be flexibly connected to the network according to the user's choice.
[0070] In the case where the user is reminded to insert the network cable through the fourth information interaction medium, the network cable insertion status of the device to be connected to the network is periodically obtained until the network cable insertion status is determined to be inserted, or until information indicating that the user cancels the insertion of the network cable is obtained. For example, while the fourth information interaction medium contains information to remind the user to insert the network cable, it can also contain input items such as "do not insert the network cable" / "select other network connection methods" for the user to choose, so that the information that the user cancels the insertion of the network cable can be obtained. Of course, such input items can also be displayed through an information interaction medium different from the fourth information interaction medium. For example, after the fourth information interaction medium displays a set time, it jumps to the information interaction medium containing such input items.
[0071] In the various implementations mentioned above, the information interaction medium can be understood as an electronic interaction interface for displaying information or obtaining user operations while displaying information.
[0072] By adopting the implementation method mentioned above, the network access capability is adaptively optimized through information interaction media according to different network access capabilities, so as to obtain the necessary environmental foundation with a short operation process and improve the efficiency of equipment network access.
[0073] Optionally, in an implementation of this embodiment, while the device is undergoing network access processing, the network access process is displayed through a network access process display medium.
[0074] The present application also provides a device network access method, which is applied to a device to be networked (eg, terminal 003). Figure 3 , the device network access method includes:
[0075] 200: Sending the network access capability of the device to be networked to a network access control device (eg, terminal 001) based on a first communication connection, where the network access capability includes a network connection mode different from that of the first communication connection.
[0076] 202: When the network access capability meets the network access condition, establish a network connection based on the network access capability to perform network access processing for the device.
[0077] 204: When the network access capability does not meet the network access condition, establish a network connection based on the optimized network access capability to perform network access processing for the device.
[0078] By adopting the device network access method, the device to be networked can efficiently and quickly establish a network connection during the device network access process.
[0079] Optionally, in an implementation of this embodiment, processing 200 includes: in the case of receiving a first preset command sent by the network access control device, sending a first status symbol to the network access control device, the first status symbol is used by the network access control device to determine the network connection mode supported by the device to be connected to the network. In the case of receiving a second preset command sent by the network access control device, sending a second status symbol to the network access control device, the second status symbol is used by the network access control device to determine the network cable insertion status of the device to be connected to the network.
[0080] Those skilled in the art should understand that Figure 3 The method shown is Figure 2 The method shown is performed by different terminals communicating with each other. Figure 3 For detailed descriptions of the nouns, terms, logic, conditions, effects, etc. in each step in the illustrated embodiment, please refer to the previous text and will not be repeated here.
[0081] Those skilled in the art will understand that Figure 2 and Figure 3 The method provided in the illustrated embodiment can be implemented by computer software or electronic equipment. In a specific application scenario, it can be implemented by a mobile phone app. Figure 4 FIG. 1 is a flow chart of a method for accessing a device to a network according to an embodiment of the present invention, wherein the app performs data communication and data processing based on the hardware of the mobile terminal. Figure 4 , the device network access process includes:
[0082] a) After the networked device is powered on, turn on Bluetooth broadcasting.
[0083] b) The app scans the Bluetooth broadcast and the device QR code, and then filters the target device according to the discriminator (that is, determines the target device that needs to be activated from the devices discovered by scanning the Bluetooth broadcast).
[0084] In a specific application scenario, when a user opens the app, the app starts scanning Bluetooth broadcasts and displays any devices that are scanned. If multiple devices are scanned, the icons and information (e.g., names, device identification codes, etc.) of the multiple devices are displayed in the interface.
[0085] For example, Figure 5A The following is a schematic diagram of discovering devices. Figure 5B The figure shows a schematic diagram of scanning a QR code to obtain a discriminator. Of course, the discriminator can also be entered manually.
[0086] c) The app establishes a secure Bluetooth connection with the device to be connected. For example, the Bluetooth connection is established by scanning the QR code as mentioned above. Bluetooth data transmission will be encrypted, and a parameter for generating the encryption key is in the QR code. The app can obtain this parameter after scanning the QR code, thereby generating the same key as the device to be connected, so that the data of both parties can be encrypted and decrypted normally.
[0087] For example, during the Bluetooth connection process, the connection status can be displayed through the Bluetooth connection interface, such as Figure 5C shown.
[0088] d) The app queries the device to be connected to the network for the device's network connection method and whether the network cable is inserted, and the device to be connected to the network replies with the network connection method.
[0089] e) If the device to be connected to the network supports Ethernet and no network cable is inserted, enter the network connection method selection page, refer to Figure 5D The diagram shows two options, wherein the wired networking is the Ethernet networking mentioned in the disclosed solution.
[0090] If the user chooses wired networking, the user will be prompted to insert a network cable into the device to be connected to the network.
[0091] If the user chooses Wi-Fi, Figure 5E Prompt the user to enter the Wi-Fi name and password.
[0092] f) The device to be connected to the network establishes a Wi-Fi connection and notifies the app that it has been bound to the internet.
[0093] g) The app sends the current account userid and family id to the server (i.e., the cloud) to request a network access key, which may include the current account information and the current family information under the account (i.e., which family the device should be bound to).
[0094] h) The server returns the key to the app.
[0095] i) The app sends the key to the device to be connected to the network.
[0096] j) After receiving the key, the device actively binds to the cloud and notifies the app of successful network access after successful binding.
[0097] In the embodiments of the present application, Figure 4As shown, in step f, the device to be connected to the network establishes a Wi-Fi connection based on its own network access capability, and then the device network access process can be performed (for example, participating in steps i and j). After step f, the network access capability of the device to be connected to the network meets the network access conditions, and the app (corresponding to the network access control device) can perform the device network access process (for example, participating in steps g, h, i and j). Those skilled in the art should understand that the device network access process is a process completed by multi-terminal interaction, but the "device network access process" mentioned in each embodiment of the present application, unless otherwise specified, refers to the process independently completed by a single terminal (the execution subject corresponding to the method provided in the embodiment) in the multi-terminal interaction. In other words, the terminal "performs the device network access process" can be understood as the terminal participating in the device network access process and executing its own execution steps. As for the specific interaction process of the device network access process and the specific execution steps of each terminal, this application does not make specific restrictions.
[0098] like Figure 4 The figure mainly shows the process flow of networking via Wi-Fi. In step e, if the user chooses wired networking, Figure 5D "Please insert the network cable first" in the app reminds users to insert the network cable. When the network cable is detected to be inserted (after the networked device is plugged in, the app is informed of the network cable connection via Bluetooth), the cloud binding operation can be performed directly.
[0099] During the execution of step gj, or during the execution of step j, it can be displayed Fig. 5F The interface shown shows the binding progress.
[0100] In step e, if the network cable is plugged in, skip steps e and f and go directly to step h.
[0101] The present application also provides a network access control device for a device to access a network, such as Figure 6 As shown, the network access control device (for example, terminal 001) includes:
[0102] A network access capability acquisition module, configured to acquire the network access capability of the device to be networked based on the first communication connection, wherein the network access capability includes a network connection mode different from the first communication connection;
[0103] A first network access processing module, used for performing device network access processing when the network access capability meets the network access conditions;
[0104] The second network access processing module is used to optimize the network access capability based on the information interaction medium corresponding to the network access capability and then perform device network access processing when the network access capability does not meet the network access conditions, and the information interaction medium is used for user interaction.
[0105] In one implementation of this embodiment, the network access capability acquisition module can be specifically used to: obtain the network connection method supported by the device to be connected to the network through a first preset command; and when the network connection method supported by the device to be connected to the network includes Ethernet, obtain the network cable insertion status of the device to be connected to the network through a second preset command.
[0106] Among them, exemplarily, obtaining the network connection mode supported by the device to be connected to the network through a first preset command includes: sending the first preset command to the device to be connected to the network, receiving a first status code fed back by the device to be connected to the network in response to the first preset command, and determining the network connection mode supported by the device to be connected to the network according to the first status code.
[0107] Among them, exemplarily, obtaining the network cable insertion status of the device to be connected to the network through a second preset command includes: sending a second preset command to the device to be connected to the network, receiving a second status code fed back by the device to be connected to the network in response to the second preset command, and determining the network cable insertion status of the device to be connected to the network according to the second status code.
[0108] In one implementation of this embodiment, the network access capability meets the network access conditions, including: the network connection mode supported by the device to be networked includes Ethernet, and the network cable insertion status of the device to be networked is inserted; or, the network connection mode supported by the device to be networked is Wi-Fi, and the device to be networked is connected to Wi-Fi.
[0109] In a first implementation of this embodiment, optionally, the network access capability not meeting the network access condition includes: the network connection mode supported by the device to be networked includes Ethernet, and the network cable insertion status of the device to be networked is not inserted. Optimizing the network access capability based on the information interaction medium corresponding to the network access capability includes: reminding the user to insert the network cable through the first information interaction medium.
[0110] In a second implementation of this embodiment, optionally, the network access capability not meeting the network access condition includes: the network connection mode supported by the device to be networked is Wi-Fi, and the device to be networked is not connected to Wi-Fi. Optimizing the network access capability based on the information interaction medium corresponding to the network access capability includes: obtaining Wi-Fi login information through the second information interaction medium.
[0111] In a third implementation of this embodiment, optionally, the network access capability not meeting the network access condition includes: the network connection modes supported by the device to be networked include Ethernet and Wi-Fi, and the network cable insertion status of the device to be networked is not inserted. Optimizing the network access capability based on the information interaction medium corresponding to the network access capability includes: obtaining the user's selection of the network connection mode through the third information interaction medium, and in the case where the user selects Ethernet, reminding the user to insert the network cable through the fourth information interaction medium, and in the case where the user selects Wi-Fi, obtaining Wi-Fi login information through the fifth information interaction medium.
[0112] In the above-mentioned first, second and third implementation methods, the second network access processing module can, when the user is reminded to insert the network cable through the first information interaction medium, periodically obtain the network cable insertion status of the device to be networked, until it is determined that the network cable insertion status is inserted, or until information indicating that the user cancels the insertion of the network cable is obtained; and / or, when the user is reminded to insert the network cable through the fourth information interaction medium, periodically obtain the network cable insertion status of the device to be networked, until it is determined that the network cable insertion status is inserted, or until information indicating that the user cancels the insertion of the network cable is obtained.
[0113] In one embodiment of the present application, the network access control device also includes: a scanning module, which is used to obtain a first device identifier based on pattern scanning; a receiving module, which receives a Bluetooth broadcast sent by an environmental device, and the Bluetooth broadcast includes a second device identifier of the environmental device; a comparison connection module, which is used to determine an environmental device whose second device identifier is the same as the first device identifier as the device to be connected to the network, and establish a first communication connection with the device to be connected to the network.
[0114] The embodiment of the present application also provides a device to be connected to the network for device connection, such as Figure 7 As shown, the device to be connected to the network (for example, terminal 003) includes:
[0115] A network access capability sending module, configured to send the network access capability of the device to be networked to the network access control device based on the first communication connection, wherein the network access capability includes a network connection mode different from the first communication connection;
[0116] A first network module, configured to establish a network connection based on the network access capability to perform network access processing for the device when the network access capability meets the network access condition;
[0117] The second network module is used to establish a network connection based on the optimized network access capability to perform network access processing for the device when the network access capability does not meet the network access conditions.
[0118] In one implementation of the present embodiment, exemplarily, when the network access capability sending module receives a first preset command sent by the network access control device, it sends a first status symbol to the network access control device to send the network access capability of the device to be connected to the network access control device, and the first status symbol is used by the network access control device to determine the network connection mode supported by the device to be connected.
[0119] In one implementation of the present embodiment, exemplarily, when the network access capability sending module receives a second preset command sent by the network access control device, it sends a second status symbol to the network access control device to send the network access capability of the device to be connected to the network access control device, and the second status symbol is used by the network access control device to determine the network cable insertion status of the device to be connected to the network.
[0120] about Figure 6 The access control equipment and Figure 7 For a detailed description of the contents executed by each module in the device to be connected to the network, please refer to the description in the previous method embodiment, which will not be repeated here.
[0121] The embodiment of the present application also provides a device network access system, the device network access system includes a network access control device and a device to be networked. Figure 6 The access control equipment and Figure 7 The device to be connected to the network is shown. The related description is not repeated here.
[0122] The present application also provides an electronic device, including a memory and a processor, wherein the memory stores computer instructions, and the processor is used to call and execute the one or more computer instructions to implement Figure 2 and / or Figure 3 The device network access method provided by the illustrated embodiment or implementation manner.
[0123] Specifically, Figure 8 As shown, the electronic device includes a processor 100, at least one communication bus 200, a user interface 300, at least one external communication interface 400 and a memory 500. The communication bus 200 is configured to achieve connection and communication between these components. The user interface 300 may include a display screen, and the external communication interface 400 may include a standard wired interface and a wireless interface. The memory 500 stores Figure 2 and / or Figure 3 The device network access method provided by the illustrated embodiment or implementation is as follows: The processor 100 is configured to use the above method when executing the device network access method stored in the memory 500.
[0124] An embodiment of the present application also provides a computer-readable storage medium storing a computer program that can be loaded by a processor and execute the above-mentioned method.
[0125] The present application also provides a computer program product, including a computer program. When the computer program is executed by a processor, the method embodiment described herein or its implementation method is implemented.
[0126] The above descriptions of the electronic device, computer-readable storage medium, and computer program product embodiments are similar to the descriptions of the above method embodiments, and have similar beneficial effects as the method embodiments. For technical details not disclosed in the electronic device, computer-readable storage medium, and computer program product embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.
[0127] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0128] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0129] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0130] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0131] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0132] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-On l yMemory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.
[0133] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for device accessing a network, characterized in that: The device network access method includes: Acquire a network access capability of the device to be networked based on the first communication connection, where the network access capability includes a network connection mode different from the first communication connection; Performing network access processing for the device when the network access capability meets the network access conditions; In the case that the network access capability does not meet the network access condition, the network access processing of the device is performed after the network access capability is optimized based on the information interaction medium corresponding to the network access capability, and the information interaction medium is used for user interaction.
2. The device network access method according to claim 1, characterized in that: The acquiring the network access capability of the device to be networked based on the first communication connection includes: Acquiring a network connection mode supported by the device to be connected to the network through a first preset command; and In a case where the network connection mode supported by the device to be networked includes Ethernet, the network cable insertion status of the device to be networked is obtained through a second preset command.
3. The device network access method according to claim 2, characterized in that: The obtaining of the network connection mode supported by the device to be connected to the network through the first preset command includes: Sending a first preset command to the device to be connected to the network, receiving a first status symbol fed back by the device to be connected to the network in response to the first preset command, and determining a network connection mode supported by the device to be connected to the network according to the first status symbol; and / or, The obtaining the network cable insertion status of the device to be connected to the network by using the second preset command includes: A second preset command is sent to the device to be networked, a second status symbol fed back by the device to be networked in response to the second preset command is received, and a network cable insertion status of the device to be networked is determined according to the second status symbol.
4. The device network access method according to any one of claims 1 to 3, characterized in that: The network access capability meets the network access conditions, including: The network connection mode supported by the device to be connected to the network includes Ethernet, and the network cable insertion status of the device to be connected to the network is inserted; or, The network connection mode supported by the device to be networked is Wi-Fi, and the device to be networked is connected to Wi-Fi.
5. The device network access method according to any one of claims 1 to 3, characterized in that: The network access capability does not meet the network access conditions include: the network connection mode supported by the device to be connected to the network includes Ethernet, and the network cable insertion status of the device to be connected to the network is not inserted, Optimizing the network access capability based on the information interaction medium corresponding to the network access capability includes: reminding the user to insert a network cable through a first information interaction medium; or, The network access capability does not meet the network access conditions include: the network connection mode supported by the device to be networked is Wi-Fi, and the device to be networked is not connected to Wi-Fi, Optimizing the network access capability based on the information interaction medium corresponding to the network access capability includes: acquiring Wi-Fi login information through a second information interaction medium; or, The network access capability does not meet the network access conditions include: the network connection modes supported by the device to be networked include Ethernet and Wi-Fi, and the network cable insertion status of the device to be networked is not inserted; The optimizing the network access capability based on the information interaction medium corresponding to the network access capability includes: obtaining a user's selection of a network connection method through a third information interaction medium; if the user selects Ethernet, reminding the user to insert a network cable through a fourth information interaction medium; and if the user selects Wi-Fi, obtaining Wi-Fi login information through a fifth information interaction medium.
6. The device network access method according to claim 5, characterized in that: The method further comprises: When the user is reminded to insert the network cable through the first information interaction medium, periodically obtaining the network cable insertion status of the device to be connected to the network until it is determined that the network cable insertion status is inserted, or until information indicating that the user cancels the insertion of the network cable is obtained; and / or, When the user is reminded to insert the network cable through the fourth information interaction medium, the network cable insertion status of the device to be connected to the network is periodically obtained until the network cable insertion status is determined to be inserted, or until information indicating that the user cancels the insertion of the network cable is obtained.
7. The device network access method according to claim 1, characterized in that: Before acquiring the network access capability of the device to be networked based on the first communication connection, the method further includes: acquiring a first device identifier based on the pattern scan; Receiving a Bluetooth broadcast sent by an environmental device, wherein the Bluetooth broadcast includes a second device identifier of the environmental device; An environmental device having a second device identifier identical to the first device identifier is determined as the device to be networked, and a first communication connection is established with the device to be networked.
8. A device network access method, applied to a device to be networked, characterized in that: The device network access method includes: Sending the network access capability of the device to be networked to the network access control device based on the first communication connection, where the network access capability includes a network connection mode different from that of the first communication connection; When the network access capability satisfies the network access condition, establishing a network connection based on the network access capability to perform network access processing for the device; In the case that the network access capability does not meet the network access conditions, a network connection is established based on the optimized network access capability to perform network access processing for the device.
9. The device network access method according to claim 8, characterized in that: The sending the network access capability of the device to be networked to the network access control device based on the first communication connection includes: sending a first status symbol to the network access control device when receiving a first preset command sent by the network access control device, wherein the first status symbol is used by the network access control device to determine a network connection mode supported by the device to be networked; In case of receiving the second preset command sent by the network access control device, a second status symbol is sent to the network access control device, where the second status symbol is used by the network access control device to determine the network cable insertion status of the device to be networked.
10. An electronic device, characterized in that: The electronic device comprises: a memory for storing one or more computer instructions; A processor is used to call and execute the one or more computer instructions to implement the device network access method as described in any one of claims 1-9.
11. A network access control device, characterized in that: The network access control device comprises: A network access capability acquisition module, configured to acquire the network access capability of the device to be networked based on the first communication connection, wherein the network access capability includes a network connection mode different from the first communication connection; A first network access processing module, used for performing device network access processing when the network access capability meets the network access conditions; The second network access processing module is used to optimize the network access capability based on the information interaction medium corresponding to the network access capability and then perform device network access processing when the network access capability does not meet the network access conditions, and the information interaction medium is used for user interaction.
12. A device to be connected to a network, characterized in that: The device to be connected to the network includes: A network access capability sending module, configured to send the network access capability of the device to be networked to the network access control device based on the first communication connection, wherein the network access capability includes a network connection mode different from the first communication connection; A first network module, configured to establish a network connection based on the network access capability to perform network access processing for the device when the network access capability meets the network access condition; The second network module is used to establish a network connection based on the optimized network access capability to perform network access processing for the device when the network access capability does not meet the network access conditions.
13. A device network access system, characterized in that: The device access system includes a network access control device and a device to be accessed, wherein: The network access control device obtains the network access capability of the device to be networked from the device to be networked based on the first communication connection, where the network access capability includes a network connection mode different from the first communication connection; In the case where the network access capability meets the network access condition, the device to be networked establishes a network connection based on the network access capability, the network access control device sends network access related information to the device to be networked, and the device to be networked performs device network access processing based on the network access related information and the established network connection; In the case that the network access capability does not meet the network access conditions, the network access control device optimizes the network access capability based on the information interaction medium corresponding to the network access capability and sends the network access related information to the device to be networked; the device to be networked establishes a network connection based on the optimized network access capability, and performs device network access processing based on the network access related information and the established network connection.
14. A computer-readable storage medium, characterized in that: A computer program is stored which can be loaded by a processor and execute the method according to any one of claims 1 to 9.
15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.
