Bluetooth-based network configuration method, device, computer equipment, and readable storage medium
Bluetooth technology simplifies the network distribution process of devices without operating keyboards, provides diversified network distribution methods, solves the existing problems of complex network distribution and high cost, and improves the success rate of network distribution.
Patent Information
- Application Number
- CN202111131871.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-26
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2041-09-26
AI Technical Summary
The existing network distribution methods are complicated, especially for devices without operating keyboards. The network distribution process is cumbersome, and when network distribution fails, it requires professional testing, which is costly.
Through Bluetooth technology, the network equipment to be distributed detects the current network connection status and determines the target network distribution method. The smart terminal sends network distribution connection information. The network equipment to be distributed receives and sends the network distribution request, completes the network distribution connection, and provides diverse network distribution methods. to improve the success rate.
It simplifies the network distribution process of devices without operating keyboards, reduces the detection cost when network distribution fails, and improves the success rate of network distribution. It is suitable for devices without operating keyboards such as TVs.
Smart Images

Figure CN114071651B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of network distribution, and in particular to a network distribution method, device, computer equipment and readable storage medium based on Bluetooth. Background Art
[0002] Network configuration for devices is the first step for many devices to be connected to the Internet. The commonly used network configuration method is to switch the device's WiFi mode to AP, receive the home WiFi name and password sent from the mobile phone, and then switch to AP mode to connect to the WiFi router. This network configuration method is suitable for smart devices with operating keyboards such as mobile phones; however, for devices without operating keyboards, such as TVs or boxes, mode switching is required, and the network connection method is more complicated, which is not convenient for connecting devices without operating keyboards such as TVs or boxes; and when the network configuration is successful, if the device cannot access the Internet, professionals are required to test the device, which is highly professional and costly. Summary of the invention
[0003] The embodiments of the present invention provide a Bluetooth-based network configuration method, device, computer equipment and readable storage medium to solve the problem that the existing network configuration methods are relatively complex and single.
[0004] A network configuration method based on Bluetooth, comprising:
[0005] When the device to be networked detects that it cannot access the Internet, it obtains the current network status and determines the target network configuration mode according to the current network status;
[0006] The intelligent terminal obtains the network connection information corresponding to the target network connection mode, and sends the network connection information to the device to be networked via Bluetooth;
[0007] The device to be configured receives the network configuration connection information, determines the target network configuration device according to the network configuration connection information, sends a network configuration request carrying the network configuration connection information to the target network configuration device, receives network configuration success information fed back by the target network configuration device, and completes the network configuration connection.
[0008] A network distribution device based on Bluetooth, comprising:
[0009] The target network configuration mode determination module is used to obtain the current network connection state when the network configuration device detects that it cannot access the Internet, and determine the target network configuration mode according to the current network connection state;
[0010] A network configuration connection information determination module is used for the intelligent terminal to obtain the network configuration connection information corresponding to the target network configuration mode, and send the network configuration connection information to the to-be-configured network device via Bluetooth;
[0011] The network configuration connection module is used for the device to be configured to receive the network configuration connection information, determine the target network configuration device according to the network configuration connection information, send a network configuration request carrying the network configuration connection information to the target network configuration device, receive the network configuration success information fed back by the target network configuration device, and complete the network configuration connection.
[0012] An embodiment of the present invention provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the Bluetooth-based network configuration method when executing the computer program.
[0013] An embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the Bluetooth-based network configuration method are implemented.
[0014] The above-mentioned Bluetooth-based network configuration method, device, computer equipment and readable storage medium, when the device to be configured detects that it cannot access the Internet, obtains the current network status, determines the target network configuration method based on the current network status, provides a variety of network configuration methods for the device to be configured, selects a better target network configuration method to provide network configuration services for the device to be configured, and improves the success rate of network configuration. The intelligent terminal obtains the network configuration connection information corresponding to the target network configuration method, sends the network configuration connection information to the device to be configured via Bluetooth, and provides technical support for the subsequent network configuration of the device to be configured. The device to be configured receives the network configuration connection information, determines the target network configuration device based on the network configuration connection information, sends a network configuration request carrying the network configuration connection information to the target network configuration device, receives the network configuration success information fed back by the target network configuration device, completes the network configuration connection, and provides network configuration services for the device to be configured. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0016] Figure 1 is a schematic diagram of an application environment of a Bluetooth-based network configuration method in an embodiment of the present invention;
[0017] Figure 2 is a flow chart of a Bluetooth-based network configuration method in an embodiment of the present invention;
[0018] Figure 3 is a flow chart of a Bluetooth-based network configuration method in an embodiment of the present invention;
[0019] Figure 4 is a flow chart of a Bluetooth-based network configuration method in an embodiment of the present invention;
[0020] Figure 5 is a flow chart of a Bluetooth-based network configuration method in an embodiment of the present invention;
[0021] Figure 6 is a flow chart of a Bluetooth-based network configuration method in an embodiment of the present invention;
[0022] Figure 7 is a flow chart of a Bluetooth-based network configuration method in an embodiment of the present invention;
[0023] Figure 8 is a principle block diagram of a Bluetooth-based network distribution device in one embodiment of the present invention;
[0024] Fig. 9 is a schematic diagram of a computer device in one embodiment of the present invention. DETAILED DESCRIPTION
[0025] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0026] The Bluetooth-based network configuration method provided in the embodiment of the present invention can be applied as follows: Figure 1 Specifically, the Bluetooth-based network configuration method is applied in a Bluetooth-based network configuration system, and the Bluetooth-based network configuration system includes: Figure 1 The network equipment to be configured and the smart terminal shown are connected to the smart terminal and are used to receive the network connection information sent by the smart terminal to complete the network connection.
[0027] In one embodiment, if Figure 2 As shown, a Bluetooth-based network configuration method is provided, which is applied in a Bluetooth-based network configuration system and includes the following steps:
[0028] S201: When the device to be networked detects that it cannot access the Internet, it obtains the current network status and determines the target network configuration mode according to the current network status.
[0029] The device to be networked is a device that needs to be networked so that the device to be networked can access the Internet.
[0030] The current network state refers to the network state of the device to be networked at the current moment. The current network state includes the networked state and the disconnected state. The networked state refers to the state where the device has been networked, and the disconnected state refers to the state where the device has not been networked.
[0031] The target network configuration mode refers to the way the device to be configured is configured.
[0032] In this embodiment, the user sends an Internet access command to the network device to be configured. When the network device to be configured executes the Internet access command and cannot receive feedback, the network device to be configured determines that it cannot access the Internet. At this time, in order to ensure that the user can access the Internet through the network device to be configured, it is necessary to detect the current network connection status of the network device to be configured to determine the target network configuration method to ensure that the network device to be configured can be successfully configured. The target network configuration method is determined according to the current network connection status, and a variety of network configuration methods are provided for the network device to be configured. A better target network configuration method is selected to provide network configuration services for the network device to be configured, thereby improving the network configuration success rate.
[0033] S202: The intelligent terminal obtains network connection information corresponding to the target network connection mode, and sends the network connection information to the device to be networked via Bluetooth.
[0034] Among them, the network configuration connection information is the information that the device to be configured is connected to the target network configuration device; the network configuration connection information can be understood as the information that the target network configuration device verifies whether the device to be configured can be connected to itself. Specifically, the target network configuration device verifies the correctness of the network configuration connection information to determine whether the device to be configured can be connected to itself.
[0035] In this embodiment, when the smart terminal obtains the target network configuration method, it obtains the network configuration connection information corresponding to the target network configuration method by querying the database, and sends the network configuration connection information to the device to be configured via Bluetooth, providing technical support for the subsequent network configuration of the device to be configured.
[0036] S203: The device to be networked receives the network connection information, determines the target networked device according to the network connection information, sends a network connection request carrying the network connection information to the target networked device, receives network connection success information fed back by the target networked device, and completes the network connection.
[0037] The network configuration request is a request for the target network configuration device to configure the network.
[0038] The network configuration success information is information that notifies the network configuration device that the network configuration is successful.
[0039] In this embodiment, when the network configuration device receives the network configuration connection information, the user sends a network configuration interface call instruction to the network configuration device to make the network configuration device display the network configuration interface corresponding to the target network configuration mode, and the network configuration interface includes a to-be-filled area; the user fills in the network configuration connection information in the to-be-filled area, and clicks the network configuration button to send a network configuration request carrying the network configuration connection information to the target network configuration device; when the target network configuration device receives the network configuration request carrying the network configuration connection information, it verifies whether the network configuration connection information is correct and obtains the verification result; when the verification result is that the network configuration connection information is correct, the target network configuration device is connected to the network configuration device, and the network configuration success information is fed back to the network configuration device to complete the network configuration connection, and the network configuration service is provided to the network configuration device. When the verification result is that the network configuration connection information is wrong, the target network configuration device is not connected to the network configuration device; when the network configuration device does not receive the network configuration success information within the preset time, the network configuration connection information error is displayed on the display interface so that the user can understand the network configuration situation.
[0040] As an example, a Bluetooth-based network configuration method is applied to a multi-terminal screen projection system, which includes a device to be configured and N smart terminals connected to the device to be configured; wherein the device to be configured is the display terminal, and the smart terminal is the participating screen projection terminal; the smart terminal is used to configure the network for the initialized device to be configured; the device to be configured is used to interact with the participating screen projection terminals when it can access the Internet, so as to realize multi-terminal screen projection.
[0041] The Bluetooth-based network configuration method provided in this embodiment is that when the network configuration device detects that it cannot access the Internet, it obtains the current network connection status, determines the target network configuration method based on the current network connection status, provides a variety of network configuration methods for the network configuration device, selects a better target network configuration method to provide network configuration services for the network configuration device, and improves the network configuration success rate. The intelligent terminal obtains the network configuration connection information corresponding to the target network configuration method, sends the network configuration connection information to the network configuration device via Bluetooth, and provides technical support for the subsequent network configuration of the network configuration device. The network configuration device to be configured receives the network configuration connection information, determines the target network configuration device based on the network configuration connection information, sends a network configuration request carrying the network configuration connection information to the target network configuration device, receives the network configuration success information fed back by the target network configuration device, completes the network configuration connection, and provides network configuration services for the network configuration device to be configured.
[0042] As an example, Figure 3 As shown, step S201, that is, determining the target network configuration mode according to the current network connection state, includes:
[0043] S301: If the current networking state is the networking state, determine the current networking mode of the device to be networked, and determine the target networking mode according to the current networking mode and the existing networking mode.
[0044] The existing network configuration mode is a mode corresponding to the network configuration interface of the device to be configured, and the existing network configuration mode may be a wifi network configuration mode and a hotspot network configuration mode, etc. The network configuration interface is an interface for network configuration. For example, the network configuration interface may be a wifi network configuration interface and a hotspot network configuration interface.
[0045] In this embodiment, when the current networking state is the networking state, it means that the device to be networked has been networked. Therefore, the current network configuration mode of the device to be networked can be determined, and the networking state appears, but the reason for not being able to access the Internet cannot be determined. At this time, the existing network configuration mode is queried, and one of the existing network configuration modes other than the current network configuration mode is determined as the target network configuration mode; when the device to be networked successfully connects to the network through the target network configuration mode and can access the Internet, it can be determined that the current network configuration mode is an abnormal network configuration mode, that is, the target network configuration device corresponding to the current network configuration mode is abnormal. When the device to be networked successfully connects to the network through the target network configuration mode, but cannot access the Internet, it can be determined that the device to be networked is abnormal, so as to quickly and easily determine the reason for the abnormal network configuration, which is simple to operate and has a wide range of applications. Among them, the current network configuration mode refers to the network configuration mode corresponding to the device to be networked at the current moment. Exemplarily, the current network configuration mode can be a hotspot network configuration mode or a wifi network configuration mode, etc. The target network configuration device is a device used to provide a network for the device to be networked, and the target network configuration device can be a wifi router or an intelligent terminal, etc.
[0046] It should be noted that before eliminating the abnormality, it is necessary to verify the feasibility of any network distribution method other than the current network distribution method to ensure that any network distribution method other than the current network distribution method is normal.
[0047] S302: If the current network connection state is an unconnected state, a random target network configuration method is selected from at least one existing network configuration method.
[0048] In this embodiment, when the current networking state is not connected to the network, the device to be networked checks the network configuration interface it has to determine the existing network configuration methods, and randomly selects any one of the existing network configuration methods as the target network configuration method. Providing multiple existing network configuration methods can improve the success rate of network configuration, so as to achieve simple and convenient network configuration.
[0049] The Bluetooth-based network configuration method provided in this embodiment, when the current network connection state is the network connection state, determines the current network configuration mode of the device to be configured, and determines the target network configuration mode according to the current network configuration mode and the existing network configuration mode, so as to quickly and easily determine the cause of abnormal network configuration, and has simple operation and a wide range of applications. When the current network connection state is the disconnected state, the target network configuration mode is randomly selected from at least one existing network configuration mode, and multiple existing network configuration modes are provided, which can improve the success rate of network configuration; so as to realize simple and convenient network configuration.
[0050] As an example, Figure 4 As shown, step S301, i.e. determining the current network configuration mode of the device to be configured, and determining the target network configuration mode according to the current network configuration mode and the existing network configuration mode, includes:
[0051] S401: Determine whether the current network configuration mode is a WiFi network configuration mode.
[0052] In this embodiment, the device to be networked determines whether the current network configuration mode is the WiFi network configuration mode by querying the connection status of the WiFi network configuration interface; when the connection status of the WiFi network configuration interface is enabled, the current network configuration mode is the WiFi network configuration mode; when the connection status of the WiFi network configuration interface is not enabled, the current network configuration mode is the hotspot network configuration mode.
[0053] S402: If the current network configuration mode is the WiFi network configuration mode, the hotspot network configuration mode is determined as the target network configuration mode.
[0054] S403: If the current network configuration mode is not the WiFi network configuration mode, the WiFi network configuration mode is determined as the target network configuration mode.
[0055] In this embodiment, when the current networking state is the networking state, it means that the device to be networked has been networked. Therefore, the current network configuration mode of the device to be networked can be determined, and the networking state appears, but the reason for not being able to access the Internet cannot be determined. At this time, the current network configuration mode is determined, and the existing network configuration mode other than the current network configuration mode is determined as the target network configuration mode; then when the device to be networked is successfully networked through the target network configuration mode and can access the Internet, it can be determined that the current network configuration mode is an abnormal network configuration mode, that is, the target network configuration device corresponding to the current network configuration mode is abnormal. When the device to be networked is successfully networked through the target network configuration mode, but cannot access the Internet, it can be determined that the device to be networked is abnormal, so as to quickly and easily determine the cause of the abnormal network configuration. The operation is simple and the scope of application is wide.
[0056] It can be understood that the current network configuration mode is determined, and an existing network configuration mode other than the current network configuration mode is determined as the target network configuration mode, including: if the current network configuration mode is the wifi network configuration mode, the hotspot network configuration mode is determined as the target network configuration mode. If the current network configuration mode is not the wifi network configuration mode, the wifi network configuration mode is determined as the target network configuration mode.
[0057] The Bluetooth-based network configuration method provided in this embodiment determines the hotspot network configuration mode as the target network configuration mode when the current network configuration mode is the wifi network configuration mode; and determines the wifi network configuration mode as the target network configuration mode when the current network configuration mode is not the wifi network configuration mode. When the current network connection state is the connecting state, it means that the device to be configured has been configured, and the existing network configuration mode other than the current network configuration mode is determined as the target network configuration mode, which can quickly and easily determine the cause of abnormal network configuration, is simple to operate, and has a wide range of applications.
[0058] As an example, Figure 5 As shown, after step S203, that is, after receiving the network configuration success information fed back by the target network configuration device and completing the network configuration connection, the Bluetooth-based network configuration method further includes:
[0059] S501: The device to be networked detects whether it can access the Internet.
[0060] S502: If the network device to be configured can access the Internet, the network device to be configured is normal.
[0061] S503: If the network device to be configured can access the Internet, the network device to be configured is abnormal.
[0062] In this embodiment, when the target network configuration device successfully configures the network for the network device to be configured, the user sends an Internet access instruction to the network device to be configured, so that the network device to be configured can determine whether it can access the Internet; when the network device to be configured can access the Internet, the network device to be configured is normal; when the network device to be configured can access the Internet, the network device to be configured is abnormal. Therefore, even without professional equipment, the cause of the abnormality can be located, and the method is simple and convenient.
[0063] It should be noted that before step S203, the target network distribution device is verified in advance to ensure that the target network distribution device is a normal device in step S203. Specifically, the target network distribution device is verified, including: the target network distribution device is used as a normal detection device for network distribution, but the network distribution is successful, and the detection device can access the Internet, then the target network distribution device is a normal device.
[0064] In the Bluetooth-based network configuration method provided in this embodiment, when the network configuration device can access the Internet, the network configuration device is normal. When the network configuration device can access the Internet, the network configuration device is abnormal, so that the cause of abnormal network configuration can be determined quickly and easily, and the operation is simple.
[0065] As an example, Figure 6 As shown, step S202, that is, the intelligent terminal obtains the network connection information corresponding to the target network connection mode, including:
[0066] S601: When the target network configuration mode is a hotspot network configuration mode, the intelligent terminal queries the database to obtain network configuration connection information corresponding to the hotspot network configuration mode, where the network configuration connection information includes a hotspot name and a hotspot password.
[0067] S602: When the target network configuration mode is the WiFi network configuration mode, the intelligent terminal queries the database to obtain network configuration connection information corresponding to the WiFi network configuration mode, where the network configuration connection information includes the WiFi name and WiFi password.
[0068] In this embodiment, after the target network configuration mode is determined, the intelligent terminal queries the database to obtain the network configuration connection information corresponding to the target network configuration mode, and provides technical support for subsequent network configuration. That is, when the target network configuration mode is the hotspot network configuration mode, the intelligent terminal queries the database to obtain the hotspot name and hotspot password corresponding to the hotspot network configuration mode, and provides technical support for the subsequent network configuration through the hotspot network configuration mode. Similarly, when the target network configuration mode is the wifi network configuration mode, the intelligent terminal queries the database to obtain the wifi name and wifi password corresponding to the wifi network configuration mode, and provides technical support for the subsequent network configuration through the wifi network configuration mode.
[0069] As an example, the device to be configured can be a device without a physical keyboard, such as a TV or a box. When the device to be configured receives the wifi name and wifi password, the wifi configuration method is to authenticate the wifi network; if the device to be configured is restarted, the Bluetooth connection between the device to be configured and the smart terminal will be disconnected; at this time, if the device to be configured is connected to the authenticated wifi network, the authenticated wifi network will feedback the authentication requirement so that the browser of the device to be configured will display the authentication webpage; but the underlying framework of the existing device to be configured will suspend the authentication webpage at the top level; at this time, it will fall into an infinite loop and cannot be authenticated. In this embodiment, the Bluetooth configuration network is suspended on the authentication webpage so that the device to be configured is connected to the smart terminal via Bluetooth; and a configuration network controller is set on the device to be configured, so that the authentication information is filled in on the authentication webpage through the configuration network controller to realize intelligent authentication. When the authentication is passed, the network can be configured smoothly.
[0070] In the Bluetooth-based network configuration method provided in this embodiment, when the target network configuration mode is the hotspot network configuration mode, the intelligent terminal queries the database to obtain the hotspot name and hotspot password corresponding to the hotspot network configuration mode, and provides technical support for the subsequent network configuration through the hotspot network configuration mode. When the target network configuration mode is the wifi network configuration mode, the intelligent terminal queries the database to obtain the wifi name and wifi password corresponding to the wifi network configuration mode, and provides technical support for the subsequent network configuration through the wifi network configuration mode.
[0071] As an embodiment, the network configuration connection information includes a hotspot name and a hotspot password. After step S202, that is, after the smart terminal obtains the network configuration connection information corresponding to the target network configuration mode, the Bluetooth-based network configuration method further includes: when the target network configuration mode is the hotspot network configuration mode, the smart terminal turns on the hotspot corresponding to the hotspot name. In this embodiment, when the target network configuration mode is the hotspot network configuration mode, the smart terminal is the target network configuration device. At this time, the hotspot corresponding to the hotspot name is turned on to enable the hotspot network configuration mode to proceed smoothly, thereby providing network configuration for the device to be configured.
[0072] As an example, Figure 7 As shown, in step S202, that is, before the intelligent terminal obtains the network connection information corresponding to the target network configuration mode and sends the network connection information to the to-be-configured network device via Bluetooth, the Bluetooth-based network configuration method further includes:
[0073] S701: The device to be networked displays the Bluetooth network configuration code.
[0074] In this embodiment, the Bluetooth network configuration code is a code that carries Bluetooth information of the device to be configured.
[0075] S702: The smart terminal scans the Bluetooth network configuration code to establish a Bluetooth connection between the device to be configured and the smart terminal.
[0076] In this embodiment, the device to be configured displays the Bluetooth configuration code, and the smart terminal scans the Bluetooth configuration code to enable the smart terminal to determine the Bluetooth of the device to be configured, ensure that the device to be configured is connected to the smart terminal via Bluetooth, and provide technical support for subsequent configuration.
[0077] In the Bluetooth-based network configuration method provided in this embodiment, the device to be configured displays the Bluetooth network configuration code;
[0078] The smart terminal scans the Bluetooth network configuration code to enable the device to be configured to connect to the smart terminal via Bluetooth, providing technical support for subsequent network configuration.
[0079] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0080] In one embodiment, a Bluetooth-based network configuration device is provided, and the Bluetooth-based network configuration device corresponds one-to-one with the Bluetooth-based network configuration method in the above embodiment. Figure 8 As shown, the Bluetooth-based network configuration device includes a target network configuration mode determination module 801, a network configuration connection information determination module 802, and a network configuration connection module 803. Each functional module is described in detail as follows:
[0081] The target network configuration mode determination module 801 is used to obtain the current network connection state when the network configuration device detects that it cannot access the Internet, and determine the target network configuration mode according to the current network connection state.
[0082] The network configuration connection information determination module 802 is used for the smart terminal to obtain the network configuration connection information corresponding to the target network configuration mode, and send the network configuration connection information to the to-be-configured network device via Bluetooth.
[0083] The network configuration connection module 803 is used for the device to be configured to receive the network configuration connection information, determine the target network configuration device according to the network configuration connection information, send a network configuration request carrying the network configuration connection information to the target network configuration device, receive the network configuration success information fed back by the target network configuration device, and complete the network configuration connection.
[0084] Preferably, the target network configuration mode determination module 801 includes: a first connection state unit and a second connection state unit.
[0085] The first connection state unit is used to determine the current network configuration mode of the device to be configured if the current network configuration mode is the connecting state, and determine the target network configuration mode according to the current network configuration mode and the existing network configuration mode.
[0086] The second connection state unit is used to randomly select a target network configuration mode from at least one existing network configuration mode if the current network configuration state is an unconnected state.
[0087] Preferably, the existing network configuration methods include a wifi network configuration method and a hotspot network configuration method.
[0088] The first connection status unit includes: a judgment subunit, a hotspot network configuration mode determination subunit and a wifi network configuration mode determination subunit.
[0089] The judging subunit is used to judge whether the current network configuration mode is the WiFi network configuration mode.
[0090] The hotspot network configuration mode determination subunit is used to determine the hotspot network configuration mode as the target network configuration mode if the current network configuration mode is the Wi-Fi network configuration mode.
[0091] The wifi network configuration mode determination subunit is used to determine the wifi network configuration mode as the target network configuration mode if the current network configuration mode is not the wifi network configuration mode.
[0092] Preferably, after the network configuration connection module 803, the Bluetooth-based network configuration device further includes: a detection unit, a first result unit and a second result unit.
[0093] Detection unit: used for the device to be configured to detect whether it can access the Internet.
[0094] The first result unit is used to determine that if the network device to be configured can access the Internet, the network device to be configured is normal.
[0095] The second result unit is used to determine that if the network device to be configured can access the Internet, then the network device to be configured is abnormal.
[0096] Preferably, the network configuration connection information determining module 802 comprises: a first network configuration connection information determining unit and a second network configuration connection information determining unit.
[0097] The first network configuration connection information determination unit is used to query the database when the target network configuration mode is the hotspot network configuration mode, and obtain the network configuration connection information corresponding to the hotspot network configuration mode, and the network configuration connection information includes the hotspot name and hotspot password.
[0098] The second network configuration connection information determination unit is used for, when the target network configuration mode is the wifi network configuration mode, the smart terminal queries the database to obtain the network configuration connection information corresponding to the wifi network configuration mode, the network configuration connection information including the wifi name and wifi password.
[0099] Preferably, after the network configuration connection information determination module 802, the Bluetooth-based network configuration device further includes: a hotspot activation unit, configured to enable the smart terminal to activate the hotspot corresponding to the hotspot name when the target network configuration mode is the hotspot configuration mode.
[0100] Preferably, before the intelligent terminal obtains the network configuration connection information corresponding to the target network configuration mode and sends the network configuration connection information to the device to be configured via Bluetooth, the Bluetooth-based network configuration device further includes: a Bluetooth network configuration code unit and a Bluetooth connection unit.
[0101] The Bluetooth network configuration code unit is used to display the Bluetooth network configuration code on the device to be configured.
[0102] The Bluetooth connection unit is used for the smart terminal to scan the Bluetooth network configuration code so that the device to be configured can be connected to the smart terminal through Bluetooth.
[0103] For the specific definition of the Bluetooth-based network configuration device, please refer to the definition of the Bluetooth-based network configuration method above, which will not be repeated here. Each module in the above-mentioned Bluetooth-based network configuration device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0104] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig. 9 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store network connection information. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a Bluetooth network configuration method is implemented.
[0105] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the Bluetooth network configuration method in the above embodiment are implemented, for example: Figure 2 Steps S201-S203 shown, or Figures 3 to 7 Alternatively, when the processor executes the computer program, the functions of each module / unit in the embodiment of the Bluetooth network configuration method and device are implemented, for example Figure 8 The functions of the target network configuration mode determination module 801, the network configuration connection information determination module 802, and the network configuration connection module 803 are not described here in detail to avoid repetition.
[0106] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the Bluetooth network configuration method in the above embodiment are implemented, for example: Figure 2 Steps S201-S203 shown, or Figures 3 to 7 Alternatively, when the processor executes the computer program, the functions of each module / unit in the embodiment of the Bluetooth network configuration method and device are implemented, for example Figure 8The functions of the target network configuration mode determination module 801, the network configuration connection information determination module 802, and the network configuration connection module 803 are not described here in detail to avoid repetition.
[0107] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0108] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0109] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.
Claims
1. A network configuration method based on Bluetooth, characterized in that: include: When the device to be configured detects that it cannot access the Internet, it obtains the current network status. If the current network status is the connecting state, it determines the current network configuration mode of the device to be configured, and according to the current network configuration mode and the existing network configuration mode, determines one of the existing network configuration modes other than the current network configuration mode as the target network configuration mode; If the device to be networked is successfully networked through the target network configuration mode and can access the Internet, the current network configuration mode is determined as an abnormal network configuration mode; If the device to be configured successfully uses the target configuration method but cannot access the Internet, it is determined that the device to be configured has an abnormality; If the current network connection state is an unconnected state, randomly selecting any one of at least one existing network configuration mode as a target network configuration mode; The intelligent terminal obtains the network connection information corresponding to the target network connection mode, and sends the network connection information to the device to be networked via Bluetooth; The device to be configured receives the network configuration connection information, determines the target network configuration device according to the network configuration connection information, sends a network configuration request carrying the network configuration connection information to the target network configuration device, receives network configuration success information fed back by the target network configuration device, and completes the network configuration connection.
2. The Bluetooth-based network configuration method according to claim 1, wherein: The existing network configuration methods include WiFi network configuration method and hotspot network configuration method; The step of determining the current network configuration mode of the device to be configured, and determining the target network configuration mode according to the current network configuration mode and the existing network configuration mode, includes: Determine whether the current network configuration mode is the WiFi network configuration mode; If the current network configuration mode is the wifi network configuration mode, the hotspot network configuration mode is determined as the target network configuration mode; If the current network configuration mode is not the Wi-Fi network configuration mode, the Wi-Fi network configuration mode is determined as the target network configuration mode.
3. The Bluetooth-based network configuration method according to claim 2, characterized in that: After receiving the network configuration success information fed back by the target network configuration device and completing the network configuration connection, the Bluetooth-based network configuration method further includes: The network device to be configured detects whether it can access the Internet; If the network device to be configured can access the Internet, then the network device to be configured is normal; If the network device to be configured can access the Internet, then the network device to be configured is abnormal.
4. The Bluetooth-based network configuration method according to claim 2, wherein: The intelligent terminal obtains the network connection information corresponding to the target network connection mode, including: When the target network configuration mode is a hotspot network configuration mode, the intelligent terminal queries a database to obtain network configuration connection information corresponding to the hotspot network configuration mode, wherein the network configuration connection information includes a hotspot name and a hotspot password; When the target network configuration mode is a wifi network configuration mode, the smart terminal queries a database to obtain network configuration connection information corresponding to the wifi network configuration mode, where the network configuration connection information includes a wifi name and a wifi password.
5. The Bluetooth-based network configuration method according to claim 2, wherein: After the smart terminal obtains the network connection information corresponding to the target network configuration mode, the Bluetooth-based network configuration method further includes: when the target network configuration mode is a hotspot network configuration mode, the smart terminal turns on the hotspot corresponding to the hotspot name.
6. The Bluetooth-based network configuration method according to claim 1, wherein: Before the intelligent terminal obtains the network configuration connection information corresponding to the target network configuration mode and sends the network configuration connection information to the to-be-configured network device via Bluetooth, the Bluetooth-based network configuration method further includes: The device to be networked displays the Bluetooth network configuration code; The smart terminal scans the Bluetooth network configuration code to enable the device to be configured to establish a Bluetooth connection with the smart terminal.
7. A network distribution device based on Bluetooth, characterized in that: include: The target network configuration mode determination module is used to obtain the current network connection state when the network configuration device detects that it cannot access the Internet, and determine the target network configuration mode according to the current network connection state; The target network configuration mode determination module includes: A first connection state unit is used to determine the current network configuration mode of the device to be configured if the current network configuration mode is a network-connected state, and determine one of the existing network configuration modes other than the current network configuration mode as a target network configuration mode according to the current network configuration mode and the existing network configuration modes; If the device to be networked is successfully networked through the target network configuration mode and can access the Internet, the current network configuration mode is determined as an abnormal network configuration mode; If the device to be configured successfully uses the target configuration method but cannot access the Internet, it is determined that the device to be configured has an abnormality; A second connection state unit, configured to randomly select any one of at least one existing network configuration mode as a target network configuration mode if the current network configuration mode is an unconnected state; A network configuration connection information determination module is used for the intelligent terminal to obtain the network configuration connection information corresponding to the target network configuration mode, and send the network configuration connection information to the to-be-configured network device via Bluetooth; The network configuration connection module is used for the device to be configured to receive the network configuration connection information, determine the target network configuration device according to the network configuration connection information, send a network configuration request carrying the network configuration connection information to the target network configuration device, receive the network configuration success information fed back by the target network configuration device, and complete the network configuration connection.
8. The Bluetooth-based network distribution device according to claim 7, characterized in that: Existing network configuration methods include WiFi network configuration and hotspot network configuration; The first connection state unit includes: A judgment subunit is used to judge whether the current network configuration mode is a WiFi network configuration mode; A hotspot network configuration mode determination subunit, configured to determine the hotspot network configuration mode as a target network configuration mode if the current network configuration mode is a wifi network configuration mode; The wifi network configuration mode determination subunit is used to determine the wifi network configuration mode as the target network configuration mode if the current network configuration mode is not the wifi network configuration mode.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the Bluetooth-based network configuration method according to any one of claims 1 to 6 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the Bluetooth-based network configuration method according to any one of claims 1 to 6 are implemented.
