CN114071651A - Bluetooth-based network distribution method and device, computer equipment and readable storage medium - Google Patents

Bluetooth-based network distribution method and device, computer equipment and readable storage medium Download PDF

Info

Publication number
CN114071651A
CN114071651A CN202111131871.3A CN202111131871A CN114071651A CN 114071651 A CN114071651 A CN 114071651A CN 202111131871 A CN202111131871 A CN 202111131871A CN 114071651 A CN114071651 A CN 114071651A
Authority
CN
China
Prior art keywords
distribution network
distribution
mode
network
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111131871.3A
Other languages
Chinese (zh)
Inventor
曾金龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Coocaa Network Technology Co Ltd
Original Assignee
Shenzhen Coocaa Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Coocaa Network Technology Co Ltd filed Critical Shenzhen Coocaa Network Technology Co Ltd
Priority to CN202111131871.3A priority Critical patent/CN114071651A/en
Publication of CN114071651A publication Critical patent/CN114071651A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0893Assignment of logical groups to network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a Bluetooth-based network distribution method, a Bluetooth-based network distribution device, computer equipment and a readable storage medium, wherein the method comprises the following steps: when the equipment to be distributed detects that the network cannot be connected to the Internet, acquiring a current networking state, and determining a target distribution network mode according to the current networking state; the intelligent terminal acquires distribution network connection information corresponding to the target distribution network mode and sends the distribution network connection information to the equipment to be distributed through Bluetooth; and the equipment to be distributed receives the distribution network connection information, determines target distribution network equipment according to the distribution network connection information, sends a distribution network request carrying the distribution network connection information to the target distribution network equipment, receives distribution network success information fed back by the target distribution network equipment, and completes distribution network connection. The invention can provide diversified distribution network modes for the equipment to be distributed, and improve the success rate of distribution network.

Description

Bluetooth-based network distribution method and device, computer equipment and readable storage medium
Technical Field
The invention relates to the technical field of distribution networks, in particular to a distribution network method and device based on Bluetooth, computer equipment and a readable storage medium.
Background
The common distribution method is that a WiFi mode of the equipment is switched into an AP, a family WiFi name and a password sent from a mobile phone terminal are received, and then the family WiFi name and the password are converted into the AP mode to be connected with a WiFi router. The distribution network mode is suitable for intelligent equipment with an operation keyboard, such as a mobile phone and the like; however, for devices without an operation keyboard, such as a television or a box, etc., mode switching is required, and the mode for connecting the distribution network is complex, so that the connection of the devices without the operation keyboard, such as the television or the box, etc., is inconvenient; and when the network is successfully distributed, if the problem that the equipment cannot be on the internet occurs, the equipment needs to be detected by a professional, so that the professional is high, and the cost is high.
Disclosure of Invention
The embodiment of the invention provides a Bluetooth-based network distribution method, a Bluetooth-based network distribution device, computer equipment and a readable storage medium, and aims to solve the problem that the existing network distribution mode is complex and single.
A network distribution method based on Bluetooth comprises the following steps:
when the equipment to be distributed detects that the network cannot be connected to the Internet, acquiring a current networking state, and determining a target distribution network mode according to the current networking state;
the intelligent terminal acquires distribution network connection information corresponding to the target distribution network mode and sends the distribution network connection information to the equipment to be distributed through Bluetooth;
and the equipment to be distributed receives the distribution network connection information, determines target distribution network equipment according to the distribution network connection information, sends a distribution network request carrying the distribution network connection information to the target distribution network equipment, receives distribution network success information fed back by the target distribution network equipment, and completes distribution network connection.
A bluetooth-based network distribution apparatus, comprising:
the target distribution network mode determining module is used for acquiring the current networking state when the equipment to be distributed is detected to be incapable of surfing the Internet, and determining the target distribution network mode according to the current networking state;
the distribution network connection information determining module is used for the intelligent terminal to acquire distribution network connection information corresponding to the target distribution network mode and send the distribution network connection information to the equipment to be distributed through Bluetooth;
and the distribution network connection module is used for receiving the distribution network connection information by the equipment to be distributed, determining target distribution network equipment according to the distribution network connection information, sending a distribution network request carrying the distribution network connection information to the target distribution network equipment, receiving distribution network success information fed back by the target distribution network equipment and finishing distribution network connection.
The embodiment of the invention provides computer equipment which comprises a memory, a processor and a computer program which is stored in the memory and can run on the processor, wherein the processor realizes the steps of the distribution network method based on Bluetooth when executing the computer program.
The embodiment of the invention provides a computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and the computer program is executed by a processor to realize the steps of the Bluetooth-based network distribution method.
According to the Bluetooth-based network distribution method, the Bluetooth-based network distribution device, the computer equipment and the readable storage medium, when the equipment to be distributed detects that the network cannot be connected, the current networking state is obtained, the target network distribution mode is determined according to the current networking state, diversified network distribution modes are provided for the equipment to be distributed, a better target network distribution mode is selected to provide network distribution service for the equipment to be distributed, and the network distribution success rate is improved. And the intelligent terminal acquires distribution network connection information corresponding to the target distribution network mode, and sends the distribution network connection information to the equipment to be distributed through Bluetooth, so that technical support is provided for the subsequent equipment to be distributed. And the equipment to be distributed receives the distribution network connection information, determines target distribution network equipment according to the distribution network connection information, sends a distribution network request carrying the distribution network connection information to the target distribution network equipment, receives distribution network success information fed back by the target distribution network equipment, completes distribution network connection and provides distribution network service for the equipment to be distributed.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a schematic diagram of an application environment of a bluetooth-based network distribution method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a Bluetooth-based distribution network method in one embodiment of the present invention;
FIG. 3 is a flow chart of a Bluetooth-based distribution network method in one embodiment of the present invention;
FIG. 4 is a flow chart of a Bluetooth-based distribution network method in one embodiment of the present invention;
FIG. 5 is a flow chart of a Bluetooth-based distribution network method in one embodiment of the present invention;
FIG. 6 is a flow chart of a Bluetooth-based distribution network method in one embodiment of the present invention;
FIG. 7 is a flow chart of a Bluetooth-based distribution network method in one embodiment of the present invention;
fig. 8 is a schematic block diagram of a bluetooth-based distribution network apparatus in accordance with an embodiment of the present invention;
FIG. 9 is a schematic diagram of a computer device according to an embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The Bluetooth-based network distribution method provided by the embodiment of the invention can be applied to the application environment shown in FIG. 1. Specifically, the bluetooth-based distribution network method is applied to a bluetooth-based distribution network system, which includes a device to be distributed and an intelligent terminal shown in fig. 1, where the device to be distributed is connected to the intelligent terminal and is used to receive distribution network connection information sent by the intelligent terminal, so as to complete distribution network connection.
In an embodiment, as shown in fig. 2, a bluetooth-based network distribution method is provided, which is applied in a bluetooth-based network distribution system, and includes the following steps:
s201: and when the equipment to be distributed detects that the network cannot be accessed, acquiring the current networking state, and determining the target distribution network mode according to the current networking state.
The device to be networked is a device needing to be networked, so that the device to be networked can surf the internet.
The current networking state refers to a networking state corresponding to the equipment to be networked at the current moment. The current networking state includes a networking state and an non-networking state, wherein the networking state refers to a state in which a network has been distributed, and the non-networking state refers to a state in which the network has not been distributed.
The target network distribution mode is a mode that the equipment to be distributed is distributed with a network.
In this embodiment, a user sends an internet surfing instruction to a device to be networked, and when the device to be networked executes the internet surfing instruction and cannot receive feedback, the device to be networked determines that the network cannot be surfed; at this time, in order to ensure that the user can surf the internet through the device to be distributed, the current networking state of the device to be distributed needs to be detected to determine the target distribution network mode, so as to ensure that the device to be distributed can be successfully distributed. And determining a target distribution network mode according to the current networking state, providing diversified distribution network modes for the equipment to be distributed, selecting a better target distribution network mode to provide distribution network service for the equipment to be distributed, and improving the distribution network success rate.
S202: the intelligent terminal acquires distribution network connection information corresponding to a target distribution network mode, and sends the distribution network connection information to the equipment to be distributed through Bluetooth.
The distribution network connection information is information of connection between the equipment to be distributed and the target distribution network equipment; the distribution network connection information can be understood as information that a target distribution network device verifies whether a device to be distributed can be connected with the target distribution network device, and specifically, the target distribution network device determines whether the device to be distributed can be connected with the target distribution network device by verifying the correctness of the distribution network connection information.
In this embodiment, when the intelligent terminal obtains the target distribution network mode, the distribution network connection information corresponding to the target distribution network mode is obtained by querying the database, and the distribution network connection information is sent to the equipment to be distributed through bluetooth, so that technical support is provided for the subsequent equipment to be distributed.
S203: and the equipment to be distributed receives the distribution network connection information, determines target distribution network equipment according to the distribution network connection information, sends a distribution network request carrying the distribution network connection information to the target distribution network equipment, receives distribution network success information fed back by the target distribution network equipment, and completes distribution network connection.
The distribution network request is a request for a target distribution network device to distribute the network.
The distribution network success information is information for informing the success of distribution of the equipment to be distributed.
In the embodiment, when the equipment to be configured receives the connection information of the distribution network, a user sends a distribution network interface calling instruction to the equipment to be configured, so that the equipment to be configured displays a distribution network interface corresponding to a target distribution network mode, wherein the distribution network interface comprises a region to be filled; a user fills the distribution network connection information in an area to be filled, and clicks a distribution network key to send a distribution network request carrying the distribution network connection information to target distribution network equipment; when the target distribution network equipment receives a distribution network request carrying distribution network connection information, verifying whether the distribution network connection information is correct to obtain a verification result; and when the verification result shows that the distribution network connection information is correct, the target distribution network equipment is connected with the equipment to be distributed, distribution network success information is fed back to the equipment to be distributed, distribution network connection is completed, and distribution network service is provided for the equipment to be distributed. When the verification result is that the distribution network connection information is wrong, the target distribution network equipment is not connected with the equipment to be distributed; and when the equipment to be distributed does not receive the successful distribution network information within the preset time, displaying the distribution network connection information error on a display interface so that a user can know the distribution network condition.
As an example, the network distribution method based on bluetooth is applied to a multi-terminal screen projection system, and the multi-terminal screen projection system comprises a device to be distributed, the device to be distributed and N intelligent terminals; the device to be networked is a display end, and the intelligent terminal is a screen projection participating end; the intelligent terminal is used for distributing a network for the initialized equipment to be distributed; and the equipment to be networked is used for interacting with the screen projection participating end in the state of being capable of surfing the Internet, so that multi-end screen projection is realized.
According to the Bluetooth-based network distribution method provided by the embodiment, when the device to be networked detects that the network cannot be connected to the internet, the current networking state is obtained, the target network distribution mode is determined according to the current networking state, diversified network distribution modes are provided for the device to be networked, a better target network distribution mode is selected to provide network distribution service for the device to be networked, and the network distribution success rate is improved. The intelligent terminal acquires distribution network connection information corresponding to a target distribution network mode, and sends the distribution network connection information to the equipment to be distributed through Bluetooth, so that technical support is provided for the subsequent equipment to be distributed to a distribution network. The device to be distributed receives the distribution network connection information, determines a target distribution network device according to the distribution network connection information, sends a distribution network request carrying the distribution network connection information to the target distribution network device, receives distribution network success information fed back by the target distribution network device, completes distribution network connection and provides distribution network service for the device to be distributed.
As an embodiment, as shown in fig. 3, the step S201 of determining the target distribution network mode according to the current networking state includes:
s301: and if the current networking state is the networking state, determining the current distribution network mode of the equipment to be distributed, and determining the target distribution network mode according to the current distribution network mode and the existing distribution network mode.
The existing distribution network mode is a mode corresponding to a distribution network interface of the equipment to be distributed, and can be a wifi distribution network mode, a hotspot distribution network mode and the like. The distribution network interface is an interface for a distribution network. For example, the distribution network interface may be a wifi distribution network interface and a hotspot distribution network interface.
In this embodiment, when the current networking state is the networking state, it is determined that the device to be configured is already configured, so that the current network configuration mode of the device to be configured can be determined, and the networking state occurs, but the reason why the device cannot be networked cannot be determined. At the moment, inquiring the existing distribution network modes, and determining one existing distribution network mode except the current distribution network mode as a target distribution network mode; when the network distribution of the device to be distributed is successful in the target network distribution mode and the network can be connected, the current network distribution mode can be determined to be the abnormal network distribution mode, that is, the target network distribution device corresponding to the current network distribution mode is abnormal. When the equipment to be distributed is successfully distributed in a network in a target distribution network mode but the network cannot be connected, the equipment to be distributed can be determined to be abnormal, so that the reason of the abnormal distribution network can be quickly and simply determined, the operation is simple, and the application range is wide. The current distribution network mode refers to a distribution network mode corresponding to the equipment to be distributed at the current moment. For example, the current distribution network mode may be a hotspot distribution network mode or a wifi distribution network mode. The target distribution network equipment is equipment for providing a network for the equipment to be distributed, and the target distribution network equipment can be a wifi router or an intelligent terminal and the like.
It should be noted that before the exception is eliminated, the feasibility verification needs to be performed on any distribution network mode except the current distribution network mode to ensure that any distribution network mode except the current distribution network mode is normal.
S302: and if the current networking state is the non-networking state, randomly selecting a target distribution network mode from at least one existing distribution network mode.
In the embodiment, when the current networking state is the non-networking state, the equipment to be distributed determines the existing distribution network mode by checking the distribution network interface of the equipment to be distributed, and randomly selects any one of the existing distribution network modes as a target distribution network mode, so that various existing distribution network modes are provided, and the success rate of distribution network can be improved; so as to realize simple and convenient distribution of network.
According to the Bluetooth-based network distribution method provided by the embodiment, when the current networking state is the networking state, the current network distribution mode of the equipment to be distributed is determined, the target network distribution mode is determined according to the current network distribution mode and the existing network distribution mode, so that the reason of the abnormal network distribution is quickly and simply determined, the operation is simple, and the application range is wide. When the current networking state is the non-networking state, multiple existing distribution network modes are provided from at least one existing distribution network mode in a random target distribution network mode, and the success rate of distribution networks can be improved; so as to realize simple and convenient distribution of network.
As an embodiment, as shown in fig. 4, step S301, namely determining a current distribution network mode of a device to be distributed, and determining a target distribution network mode according to the current distribution network mode and an existing distribution network mode includes:
s401: and judging whether the current distribution network mode is the wifi distribution network mode.
In the embodiment, the equipment to be distributed determines whether the current distribution network mode is the wifi distribution network mode by inquiring the connection state of the wifi distribution network interface; when the connection state of the wifi distribution network interface is the starting state, the current distribution network mode is the wifi distribution network mode; and when the connection state of the wifi distribution network interface is a non-enabled state, the current distribution network mode is a hotspot distribution network mode.
S402: and if the current distribution network mode is the wifi distribution network mode, determining the hot point distribution network mode as the target distribution network mode.
S403: and if the current distribution network mode is not the wifi distribution network mode, determining the wifi distribution network mode as the target distribution network mode.
In this embodiment, when the current networking state is the networking state, it is determined that the device to be networked is already configured, so that the current network configuration mode of the device to be configured can be determined, and the networking state occurs, but the reason why the device cannot be networked cannot be determined. At the moment, determining the current distribution network mode, and determining the existing distribution network modes except the current distribution network mode as the target distribution network mode; when the network distribution of the device to be distributed is successful in the target network distribution mode and the network can be connected, the current network distribution mode can be determined to be the abnormal network distribution mode, that is, the target network distribution device corresponding to the current network distribution mode is abnormal. When the equipment to be distributed is successfully distributed in a network in a target distribution network mode but the network cannot be connected, the equipment to be distributed can be determined to be abnormal, so that the reason of the abnormal distribution network can be quickly and simply determined, the operation is simple, and the application range is wide.
It can be understood that, determining the current distribution network mode, and determining the existing distribution network mode except the current distribution network mode as the target distribution network mode includes: and if the current distribution network mode is the wifi distribution network mode, determining the hot distribution network mode as the target distribution network mode. And if the current distribution network mode is not the wifi distribution network mode, determining the wifi distribution network mode as the target distribution network mode.
In the network distribution method based on bluetooth provided by this embodiment, when the current network distribution mode is the wifi network distribution mode, the hotspot network distribution mode is determined as the target network distribution mode; and when the current distribution network mode is not the wifi distribution network mode, determining the wifi distribution network mode as the target distribution network mode. When the current networking state is the networking state, the network to be distributed is distributed, the existing network distribution mode except the current network distribution mode is determined as the target network distribution mode, the reason of the abnormal network distribution can be quickly and simply determined, the operation is simple, and the application range is wide.
As an embodiment, as shown in fig. 5, after step S203, that is, after receiving the distribution network success information fed back by the target distribution network device and completing the distribution network connection, the method for distributing networks based on bluetooth further includes:
s501: and detecting whether the network equipment to be distributed can surf the internet or not.
S502: and if the equipment to be networked can surf the internet, the equipment to be networked is normal.
S503: and if the equipment to be networked can surf the internet, the equipment to be networked is abnormal.
In this embodiment, when the target distribution network device is a distribution network of the device to be distributed, the user sends an internet surfing instruction to the device to be distributed, so that the device to be distributed determines whether the device to be distributed can surf the internet; when the equipment to be networked can surf the internet, the equipment to be networked is normal; and when the equipment to be networked can surf the internet, the equipment to be networked is abnormal. Therefore, even if professional equipment is not available, the abnormal reason can be located, and the method is simple and convenient.
It should be noted that, before step S203, the target distribution network device is verified in advance to ensure that the target distribution network device is a normal device in step S203. Specifically, the verification of the target distribution network equipment comprises the steps that the target distribution network equipment is adopted as normal detection equipment, distribution is successful, the detection equipment can be used for surfing the internet, and the target distribution network equipment is normal equipment.
According to the Bluetooth-based network distribution method provided by the embodiment, when the device to be networked can surf the internet, the device to be networked is normal. When the equipment to be distributed can surf the internet, the equipment to be distributed is abnormal, the reason of the abnormal distribution network is quickly and simply determined, and the operation is simple.
As an embodiment, as shown in fig. 6, in step S202, the acquiring, by the intelligent terminal, distribution network connection information corresponding to the target distribution network mode includes:
s601: and when the target distribution network mode is the hotspot distribution network mode, the intelligent terminal queries the database and acquires distribution network connection information corresponding to the hotspot distribution network mode, wherein the distribution network connection information comprises a hotspot name and a hotspot password.
S602: when the target distribution network mode is the wifi distribution network mode, the intelligent terminal queries the database, and acquires distribution network connection information corresponding to the wifi distribution network mode, wherein the distribution network connection information comprises a wifi name and a wifi password.
In this embodiment, after the target distribution network mode is determined, the intelligent terminal queries the database to obtain distribution network connection information corresponding to the target distribution network mode, and provides technical support for a subsequent distribution network, that is, when the target distribution network mode is the hotspot distribution network mode, the intelligent terminal queries the database to obtain a hotspot name and a hotspot password corresponding to the hotspot distribution network mode, and provides technical support for a subsequent distribution network realized in the hotspot distribution network mode. Similarly, when the target distribution network mode is the wifi distribution network mode, the intelligent terminal queries the database, acquires the wifi name and the wifi password corresponding to the wifi distribution network mode, and provides technical support for the subsequent distribution network realization through the wifi distribution network mode.
As an example, the device to be networked may be a device without a physical keyboard, such as a television or a box. When the device to be networked receives the wifi name and the wifi password, the wifi network distribution mode is an authentication wifi network; if the equipment to be networked restarts, the Bluetooth connection between the equipment to be networked and the intelligent terminal is disconnected; at the moment, if the equipment to be networked is connected with the authentication wifi network, the authentication wifi network feeds back authentication requirements so that a browser of the equipment to be networked displays an authentication webpage; but the bottom layer frame of the existing network distribution equipment is left, the authentication webpage is suspended at the topmost layer; at this time, the loop is closed, and authentication cannot be performed. In the embodiment, a Bluetooth distribution network is suspended on an authentication webpage, so that equipment to be distributed is connected with an intelligent terminal through Bluetooth; and a network distribution controller is arranged on the equipment to be distributed with the network, so that the authentication information is filled in the authentication webpage through the network distribution controller, intelligent authentication is realized, and when the authentication is passed, the network can be smoothly distributed.
According to the Bluetooth-based network distribution method provided by the embodiment, when the target network distribution mode is the hotspot network distribution mode, the intelligent terminal queries the database, acquires the hotspot name and the hotspot password corresponding to the hotspot network distribution mode, and provides technical support for realizing network distribution through the hotspot network distribution mode subsequently. When the target distribution network mode is the wifi distribution network mode, the intelligent terminal queries the database, acquires a wifi name and a wifi password corresponding to the wifi distribution network mode, and provides technical support for the subsequent distribution network realization through the wifi distribution network mode.
As an embodiment, the distribution network connection information includes a hotspot name and a hotspot password. After step S202, that is, after the intelligent terminal acquires the distribution network connection information corresponding to the target distribution network mode, the bluetooth-based distribution network method further includes: and when the target distribution network mode is the hotspot distribution network mode, the intelligent terminal starts a hotspot corresponding to the hotspot name. In this embodiment, when the target distribution network mode is the hotspot distribution network mode, the intelligent terminal is the target distribution network device, and at this time, a hotspot corresponding to the hotspot name is started to realize that the hotspot distribution network mode can be smoothly performed, so that a distribution network is provided for the device to be distributed.
As an embodiment, as shown in fig. 7, in step S202, before the intelligent terminal acquires distribution network connection information corresponding to the target distribution network mode and sends the distribution network connection information to the device to be distributed through bluetooth, the method for distributing a network based on bluetooth further includes:
s701: and the equipment to be distributed displays the Bluetooth distribution network code.
In this embodiment, the bluetooth network configuration code is a code that carries bluetooth information of a device to be configured with a network.
S702: the intelligent terminal scans the Bluetooth network configuration code so that the equipment to be configured is connected with the intelligent terminal in a Bluetooth mode.
In this embodiment, the device to be networked displays the bluetooth network configuration code, and the intelligent terminal scans the bluetooth network configuration code, so that the intelligent terminal determines the bluetooth of the device to be networked, and ensures that the device to be networked is connected with the intelligent terminal in a bluetooth manner, thereby providing technical support for subsequent network distribution.
In the network distribution method based on bluetooth provided by this embodiment, a device to be networked displays a bluetooth network distribution code;
the intelligent terminal scans the Bluetooth network distribution code so that the equipment to be distributed is connected with the intelligent terminal in a Bluetooth mode and technical support is provided for subsequent network distribution.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
In an embodiment, a distribution network device based on bluetooth is provided, and the distribution network device based on bluetooth corresponds to the distribution network method based on bluetooth in the above embodiment one to one. As shown in fig. 8, the bluetooth-based distribution network apparatus includes a target distribution network mode determining module 801, a distribution network connection information determining module 802, and a distribution network connection module 803. The functional modules are explained in detail as follows:
and the target distribution network mode determining module 801 is configured to, when the device to be distributed detects that the network cannot be connected to the internet, acquire a current networking state, and determine a target distribution network mode according to the current networking state.
And a distribution network connection information determining module 802, configured to acquire distribution network connection information corresponding to the target distribution network mode by the intelligent terminal, and send the distribution network connection information to the device to be distributed through bluetooth.
And the distribution network connection module 803 is configured to receive the distribution network connection information, determine a target distribution network device according to the distribution network connection information, send a distribution network request carrying the distribution network connection information to the target distribution network device, receive distribution network success information fed back by the target distribution network device, and complete distribution network connection.
Preferably, the target distribution network mode determining module 801 includes: a first connection state unit and a second connection state unit.
And the first connection state unit is used for determining the current distribution network mode of the equipment to be distributed if the current networking state is the networking state, and determining the target distribution network mode according to the current distribution network mode and the existing distribution network mode.
And the second connection state unit is used for randomly targeting the distribution network mode from at least one existing distribution network mode if the current networking state is the non-networking state.
Preferably, the existing distribution network mode comprises a wifi distribution network mode and a hotspot distribution network mode.
A first connection state unit comprising: the system comprises a judgment subunit, a hotspot distribution network mode determination subunit and a wifi distribution network mode determination subunit.
And the judgment subunit is used for judging whether the current distribution network mode is the wifi distribution network mode.
And the hot point distribution network mode determining subunit is used for determining the hot point distribution network mode as a target distribution network mode if the current distribution network mode is the wifi distribution network mode.
And the wifi distribution network mode determining subunit is used for determining the wifi distribution network mode as a target distribution network mode if the current distribution network mode is not the wifi distribution network mode.
Preferably, after the distribution network connection module 803, the bluetooth-based distribution network apparatus further includes: the device comprises a detection unit, a first result unit and a second result unit.
A detection unit: the method is used for detecting whether the network equipment to be distributed can surf the internet or not.
A first result unit: and if the equipment to be networked can surf the internet, the equipment to be networked is normal.
A second result unit: and if the equipment to be networked can surf the internet, the equipment to be networked is abnormal.
Preferably, the distribution network connection information determining module 802 includes: the device comprises a first distribution network connection information determining unit and a second distribution network connection information determining unit.
The first distribution network connection information determining unit is used for inquiring the database by the intelligent terminal when the target distribution network mode is the hotspot distribution network mode, and acquiring distribution network connection information corresponding to the hotspot distribution network mode, wherein the distribution network connection information comprises a hotspot name and a hotspot password.
And the second distribution network connection information determining unit is used for inquiring the database by the intelligent terminal when the target distribution network mode is the wifi distribution network mode, acquiring distribution network connection information corresponding to the wifi distribution network mode, wherein the distribution network connection information comprises a wifi name and a wifi password.
Preferably, after the distribution network connection information determining module 802, the bluetooth-based distribution network apparatus further includes: and the hot spot opening unit is used for opening the hot spot corresponding to the hot spot name by the intelligent terminal when the target distribution network mode is the hot spot distribution network mode.
Preferably, before the intelligent terminal acquires the distribution network connection information corresponding to the target distribution network mode and sends the distribution network connection information to the device to be distributed through bluetooth, the distribution network device based on bluetooth further includes: the Bluetooth network distribution code unit and the Bluetooth connection unit.
And the Bluetooth distribution network code unit is used for displaying the Bluetooth distribution network code by the equipment to be distributed.
And the Bluetooth connecting unit is used for scanning the Bluetooth network configuration code by the intelligent terminal so as to enable the equipment to be connected with the intelligent terminal in a Bluetooth mode.
For specific definition of the bluetooth-based distribution network device, reference may be made to the above definition of the bluetooth-based distribution network method, which is not described herein again. The modules in the distribution network device based on bluetooth can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 9. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile 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 an operating system and computer programs in the non-volatile storage medium. The database of the computer equipment is used for storing distribution network connection information. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a bluetooth network distribution method.
In an embodiment, a computer device is provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the steps of the distribution network method for bluetooth in the foregoing embodiments are implemented, for example, steps S201 to S203 shown in fig. 2 or steps shown in fig. 3 to fig. 7, which are not repeated herein to avoid repetition. Alternatively, the processor implements the functions of each module/unit in the embodiment of the distribution network method apparatus for bluetooth when executing the computer program, for example, the functions of the target distribution network mode determining module 801, the distribution network connection information determining module 802, and the distribution network connection module 803 shown in fig. 8, and for avoiding repetition, details are not repeated here.
In an embodiment, a computer-readable storage medium is provided, where a computer program is stored on the computer-readable storage medium, and when executed by a processor, the computer program implements the steps of the bluetooth network distribution method in the foregoing embodiments, for example, steps S201 to S203 shown in fig. 2 or steps shown in fig. 3 to fig. 7, which are not repeated herein for avoiding repetition. Alternatively, the processor implements the functions of each module/unit in the embodiment of the distribution network method apparatus for bluetooth when executing the computer program, for example, the functions of the target distribution network mode determining module 801, the distribution network connection information determining module 802, and the distribution network connection module 803 shown in fig. 8, and for avoiding repetition, details are not repeated here.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. 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. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (12)

1. A network distribution method based on Bluetooth is characterized by comprising the following steps:
when the equipment to be distributed detects that the network cannot be connected to the Internet, acquiring a current networking state, and determining a target distribution network mode according to the current networking state;
the intelligent terminal acquires distribution network connection information corresponding to the target distribution network mode and sends the distribution network connection information to the equipment to be distributed through Bluetooth;
and the equipment to be distributed receives the distribution network connection information, determines target distribution network equipment according to the distribution network connection information, sends a distribution network request carrying the distribution network connection information to the target distribution network equipment, receives distribution network success information fed back by the target distribution network equipment, and completes distribution network connection.
2. The bluetooth-based network distribution method according to claim 1, wherein the determining a target network distribution mode according to the current networking state comprises:
if the current networking state is the networking state, determining the current distribution network mode of the equipment to be distributed, and determining a target distribution network mode according to the current distribution network mode and the existing distribution network mode;
and if the current networking state is the non-networking state, randomly selecting a target distribution network mode from at least one existing distribution network mode.
3. The network distribution method based on Bluetooth as claimed in claim 2, wherein the existing network distribution modes include a wifi network distribution mode and a hotspot network distribution mode;
the method for determining the current distribution network mode of the equipment to be distributed includes the following steps:
judging whether the current distribution network mode is a wifi distribution network mode;
if the current distribution network mode is a wifi distribution network mode, determining a hotspot distribution network mode as a target distribution network mode;
and if the current distribution network mode is not the wifi distribution network mode, determining the wifi distribution network mode as a target distribution network mode.
4. The bluetooth-based network distribution method according to claim 3, wherein after the receiving the network distribution success information fed back by the target network distribution device and completing the network distribution connection, the bluetooth-based network distribution method further comprises:
the network equipment to be distributed detects whether the network can be accessed;
if the equipment to be distributed can surf the internet, the equipment to be distributed is normal;
and if the equipment to be distributed can surf the internet, the equipment to be distributed is abnormal.
5. The network distribution method based on the Bluetooth as claimed in claim 3, wherein the acquiring, by the intelligent terminal, the network distribution connection information corresponding to the target network distribution mode includes:
when the target distribution network mode is a hotspot distribution network mode, the intelligent terminal queries a database to acquire distribution network connection information corresponding to the hotspot distribution network mode, wherein the distribution network connection information comprises a hotspot name and a hotspot password;
when the target distribution network mode is a wifi distribution network mode, the intelligent terminal queries the database, acquires distribution network connection information corresponding to the wifi distribution network mode, and the distribution network connection information comprises a wifi name and a wifi password.
6. The Bluetooth-based network distribution method according to claim 3, wherein after the intelligent terminal obtains the network distribution connection information corresponding to the target network distribution mode, the Bluetooth-based network distribution method further comprises: and when the target distribution network mode is a hotspot distribution network mode, the intelligent terminal starts a hotspot corresponding to the hotspot name.
7. The network distribution method based on the Bluetooth of claim 1, wherein before the intelligent terminal obtains the distribution network connection information corresponding to the target distribution network mode and sends the distribution network connection information to the device to be distributed through the Bluetooth, the network distribution method based on the Bluetooth further comprises:
the equipment to be distributed displays the Bluetooth distribution network code;
and the intelligent terminal scans the Bluetooth network configuration code so as to enable the equipment to be connected with the intelligent terminal in a Bluetooth mode.
8. A network distribution device based on Bluetooth is characterized by comprising:
the target distribution network mode determining module is used for acquiring the current networking state when the equipment to be distributed is detected to be incapable of surfing the Internet, and determining the target distribution network mode according to the current networking state;
the distribution network connection information determining module is used for the intelligent terminal to acquire distribution network connection information corresponding to the target distribution network mode and send the distribution network connection information to the equipment to be distributed through Bluetooth;
and the distribution network connection module is used for receiving the distribution network connection information by the equipment to be distributed, determining target distribution network equipment according to the distribution network connection information, sending a distribution network request carrying the distribution network connection information to the target distribution network equipment, receiving distribution network success information fed back by the target distribution network equipment and finishing distribution network connection.
9. The bluetooth-based distribution network apparatus of claim 8, wherein the target distribution network mode determining module comprises:
the first connection state unit is used for determining the current distribution network mode of the equipment to be distributed if the current networking state is the networking state, and determining the target distribution network mode according to the current distribution network mode and the existing distribution network mode;
and the second connection state unit is used for randomly targeting a distribution network mode from at least one existing distribution network mode if the current networking state is the non-networking state.
10. The bluetooth-based network distribution apparatus of claim 9, wherein the existing network distribution modes include a wifi network distribution mode and a hotspot network distribution mode.
The first connection state unit includes:
the judgment subunit is used for judging whether the current distribution network mode is the wifi distribution network mode;
the hot point distribution network mode determining subunit is used for determining the hot point distribution network mode as a target distribution network mode if the current distribution network mode is a wifi distribution network mode;
and the wifi distribution network mode determining subunit is used for determining the wifi distribution network mode as a target distribution network mode if the current distribution network mode is not the wifi distribution network mode.
11. A computer arrangement comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor when executing the computer program realizes the steps of the bluetooth based distribution network method according to any of the claims 1 to 7.
12. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, carries out the steps of the bluetooth-based network distribution method according to any one of claims 1 to 7.
CN202111131871.3A 2021-09-26 2021-09-26 Bluetooth-based network distribution method and device, computer equipment and readable storage medium Pending CN114071651A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111131871.3A CN114071651A (en) 2021-09-26 2021-09-26 Bluetooth-based network distribution method and device, computer equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111131871.3A CN114071651A (en) 2021-09-26 2021-09-26 Bluetooth-based network distribution method and device, computer equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN114071651A true CN114071651A (en) 2022-02-18

Family

ID=80233702

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111131871.3A Pending CN114071651A (en) 2021-09-26 2021-09-26 Bluetooth-based network distribution method and device, computer equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN114071651A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117376960A (en) * 2023-12-04 2024-01-09 成都觅瑞科技有限公司 Automatic testing method and device for success rate of Bluetooth intelligent home network allocation

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180302792A1 (en) * 2016-02-18 2018-10-18 Tencent Technology (Shenzhen) Company Limited Network connection method and apparatus, and computer storage medium
WO2019042389A1 (en) * 2017-08-31 2019-03-07 捷开通讯(深圳)有限公司 Method and system for smart home network configuration and connection
CN109525976A (en) * 2018-12-05 2019-03-26 深圳创维数字技术有限公司 With network method, system and readable storage medium storing program for executing
CN109996314A (en) * 2017-12-29 2019-07-09 阿里巴巴集团控股有限公司 A kind of methods, devices and systems to distribution net equipment access network hotspot equipment
WO2020020313A1 (en) * 2018-07-27 2020-01-30 杭州博联智能科技股份有限公司 Device network configuration apparatus, system and method
US20200260279A1 (en) * 2017-10-30 2020-08-13 Opple Lighting Co., Ltd. Method, control terminal and system for accessing device to network
CN112954717A (en) * 2021-03-12 2021-06-11 四川虹美智能科技有限公司 Household appliance network distribution method and device based on H5 page
CN113055867A (en) * 2021-03-08 2021-06-29 Oppo广东移动通信有限公司 Method and device for auxiliary network distribution of terminal and electronic equipment
CN113194455A (en) * 2021-04-29 2021-07-30 四川虹美智能科技有限公司 Intelligent device network distribution method and device
CN113271578A (en) * 2021-05-17 2021-08-17 深圳Tcl新技术有限公司 Network distribution method, device, equipment and computer readable storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180302792A1 (en) * 2016-02-18 2018-10-18 Tencent Technology (Shenzhen) Company Limited Network connection method and apparatus, and computer storage medium
WO2019042389A1 (en) * 2017-08-31 2019-03-07 捷开通讯(深圳)有限公司 Method and system for smart home network configuration and connection
US20200260279A1 (en) * 2017-10-30 2020-08-13 Opple Lighting Co., Ltd. Method, control terminal and system for accessing device to network
CN109996314A (en) * 2017-12-29 2019-07-09 阿里巴巴集团控股有限公司 A kind of methods, devices and systems to distribution net equipment access network hotspot equipment
WO2020020313A1 (en) * 2018-07-27 2020-01-30 杭州博联智能科技股份有限公司 Device network configuration apparatus, system and method
CN109525976A (en) * 2018-12-05 2019-03-26 深圳创维数字技术有限公司 With network method, system and readable storage medium storing program for executing
CN113055867A (en) * 2021-03-08 2021-06-29 Oppo广东移动通信有限公司 Method and device for auxiliary network distribution of terminal and electronic equipment
CN112954717A (en) * 2021-03-12 2021-06-11 四川虹美智能科技有限公司 Household appliance network distribution method and device based on H5 page
CN113194455A (en) * 2021-04-29 2021-07-30 四川虹美智能科技有限公司 Intelligent device network distribution method and device
CN113271578A (en) * 2021-05-17 2021-08-17 深圳Tcl新技术有限公司 Network distribution method, device, equipment and computer readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117376960A (en) * 2023-12-04 2024-01-09 成都觅瑞科技有限公司 Automatic testing method and device for success rate of Bluetooth intelligent home network allocation

Similar Documents

Publication Publication Date Title
US20060101270A1 (en) Determining a key derivation function
CN113965895B (en) Bluetooth connection switching method, equipment and storage medium
CN111866850A (en) Configuration file switching method and device, computer equipment and storage medium
CN110602672B (en) Bluetooth device reconnection method, device, terminal and computer readable storage medium
CN104320861A (en) Wireless connection building method and device, terminal device, application server and system
CN110677840A (en) Distribution network failure reason determining method, equipment and readable medium
CN111147314A (en) Switch upgrading method, device and storage medium
CN112351471A (en) Method for accessing device to gateway, gateway device and computer readable storage medium
CN114071651A (en) Bluetooth-based network distribution method and device, computer equipment and readable storage medium
CN110769482B (en) Method and device for network connection of wireless equipment and wireless router equipment
CN112738046A (en) One-key login method, terminal and system server
CN109711140B (en) Site login state control method and device, computer equipment and storage medium
CN109544731B (en) Electronic lock control method, computer device, and storage medium
CN108462984A (en) A kind of method and terminal carrying out access network management
CN112954647A (en) Vehicle Bluetooth key registration method and device, computer equipment and storage medium
CN110072235B (en) Networking method and device for intelligent equipment, electronic device and storage medium
CN106658501B (en) Method and equipment for establishing PDN (packet data network) connection based on verification
CN113490213A (en) Air conditioner network distribution method and system
CN106973386B (en) Wireless network access method and device and electronic equipment
CN112667182A (en) Conference service data processing method, terminal, system and medium based on screen projection
CN113225756B (en) Network residing method, device, terminal and computer readable storage medium
CN112383918B (en) Screen projection equipment connection method and device, computer equipment and storage medium
CN113852715B (en) Quick mirror image screen projection system and method
CN114449557B (en) Equipment distribution network fault positioning method, terminal and storage medium
CN111194070B (en) Wireless network processing and access method, device, system, storage medium and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination