CN115396824A - Network configuration method and device based on Bluetooth, computer equipment and medium - Google Patents

Network configuration method and device based on Bluetooth, computer equipment and medium Download PDF

Info

Publication number
CN115396824A
CN115396824A CN202210822328.6A CN202210822328A CN115396824A CN 115396824 A CN115396824 A CN 115396824A CN 202210822328 A CN202210822328 A CN 202210822328A CN 115396824 A CN115396824 A CN 115396824A
Authority
CN
China
Prior art keywords
network configuration
wireless terminal
characteristic value
wifi
network
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.)
Granted
Application number
CN202210822328.6A
Other languages
Chinese (zh)
Other versions
CN115396824B (en
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 CN202210822328.6A priority Critical patent/CN115396824B/en
Publication of CN115396824A publication Critical patent/CN115396824A/en
Application granted granted Critical
Publication of CN115396824B publication Critical patent/CN115396824B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • 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
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The present invention relates to the field of wireless network technologies, and in particular, to a network configuration method and apparatus based on bluetooth, a computer device, and a medium. According to the method, the Bluetooth broadcast is played, so that the wireless terminal discovers the Bluetooth broadcast, BLE connection with the wireless terminal is established, WIFI information supported by the equipment is scanned, the WIFI information is written into a characteristic value of a WIFI list, data based on the WIFI list are sent to the wireless terminal, selected WIFI information and authentication information sent by the wireless terminal are received, the WIFI information and the authentication information are written into a characteristic value of network configuration, network configuration and connection are carried out according to the characteristic value of the network configuration, network connection among the equipment is achieved, the problem that network connection cannot be carried out due to large module difference among the equipment is avoided, the success rate of distribution of the equipment is improved, a user can correctly understand a function using mode, and the workload that software in the equipment needs to be compatible with different equipment is reduced.

Description

Network configuration method and device based on Bluetooth, computer equipment and medium
Technical Field
The invention is applicable to the technical field of wireless networks, and particularly relates to a network configuration method, a network configuration device, computer equipment and a medium based on Bluetooth.
Background
In the implementation of the initialization function of the existing intelligent device, network configuration of the device is the most important step, and the network configuration method in the prior art mainly comprises the following steps:
(1) The device establishes a WIFI hotspot, and the mobile phone scans the appointed WIFI SSID to discover the device;
(2) Directly connecting the hot spot with the mobile phone, and establishing a transmission link with the equipment;
(3) The mobile phone terminal scans WIFI information in the environment for a user to select, and configures corresponding authentication information;
(4) The mobile phone terminal transmits the WIFI SSID configured by the user and the authentication information to the equipment through the established transmission link;
(5) And after the equipment end receives the configuration data, the network connection is completed.
The above network configuration method has the disadvantages that: due to the fact that the WIFI module performance and the function of the device and the WIFI module performance and the function of the mobile phone are different, the WIFI module of most of the devices only supports 2.4 GWIFII and does not support 5 GWIFII, therefore, 5 GWIFII scanned by the mobile phone cannot be used by the device side after the user completes configuration. Therefore, the difference between the device and the module at the mobile phone end results in that the first four steps in the network configuration method are successfully completed, and the device in the fifth step cannot be successfully linked.
In order to overcome the above determination, the current solution is mainly to perform prompt or compatible processing on a mobile phone App, but the method of adding prompt on the mobile phone App can cause some users who do not know the technology to be unable to correctly understand the meaning of the prompt, but can increase the confusion of the use process; and the compatible processing method can enable the App to be compatible with different devices, so that the compatible workload is increased.
Therefore, a network configuration method is needed to be provided to solve the problem that network connection cannot be achieved due to large module difference between equipment and a mobile phone in the existing method, improve the success rate of network distribution of the equipment, ensure that a user can correctly understand a function using mode, and reduce the workload of a mobile phone App for compatibility of different equipment.
Disclosure of Invention
In view of this, embodiments of the present invention provide a network configuration method and apparatus based on bluetooth, a computer device, and a medium, so as to solve the problem that network connection cannot be performed due to a large module difference between a device and a mobile phone.
In a first aspect, a bluetooth-based network configuration method is provided, where the network configuration method includes:
playing a Bluetooth broadcast so that a wireless terminal finds the Bluetooth broadcast and establishes BLE connection with the wireless terminal;
scanning WIFI information supported by the equipment, and writing the WIFI information into a characteristic value of a WIFI list;
sending data based on the WIFI list to the wireless terminal;
receiving WIFI information and authentication information which are sent and selected by the wireless terminal, and writing the WIFI information and the authentication information into a characteristic value of network configuration;
and carrying out network configuration and connection according to the characteristic value of the network configuration.
In one embodiment, the network configuration method further includes:
monitoring the network connection state after the network configuration is completed;
and writing the monitored network connection state into a characteristic value of a network state, and sending the characteristic value of the network state to the wireless terminal which performs subscription operation.
In one embodiment, the network configuration method further includes:
and after the characteristic value of the network state is sent to the wireless terminal which performs subscription operation, writing the characteristic value of the network state in the wireless terminal.
In one embodiment, the network configuration method further includes:
and after the scanned WIFI information is updated, updating the characteristic value of the WIFI list, and sending the updated characteristic value of the WIFI list to the wireless terminal which performs subscription operation.
In an embodiment, after the updated feature values of the WIFI list are sent to the wireless terminal that has performed a subscription operation, the network configuration method further includes:
receiving WIFI information and authentication information which are sent and reselected by the wireless terminal, and rewriting the WIFI information and the authentication information into a characteristic value of network configuration;
and performing network configuration according to the rewritten characteristic value of the network configuration.
In one embodiment, after the wireless terminal discovers the bluetooth broadcast, the network configuration method further includes:
detecting subscription operation information of the wireless terminal on the characteristic values of the WIFI list;
if the subscription operation information is detected, the characteristic value of the WIFI list is periodically sent to the wireless terminal;
and if the subscription operation information cannot be detected, prohibiting the characteristic value of the WIFI list from being sent to the wireless terminal.
In a second aspect, a bluetooth-based network configuration apparatus is provided, the network configuration apparatus comprising:
the low-power consumption Bluetooth module is used for playing Bluetooth broadcast so that the wireless terminal finds the Bluetooth broadcast and establishes BLE connection with the wireless terminal;
the WIFI information processing module is used for scanning WIFI information supported by the equipment and writing the WIFI information into a characteristic value of a WIFI list;
the data sending module is used for sending the data based on the WIFI list to the wireless terminal;
the network configuration information processing module is used for receiving the selected WIFI information and the authentication information sent by the wireless terminal and writing the WIFI information and the authentication information into a characteristic value of network configuration;
and the configuration connection module is used for carrying out network configuration and connection according to the characteristic value of the network configuration.
In one embodiment, the network configuration apparatus further includes:
the monitoring module is used for monitoring the network connection state after the network configuration is finished;
and the network state processing module is used for writing the monitored network connection state into a characteristic value of a network state and sending the characteristic value of the network state to the wireless terminal which performs subscription operation.
In an embodiment, the network configuration apparatus further includes:
and the characteristic value writing module is used for writing the characteristic value of the network state into the wireless terminal after the characteristic value of the network state is sent to the wireless terminal which performs subscription operation.
In an embodiment, the data sending module is further configured to:
and after the scanned WIFI information is updated, updating the characteristic value of the WIFI list, and sending the updated characteristic value of the WIFI list to the wireless terminal which performs subscription operation.
In an embodiment, the network configuration apparatus further includes:
the data receiving module is used for receiving the WIFI information and the authentication information which are sent and reselected by the wireless terminal and rewriting the WIFI information and the authentication information into a characteristic value of network configuration;
the configuration connection module is used for carrying out network configuration according to the rewritten characteristic value of the network configuration.
In an embodiment, the network configuration apparatus further includes:
the detection and judgment module is used for detecting subscription operation information of the wireless terminal on the characteristic values of the WIFI list;
the regular sending module is used for sending the characteristic value of the WIFI list to the wireless terminal regularly if the subscription operation information is detected;
and the sending prohibition module is used for prohibiting sending the characteristic value of the WIFI list to the wireless terminal if the subscription operation information is not detected.
In a third aspect, an embodiment of the present invention provides a computer device, where the computer device includes a processor, a memory, and a computer program stored in the memory and executable on the processor, and the processor implements the network configuration method according to the first aspect when executing the computer program.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the network configuration method according to the first aspect.
Compared with the prior art, the invention has the following beneficial effects: according to the invention, through playing the Bluetooth broadcast, the wireless terminal discovers the Bluetooth broadcast, establishes BLE connection with the wireless terminal, scans WIFI information supported by the equipment, writes the WIFI information into a characteristic value of a WIFI list, transmits data based on the WIFI list to the wireless terminal, receives selected WIFI information and authentication information transmitted by the wireless terminal, writes the WIFI information and the authentication information into a characteristic value of network configuration, and performs network configuration and connection according to the characteristic value of the network configuration, so that network connection between the equipment is realized, the problem that network connection cannot be performed due to large module difference between the equipment is avoided, the success rate of distribution of the equipment is improved, a user can correctly understand a function use mode, and the workload that software in the equipment needs to be compatible with different equipment is reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described 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 to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a bluetooth-based network configuration method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a bluetooth-based network configuration method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a bluetooth-based network configuration apparatus according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a computer device according to a fourth embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items and includes such combinations.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present invention and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present invention. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless otherwise specifically stated.
It should be understood that, the sequence numbers of the steps in the following 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 order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Referring to fig. 1, which is a schematic flowchart of a network configuration method based on bluetooth according to an embodiment of the present invention, the network configuration method includes:
and step S101, playing the Bluetooth broadcast so that the wireless terminal finds the Bluetooth broadcast and establishes BLE connection with the wireless terminal.
In the present invention, the network configuration method is applied to any computer device having a bluetooth component and a network component, wherein the computer device includes, but is not limited to, a smart television, a palm top computer, a desktop computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cloud terminal device, a Personal Digital Assistant (PDA), a smart screen, and the like.
The wireless terminal may refer to a terminal device having a bluetooth function and a wireless network function, and the terminal device may be a mobile phone, a tablet computer, or the like.
The computer equipment sends the Bluetooth broadcast outwards through the Bluetooth component, and the Bluetooth on the wireless terminal can discover the Bluetooth broadcast, so that connection between the wireless terminal and the computer equipment is established based on the Bluetooth, and the connection is BLE connection.
The computer equipment is connected with the wireless terminal in the Bluetooth mode, so that the basic communication function of the computer equipment and the wireless terminal can be realized, and subsequent work such as sending and receiving of information is facilitated.
And S102, scanning WIFI information supported by the equipment, and writing the WIFI information into a characteristic value of a WIFI list.
According to the method and the device, the computer equipment can start to scan the surrounding WIFI information, and the WIFI information supported by the equipment is obtained from the surrounding WIFI information. And moreover, the computer equipment can also identify the WIFI inside the computer equipment and determine the WIFI information of the computer equipment.
The WIFI information supported by the equipment is written into a WIFI list of the computer equipment, different WIFI information is represented by different characteristic values in the WIFI list, the WIFI information at least comprises a WIFI name, the characteristic value is a BLE characteristic value, and the wireless terminal can acquire the corresponding WIFI information based on the BLE characteristic value.
And step S103, sending the data based on the WIFI list to the wireless terminal.
In the invention, after the WIFI list is obtained, the data of the WIFI list is sent to the wireless terminal for the user of the wireless terminal to perform operations such as selection and the like. After receiving the data of the WIFI list, the wireless terminal provides an interactive interface for the user to select the WIFI required to be connected and input related authentication information, and the information is sent back to the computer equipment.
For example, the selection of the WIFI to be connected by the user may be used to select a corresponding WIFI name, and the authentication information may be a WIFI password corresponding to the WIFI name.
Of course, the wireless terminal needs to perform a subscription operation in order to obtain the updated BLE feature value in time.
Optionally, after the wireless terminal discovers the bluetooth broadcast, the network configuration method further includes:
detecting subscription operation information of the wireless terminal on the characteristic values of the WIFI list;
if the subscription operation information is detected, the characteristic value of the WIFI list is periodically sent to the wireless terminal;
and if the subscription operation information cannot be detected, prohibiting the characteristic value of the WIFI list from being sent to the wireless terminal.
The computer device detects that the wireless terminal subscribes to the characteristic value of the WIFI list, and indicates that the wireless terminal intentionally and actively acquires the characteristic value in the WIFI list, so that the characteristic value of the WIFI list is sent to the wireless terminal in a periodic sending mode.
And step S104, receiving the WIFI information and the authentication information which are sent and selected by the wireless terminal, and writing the WIFI information and the authentication information into the characteristic value of the network configuration.
In the invention, after receiving the selected WIFI information and the authentication information sent by the wireless terminal, the computer equipment writes the part of information into the characteristic value of the network configuration, at the moment, the characteristic value is the characteristic value of network connection, and the configuration and connection of the network can be realized based on the characteristic value of the network connection.
And step S105, carrying out network configuration and connection according to the characteristic value of the network configuration.
In the invention, based on the characteristic value of network configuration, the network component of the computer equipment is called to carry out network configuration, thereby realizing the network connection between the computer equipment and the wireless terminal.
According to the embodiment of the invention, through playing the Bluetooth broadcast, the wireless terminal discovers the Bluetooth broadcast, establishes BLE connection with the wireless terminal, scans WIFI information supported by the equipment, writes the WIFI information into a characteristic value of a WIFI list, sends data based on the WIFI list to the wireless terminal, receives selected WIFI information and authentication information sent by the wireless terminal, writes the WIFI information and the authentication information into a characteristic value of network configuration, and performs network configuration and connection according to the characteristic value of the network configuration, so that network connection between the equipment is realized, the problem that network connection cannot be performed due to large module difference between the equipment is avoided, the success rate of distribution of the equipment is improved, a user can correctly understand a function using mode, and the workload that software in the equipment needs to perform compatibility on different equipment is reduced.
Referring to fig. 2, which is a schematic flowchart of a bluetooth-based network configuration method according to a second embodiment of the present invention, the network configuration method may include the following steps:
step S201, playing the bluetooth broadcast to enable the wireless terminal to discover the bluetooth broadcast and establish BLE connection with the wireless terminal.
Step S202, scanning WIFI information supported by the device, and writing the WIFI information into a characteristic value of a WIFI list.
And step S203, sending the data based on the WIFI list to the wireless terminal.
And step S204, receiving the WIFI information and the authentication information which are sent and selected by the wireless terminal, and writing the WIFI information and the authentication information into the characteristic value of the network configuration.
And step S205, performing network configuration and connection according to the characteristic value of the network configuration.
The contents of steps S201 to S205 are the same as those of steps S101 to S105, and the descriptions of steps S101 to S105 may be referred to, and are not repeated herein.
Step S206, monitoring the network connection status after the network configuration is completed.
In the present invention, the computer device further needs to monitor the connection state of the network after the network configuration, where the network connection state may refer to a normal network connection state, a disconnected network connection state, a strong or weak network connection signal state, and the like.
Step S207, writing the monitored network connection status into the characteristic value of the network status, and sending the characteristic value of the network status to the wireless terminal performing the subscription operation.
In the invention, the network connection state is characterized in the form of a characteristic value, namely the characteristic value of the network state is written.
The subscription operation is to subscribe to a certain information, and when the information is updated or the subscription time is reached, the information is sent to a user subscribing to the information, and of course, the wireless terminal that has performed the subscription operation is the wireless terminal that subscribes to the information, i.e., the characteristic value of the network state.
For example, when it is detected that the current network state is the normal state, if the normal state is represented by a feature value 1, the feature value of the network state is written with 1, the wireless terminal a subscribes to the feature value of the network state, and when it is detected that the feature value is updated to 1, the feature value is immediately pushed to the wireless terminal a.
Optionally, the network configuration method further includes:
after the characteristic value of the network state is sent to the wireless terminal which has performed the subscription operation, the characteristic value of the network state is written in the wireless terminal.
After receiving the characteristic value of the network state, the wireless terminal writes the characteristic value into the network state of the wireless terminal so as to express the connection relation between the computer equipment and the wireless terminal.
Optionally, the network configuration method further includes:
and after the scanned WIFI information is updated, updating the characteristic value of the WIFI list, and sending the updated characteristic value of the WIFI list to the wireless terminal which performs subscription operation.
The WIFI information is scanned correspondingly in real time, when the WIFI information is updated, the characteristic value in the WIFI list is updated correspondingly, the characteristic value of the WIFI list is immediately sent to the wireless terminal after the characteristic value is updated, and the information is not sent in a timing sending mode. The premise for executing the above process is that the wireless terminal is required to perform subscription operation on the characteristic values of the WIFI list.
Optionally, after sending the updated feature value of the WIFI list to the wireless terminal that has performed a subscription operation, the network configuration method further includes:
receiving WIFI information and authentication information which are sent and reselected by a wireless terminal, and rewriting the WIFI information and the authentication information into a characteristic value of network configuration;
and performing network configuration according to the rewritten characteristic value of the network configuration.
After the wireless terminal receives the updated characteristic value of the WIFI list, the wireless terminal can select the WIFI information and input corresponding authentication information, and then the computer device can receive selection and input of a user on the wireless terminal, namely the newly selected WIFI information and the authentication information are received, so that the information is written into network configuration, the corresponding characteristic value is updated, and the updated characteristic value is used for network configuration.
According to the embodiment of the invention, through playing the Bluetooth broadcast, the wireless terminal discovers the Bluetooth broadcast, the BLE connection with the wireless terminal is established, the WIFI information supported by the device is scanned, the WIFI information is written into the characteristic value of the WIFI list, data based on the WIFI list is sent to the wireless terminal, the selected WIFI information and the authentication information sent by the wireless terminal are received, the WIFI information and the authentication information are written into the characteristic value of network configuration, network configuration and connection are carried out according to the characteristic value of the network configuration, the network connection between the devices is realized, the problem that the network connection cannot be realized due to large module difference between the devices is avoided, the distribution network success rate of the devices is improved, the user can correctly understand the function using mode is ensured, the workload that software in the devices needs to carry out compatibility on different devices is reduced, then, the computer device also monitors the network connection state after the network configuration is finished, the monitored network connection state is written into the characteristic value of the network state, and the characteristic value of the network state is sent to the wireless terminal which has subscribed operation, so that the real-time update of the network state is realized, and the user can help the wireless terminal and the computer device to know the connection state.
Corresponding to the method of the above embodiment, fig. 3 shows a block diagram of a bluetooth-based network configuration apparatus provided in a third embodiment of the present invention, which is applied to a computer device, and for convenience of description, only the parts related to the embodiment of the present invention are shown.
Referring to fig. 3, the network configuration apparatus includes:
the low-power-consumption Bluetooth module 31 is configured to play a Bluetooth broadcast, so that the wireless terminal finds the Bluetooth broadcast and establishes a BLE connection with the wireless terminal;
the WIFI information processing module 32 is configured to scan WIFI information supported by the device, and write the WIFI information into a characteristic value of a WIFI list;
the data sending module 33 is configured to send data based on the WIFI list to the wireless terminal;
the network configuration information processing module 34 is configured to receive WIFI information and authentication information sent and selected by the wireless terminal, and write the WIFI information and the authentication information into a feature value of network configuration;
and a configuration connection module 35, configured to perform network configuration and connection according to the characteristic value of the network configuration.
Optionally, the network configuration device further includes:
the monitoring module is used for monitoring the network connection state after the network configuration is finished;
and the network state processing module is used for writing the monitored network connection state into the characteristic value of the network state and sending the characteristic value of the network state to the wireless terminal which performs subscription operation.
Optionally, the network configuration device further includes:
and the characteristic value writing module is used for writing the characteristic value of the network state into the wireless terminal after the characteristic value of the network state is sent to the wireless terminal which performs subscription operation.
Optionally, the data sending module is further configured to:
and after the scanned WIFI information is updated, updating the characteristic value of the WIFI list, and sending the updated characteristic value of the WIFI list to the wireless terminal which performs subscription operation.
Optionally, the network configuration device further includes:
the data receiving module is used for receiving the WIFI information and the authentication information which are sent and reselected by the wireless terminal and rewriting the WIFI information and the authentication information into a characteristic value of network configuration;
the configuration connection module is used for carrying out network configuration again according to the characteristic value rewritten in the network configuration.
Optionally, the network configuration device further includes:
the detection and judgment module is used for detecting subscription operation information of the wireless terminal on the characteristic values of the WIFI list;
the regular sending module is used for sending the characteristic value of the WIFI list to the wireless terminal regularly if subscription operation information is detected;
and the transmission forbidding module is used for forbidding to transmit the characteristic value of the WIFI list to the wireless terminal if the subscription operation information cannot be detected.
It should be noted that, because the contents of information interaction, execution process, and the like between the modules are based on the same concept as the method embodiment of the present invention, specific functions and technical effects thereof may be referred to specifically in the method embodiment section, and are not described herein again.
Fig. 4 is a schematic structural diagram of a computer device according to a fourth embodiment of the present invention. As shown in fig. 4, the computer apparatus of this embodiment includes: at least one processor (only one shown in fig. 4), a memory, and a computer program stored in the memory and executable on the at least one processor, the processor when executing the computer program implementing the steps in any of the various network configuration method embodiments described above.
The computer device may include, but is not limited to, a processor, a memory. It will be appreciated by those skilled in the art that fig. 4 is merely an example of a computer device and is not intended to be limiting, and that a computer device may include more or fewer components than those shown, or some components may be combined, or different components may be included, such as a network interface, a display screen, and input devices, etc.
The Processor may be a CPU, or other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory includes readable storage media, internal memory, etc., wherein the internal memory may be the internal memory of the computer device, and the internal memory provides an environment for the operating system and the execution of the computer-readable instructions in the readable storage media. The readable storage medium may be a hard disk of the computer device, and in other embodiments may also be an external storage device of the computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, provided on the computer device. Further, the memory may also include both internal storage units and external storage devices of the computer device. The memory is used for storing an operating system, application programs, a BootLoader (BootLoader), data, and other programs, such as program codes of a computer program, and the like. The memory may also be used to temporarily store data that has been output or is to be output.
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, so as to perform all or part of the functions described above. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention. The specific working processes of the units and modules in the above-mentioned apparatus may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method of the above embodiments may be implemented by a computer program, which may be stored in a computer readable storage medium and used by a processor to implement the steps of the above method embodiments. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code, recording medium, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), electrical carrier signals, telecommunications signals, and software distribution media. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In some jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and proprietary practices.
The present invention may also be implemented by a computer program product, which when executed on a computer device, enables the computer device to implement all or part of the processes in the method according to the above embodiments.
In the above embodiments, the description of each embodiment has its own emphasis, and reference may be made to the related description of other embodiments for parts that are not described or recited in any embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided by the present invention, it should be understood that the disclosed apparatus/computer device and method may be implemented in other ways. For example, the above-described apparatus/computer device embodiments are merely illustrative, and for example, a module or a unit may be divided into only one logical function, and may be implemented in other ways, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; 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 depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein.

Claims (10)

1. A network configuration method based on Bluetooth is characterized in that the network configuration method comprises the following steps:
playing a Bluetooth broadcast so that a wireless terminal finds the Bluetooth broadcast and establishes BLE connection with the wireless terminal;
scanning WIFI information supported by the equipment, and writing the WIFI information into a characteristic value of a WIFI list;
sending data based on the WIFI list to the wireless terminal;
receiving WIFI information and authentication information which are sent and selected by the wireless terminal, and writing the WIFI information and the authentication information into a characteristic value configured by a network;
and carrying out network configuration and connection according to the characteristic value of the network configuration.
2. The network configuration method of claim 1, further comprising:
monitoring the network connection state after the network configuration is completed;
and writing the monitored network connection state into a characteristic value of a network state, and sending the characteristic value of the network state to the wireless terminal which performs subscription operation.
3. The network configuration method of claim 2, further comprising:
and after the characteristic value of the network state is sent to the wireless terminal which performs subscription operation, writing the characteristic value of the network state in the wireless terminal.
4. The network configuration method of claim 2, further comprising:
and after the scanned WIFI information is updated, updating the characteristic value of the WIFI list, and sending the updated characteristic value of the WIFI list to the wireless terminal which performs subscription operation.
5. The network configuration method according to claim 4, wherein after sending the updated characteristic value of the WIFI list to the wireless terminal that has performed a subscription operation, the network configuration method further comprises:
receiving the WIFI information and the authentication information which are sent and reselected by the wireless terminal, and rewriting the WIFI information and the authentication information into a characteristic value of network configuration;
and performing network configuration according to the rewritten characteristic value of the network configuration.
6. The network configuration method according to any of claims 1 to 5, wherein after the wireless terminal discovers the Bluetooth broadcast, the network configuration method further comprises:
detecting subscription operation information of the wireless terminal on the characteristic values of the WIFI list;
if the subscription operation information is detected, the characteristic value of the WIFI list is periodically sent to the wireless terminal;
and if the subscription operation information cannot be detected, prohibiting the characteristic value of the WIFI list from being sent to the wireless terminal.
7. A bluetooth-based network configuration apparatus, characterized in that the network configuration apparatus comprises:
the low-power consumption Bluetooth module is used for playing Bluetooth broadcast so that the wireless terminal finds the Bluetooth broadcast and establishes BLE connection with the wireless terminal;
the WIFI information processing module is used for scanning WIFI information supported by the equipment and writing the WIFI information into a characteristic value of a WIFI list;
the data sending module is used for sending the data based on the WIFI list to the wireless terminal;
the network configuration information processing module is used for receiving the WIFI information and the authentication information which are sent and selected by the wireless terminal and writing the WIFI information and the authentication information into a characteristic value of network configuration;
and the configuration connection module is used for carrying out network configuration and connection according to the characteristic value of the network configuration.
8. The network configuration apparatus of claim 7, wherein the network configuration apparatus further comprises:
the monitoring module is used for monitoring the network connection state after the network configuration is finished;
and the network state processing module is used for writing the monitored network connection state into a characteristic value of a network state and sending the characteristic value of the network state to the wireless terminal which performs subscription operation.
9. A computer device comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, the processor implementing the network configuration method of any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the network configuration method according to any one of claims 1 to 6.
CN202210822328.6A 2022-07-13 2022-07-13 Bluetooth-based network configuration method, device, computer equipment and medium Active CN115396824B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210822328.6A CN115396824B (en) 2022-07-13 2022-07-13 Bluetooth-based network configuration method, device, computer equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210822328.6A CN115396824B (en) 2022-07-13 2022-07-13 Bluetooth-based network configuration method, device, computer equipment and medium

Publications (2)

Publication Number Publication Date
CN115396824A true CN115396824A (en) 2022-11-25
CN115396824B CN115396824B (en) 2023-11-21

Family

ID=84117539

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210822328.6A Active CN115396824B (en) 2022-07-13 2022-07-13 Bluetooth-based network configuration method, device, computer equipment and medium

Country Status (1)

Country Link
CN (1) CN115396824B (en)

Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104662995A (en) * 2013-09-13 2015-05-27 华为终端有限公司 Method, device and system for connecting to network
US20150334552A1 (en) * 2013-11-29 2015-11-19 Telefonaktiebolaget L M Ericsson (Publ) eUICC Subscription Change
CN105230082A (en) * 2013-03-28 2016-01-06 诺基亚技术有限公司 For providing the method and apparatus of subscription identity equipment recommendation
CN106416340A (en) * 2014-06-03 2017-02-15 高通股份有限公司 Managing UE subscription establishment
CN106524396A (en) * 2016-10-20 2017-03-22 深圳市立冰节能科技有限公司 Intelligent air conditioner control system based on APP and method of intelligent air conditioner control system
CN106537943A (en) * 2014-07-16 2017-03-22 高通股份有限公司 UE-based network subscription management
CN106664652A (en) * 2014-12-16 2017-05-10 华为技术有限公司 Method for awakening wireless-fidelity network and terminal
US20180302792A1 (en) * 2016-02-18 2018-10-18 Tencent Technology (Shenzhen) Company Limited Network connection method and apparatus, and computer storage medium
CN108848543A (en) * 2018-05-31 2018-11-20 四川斐讯全智信息技术有限公司 A kind of WIFI network configuration method and system
CN109511145A (en) * 2018-12-27 2019-03-22 深圳Tcl新技术有限公司 Switching method, intelligent terminal and the computer readable storage medium of network hotspot
CN110324790A (en) * 2019-07-03 2019-10-11 浙江大华技术股份有限公司 A kind of method for connecting network, node device, network system and storage medium
CN111031589A (en) * 2019-12-24 2020-04-17 深圳奇迹智慧网络有限公司 Network connection method, device, computer readable storage medium and computer equipment
CN111918256A (en) * 2020-07-14 2020-11-10 广东科徕尼智能科技有限公司 Intelligent device network distribution method and device based on Bluetooth and storage medium
CN112203301A (en) * 2020-09-29 2021-01-08 厦门盈趣科技股份有限公司 Network configuration method, system, device and storage medium of projection equipment
CN113746821A (en) * 2021-08-24 2021-12-03 深圳Tcl新技术有限公司 Intelligent device control method and device, storage medium and electronic device
WO2021259499A1 (en) * 2020-06-26 2021-12-30 Telefonaktiebolaget Lm Ericsson (Publ) Remote subscription profile download
CN114390033A (en) * 2021-12-28 2022-04-22 国网天津市电力公司营销服务中心 Loop state patrol instrument acquisition system and method based on extensible communication protocol
CN114501398A (en) * 2020-11-11 2022-05-13 上海登芯微电子科技有限公司 Control system and method for networking WIFI equipment based on Bluetooth mesh
CN114650520A (en) * 2020-12-17 2022-06-21 广东朝歌智慧互联科技有限公司 Method and device for realizing wireless network connection based on standard Bluetooth broadcast

Patent Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105230082A (en) * 2013-03-28 2016-01-06 诺基亚技术有限公司 For providing the method and apparatus of subscription identity equipment recommendation
CN104662995A (en) * 2013-09-13 2015-05-27 华为终端有限公司 Method, device and system for connecting to network
US20150334552A1 (en) * 2013-11-29 2015-11-19 Telefonaktiebolaget L M Ericsson (Publ) eUICC Subscription Change
CN106416340A (en) * 2014-06-03 2017-02-15 高通股份有限公司 Managing UE subscription establishment
CN106537943A (en) * 2014-07-16 2017-03-22 高通股份有限公司 UE-based network subscription management
CN106664652A (en) * 2014-12-16 2017-05-10 华为技术有限公司 Method for awakening wireless-fidelity network and terminal
US20180302792A1 (en) * 2016-02-18 2018-10-18 Tencent Technology (Shenzhen) Company Limited Network connection method and apparatus, and computer storage medium
CN106524396A (en) * 2016-10-20 2017-03-22 深圳市立冰节能科技有限公司 Intelligent air conditioner control system based on APP and method of intelligent air conditioner control system
CN108848543A (en) * 2018-05-31 2018-11-20 四川斐讯全智信息技术有限公司 A kind of WIFI network configuration method and system
CN109511145A (en) * 2018-12-27 2019-03-22 深圳Tcl新技术有限公司 Switching method, intelligent terminal and the computer readable storage medium of network hotspot
CN110324790A (en) * 2019-07-03 2019-10-11 浙江大华技术股份有限公司 A kind of method for connecting network, node device, network system and storage medium
CN111031589A (en) * 2019-12-24 2020-04-17 深圳奇迹智慧网络有限公司 Network connection method, device, computer readable storage medium and computer equipment
WO2021259499A1 (en) * 2020-06-26 2021-12-30 Telefonaktiebolaget Lm Ericsson (Publ) Remote subscription profile download
CN111918256A (en) * 2020-07-14 2020-11-10 广东科徕尼智能科技有限公司 Intelligent device network distribution method and device based on Bluetooth and storage medium
CN112203301A (en) * 2020-09-29 2021-01-08 厦门盈趣科技股份有限公司 Network configuration method, system, device and storage medium of projection equipment
CN114501398A (en) * 2020-11-11 2022-05-13 上海登芯微电子科技有限公司 Control system and method for networking WIFI equipment based on Bluetooth mesh
CN114650520A (en) * 2020-12-17 2022-06-21 广东朝歌智慧互联科技有限公司 Method and device for realizing wireless network connection based on standard Bluetooth broadcast
CN113746821A (en) * 2021-08-24 2021-12-03 深圳Tcl新技术有限公司 Intelligent device control method and device, storage medium and electronic device
CN114390033A (en) * 2021-12-28 2022-04-22 国网天津市电力公司营销服务中心 Loop state patrol instrument acquisition system and method based on extensible communication protocol

Also Published As

Publication number Publication date
CN115396824B (en) 2023-11-21

Similar Documents

Publication Publication Date Title
CN108551670B (en) Bluetooth connection method and device and intelligent terminal
JP5521774B2 (en) Information processing apparatus, information processing method, and program thereof
CN107889092B (en) Bluetooth device communication control method, device, terminal device and storage medium
CN102255887B (en) Method and system for providing online services corresponding to multiple mobile devices
US9152527B2 (en) Method and apparatus for identifying wireless peripherals and their states at a docking host for wireless docking
CN112911556A (en) Method for establishing classic Bluetooth connection between dual-mode Bluetooth devices and dual-mode Bluetooth device
US20140177615A1 (en) Method for scanning a wireless fidelity (wi-fi) direct device and terminal device for the same
CN107423099B (en) Key code programming method, server, terminal, key code programming system and storage medium
CN103916987A (en) Apparatus and method for providing integrated device information
CN110022553B (en) User identity identification card management method and mobile terminal
CN110891298A (en) Bluetooth connection method, device, Bluetooth equipment and system
CN111431734A (en) Network distribution method of intelligent equipment and related device
CN105320616A (en) External device control method and device
CN111935694A (en) Bluetooth device connection method and device, electronic device and readable storage medium
CN112437401A (en) Operation control method and device and electronic equipment
CN110392412B (en) Network distribution method, device, equipment and medium for Internet of things equipment
CN108337706B (en) Wireless network switching method, mobile terminal and storage medium
CN107708141B (en) Wireless network scanning method, mobile terminal and storage medium
CN108307485B (en) Wireless network scanning method and device, terminal equipment and storage medium
CN108419283B (en) WIFI hotspot scanning method and mobile terminal
CN102918512A (en) Information appliance data connection system, authentication device, client appliance, information appliance data connection method and storage medium
CN112689172A (en) Program playing method and device, set top box and storage medium
CN104618987A (en) Method and device for accessing network
CN115396824B (en) Bluetooth-based network configuration method, device, computer equipment and medium
CN113170215A (en) Video live broadcast method, system and computer storage medium

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
GR01 Patent grant
GR01 Patent grant