CN111405492A - Method, device, storage medium, and electronic device for connecting to target network - Google Patents
Method, device, storage medium, and electronic device for connecting to target network Download PDFInfo
- Publication number
- CN111405492A CN111405492A CN202010271139.5A CN202010271139A CN111405492A CN 111405492 A CN111405492 A CN 111405492A CN 202010271139 A CN202010271139 A CN 202010271139A CN 111405492 A CN111405492 A CN 111405492A
- Authority
- CN
- China
- Prior art keywords
- target
- hotspot
- network
- wifi hotspot
- module
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/06—Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/08—Access restriction or access information delivery, e.g. discovery data delivery
- H04W48/10—Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/16—Discovering, processing access restriction or access information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/20—Selecting an access point
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Multimedia (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention provides a method, a device, a storage medium and an electronic device for connecting a target network, wherein the method comprises the following steps: after determining to join a Bluetooth mesh network, a target device broadcasts a request message through the Bluetooth mesh network, wherein the request message is used for requesting to acquire wifi hotspot information cached in other devices except the target device in the Bluetooth mesh network; the target equipment acquires wifi hotspot information returned by the other equipment; and the target equipment determines a first target wifi hotspot from the wifi hotspot information and accesses a first target network through the first target wifi hotspot. The invention solves the problem of poor network access effect of equipment in the related technology and achieves the purpose of improving the network access effect.
Description
Technical Field
The present invention relates to the field of communications, and in particular, to a method, an apparatus, a storage medium, and an electronic apparatus for connecting to a target network.
Background
The device can relay the message to other devices, so that the end-to-end communication range can be expanded and far exceeds the radio coverage range of each single node.
In the related art, when a bluetooth mesh network and a wifi network are used for connecting a network, usually when a client scans a bluetooth device to be networked, identity information of the device is obtained; requesting and acquiring an AuthKey (verification code) of the equipment and sending the AuthKey to a server, and verifying the AuthKey by the server; if the AuthKey is successfully verified by the server, setting equipment to access a Bluetooth mesh network; the client sends the Service Set Identifier (SSID) and the PASSWORD to the WIFI module through a Bluetooth channel to carry out distribution.
In the related art, when data is transmitted by using a bluetooth mesh network and wifi, any wireless mesh device is generally used to connect with a router, and the data is transmitted to the router through a mesh module, so that the connected router is required to support a mesh protocol.
Therefore, in the related art, the device can only be connected to a certain hotspot during network access, a link cannot be formed under the condition of multiple hotspots, and the router has poor compatibility, so that the network access effect of the device is poor.
In view of the above problems in the related art, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a method, a device, a storage medium and an electronic device for connecting a target network, which are used for at least solving the problem of poor equipment network access effect in the related technology.
According to an embodiment of the present invention, there is provided a method of connecting a target network, including: after determining to join a Bluetooth mesh network, a target device broadcasts a request message through the Bluetooth mesh network, wherein the request message is used for requesting to acquire wifi hotspot information cached in other devices except the target device in the Bluetooth mesh network; the target equipment acquires wifi hotspot information returned by the other equipment; and the target equipment determines a first target wifi hotspot from the wifi hotspot information and accesses a first target network through the first target wifi hotspot.
According to another embodiment of the present invention, there is provided an apparatus for connecting to a target network, which is applied to a target device, and includes: the first broadcasting module is used for broadcasting a request message through the Bluetooth mesh network after the Bluetooth mesh network is determined to be added, wherein the request message is used for requesting to acquire wifi hotspot information cached in other equipment except the target equipment in the Bluetooth mesh network; the first acquisition module is used for acquiring wifi hotspot information returned by the other equipment; and the first connection module is used for determining a first target wifi hotspot from the wifi hotspot information and accessing a first target network through the first target wifi hotspot.
According to a further embodiment of the present invention, there is also provided a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
By the invention, the target equipment can communicate with each other even if not connected with the wifi network by utilizing the ad hoc network characteristic of the Bluetooth mesh network, and the problem that the router compatibility is required by wireless and Bluetooth transmission is solved without the participation of the router (all routers in the market can be supported). After the target device is added into the Bluetooth mesh network, the connected network is selected from wifi hotspot information cached by other devices, so that the problem of poor network access effect of the device in the related technology is solved, and the purpose of improving the network access effect is realized.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware configuration of a mobile terminal of a method of connecting to a target network according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method of connecting to a target network according to an embodiment of the invention;
FIG. 3 is a schematic diagram of a network topology according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a method for rapidly detecting wifi drop by Bluetooth mesh according to an alternative embodiment of the present invention;
FIG. 5 is a diagram of a relationship between a Bluetooth module and a wifi module of an IPC according to an embodiment of the present invention;
FIG. 6 is a flow chart of a method of connecting to a target network in accordance with a specific embodiment of the present invention;
FIG. 7 is a block diagram of a first apparatus for connecting to a target network according to an embodiment of the present invention;
fig. 8 is a block diagram ii of the structure of a device connected to a target network according to an embodiment of the present invention;
fig. 9 is a block diagram of a device connected to a target network according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method provided by the embodiment of the application can be executed in a mobile terminal, a computer terminal or a similar operation device. Taking the example of operating on a mobile terminal, fig. 1 is a hardware structure block diagram of the mobile terminal of a method for connecting to a target network according to an embodiment of the present invention. As shown in fig. 1, the mobile terminal 10 may include one or more (only one shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, and optionally may also include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal 10 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the method for connecting to a target network in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the method described above. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal 10. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In this embodiment, a method for connecting to a target network is provided, and fig. 2 is a flowchart of the method for connecting to a target network according to the embodiment of the present invention, as shown in fig. 2, the flowchart includes the following steps:
step S202, after determining to join a Bluetooth mesh network, a target device broadcasts a request message through the Bluetooth mesh network, wherein the request message is used for requesting to acquire wifi hotspot information cached in other devices except the target device in the Bluetooth mesh network;
step S204, the target device acquires wifi hotspot information returned by the other devices;
and S206, the target equipment determines a first target wifi hotspot from the wifi hotspot information and accesses a first target network through the first target wifi hotspot.
In the above embodiment, the determination manner for determining the first target wifi hotspot from the wifi hotspot information may be multiple, for example, the first target wifi may be determined according to the signal strength of the wifi hotspot obtained by the target device, that is, the wifi with the strongest signal in the wifi hotspot list is selected as the first target wifi. The target device can be a smart phone, a tablet computer, an intelligent wearable device, an IP Camera (IPC for short), and the like, and can also be a device at least comprising a wifi module and a bluetooth module. The Bluetooth module is used for mesh networking and message notification, and the wifi module is used for transmitting big data video streams and the like. The bluetooth mesh network has a many-to-many topology, and each device is able to communicate with any other device in the mesh network. Devices can relay messages to other devices, allowing the end-to-end communication range to be extended well beyond the radio coverage of each individual node. In addition, the Bluetooth mesh networking speed is high, the communication channel is isolated from the wifi transmission channel, the Bluetooth mesh networking device is particularly suitable for transmitting key control messages, and wifi channel resources are not occupied. The schematic diagram of the network topology can be seen in fig. 3.
By the invention, the target equipment can communicate with each other even if not connected with the wifi network by utilizing the ad hoc network characteristic of the Bluetooth mesh network, and the problem that the router is compatible when wireless and Bluetooth transmission is required is solved without the participation of the router (all routers in the market can be supported). After the target device is added into the Bluetooth mesh network, the connected network is selected from wifi hotspot information cached by other devices, so that the problem of poor network access effect of the device in the related technology is solved, and the purpose of improving the network access effect is realized.
In an optional embodiment, after the target device accesses the first target network through the first target wifi hotspot, the method further includes: the target equipment starts a hotspot function of the target equipment after determining that the target equipment meets the condition of serving as a relay hotspot; and the target equipment broadcasts a hotspot starting message through the Bluetooth mesh network, wherein the hotspot starting message is used for indicating that the hotspot function of the target equipment is started. In this embodiment, after accessing a first target network through the first target wifi hotspot, it is determined whether a current link can be used as a relay hotspot, if the current link meets the transmission requirement of the current link, hotspot sharing is started, and a message that the hotspot is started is sent through a bluetooth mesh network broadcast.
In an optional embodiment, the broadcasting, by the target device, the hotspot opening message through the bluetooth mesh network includes: the wifi module of the target device reports the hot spot information of the target device to the central control module of the target device; the central control module of the target equipment sends the hotspot information of the target equipment to the Bluetooth module of the target equipment; and the Bluetooth module of the target equipment broadcasts the hotspot opening message through the Bluetooth mesh network. In this embodiment, the central control module may be a processor, such as a central processing unit CPU.
In an optional embodiment, after the target device accesses the first target network through the first target wifi hotspot, the method further includes: the target device acquires a unicast address of a first device for starting the first target wifi hotspot; the target device conducting Bluetooth keep-alive communication with the first device based on the unicast address; and after determining that the keep-alive time is out, the target equipment determines a second target wifi hotspot from the wifi hotspot information and accesses a second target network through the second target wifi hotspot. In this embodiment, the target device and the other devices may rely on the ad hoc network characteristic of the bluetooth mesh, and may communicate with each other even if the target device or the other devices are not connected to the wifi network, without the participation of a router (which may support all routers in the market), thereby avoiding the problem that the router compatibility is required for wireless and bluetooth transmission. When the new device is on-line or off-line, other devices can quickly sense the loss of the video of the sub-node caused by the loss of the relay node. And the terminal equipment communicates through a wifi link, when a wifi signal is poor, the problem of serious packet loss occurs, and after the relay equipment is lost, the abnormality cannot be accurately and quickly judged.
In this embodiment, wifi drop can be quickly detected through a bluetooth mesh network, fig. 4 is a schematic diagram of a method for quickly detecting wifi drop according to an optional embodiment of the present invention, as shown in fig. 4, when a target device is an IP Camera, taking IP Camera1 and IP Camera2 in fig. 4 as examples, after an IPC2 successfully connects to an IPC1 hotspot, a unicast address of an AP (access point, wireless access point) bluetooth mesh node is obtained (each bluetooth module is assigned a unicast address in the mesh network for device keep-alive communication), and then bluetooth communication is performed with the unicast address, for example, the keep-alive bluetooth timeout time may be set to 50ms (the present invention does not limit the bluetooth keep-alive timeout time, 50ms is only an optional implementation manner, and for example, 30ms, 60ms, and the like may also be used). When the current relay IPC1 device is considered abnormal after the keep-alive timeout, the IPC2 immediately re-initiates the cascade.
How to connect to the target network is described below with reference to specific embodiments:
fig. 5 is a block diagram illustrating a relationship between a bluetooth module and a wifi module of an IPC according to an embodiment of the present invention, where as shown in fig. 5, the bluetooth module is connected to a main control through a UART (Universal Asynchronous Receiver/Transmitter) or a USB (Universal Serial Bus), and the wifi module is connected to the main control through a protocol stack. The Bluetooth module is used for mesh networking and message notification, and the wifi is used for transmitting big data video streams.
Fig. 6 is a flowchart of a method for connecting to a target network according to an embodiment of the present invention, as shown in fig. 6, the flowchart includes:
step S602, determining whether the bluetooth module has been successfully provisioned, if so, executing step S610, and if not, executing step S604.
Step S604, after the new device is started, the bluetooth mesh module belongs to the state of not accessing the network, and periodically sends an unpressonbeacon (connectable type broadcast packet).
Step S606, waiting for a provider (for example, APP) to invite to join the mesh network, after the provider monitors beacon, inviting a node to join the mesh network, and allocating a network key, an IV index (a shared network resource), and an unicast adr (unicast address), where the new device has already implemented a networking function.
Step S608, determining whether the bluetooth gateway has invited to join the mesh network, if yes, executing step S610, and if no, executing step S606.
Step S610, after the mesh networking of the Bluetooth module is successful, a wifi hotspot list is requested through Bluetooth broadcasting (a communication mode between mesh nodes).
Step S612, after receiving the request hotspot message, the other devices reply to the current cached hotspot list, and the new device obtains the hotspot list.
In step S614, the obtained hot spot list is submitted to a master control (corresponding to the central control module).
Step S616, the main control forwards the hotspot list information to the wifi module.
And step S618, the wifi module selects the optimal hotspot connection according to the rsi and starts wifi cascade connection.
Step S620, determining whether the link meets the requirement of starting hot spot sharing, that is, determining whether the current link can be used as a relay hot spot, if yes, performing step S622, and if no, performing step S628.
Step S622, starts hot spot sharing, and reports the hot spot information of itself to the main control.
Step S624, the master control forwards the hotspot information to the Bluetooth module, and broadcasts and sends the message that the hotspot is opened through the Bluetooth mesh network.
Step S626, after receiving the hotspot starting message, the Bluetooth mesh node of a certain device submits the hotspot starting message to a main control to a wifi module, and continuously forwards the hotspot starting message to other devices through Bluetooth mesh broadcasting.
In step S628, the flow ends.
In the foregoing embodiment, the monitoring devices share the cached wifi hotspot list information through the bluetooth mesh network to form an automatic cascade system, and after acquiring the bluetooth unicast address of the relay device, the terminal device performs keep-alive detection on the bluetooth link, so as to timely identify whether the relay device is lost, and quickly switch to connect to other hotspots when the keep-alive fails. According to an internal networking mechanism among the front-end monitoring devices, the Bluetooth mesh communication is compatible with any router or other storage devices supporting hotspots, a hotspot information list can be shared through Bluetooth mesh communication, a wifi network does not need to be configured repeatedly, and after the trunk device is disconnected, the terminal device can quickly detect and cascade to other hotspots in time to prevent data loss. The Bluetooth mesh communication efficiency is high, and wifi channel resources are not occupied. When a wifi signal of a certain device is poor, the device itself transmits a video stream, and the problem of serious packet loss can not occur. The distribution network information depends on the Bluetooth mesh, the Bluetooth safety is guaranteed, application layer data encryption is not needed, and information leakage can be prevented.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a device for connecting to a target network is also provided, and the device is used to implement the foregoing embodiments and preferred embodiments, and the description of which has been already made is omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 7 is a first block diagram of a device connected to a target network according to an embodiment of the present invention, and as shown in fig. 7, the device is applied to a target device and includes:
the first broadcasting module 72 is configured to broadcast a request message through the bluetooth mesh network after determining to join the bluetooth mesh network, where the request message is used to request to acquire wifi hotspot information cached in other devices in the bluetooth mesh network except the target device;
the first obtaining module 74 is configured to obtain wifi hotspot information returned by the other devices;
and the first connection module 76 is configured to determine a first target wifi hotspot from the wifi hotspot information, and access to a first target network through the first target wifi hotspot.
Fig. 8 is a block diagram ii of a device connected to a target network according to an embodiment of the present invention, and as shown in fig. 8, the device includes, in addition to all modules shown in fig. 7:
the starting module 82 is configured to, after accessing a first target network through the first target wifi hotspot and after determining that the first target wifi hotspot meets a condition as a relay hotspot, start a hotspot function of the target device;
a second broadcasting module 84, configured to broadcast a hotspot opening message through the bluetooth mesh network, where the hotspot opening message is used to indicate that a hotspot function of the target device is opened.
In an alternative embodiment, the second broadcasting module 84 includes: the wifi module is used for reporting the hot spot information of the target equipment to a central control module of the target equipment; the central control module is used for sending the hotspot information of the target equipment to the Bluetooth module of the target equipment; the Bluetooth module is used for broadcasting the hotspot opening message through the Bluetooth mesh network.
Fig. 9 is a block diagram of a third configuration of a device connected to a target network according to an embodiment of the present invention, and as shown in fig. 9, the device includes, in addition to all modules shown in fig. 7 and 8:
a second obtaining module 92, configured to obtain a unicast address of a first device that starts a first target wifi hotspot after accessing a first target network through the first target wifi hotspot;
a communication module 94 for the target device to engage in bluetooth keep-alive communication with the first device based on the unicast address;
and the second connection module 96 is configured to determine a second target wifi hotspot from the wifi hotspot information after determining that the keep-alive timeout occurs, and access a second target network through the second target wifi hotspot.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above-mentioned method embodiments when executed.
Alternatively, in the present embodiment, the above-mentioned computer-readable storage medium may be configured to store a computer program for executing the steps of:
s1, after determining to join the Bluetooth mesh network, the target device broadcasts a request message through the Bluetooth mesh network, wherein the request message is used for requesting to acquire wifi hotspot information cached in other devices except the target device in the Bluetooth mesh network;
s2, the target device acquires wifi hotspot information returned by the other devices;
s3, the target device determines a first target wifi hotspot from the wifi hotspot information and accesses a first target network through the first target wifi hotspot.
Optionally, in this embodiment, the computer-readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, after determining to join the Bluetooth mesh network, the target device broadcasts a request message through the Bluetooth mesh network, wherein the request message is used for requesting to acquire wifi hotspot information cached in other devices except the target device in the Bluetooth mesh network;
s2, the target device acquires wifi hotspot information returned by the other devices;
s3, the target device determines a first target wifi hotspot from the wifi hotspot information and accesses a first target network through the first target wifi hotspot.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.
Claims (10)
1. A method of connecting to a target network, comprising:
after determining to join a Bluetooth mesh network, a target device broadcasts a request message through the Bluetooth mesh network, wherein the request message is used for requesting to acquire wifi hotspot information cached in other devices except the target device in the Bluetooth mesh network;
the target equipment acquires wifi hotspot information returned by the other equipment;
and the target equipment determines a first target wifi hotspot from the wifi hotspot information and accesses a first target network through the first target wifi hotspot.
2. The method of claim 1, wherein after the target device accesses a first target network through the first target wifi hotspot, the method further comprises:
the target equipment starts a hotspot function of the target equipment after determining that the target equipment meets the condition of serving as a relay hotspot;
and the target equipment broadcasts a hotspot starting message through the Bluetooth mesh network, wherein the hotspot starting message is used for indicating that the hotspot function of the target equipment is started.
3. The method of claim 2, wherein broadcasting, by the target device, a hotspot opening message over the bluetooth mesh network comprises:
the wifi module of the target device reports the hot spot information of the target device to the central control module of the target device;
the central control module of the target equipment sends the hotspot information of the target equipment to the Bluetooth module of the target equipment;
and the Bluetooth module of the target equipment broadcasts the hotspot opening message through the Bluetooth mesh network.
4. The method of claim 1, wherein after the target device accesses a first target network through the first target wifi hotspot, the method further comprises:
the target device acquires a unicast address of a first device for starting the first target wifi hotspot;
the target device conducting Bluetooth keep-alive communication with the first device based on the unicast address;
and after determining that the keep-alive time is out, the target equipment determines a second target wifi hotspot from the wifi hotspot information and accesses a second target network through the second target wifi hotspot.
5. An apparatus for connecting to a target network, applied in a target device, comprising:
the first broadcasting module is used for broadcasting a request message through the Bluetooth mesh network after the Bluetooth mesh network is determined to be added, wherein the request message is used for requesting to acquire wifi hotspot information cached in other equipment except the target equipment in the Bluetooth mesh network;
the first acquisition module is used for acquiring wifi hotspot information returned by the other equipment;
and the first connection module is used for determining a first target wifi hotspot from the wifi hotspot information and accessing a first target network through the first target wifi hotspot.
6. The apparatus of claim 5, further comprising:
the starting module is used for starting the hotspot function of the target equipment after determining that the starting module meets the condition of serving as a relay hotspot after accessing a first target network through the first target wifi hotspot;
and the second broadcasting module is used for broadcasting a hotspot starting message through the Bluetooth mesh network, wherein the hotspot starting message is used for indicating that the hotspot function of the target equipment is started.
7. The apparatus of claim 6, wherein the second broadcasting module comprises:
the wifi module is used for reporting the hot spot information of the target equipment to a central control module of the target equipment;
the central control module is used for sending the hotspot information of the target equipment to the Bluetooth module of the target equipment;
the Bluetooth module is used for broadcasting the hotspot opening message through the Bluetooth mesh network.
8. The apparatus of claim 5, further comprising:
the second acquisition module is used for acquiring a unicast address of the first device for starting the first target wifi hotspot after the first target wifi hotspot is accessed to the first target network;
a communication module, configured to perform bluetooth keep-alive communication with the first device based on the unicast address;
and the second connection module is used for determining a second target wifi hotspot from the wifi hotspot information after the keep-alive timeout is determined, and accessing a second target network through the second target wifi hotspot.
9. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the method of any of claims 1 to 4 when executed.
10. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010271139.5A CN111405492A (en) | 2020-04-08 | 2020-04-08 | Method, device, storage medium, and electronic device for connecting to target network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010271139.5A CN111405492A (en) | 2020-04-08 | 2020-04-08 | Method, device, storage medium, and electronic device for connecting to target network |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111405492A true CN111405492A (en) | 2020-07-10 |
Family
ID=71431456
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010271139.5A Pending CN111405492A (en) | 2020-04-08 | 2020-04-08 | Method, device, storage medium, and electronic device for connecting to target network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111405492A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112187751A (en) * | 2020-09-17 | 2021-01-05 | 海尔优家智能科技(北京)有限公司 | Network access method and device for equipment, storage medium and electronic device |
CN113301545A (en) * | 2021-04-16 | 2021-08-24 | 珠海慧联科技有限公司 | Dynamic access Bluetooth device cascading method and device and electronic device |
CN113301672A (en) * | 2021-04-01 | 2021-08-24 | 浙江大华技术股份有限公司 | Network connection method, network node equipment and device |
CN113596938A (en) * | 2021-06-30 | 2021-11-02 | 青岛海尔科技有限公司 | Network switching method and device of mobile terminal, storage medium and electronic device |
CN113660734A (en) * | 2021-08-30 | 2021-11-16 | 深圳市共进电子股份有限公司 | Network equipment connection method, device, network equipment and medium |
CN114125727A (en) * | 2021-11-18 | 2022-03-01 | 北京字节跳动网络技术有限公司 | Information processing method and device and electronic equipment |
CN114339621A (en) * | 2021-12-30 | 2022-04-12 | 上海庆科信息技术有限公司 | Method and device for controlling Bluetooth mesh network equipment and electronic device |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103281752A (en) * | 2013-05-28 | 2013-09-04 | 北京推博信息技术有限公司 | WIFI (wireless fidelity) network access method and device, electronic equipment and communication system |
US20140075011A1 (en) * | 2012-09-13 | 2014-03-13 | Motorola Mobility Llc | Providing a mobile access point |
US20160081009A1 (en) * | 2014-09-11 | 2016-03-17 | Laird Technologies, Inc. | Bluetooth assisted cooperative wifi scan and roam |
CN106211271A (en) * | 2016-06-30 | 2016-12-07 | 北京海尔广科数字技术有限公司 | The method of network entry of intelligent home device, device and intelligent home device |
CN106413033A (en) * | 2016-06-16 | 2017-02-15 | 海尔优家智能科技(北京)有限公司 | Method and device for configuring new device network access through adoption of device in network |
CN106550332A (en) * | 2015-09-17 | 2017-03-29 | 美的集团股份有限公司 | The acquisition methods and system of networked devices inbound information |
CN106792472A (en) * | 2016-12-30 | 2017-05-31 | 杭州士兰微电子股份有限公司 | The Wi Fi of intelligent hardware devices match somebody with somebody network method |
CN106878923A (en) * | 2017-01-09 | 2017-06-20 | 云丁网络技术(北京)有限公司 | The quick method of network entry of ultra-low power consumption intelligent equipment and intelligent domestic system |
CN109089298A (en) * | 2018-07-06 | 2018-12-25 | 杭州涂鸦信息技术有限公司 | Bluetooth and the bis- protocol devices method of network entry of wifi and device |
CN109963352A (en) * | 2019-04-08 | 2019-07-02 | 乐鑫信息科技(上海)股份有限公司 | Method of network entry, device, equipment and the storage medium of equipment |
CN110300396A (en) * | 2019-05-27 | 2019-10-01 | 苏宁智能终端有限公司 | The WIFI distribution method, apparatus and terminal of smart machine |
CN110430551A (en) * | 2019-08-09 | 2019-11-08 | 西藏宁算科技集团有限公司 | A kind of automobile data transfer method and system based on QUIC technology |
CN110691363A (en) * | 2019-09-25 | 2020-01-14 | 上海兴容信息技术有限公司 | Wi-Fi intelligent equipment network access configuration method |
-
2020
- 2020-04-08 CN CN202010271139.5A patent/CN111405492A/en active Pending
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140075011A1 (en) * | 2012-09-13 | 2014-03-13 | Motorola Mobility Llc | Providing a mobile access point |
CN103281752A (en) * | 2013-05-28 | 2013-09-04 | 北京推博信息技术有限公司 | WIFI (wireless fidelity) network access method and device, electronic equipment and communication system |
US20160081009A1 (en) * | 2014-09-11 | 2016-03-17 | Laird Technologies, Inc. | Bluetooth assisted cooperative wifi scan and roam |
CN106550332A (en) * | 2015-09-17 | 2017-03-29 | 美的集团股份有限公司 | The acquisition methods and system of networked devices inbound information |
CN106413033A (en) * | 2016-06-16 | 2017-02-15 | 海尔优家智能科技(北京)有限公司 | Method and device for configuring new device network access through adoption of device in network |
CN106211271A (en) * | 2016-06-30 | 2016-12-07 | 北京海尔广科数字技术有限公司 | The method of network entry of intelligent home device, device and intelligent home device |
CN106792472A (en) * | 2016-12-30 | 2017-05-31 | 杭州士兰微电子股份有限公司 | The Wi Fi of intelligent hardware devices match somebody with somebody network method |
CN106878923A (en) * | 2017-01-09 | 2017-06-20 | 云丁网络技术(北京)有限公司 | The quick method of network entry of ultra-low power consumption intelligent equipment and intelligent domestic system |
CN109089298A (en) * | 2018-07-06 | 2018-12-25 | 杭州涂鸦信息技术有限公司 | Bluetooth and the bis- protocol devices method of network entry of wifi and device |
CN109963352A (en) * | 2019-04-08 | 2019-07-02 | 乐鑫信息科技(上海)股份有限公司 | Method of network entry, device, equipment and the storage medium of equipment |
CN110300396A (en) * | 2019-05-27 | 2019-10-01 | 苏宁智能终端有限公司 | The WIFI distribution method, apparatus and terminal of smart machine |
CN110430551A (en) * | 2019-08-09 | 2019-11-08 | 西藏宁算科技集团有限公司 | A kind of automobile data transfer method and system based on QUIC technology |
CN110691363A (en) * | 2019-09-25 | 2020-01-14 | 上海兴容信息技术有限公司 | Wi-Fi intelligent equipment network access configuration method |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112187751A (en) * | 2020-09-17 | 2021-01-05 | 海尔优家智能科技(北京)有限公司 | Network access method and device for equipment, storage medium and electronic device |
CN113301672A (en) * | 2021-04-01 | 2021-08-24 | 浙江大华技术股份有限公司 | Network connection method, network node equipment and device |
CN113301545A (en) * | 2021-04-16 | 2021-08-24 | 珠海慧联科技有限公司 | Dynamic access Bluetooth device cascading method and device and electronic device |
CN113301545B (en) * | 2021-04-16 | 2023-04-14 | 珠海慧联科技有限公司 | Dynamic access Bluetooth device cascading method and device and electronic device |
CN113596938A (en) * | 2021-06-30 | 2021-11-02 | 青岛海尔科技有限公司 | Network switching method and device of mobile terminal, storage medium and electronic device |
CN113596938B (en) * | 2021-06-30 | 2024-05-24 | 青岛海尔科技有限公司 | Network switching method and device of mobile terminal, storage medium and electronic device |
CN113660734A (en) * | 2021-08-30 | 2021-11-16 | 深圳市共进电子股份有限公司 | Network equipment connection method, device, network equipment and medium |
CN113660734B (en) * | 2021-08-30 | 2024-03-29 | 深圳市共进电子股份有限公司 | Connection method and device of network equipment, network equipment and medium |
CN114125727A (en) * | 2021-11-18 | 2022-03-01 | 北京字节跳动网络技术有限公司 | Information processing method and device and electronic equipment |
CN114339621A (en) * | 2021-12-30 | 2022-04-12 | 上海庆科信息技术有限公司 | Method and device for controlling Bluetooth mesh network equipment and electronic device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111405492A (en) | Method, device, storage medium, and electronic device for connecting to target network | |
CN110831075A (en) | Data transmission method and device and service switching method and device | |
US9544840B2 (en) | Distributed method for client optimization | |
EP3512118B1 (en) | Method and device for transmitting response message | |
JP7565359B2 (en) | Route selection for sidelink communication in NR network | |
US20210195539A1 (en) | Integrated access and backhaul node recognition in integrated access and backhaul network | |
EP3364670B1 (en) | Signal strength measurement method and device | |
CN112671904B (en) | Method and device for transmitting equipment state information, storage medium and electronic device | |
CN112469055A (en) | Equipment network distribution method, related equipment and storage medium | |
US20130331090A1 (en) | Apparatus for performing ue-to-ue cooperative communication in a wireless communication system and method thereof | |
CN112544107A (en) | CGI reporting procedure for NR cells without SIB1 | |
KR100765182B1 (en) | Apparatus and method for providing packet service status using access class barred list in mobile communication system | |
CN114025408B (en) | Network establishing and accessing method and device for self-adaptive networking and computer equipment | |
CN105245695A (en) | Method and system for improving WeChat AirKiss compatibility | |
WO2022105028A1 (en) | Network configuration method and apparatus for internet of things device | |
US9681371B2 (en) | Improving communication efficiency | |
US11617117B2 (en) | Methods and apparatuses for performing cell (re)selection in non-public network | |
WO2012119475A1 (en) | Method and device for terminal handover | |
EP4087320A1 (en) | Method for channel switching in wireless mesh network, and wireless device | |
WO2022021142A1 (en) | Qos parameter configuration method and apparatus, communication device, and storage medium | |
US20220167263A1 (en) | Link Selection for an Idle or Inactive User Equipment | |
CN111405025A (en) | Data transmission method and device, transmission equipment and readable storage medium | |
CN115396987B (en) | Method and device for simultaneously accessing multiple networks, storage medium and electronic equipment | |
WO2015113263A1 (en) | Service transfer method, user device and access network device | |
WO2024179033A1 (en) | Wireless hotspot enabling method, set-top box, communication system and 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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200710 |