Bluetooth-based wireless network connection method, device, equipment and medium
By employing multiple verification methods, including Bluetooth coverage area detection, configuration list verification, and dynamic code verification, the network security risks caused by the wide WiFi signal coverage of 5G CPE devices are resolved, ensuring network security and signal quality within the designated area.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- E SURFING IOT CO LTD
- Filing Date
- 2022-12-05
- Publication Date
- 2026-06-09
AI Technical Summary
The wide WiFi signal coverage of 5G CPE devices can cause unknown terminals to automatically connect to the wireless network, posing a network security risk.
By employing multiple verification methods, including Bluetooth coverage area detection, configuration list, dynamic code verification, and wireless network key verification, the system ensures that the terminal is only allowed to connect to the wireless network within a designated area.
It improves the security of wireless networks within designated areas, ensures network security, and enhances signal quality.
Smart Images

Figure CN115988498B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of communication technology, and in particular to a Bluetooth-based wireless network connection method, apparatus, device, and medium. Background Technology
[0002] With the promotion and commercialization of 5G (5th Generation Mobile Communication Technology) CPE (Customer Premise Equipment), the number of users is increasing. At the same time, user experience and network security issues have also attracted attention.
[0003] The WiFi (Wireless Fidelity) signal emitted by 5G CPE terminals has a wide coverage area and good penetration, capable of passing through walls and other barriers. Therefore, any smart terminal within the WiFi signal coverage area may automatically connect to the wireless network if it knows the wireless password, which could lead to the risk of the wireless network being attacked. Summary of the Invention
[0004] In view of the above, it is necessary to provide a Bluetooth-based wireless network connection method, apparatus, device, and medium to address the security issues of wireless network connections.
[0005] A Bluetooth-based wireless network connection method, the Bluetooth-based wireless network connection method comprising:
[0006] When a terminal requests to connect to the wireless network, the terminal is identified as the target terminal.
[0007] Detect whether the target terminal is within the Bluetooth coverage area;
[0008] When the target terminal is detected to be within the Bluetooth coverage area, it is determined whether the target terminal is in the configuration list;
[0009] When the target terminal is in the configuration list, the dynamic code of the target terminal is obtained as the target dynamic code;
[0010] Verify whether the target dynamic code is valid;
[0011] When the target dynamic code is valid, verify the wireless network key uploaded by the target terminal;
[0012] When the wireless network key is verified, the target terminal is allowed to connect to the wireless network.
[0013] According to a preferred embodiment of the present invention, the method further includes:
[0014] When the target terminal is not within the Bluetooth coverage area, and / or the target terminal is not in the configuration list, and / or the target dynamic code is invalid, and / or the wireless network key fails verification, the target terminal is prohibited from connecting to the wireless network.
[0015] According to a preferred embodiment of the present invention, detecting whether the target terminal is within the Bluetooth coverage area includes:
[0016] When the target terminal successfully connects to Bluetooth, it is determined that the target terminal is within the Bluetooth coverage area; or
[0017] When the target terminal fails to connect to the Bluetooth, it is determined that the target terminal is not within the Bluetooth coverage area.
[0018] According to a preferred embodiment of the present invention, the configuration list is used to store terminals that are authorized to connect to the wireless network.
[0019] According to a preferred embodiment of the present invention, verifying whether the target dynamic code is valid includes:
[0020] Get the current dynamic code obtained after the timed update;
[0021] Compare the target dynamic code with the current dynamic code;
[0022] When the target dynamic code is the same as the current dynamic code, the target dynamic code is determined to be valid; or
[0023] When the target dynamic code is different from the current dynamic code, the target dynamic code is determined to be invalid.
[0024] According to a preferred embodiment of the present invention, after allowing the target terminal to connect to the wireless network, the method further includes:
[0025] The dynamic code is updated every first preset time interval, and the updated dynamic code is synchronized to the target terminal in real time.
[0026] Every second preset time interval, the validity of the dynamic code corresponding to the target terminal in real time is verified.
[0027] Get the number of verification failures and get the preset threshold;
[0028] When the number of verification failures reaches the preset threshold, the connection between the target terminal and the wireless network is disconnected.
[0029] According to a preferred embodiment of the present invention, after allowing the target terminal to connect to the wireless network, the method further includes:
[0030] When the target terminal leaves the Bluetooth coverage area, the connection between the target terminal and the wireless network is disconnected.
[0031] A Bluetooth-based wireless network connection device, the Bluetooth-based wireless network connection device comprising:
[0032] The determining unit is used to determine the terminal as the target terminal when a terminal requests to connect to the wireless network;
[0033] The detection unit is used to detect whether the target terminal is within the Bluetooth coverage area;
[0034] The determining unit is further configured to determine whether the target terminal is in the configuration list when the target terminal is detected to be within the Bluetooth coverage area;
[0035] The acquisition unit is used to acquire the dynamic code of the target terminal as the target dynamic code when the target terminal is in the configuration list;
[0036] A verification unit is used to verify whether the target dynamic code is valid.
[0037] The verification unit is further configured to verify the wireless network key uploaded by the target terminal when the target dynamic code is valid;
[0038] A connection unit is configured to allow the target terminal to connect to the wireless network when the wireless network key is verified.
[0039] A computer device, the computer device comprising:
[0040] Memory, storing at least one instruction; and
[0041] The processor executes the instructions stored in the memory to implement the Bluetooth-based wireless network connection method.
[0042] A computer-readable storage medium storing at least one instruction, which is executed by a processor in a computer device to implement the Bluetooth-based wireless network connection method.
[0043] As can be seen from the above technical solutions, the present invention detects whether the target terminal is within the Bluetooth coverage area, and then combines the verification of the configuration list, the validity of the dynamic code, and the wireless network key to jointly detect the target terminal's access rights to the wireless network from multiple dimensions. Through dual verification of Bluetooth and the wireless network, the security of the wireless network in the designated area is effectively improved. Attached Figure Description
[0044] Figure 1This is a flowchart of a preferred embodiment of the Bluetooth-based wireless network connection method of the present invention.
[0045] Figure 2 This is a functional block diagram of a preferred embodiment of the Bluetooth-based wireless network connection device of the present invention.
[0046] Figure 3 This is a schematic diagram of the structure of a computer device that implements a preferred embodiment of the Bluetooth-based wireless network connection method of the present invention. Detailed Implementation
[0047] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be described in detail below with reference to the accompanying drawings and specific embodiments.
[0048] like Figure 1 The diagram shown is a flowchart of a preferred embodiment of the Bluetooth-based wireless network connection method of the present invention. The order of the steps in this flowchart can be changed, and some steps can be omitted, depending on different requirements.
[0049] The Bluetooth-based wireless network connection method is applied to one or more computer devices. The computer device is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions. Its hardware includes, but is not limited to, microprocessors, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), digital signal processors (DSPs), embedded devices, etc.
[0050] The computer device can be any electronic product that can interact with the user, such as a personal computer, tablet computer, smartphone, personal digital assistant (PDA), game console, interactive network television (IPTV), smart wearable device, etc.
[0051] The computer equipment may also include network equipment and / or user equipment. The network equipment includes, but is not limited to, a single network server, a server group consisting of multiple network servers, or a cloud based on cloud computing consisting of a large number of hosts or network servers.
[0052] The server can be a standalone server or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms.
[0053] Artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0054] Foundational technologies for artificial intelligence generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing, operating / interactive systems, and mechatronics. AI software technologies mainly encompass computer vision, robotics, biometrics, speech processing, natural language processing, and machine learning / deep learning.
[0055] The network in which the computer device is located includes, but is not limited to, the Internet, wide area network, metropolitan area network, local area network, and virtual private network (VPN).
[0056] S10: When a terminal is detected requesting to connect to the wireless network, the terminal is identified as the target terminal.
[0057] In this embodiment, the terminal may include, but is not limited to, smart devices such as mobile phones, tablets, and laptops.
[0058] In this embodiment, the wireless network can be emitted by routing devices such as 5G (5th Generation Mobile Communication Technology) CPE (Customer Premise Equipment). The WiFi (Wireless Fidelity) signal emitted by the 5G CPE device has a wide coverage area and good penetration, able to pass through walls and other barriers. All smart terminals within the WiFi signal coverage area can automatically connect to the wireless network using a wireless password.
[0059] In this embodiment, the target terminal can install a CPE-compatible application to enable data interaction.
[0060] S11, Detect whether the target terminal is within the Bluetooth coverage area.
[0061] It is understandable that Bluetooth communication has a short effective communication range and poor penetration, and the terminal can only connect to Bluetooth when it is within the Bluetooth coverage area.
[0062] In this embodiment, detecting whether the target terminal is within the Bluetooth coverage area includes:
[0063] When the target terminal successfully connects to Bluetooth, it is determined that the target terminal is within the Bluetooth coverage area; or
[0064] When the target terminal fails to connect to the Bluetooth, it is determined that the target terminal is not within the Bluetooth coverage area.
[0065] Through the above embodiments, it is possible to determine whether the target terminal is within Bluetooth coverage area, so as to further determine whether it has permission to connect to the wireless network by combining whether it is connected to Bluetooth.
[0066] S12, when the target terminal is detected to be within the Bluetooth coverage area, determine whether the target terminal is in the configuration list.
[0067] In this embodiment, subsequent detection is only performed when the target terminal is within the Bluetooth coverage area. That is, as long as the target terminal is not within the Bluetooth coverage area, the target terminal is not allowed to access the wireless network, regardless of whether the target terminal meets other conditions for connecting to the wireless network.
[0068] In this embodiment, the configuration list is equivalent to a pre-configured whitelist, which is used to store terminals that are authorized to connect to the wireless network.
[0069] For example, the configuration list may store the MAC (Media Access Control Address) address, terminal identifier, terminal name, etc. of terminals that are authorized to connect to the wireless network.
[0070] The terminal identifier is used to uniquely identify a terminal.
[0071] In this embodiment, a blacklist can also be pre-configured to store terminals that are prohibited from connecting to the wireless network.
[0072] By configuring blacklists and whitelists, terminal access can be restricted, further improving the security of wireless network connections.
[0073] S13, when the target terminal is in the configuration list, the dynamic code of the target terminal is obtained as the target dynamic code.
[0074] For example, when this embodiment is applied to a CPE device, the CPE device may include a Bluetooth network verification module. This Bluetooth network verification module interacts periodically with the target terminal and the WiFi module. The interaction messages contain information such as the terminal's MAC address, WiFi data transmission rate, and dynamic code. Specifically, the Bluetooth network verification module periodically updates the dynamic code to the target terminal and the WiFi module, and the WiFi module periodically verifies the target terminal's dynamic code. If the target terminal's dynamic code has not been updated for an extended period, the WiFi module actively disconnects its wireless connection with the target terminal.
[0075] S14, verify whether the target dynamic code is valid.
[0076] In this embodiment, verifying whether the target dynamic code is valid includes:
[0077] Get the current dynamic code obtained after the timed update;
[0078] Compare the target dynamic code with the current dynamic code;
[0079] When the target dynamic code is the same as the current dynamic code, the target dynamic code is determined to be valid; or
[0080] When the target dynamic code is different from the current dynamic code, the target dynamic code is determined to be invalid.
[0081] Specifically, if the target dynamic code is valid, it means that the dynamic code is being updated regularly and synchronized normally to the target terminal; if the target dynamic code is invalid, it means that the dynamic code is not being updated regularly and synchronized normally to the target terminal.
[0082] S15, when the target dynamic code is valid, verify the wireless network key uploaded by the target terminal.
[0083] In this embodiment, after all the above verification processes are passed, a connection can be established based on the wireless network password, that is, the wireless network key uploaded by the target terminal is verified.
[0084] S16, when the wireless network key is verified, the target terminal is allowed to connect to the wireless network.
[0085] For example: When the target terminal enters a preset area, it can simultaneously receive WiFi and Bluetooth signals. The target terminal actively initiates a WiFi access request and checks whether the terminal's MAC address is in the whitelist. If not, access is not allowed. If it is, the dynamic code is verified to be valid. If the dynamic code is invalid, access is not allowed. If the dynamic code is valid, the WiFi key is verified for the terminal. If the key verification is successful, access is allowed; otherwise, access is not allowed.
[0086] This embodiment can be applied to designated areas such as homes, offices, military installations, conference rooms, and laboratories, where high security is required for wireless network connections. While CPE devices offer strong wireless network penetration, Bluetooth's effective transmission distance is generally only around 10 meters. Signal strength is significantly attenuated when penetrating walls or other obstacles. Outside these designated areas, only WiFi signals will be received, not Bluetooth signals. Therefore, the target terminal is only allowed to connect to the wireless network within Bluetooth coverage area. This not only ensures network security within the designated area but also guarantees good signal quality for terminals already connected to the wireless network.
[0087] For example, regarding the network inside the conference room, even if a smart terminal outside the conference room is not participating in a meeting, it may still automatically reconnect to the network due to the wide coverage of the WiFi signal. This poses a threat to the network security inside the conference room, as there is a possibility of unknown terminals attacking the network even if the WiFi password is unknown. Using this embodiment, because external terminals cannot perform timed authentication with the indoor Bluetooth network authentication module, and with the addition of controls such as blacklists and whitelists for network authentication information authorization in the CPE, even if outdoor terminals have previously connected to the network, they cannot connect now, effectively protecting the network security inside the conference room.
[0088] Therefore, this embodiment utilizes the characteristics of Bluetooth communication, such as short effective communication distance and poor penetration, to ensure that terminals can only access the CPE wireless network within a specific area through dual authentication via Bluetooth communication and WiFi. This prevents terminals outside the area with known passwords from accessing the network. On the one hand, this can effectively improve the security of using CPE to connect to the network within a specific area. On the other hand, the closer the connected terminal is to the CPE, the better the signal quality, which can improve the user experience.
[0089] In this embodiment, after allowing the target terminal to connect to the wireless network, the method further includes:
[0090] The dynamic code is updated every first preset time interval, and the updated dynamic code is synchronized to the target terminal in real time.
[0091] Every second preset time interval, the validity of the dynamic code corresponding to the target terminal in real time is verified.
[0092] Get the number of verification failures and get the preset threshold;
[0093] When the number of verification failures reaches the preset threshold, the connection between the target terminal and the wireless network is disconnected.
[0094] The first preset time interval and the second preset time interval can be customized, and this invention does not limit them.
[0095] The preset threshold can also be customized, such as 10 times.
[0096] For example, in addition to data transmission with the target terminal, the WiFi module periodically verifies the target terminal's dynamic code. If the number of consecutive failures reaches a preset threshold, it proactively sends a disconnect message to break the connection with the terminal. Therefore, when outside a specific area, if the Bluetooth network verification module in the CPE and the smart terminal device cannot communicate normally and cannot update the dynamic code, the WiFi module will proactively disconnect from the terminal after multiple verification failures. This not only ensures network security within the area but also guarantees good signal quality for connected terminals.
[0097] In the above embodiments, for terminals already connected to the wireless network, the Bluetooth network verification module periodically updates the dynamic code to the smart terminal and the WiFi module, and the WiFi module periodically verifies the terminal's dynamic code. If the terminal's dynamic code has not been updated for an extended period, the WiFi module actively disconnects the wireless connection with the terminal.
[0098] In this embodiment, after allowing the target terminal to connect to the wireless network, the method further includes:
[0099] When the target terminal leaves the Bluetooth coverage area, the connection between the target terminal and the wireless network is disconnected.
[0100] For example, when the target terminal leaves the preset area, that is, when the target terminal is within the effective communication range of WiFi but not within the effective communication range of Bluetooth, it cannot synchronize the dynamic code with the Bluetooth network verification module on a regular basis. At this time, when the number of times the WiFi module verifies the terminal's dynamic code fails reaches a certain threshold, it will actively disconnect from the smart terminal to ensure network security within the preset area.
[0101] In this embodiment, the method further includes:
[0102] When the target terminal is not within the Bluetooth coverage area, and / or the target terminal is not in the configuration list, and / or the target dynamic code is invalid, and / or the wireless network key fails verification, the target terminal is prohibited from connecting to the wireless network.
[0103] In the above embodiments, terminals within the effective Bluetooth signal coverage area can securely connect to the network, while terminals outside the effective signal coverage area disconnect from the network. Even if terminals outside the preset area know the WiFi password and can receive a WiFi signal with strong penetration, they cannot connect. By utilizing the differences in the effective communication distance and penetration capability of Bluetooth and WiFi, dual authentication of Bluetooth and WiFi is achieved, effectively protecting the wireless network security within the preset area.
[0104] As can be seen from the above technical solutions, the present invention detects whether the target terminal is within the Bluetooth coverage area, and then combines the verification of the configuration list, the validity of the dynamic code, and the wireless network key to jointly detect the target terminal's access rights to the wireless network from multiple dimensions. Through dual verification of Bluetooth and the wireless network, the security of the wireless network in the designated area is effectively improved.
[0105] like Figure 2 The diagram shown is a functional block diagram of a preferred embodiment of the Bluetooth-based wireless network connection device of the present invention. The Bluetooth-based wireless network connection device 11 includes a determining unit 110, a detecting unit 111, an acquiring unit 112, a verifying unit 113, and a connecting unit 114. The module / unit referred to in this invention refers to a series of computer program segments that can be executed by a processor and perform a fixed function, and are stored in memory. In this embodiment, the functions of each module / unit will be described in detail in subsequent embodiments.
[0106] The determining unit 110 is used to determine the terminal as the target terminal when it detects that a terminal requests to connect to the wireless network.
[0107] In this embodiment, the terminal may include, but is not limited to, smart devices such as mobile phones, tablets, and laptops.
[0108] In this embodiment, the wireless network can be emitted by routing devices such as 5G (5th Generation Mobile Communication Technology) CPE (Customer Premise Equipment). The WiFi (Wireless Fidelity) signal emitted by the 5G CPE device has a wide coverage area and good penetration, able to pass through walls and other barriers. All smart terminals within the WiFi signal coverage area can automatically connect to the wireless network using a wireless password.
[0109] In this embodiment, the target terminal can install a CPE-compatible application to enable data interaction.
[0110] The detection unit 111 is used to detect whether the target terminal is within the Bluetooth coverage area.
[0111] It is understandable that Bluetooth communication has a short effective communication range and poor penetration, and the terminal can only connect to Bluetooth when it is within the Bluetooth coverage area.
[0112] In this embodiment, the detection unit 111 detects whether the target terminal is within the Bluetooth coverage area, including:
[0113] When the target terminal successfully connects to Bluetooth, it is determined that the target terminal is within the Bluetooth coverage area; or
[0114] When the target terminal fails to connect to the Bluetooth, it is determined that the target terminal is not within the Bluetooth coverage area.
[0115] Through the above embodiments, it is possible to determine whether the target terminal is within Bluetooth coverage area, so as to further determine whether it has permission to connect to the wireless network by combining whether it is connected to Bluetooth.
[0116] The determining unit 110 is further configured to determine whether the target terminal is in the configuration list when the target terminal is detected to be within the Bluetooth coverage area.
[0117] In this embodiment, subsequent detection is only performed when the target terminal is within the Bluetooth coverage area. That is, as long as the target terminal is not within the Bluetooth coverage area, the target terminal is not allowed to access the wireless network, regardless of whether the target terminal meets other conditions for connecting to the wireless network.
[0118] In this embodiment, the configuration list is equivalent to a pre-configured whitelist, which is used to store terminals that are authorized to connect to the wireless network.
[0119] For example, the configuration list may store the MAC (Media Access Control Address) address, terminal identifier, terminal name, etc. of terminals that are authorized to connect to the wireless network.
[0120] The terminal identifier is used to uniquely identify a terminal.
[0121] In this embodiment, a blacklist can also be pre-configured to store terminals that are prohibited from connecting to the wireless network.
[0122] By configuring blacklists and whitelists, terminal access can be restricted, further improving the security of wireless network connections.
[0123] The acquisition unit 112 is used to acquire the dynamic code of the target terminal as the target dynamic code when the target terminal is in the configuration list.
[0124] For example, when this embodiment is applied to a CPE device, the CPE device may include a Bluetooth network verification module. This Bluetooth network verification module interacts periodically with the target terminal and the WiFi module. The interaction messages contain information such as the terminal's MAC address, WiFi data transmission rate, and dynamic code. Specifically, the Bluetooth network verification module periodically updates the dynamic code to the target terminal and the WiFi module, and the WiFi module periodically verifies the target terminal's dynamic code. If the target terminal's dynamic code has not been updated for an extended period, the WiFi module actively disconnects its wireless connection with the target terminal.
[0125] The verification unit 113 is used to verify whether the target dynamic code is valid.
[0126] In this embodiment, the verification unit 113 verifies whether the target dynamic code is valid by including:
[0127] Get the current dynamic code obtained after the timed update;
[0128] Compare the target dynamic code with the current dynamic code;
[0129] When the target dynamic code is the same as the current dynamic code, the target dynamic code is determined to be valid; or
[0130] When the target dynamic code is different from the current dynamic code, the target dynamic code is determined to be invalid.
[0131] Specifically, if the target dynamic code is valid, it means that the dynamic code is being updated regularly and synchronized normally to the target terminal; if the target dynamic code is invalid, it means that the dynamic code is not being updated regularly and synchronized normally to the target terminal.
[0132] The verification unit 113 is also used to verify the wireless network key uploaded by the target terminal when the target dynamic code is valid.
[0133] In this embodiment, after all the above verification processes are passed, a connection can be established based on the wireless network password, that is, the wireless network key uploaded by the target terminal is verified.
[0134] The connection unit 114 is used to allow the target terminal to connect to the wireless network when the wireless network key is verified.
[0135] For example: When the target terminal enters a preset area, it can simultaneously receive WiFi and Bluetooth signals. The target terminal actively initiates a WiFi access request and checks whether the terminal's MAC address is in the whitelist. If not, access is not allowed. If it is, the dynamic code is verified to be valid. If the dynamic code is invalid, access is not allowed. If the dynamic code is valid, the WiFi key is verified for the terminal. If the key verification is successful, access is allowed; otherwise, access is not allowed.
[0136] This embodiment can be applied to designated areas such as homes, offices, military installations, conference rooms, and laboratories, where high security is required for wireless network connections. While CPE devices offer strong wireless network penetration, Bluetooth's effective transmission distance is generally only around 10 meters. Signal strength is significantly attenuated when penetrating walls or other obstacles. Outside these designated areas, only WiFi signals will be received, not Bluetooth signals. Therefore, the target terminal is only allowed to connect to the wireless network within Bluetooth coverage area. This not only ensures network security within the designated area but also guarantees good signal quality for terminals already connected to the wireless network.
[0137] For example, regarding the network inside the conference room, even if a smart terminal outside the conference room is not participating in a meeting, it may still automatically reconnect to the network due to the wide coverage of the WiFi signal. This poses a threat to the network security inside the conference room, as there is a possibility of unknown terminals attacking the network even if the WiFi password is unknown. Using this embodiment, because external terminals cannot perform timed authentication with the indoor Bluetooth network authentication module, and with the addition of controls such as blacklists and whitelists for network authentication information authorization in the CPE, even if outdoor terminals have previously connected to the network, they cannot connect now, effectively protecting the network security inside the conference room.
[0138] Therefore, this embodiment utilizes the characteristics of Bluetooth communication, such as short effective communication distance and poor penetration, to ensure that terminals can only access the CPE wireless network within a specific area through dual authentication via Bluetooth communication and WiFi. This prevents terminals outside the area with known passwords from accessing the network. On the one hand, this can effectively improve the security of using CPE to connect to the network within a specific area. On the other hand, the closer the connected terminal is to the CPE, the better the signal quality, which can improve the user experience.
[0139] In this embodiment, after the target terminal is allowed to connect to the wireless network, the dynamic code is updated every first preset time interval, and the updated dynamic code is synchronized to the target terminal in real time.
[0140] Every second preset time interval, the validity of the dynamic code corresponding to the target terminal in real time is verified.
[0141] Get the number of verification failures and get the preset threshold;
[0142] When the number of verification failures reaches the preset threshold, the connection between the target terminal and the wireless network is disconnected.
[0143] The first preset time interval and the second preset time interval can be customized, and this invention does not limit them.
[0144] The preset threshold can also be customized, such as 10 times.
[0145] For example, in addition to data transmission with the target terminal, the WiFi module periodically verifies the target terminal's dynamic code. If the number of consecutive failures reaches a preset threshold, it proactively sends a disconnect message to break the connection with the terminal. Therefore, when outside a specific area, if the Bluetooth network verification module in the CPE and the smart terminal device cannot communicate normally and cannot update the dynamic code, the WiFi module will proactively disconnect from the terminal after multiple verification failures. This not only ensures network security within the area but also guarantees good signal quality for connected terminals.
[0146] In the above embodiments, for terminals already connected to the wireless network, the Bluetooth network verification module periodically updates the dynamic code to the smart terminal and the WiFi module, and the WiFi module periodically verifies the terminal's dynamic code. If the terminal's dynamic code has not been updated for an extended period, the WiFi module actively disconnects the wireless connection with the terminal.
[0147] In this embodiment, after allowing the target terminal to connect to the wireless network, the connection between the target terminal and the wireless network is disconnected when the target terminal leaves the Bluetooth coverage area.
[0148] For example, when the target terminal leaves the preset area, that is, when the target terminal is within the effective communication range of WiFi but not within the effective communication range of Bluetooth, it cannot synchronize the dynamic code with the Bluetooth network verification module on a regular basis. At this time, when the number of times the WiFi module verifies the terminal's dynamic code fails reaches a certain threshold, it will actively disconnect from the smart terminal to ensure network security within the preset area.
[0149] In this embodiment, when the target terminal is not within the Bluetooth coverage area, and / or the target terminal is not in the configuration list, and / or the target dynamic code is invalid, and / or the wireless network key fails verification, the target terminal is prohibited from connecting to the wireless network.
[0150] In the above embodiments, terminals within the effective Bluetooth signal coverage area can securely connect to the network, while terminals outside the effective signal coverage area disconnect from the network. Even if terminals outside the preset area know the WiFi password and can receive a WiFi signal with strong penetration, they cannot connect. By utilizing the differences in the effective communication distance and penetration capability of Bluetooth and WiFi, dual authentication of Bluetooth and WiFi is achieved, effectively protecting the wireless network security within the preset area.
[0151] As can be seen from the above technical solutions, the present invention detects whether the target terminal is within the Bluetooth coverage area, and then combines the verification of the configuration list, the validity of the dynamic code, and the wireless network key to jointly detect the target terminal's access rights to the wireless network from multiple dimensions. Through dual verification of Bluetooth and the wireless network, the security of the wireless network in the designated area is effectively improved.
[0152] like Figure 3 The diagram shown is a structural schematic of a computer device that implements a preferred embodiment of the Bluetooth-based wireless network connection method of the present invention.
[0153] The computer device 1 may include a memory 12, a processor 13 and a bus, and may also include a computer program stored in the memory 12 and executable on the processor 13, such as a Bluetooth-based wireless network connection program.
[0154] Those skilled in the art will understand that the schematic diagram is merely an example of computer device 1 and does not constitute a limitation on computer device 1. Computer device 1 can be either a bus topology or a star topology. Computer device 1 may also include more or fewer other hardware or software than shown in the diagram, or different component arrangements. For example, computer device 1 may also include input / output devices, network access devices, etc.
[0155] It should be noted that the computer device 1 described is merely an example. Other existing or future electronic products that are adaptable to this invention should also be included within the scope of protection of this invention and are incorporated herein by reference.
[0156] The memory 12 includes at least one type of readable storage medium, such as flash memory, portable hard drive, multimedia card, card-type memory (e.g., SD or DX memory), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 12 can be an internal storage unit of the computer device 1, such as a portable hard drive of the computer device 1. In other embodiments, the memory 12 can be an external storage device of the computer device 1, such as a plug-in portable hard drive, smart media card (SMC), secure digital card (SD), flash card, etc., equipped on the computer device 1. Furthermore, the memory 12 can include both internal and external storage units of the computer device 1. The memory 12 can be used not only to store application software and various types of data installed on the computer device 1, such as code for Bluetooth-based wireless network connection programs, but also to temporarily store data that has been output or will be output.
[0157] In some embodiments, the processor 13 may be composed of integrated circuits, such as a single packaged integrated circuit or multiple integrated circuits with the same or different functions, including combinations of one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and various control chips. The processor 13 is the control unit of the computer device 1, connecting various components of the computer device 1 via various interfaces and lines. It executes programs or modules stored in the memory 12 (e.g., executing Bluetooth-based wireless network connection programs) and calls data stored in the memory 12 to perform various functions of the computer device 1 and process data.
[0158] The processor 13 executes the operating system of the computer device 1 and various installed applications. The processor 13 executes the applications to implement the steps in the various Bluetooth-based wireless network connection method embodiments described above, for example... Figure 1 The steps are shown.
[0159] For example, the computer program may be divided into one or more modules / units, which are stored in the memory 12 and executed by the processor 13 to complete the present invention. The one or more modules / units may be a series of computer-readable instruction segments capable of performing a specific function, which describe the execution process of the computer program in the computer device 1. For example, the computer program may be divided into a determining unit 110, a detecting unit 111, an acquiring unit 112, a verifying unit 113, and a connecting unit 114.
[0160] The integrated unit implemented as a software functional module described above can be stored in a computer-readable storage medium. This software functional module, stored in a storage medium, includes several instructions to cause a computer device (which may be a personal computer, computer equipment, or network device, etc.) or processor to execute portions of the Bluetooth-based wireless network connection method described in the various embodiments of the present invention.
[0161] If the modules / units integrated in the computer device 1 are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of the present invention can also be implemented by a computer program instructing related hardware devices. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above.
[0162] The computer program includes computer program code, which may be in the form of source code, object code, executable file, or some intermediate form. The computer-readable medium may include any entity or device capable of carrying the computer program code, recording media, USB flash drive, portable hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory, etc.
[0163] Furthermore, the computer-readable storage medium may primarily include a stored program area and a stored data area, wherein the stored program area may store the operating system, an application program required for at least one function, etc.; and the stored data area may store data created based on the use of blockchain nodes, etc.
[0164] The blockchain referred to in this invention is a novel application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanisms, and encryption algorithms. Essentially, a blockchain is a decentralized database, a chain of data blocks linked together using cryptographic methods. Each data block contains information about a batch of network transactions, used to verify the validity of the information (anti-counterfeiting) and generate the next block. A blockchain can include an underlying blockchain platform, a platform product service layer, and an application service layer.
[0165] The bus can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This bus can be divided into address bus, data bus, control bus, etc. For ease of representation, in... Figure 3 The bus is represented by only one straight line, but this does not mean that there is only one bus or one type of bus. The bus is configured to enable communication between the memory 12 and at least one processor 13, etc.
[0166] Although not shown, the computer device 1 may also include a power supply (such as a battery) to power various components. Preferably, the power supply can be logically connected to the at least one processor 13 through a power management device, thereby enabling functions such as charging management, discharging management, and power consumption management. The power supply may also include one or more DC or AC power supplies, recharging devices, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The computer device 1 may also include various sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be described in detail here.
[0167] Furthermore, the computer device 1 may also include a network interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a Wi-Fi interface, a Bluetooth interface, etc.), which is typically used to establish a communication connection between the computer device 1 and other computer devices.
[0168] Optionally, the computer device 1 may further include a user interface, which may be a display, an input unit (such as a keyboard), and optionally, a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, or an OLED (Organic Light-Emitting Diode) touchscreen, etc. The display may also be appropriately referred to as a screen or display unit, used to display information processed in the computer device 1 and to display a visual user interface.
[0169] It should be understood that the embodiments described are for illustrative purposes only and are not limited to this structure in the scope of the patent application.
[0170] Figure 3 Only computer device 1 with components 12-13 is shown; those skilled in the art will understand that... Figure 3 The structure shown does not constitute a limitation on the computer device 1, and may include fewer or more components than shown, or combine certain components, or have different component arrangements.
[0171] Combination Figure 1 The memory 12 in the computer device 1 stores multiple instructions to implement a Bluetooth-based wireless network connection method, and the processor 13 can execute the multiple instructions to achieve the following:
[0172] When a terminal requests to connect to the wireless network, the terminal is identified as the target terminal.
[0173] Detect whether the target terminal is within the Bluetooth coverage area;
[0174] When the target terminal is detected to be within the Bluetooth coverage area, it is determined whether the target terminal is in the configuration list;
[0175] When the target terminal is in the configuration list, the dynamic code of the target terminal is obtained as the target dynamic code;
[0176] Verify whether the target dynamic code is valid;
[0177] When the target dynamic code is valid, verify the wireless network key uploaded by the target terminal;
[0178] When the wireless network key is verified, the target terminal is allowed to connect to the wireless network.
[0179] Specifically, the processor 13's implementation method for the above instructions can be found in [reference needed]. Figure 1The descriptions of the relevant steps in the corresponding embodiments are not repeated here.
[0180] It should be noted that all the data involved in this case was legally obtained.
[0181] In the several embodiments provided by this invention, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and other division methods may be used in actual implementation.
[0182] This invention can be used in a wide variety of general-purpose or special-purpose computer system environments or configurations. Examples include: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, and distributed computing environments including any of the above systems or devices. This invention can be described in the general context of computer-executable instructions, such as program modules, that are executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform specific tasks or implement specific abstract data types. This invention can also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.
[0183] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0184] Furthermore, the functional modules in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in the form of hardware plus software functional modules.
[0185] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0186] Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the invention is defined by the appended claims rather than the foregoing description. Thus, all variations falling within the meaning and scope of equivalents of the claims are intended to be embraced within the invention. No appended diagram markings in the claims should be construed as limiting the scope of the claims.
[0187] Furthermore, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices described in this invention can also be implemented by a single unit or device through software or hardware. Terms such as "first," "second," etc., are used to indicate names and do not indicate any specific order.
[0188] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.
Claims
1. A Bluetooth-based wireless network connection method, characterized in that, The Bluetooth-based wireless network connection method includes: When a terminal requests to connect to the wireless network, the terminal is identified as the target terminal. Detect whether the target terminal is within the Bluetooth coverage area; When the target terminal is detected to be within the Bluetooth coverage area, it is determined whether the target terminal is in the configuration list; When the target terminal is in the configuration list, the dynamic code of the target terminal is obtained as the target dynamic code; wherein, the dynamic code is updated periodically and sent to the target terminal via Bluetooth; Verifying the validity of the target dynamic code includes: obtaining the current dynamic code after a periodic update; comparing the target dynamic code with the current dynamic code; determining that the target dynamic code is valid when the target dynamic code is the same as the current dynamic code; or determining that the target dynamic code is invalid when the target dynamic code is different from the current dynamic code. When the target dynamic code is valid, verify the wireless network key uploaded by the target terminal; When the wireless network key is verified, the target terminal is allowed to connect to the wireless network.
2. The Bluetooth-based wireless network connection method as described in claim 1, characterized in that, The method further includes: When the target terminal is not within the Bluetooth coverage area, and / or the target terminal is not in the configuration list, and / or the target dynamic code is invalid, and / or the wireless network key fails verification, the target terminal is prohibited from connecting to the wireless network.
3. The Bluetooth-based wireless network connection method as described in claim 1, characterized in that, The step of detecting whether the target terminal is within the Bluetooth coverage area includes: When the target terminal successfully connects to Bluetooth, it is determined that the target terminal is within the Bluetooth coverage area; or When the target terminal fails to connect to the Bluetooth, it is determined that the target terminal is not within the Bluetooth coverage area.
4. The Bluetooth-based wireless network connection method as described in claim 1, characterized in that, The configuration list is used to store terminals that are authorized to connect to the wireless network.
5. The Bluetooth-based wireless network connection method as described in claim 1, characterized in that, After allowing the target terminal to connect to the wireless network, the method further includes: The dynamic code is updated every first preset time interval, and the updated dynamic code is synchronized to the target terminal in real time. Every second preset time interval, the validity of the dynamic code corresponding to the target terminal in real time is verified. Get the number of verification failures and get the preset threshold; When the number of verification failures reaches the preset threshold, the connection between the target terminal and the wireless network is disconnected.
6. The Bluetooth-based wireless network connection method as described in claim 1, characterized in that, After allowing the target terminal to connect to the wireless network, the method further includes: When the target terminal leaves the Bluetooth coverage area, the connection between the target terminal and the wireless network is disconnected.
7. A Bluetooth-based wireless network connection device, characterized in that, The Bluetooth-based wireless network connection device includes: The determining unit is used to determine the terminal as the target terminal when a terminal requests to connect to the wireless network; The detection unit is used to detect whether the target terminal is within the Bluetooth coverage area; The determining unit is further configured to determine whether the target terminal is in the configuration list when the target terminal is detected to be within the Bluetooth coverage area; The acquisition unit is used to acquire the dynamic code of the target terminal as the target dynamic code when the target terminal is in the configuration list; wherein the dynamic code is updated periodically and sent to the target terminal via Bluetooth; A verification unit is used to verify whether the target dynamic code is valid, including: obtaining the current dynamic code after a periodic update; comparing the target dynamic code with the current dynamic code; determining that the target dynamic code is valid when the target dynamic code is the same as the current dynamic code; or determining that the target dynamic code is invalid when the target dynamic code is different from the current dynamic code. The verification unit is further configured to verify the wireless network key uploaded by the target terminal when the target dynamic code is valid; A connection unit is configured to allow the target terminal to connect to the wireless network when the wireless network key is verified.
8. A computer device, characterized in that, The computer device includes: Memory, storing at least one instruction; and The processor executes instructions stored in the memory to implement the Bluetooth-based wireless network connection method as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one instruction, which is executed by a processor in a computer device to implement the Bluetooth-based wireless network connection method as described in any one of claims 1 to 6.