CN113645301A - Communication method and device - Google Patents

Communication method and device Download PDF

Info

Publication number
CN113645301A
CN113645301A CN202110915915.5A CN202110915915A CN113645301A CN 113645301 A CN113645301 A CN 113645301A CN 202110915915 A CN202110915915 A CN 202110915915A CN 113645301 A CN113645301 A CN 113645301A
Authority
CN
China
Prior art keywords
mode
network
equipment
networking
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110915915.5A
Other languages
Chinese (zh)
Inventor
陈鸂
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sengled Co Ltd
Original Assignee
Sengled 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 Sengled Co Ltd filed Critical Sengled Co Ltd
Priority to CN202110915915.5A priority Critical patent/CN113645301A/en
Publication of CN113645301A publication Critical patent/CN113645301A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/70Services for machine-to-machine communication [M2M] or machine type communication [MTC]
    • 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

Abstract

The embodiment of the application provides a communication method and a device, wherein the method comprises the following steps: when the first device meets the preset condition, the first mode is switched to a target mode, wherein the target mode simultaneously supports a first mode and a second mode, the first mode is a mode supporting network connection through a first networking mode, and the second mode is a mode supporting network connection through a second networking mode. The first device accesses the network according to the first network connection information. The first device transmits data to the second device in the target mode, wherein the second device is in the second mode. After the first device is used as a Bluetooth gateway to establish Bluetooth communication with the second device, the first device transmits data to the second device, or after the first device is used as a ZigBee gateway to establish ZigBee communication with the second device, the first device transmits data to the second device, and therefore the coverage range of the network is further expanded. In addition, the distribution network and the networking mode of the IOT equipment based on the dual-mode communication are more flexible.

Description

Communication method and device
Technical Field
The present disclosure relates to communications technologies, and in particular, to a communication method and apparatus.
Background
As an extension Of the Internet, the rapid development Of the Internet Of Things (IOT) has accelerated the arrival Of the world Of everything interconnection. With the exponential growth of the internet of things equipment, a network connection mode and a networking mode supporting the IOT equipment to realize flexible and reliable networking play a crucial role in expanding the whole network coverage and improving the connection quality.
Currently, in the prior art related to IOT device communication networking, networking is usually performed in a single mode to implement successful networking of IOT devices, or to implement interconnection between IOT devices. The single mode is that only one of short-distance Wireless communication technologies such as Wireless Fidelity (WiFi), bluetooth, ZigBee and the like is used in one internet of things.
However, in the prior art, the single-mode communication mode causes the problem that the coverage range of the IOT device networking is small.
Disclosure of Invention
The embodiment of the application provides a communication method and device, and aims to solve the problem that the coverage range of IOT equipment networking is small.
In a first aspect, an embodiment of the present application provides a communication method, including:
when meeting a preset condition, a first device is switched to a target mode from a first mode, wherein the target mode simultaneously supports the first mode and a second mode, the first mode is a mode supporting network connection through a first networking mode, and the second mode is a mode supporting network connection through a second networking mode;
the first equipment accesses a network according to the first network connection information;
and the first equipment transmits data to second equipment in the target mode, wherein the second equipment is in the second mode.
In one possible design, the preset conditions include: the first equipment is preset equipment;
when the first device meets the preset condition, switching from a first mode to a target mode, including:
judging whether the first equipment is the preset equipment or not, wherein the preset equipment is used as a gateway;
and if so, switching the first equipment from the first mode to the target mode.
In one possible design, the determining whether the first device is the preset device includes:
judging whether the identifier of the first device is a preset identifier or not, or judging whether the first device comprises the preset identifier or not;
if so, determining that the first equipment is the preset equipment.
In one possible design, before the first device switches from the first mode to the target mode when the preset condition is met, the method further includes:
establishing connection with a third device through the second networking mode;
and receiving configuration information sent by the third device, wherein the configuration information includes first network connection information corresponding to the first networking mode and second network connection information corresponding to the second networking mode.
In one possible design, after receiving the network configuration information sent by the third device, the method further includes:
if the networking mode of the first device is determined to be the first networking mode, executing the operation of judging whether the first device is the preset device;
and if the networking mode of the first equipment is determined to be the second networking mode, accessing the network according to second network connection information.
In one possible design, if it is determined that the first device is not the preset device, the method further includes:
the first equipment is connected with a network according to the first network connection information;
if the first equipment is successfully connected with the network, determining that the first equipment is accessed into the network; alternatively, the first and second electrodes may be,
and if the first equipment fails to be connected with the network, connecting the network according to the second network connection information.
In a second aspect, an embodiment of the present application provides a communication apparatus, including:
the first processing module is used for switching a first mode into a target mode when a first device meets a preset condition, wherein the target mode simultaneously supports the first mode and a second mode, the first mode is a mode supporting network connection through a first networking mode, and the second mode is a mode supporting network connection through a second networking mode;
the second processing module is used for the first equipment to access the network according to the first network connection information;
a transmission module, configured to transmit, by the first device, data to a second device in the target mode, where the second device is in the second mode.
In one possible design, the preset conditions include: the first equipment is preset equipment;
the first processing module is specifically configured to:
judging whether the first equipment is the preset equipment or not, wherein the preset equipment is used as a gateway;
and if so, switching the first equipment from the first mode to the target mode.
In one possible design, the determining whether the first device is the preset device includes:
judging whether the identifier of the first device is a preset identifier or not, or judging whether the first device comprises the preset identifier or not;
if so, determining that the first equipment is the preset equipment.
In one possible design, the second processing module is further configured to:
establishing connection with a third device through the second networking mode;
and receiving configuration information sent by the third device, wherein the configuration information includes first network connection information corresponding to the first networking mode and second network connection information corresponding to the second networking mode.
In one possible design, the second processing module is further configured to:
if the networking mode of the first device is determined to be the first networking mode, executing the operation of judging whether the first device is the preset device;
and if the networking mode of the first equipment is determined to be the second networking mode, accessing the network according to second network connection information.
In one possible design, if it is determined that the first device is not the preset device, the second processing module is further configured to:
the first equipment is connected with a network according to the first network connection information;
if the first equipment is successfully connected with the network, determining that the first equipment is accessed into the network; alternatively, the first and second electrodes may be,
and if the first equipment fails to be connected with the network, connecting the network according to the second network connection information.
In a third aspect, an embodiment of the present application provides a communication device, including:
a memory for storing a program;
a processor for executing the program stored by the memory, the processor being adapted to perform the method as described above in the first aspect and any one of the various possible designs of the first aspect when the program is executed.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, comprising instructions which, when executed on a computer, cause the computer to perform the method as described above in the first aspect and any one of the various possible designs of the first aspect.
In a fifth aspect, an embodiment of the present application provides a computer program product, where the program product includes: a computer program stored in a readable storage medium, from which at least one processor of an electronic device can read the computer program, execution of the computer program by the at least one processor causing the electronic device to perform the method as set forth in the first aspect above and any one of the various possible designs of the first aspect.
The embodiment of the application provides a communication method and a device, wherein the method comprises the following steps: when the first device meets the preset condition, the first mode is switched to a target mode, wherein the target mode simultaneously supports a first mode and a second mode, the first mode is a mode supporting network connection through a first networking mode, and the second mode is a mode supporting network connection through a second networking mode. The first device accesses the network according to the first network connection information. The first device transmits data to the second device in the target mode. After the first device is used as a Bluetooth gateway to establish Bluetooth communication with the second device, the first device transmits data to the second device, or after the first device is used as a ZigBee gateway to establish ZigBee communication with the second device, the first device transmits data to the second device, and therefore the coverage range of the network is further expanded. In addition, the distribution network and the networking mode of the IOT equipment based on the dual-mode communication are more flexible.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
FIG. 1 is a schematic diagram of a Wi-Fi networking topology provided by an embodiment of the application;
fig. 2 is a schematic diagram of a bluetooth Mesh networking topology provided in an embodiment of the present application;
fig. 3 is a first flowchart of a communication method according to an embodiment of the present application;
fig. 4 is a second flowchart of a communication method according to an embodiment of the present application;
fig. 5 is a schematic diagram of a communication method provided in an embodiment of the present application;
fig. 6 is a schematic structural diagram of a communication device according to an embodiment of the present application;
fig. 7 is a schematic hardware structure diagram of a communication device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
To facilitate understanding of the technical solution of the present application, first, a related concept related to the present application is introduced with reference to fig. 1 and fig. 2, where fig. 1 is a schematic diagram of a Wi-Fi networking topology provided in the embodiment of the present application, and fig. 2 is a schematic diagram of a bluetooth Mesh networking topology provided in the embodiment of the present application:
among short-distance communication technologies applied to the internet of things, a Wireless Fidelity (Wi-Fi) technology, a bluetooth technology and ZigBee are three short-distance communication technologies which are most widely applied at present. Next, these three short-range wireless communication techniques are described one by one:
Wi-Fi, also known as an action hotspot, is a wireless local area network communication technology based on the IEEE 802.11 standard protocol.
The features of Wi-Fi communication technology are described in detail below.
First, the deployment of Wi-Fi is typically a node deployment. Specifically, a Wi-Fi network generally includes a Wireless Access Point (AP) and at least one node (STA). The AP is a creator of the Wi-Fi network, is a central node of the network, and has a certain network coverage. For example, a wireless router used in an office or home is an AP; each terminal, such as a mobile phone, a computer, etc., connected to the AP in the Wi-Fi network coverage area may be referred to as an STA. Therefore, within the network coverage of the AP, an IOT device including a Wi-Fi communication module joins the Wi-Fi network after successfully connecting with the AP, i.e., serves as a node in the Wi-Fi network. Therefore, the deployment mode of the Wi-Fi network is node deployment.
In a Wi-Fi network, if the farthest communication distance supported by the AP is X meters, the network coverage of the AP is: the range encompassed by a circle with the AP as the center and the radius of X meters.
The networking of Wi-Fi networks is further described below with a specific example. As shown in fig. 1, the topology of the Wi-Fi network includes an AP and nine STAs 1-9, where all the STAs are any devices including a Wi-Fi communication module and are within the network coverage of the AP.
It should be emphasized that the wireless network includes three communication roles, namely, a central node, a relay and a terminal. The central node is a convergence node of a network and is responsible for collecting request information and issuing response information; the terminal is an execution node and is responsible for sending request information and receiving response information; the relay serves as a communication bridge between the central node and the terminal, and plays a role of relay transmission, namely, transmission of data from the central node to the terminal or transmission of data from the terminal to the central node is realized.
In a Wi-Fi network, the communication role of an AP is a central node, and the communication roles of all STAs are terminals.
The farthest communication distance supported by Wi-Fi can reach 100 meters, and similarly, the radius of the networking range is 100 meters. For example, the farthest communication distance of the wireless router (AP) and the mobile terminal supporting network connection may be up to 100 meters, and the mobile terminal may be connected to the wireless router when the distance between the mobile terminal and the wireless router (AP) is less than or equal to the farthest communication distance. If the distance between the mobile terminal and the wireless router (AP) is greater than the maximum communication distance after the mobile terminal moves for a certain distance, the mobile terminal cannot be connected with the wireless router.
In the Wi-Fi network environment, the data transmission rate can reach 150Mbits/s at most, the power consumption is 200mW, and the security is low. Meanwhile, it is emphasized that there is an upper limit to the number of STAs that can access the network in the Wi-Fi network, and the upper limit number is 40.
Having introduced Wi-Fi technology, the Bluetooth technology is described in detail below.
Bluetooth is an open global specification for wireless data and voice communications, and is a wireless communication technology based on the IEEE 802.11 standard protocol.
The Bluetooth communication technology is characterized in that: the maximum communication distance between two devices establishing bluetooth communication is 30 meters. Because the transmission distance of the Bluetooth communication is short, the wireless Mesh network technology is considered to be introduced into the Bluetooth to expand the network coverage, namely the Bluetooth Mesh. It should be emphasized that bluetooth Mesh is not a wireless communication technology, but a networking technology. The relationship between bluetooth and bluetooth Mesh is: bluetooth Mesh networks rely on bluetooth technology, which is a wireless communication protocol stack used by bluetooth Mesh.
For a clear description of the contents of the bluetooth Mesh, a description of the wireless Mesh network will be given first before describing the bluetooth Mesh in detail.
A wireless Mesh network (wireless Mesh network), also called a "multi-hop network", is composed of a Mesh router and a Mesh client. The Mesh router forms a backbone network, is connected with the Internet and is responsible for providing a plurality of wireless Internet connections for the Mesh client. The Mesh network is a novel network structure based on multi-hop routing and peer-to-peer network technology, has the characteristic of mobile broadband, and can dynamically and continuously expand, self-organize network, self-manage, automatically repair and self-balance.
The features of the bluetooth Mesh network will be described in detail below.
The deployment mode of the Bluetooth Mesh network is a gateway and a node, namely, the network is accessed in a Bluetooth mode, and the networking equipment comprises a Bluetooth gateway and at least one STA (station). The Bluetooth gateway is gateway equipment integrating Bluetooth, Wi-Fi and Ethernet, and realizes communication between the Bluetooth and the Wi-Fi through a serial port; the STA is used for indicating the equipment comprising the Bluetooth communication module in the Bluetooth Mesh network. Therefore, the Bluetooth Mesh has a networking function by forming a Bluetooth gateway and at least one IOT device containing a Bluetooth communication module into a Bluetooth Mesh network.
It should be noted that the bluetooth gateway may be a dedicated bluetooth gateway device, or may be a network-enabled device including a bluetooth communication module. For example, a device supporting Wi-Fi networking and including a bluetooth communication module may be used as a bluetooth gateway for bluetooth Mesh networking to implement the function of connecting to an external network.
The bluetooth Mesh adopts a broadcast mode in the bluetooth technology to realize the transmission or reception of information between the bluetooth gateway and the plurality of STAs and between the plurality of STAs. Specifically, in the bluetooth Mesh network, information is sent from the bluetooth gateway and forwarded to the destination STA via a plurality of STAs, or a certain STA sends request information and forwards the request information to the bluetooth gateway via a plurality of STAs.
In the bluetooth Mesh networking, this broadcast mode is also called network flooding, and a network flooding mode is adopted, and through controllable flooding message transmission, complex routing tables and routing discovery tables do not need to be created and managed, so that the overhead of maintaining the running memory space of the network is saved. Meanwhile, the essence of network flooding message propagation is multipath transmission, which ensures that information can be transmitted to destination equipment through a plurality of paths, so that any STA in the network fails and fatal influence on network transmission cannot be caused, and the network is highly reliable.
In the bluetooth technology, the farthest communication distance between two devices that establish bluetooth communication is 30 meters. After networking through the Bluetooth Mesh, the diameter of a coverage range can reach more than 500 meters, the number of nodes capable of realizing communication connection can reach 400, the highest data transmission rate can reach 2Mbits/s, the power consumption is 10mW, and the safety is high.
It should be emphasized that, unlike Wi-Fi, in the bluetooth Mesh network, the communication role of the bluetooth gateway is a central node or a relay, and the communication roles of all other STAs are relays or terminals.
In the Bluetooth Mesh network, based on the Bluetooth gateway establishment, a plurality of STAs are added into a wireless network formed by the Bluetooth gateway. The networking mode has the characteristics that: the Bluetooth gateway is used as the center of the whole Bluetooth Mesh network, and other STAs establish Bluetooth communication with the Bluetooth gateway or establish Bluetooth communication among other STAs, so that the communication coverage of the Bluetooth Mesh network is continuously extended.
Next, the communication role of each STA in the bluetooth Mesh network will be described by taking the transmission process of the bluetooth gateway successfully sending a packet to the STA5 as an example. As shown in fig. 2, the topology of the bluetooth Mesh network includes a bluetooth gateway and 13 STAs, i.e., STA1-STA 13. The STA may be, for example, any device including a bluetooth communication module. During the process of sending the data packet to the target device, i.e., STA5, the bluetooth gateway will broadcast the data packet first, and STA1, STA3, STA4, STA7, STA9, and STA11 in the communication range of the bluetooth gateway will receive the data packet from the bluetooth gateway directly. Then, STA1, STA3, STA4, STA7, STA9, and STA11 all determine whether the data packet is a data packet sent to itself by the bluetooth gateway according to the information in the data packet, if so, receive and stop forwarding, and if not, continue broadcasting the data packet. It can be seen that STA1, STA3, STA4, STA7, STA9, and STA11 are not target devices of the bluetooth gateway, and STA1, STA3, STA4, STA7, STA9, and STA11 all broadcast-forward the data packet. After STA4 broadcasts the packet, STA5 receives the packet from STA 4. Therefore, when the STA5 receives the data packet, it is determined that the bluetooth gateway successfully transmits the data packet to the target STA, and the transmission process of the data packet from the bluetooth gateway to the target STA is completed. It can be understood that during the process of transmitting data packets to STA5 by the bluetooth gateway, the communication roles of STA1, STA3, STA4, STA7, STA9 and STA11 are relay and the communication role of STA5 is terminal.
The central node, the relay and the terminal are determined according to different communication functions of the STA. If the STA including the bluetooth communication module has a networking function, the STA may be used as any one of a central node (bluetooth gateway) or a relay or a terminal, and similarly, the bluetooth gateway in the bluetooth Mesh network may be used as a relay or a terminal.
Here, it is emphasized that the STA can only be a terminal in the Wi-Fi network, and the STA can be used as a relay or a terminal or a bluetooth gateway in the bluetooth Mesh.
After the contents of the Bluetooth and the Bluetooth Mesh are introduced, the ZigBee is introduced as follows:
ZigBee is a short-distance wireless communication technology based on IEEE 802.15.4 standard specification, and is a technical proposal between Wi-Fi and Bluetooth.
Next, the features of the ZigBee communication technology will be described.
Firstly, the deployment mode of ZigBee is consistent with that of Bluetooth, and nodes and gateways need to be deployed at the same time, namely, the ZigBee networking comprises the ZigBee gateway and at least one STA (station). In the ZigBee communication technology, the farthest communication distance between two devices is 50 meters, the diameter of a networking range can reach more than 500 meters, the number of nodes (the number of devices) supporting connection is 100, the highest data transmission rate can reach 250Kbits/s, the power consumption is 100mW, and the security of the ZigBee communication technology is between Wi-Fi and Bluetooth Mesh.
At present, the ZigBee network has three frameworks of a star type, a tree type and a mesh network, a proper ZigBee network structure can be selected according to actual needs, and the three ZigBee network structures have advantages respectively. Considering the space problem, the three architectures of the ZigBee network can refer to the prior art, and are not described herein again.
Based on the above descriptions about three short-range wireless communication technologies, the following describes the related art regarding the networking method in communication and the problems existing in the related art, and provides the technical idea of the present application.
In the technology of the internet of things, a network connection mode and a networking mode supporting the IOT equipment to realize flexible and reliable networking play a vital role in expanding the coverage range of the whole network and improving the connection quality.
Currently, in the prior art related to communication networking of IOT devices, networking is usually performed in a single communication standard manner to implement successful networking of IOT devices or implement interconnection between IOT devices. The single communication standard is one of short-distance wireless communication technologies such as Wi-Fi, Bluetooth and ZigBee which are only used in one Internet of things.
However, it is considered that each of the various short-range wireless communication technologies has advantages and disadvantages. The Wi-Fi is simple in deployment, high in transmission rate, high in power consumption, small in coverage area, small in connection number and low in safety; the number of the Bluetooth connection devices is large, the safety is high, but the transmission rate is low; ZigBee has low power consumption, wide coverage range, but low transmission rate. Therefore, it is difficult to avoid various problems based on networking using a single communication standard.
Based on the existing problems, it is considered that there is an IOT device based on dual-mode communication, for example, a WiFi and bluetooth Mesh based dual-mode IOT device, or a WiFi and ZigBee based dual-mode IOT device. At present, the dual-mode IOT device supports three working modes, for example, a WiFi and bluetooth Mesh based dual-mode IOT device, the three working modes are respectively: Wi-Fi STA, Bluetooth gateway. The application proposes the following technical idea: based on the dual-mode IOT equipment, the application provides a networking method based on a dual-mode communication mode. Specifically, in the networking process, a proper wireless communication technology can be selected as a networking method according to the actual network condition, so that the network connection quality can be ensured, and the network coverage range can be further expanded.
Based on the technical concept introduced above, the communication method provided by the present application is described in detail below with reference to specific embodiments, and it should be noted that an execution main body in each embodiment of the present application is a device with a control function, such as a processor or a microprocessor, etc., and the specific implementation of the execution main body in this embodiment is not limited as long as the execution main body has the control function, which is described with reference to fig. 3 and 4, fig. 3 is a first flowchart of the communication method provided by the embodiment of the present application, and fig. 4 is a schematic diagram of a distribution network characteristic comparison between Wi-Fi and bluetooth Mesh provided by the embodiment of the present application.
As shown in fig. 3, the method includes:
s301, when the first device meets a preset condition, switching from a first mode to a target mode, wherein the target mode simultaneously supports the first mode and a second mode, the first mode is a mode supporting network connection through a first networking mode, and the second mode is a mode supporting network connection through a second networking mode.
In this embodiment, the first device is configured to indicate an IOT device including a chip integrating two communication standard manners, that is, the first device supports a dual-mode communication manner for networking. For example, a chip based on Wi-Fi and Bluetooth Mesh or a chip based on Wi-Fi and ZigBee is included in the first device.
Next, taking an example that the first device includes a chip based on Wi-Fi and bluetooth Mesh, a communication mode of the first device will be further described. When the wireless router is in a Wi-Fi network environment, the first device can be connected with the wireless router, and data transmission can be achieved after Wi-Fi networking. In addition, it should be emphasized that, after the first device implements Wi-Fi networking, the first device may serve as a bluetooth gateway for performing bluetooth Mesh networking with a device that is outside the coverage of the Wi-Fi network and includes a bluetooth communication module, and the coverage of the network is extended while implementing networking with a device outside the coverage of the Wi-Fi network.
When the first device is in the bluetooth Mesh network environment, the first device may establish a connection with a bluetooth gateway, or establish a bluetooth connection with a device having a bluetooth communication module, to perform data transmission.
In this embodiment, the target mode is used to indicate a communication mode that simultaneously supports a first mode and a second mode, where the first mode is a mode that supports network connection by a first networking method, and the second mode is a mode that supports network connection by a second networking method.
Next, a first networking mode, a second networking mode, a first mode, a second mode, and a target mode will be described by taking a device including a chip based on Wi-Fi and bluetooth Mesh and a device including a chip based on Wi-Fi and ZigBee as examples.
First, a first networking mode, a second networking mode, a first mode, a second mode, and a target mode will be described with reference to an apparatus including a Wi-Fi and bluetooth Mesh-based chip as an example.
The first networking mode is a mode of networking by using Wi-Fi, and the second networking mode is a mode of networking by using Bluetooth Mesh. The first mode refers to that the equipment is networked in a Wi-Fi mode; the second mode is that the equipment is networked in a Bluetooth mode; the target mode refers to that the device supports the Wi-Fi and Bluetooth Mesh communication modes for networking at the same time, namely the device is used as a Bluetooth gateway to establish Bluetooth communication with at least one other device comprising a Bluetooth communication module while supporting the Wi-Fi networking.
Next, a first networking method, a second networking method, a first mode, a second mode, and a target mode will be described using a Wi-Fi and ZigBee chip as an example.
The first networking mode is a mode of networking by using Wi-Fi, and the second networking mode is a mode of networking by using ZigBee. The first mode refers to that the equipment is networked in a Wi-Fi mode; the second mode is that the equipment is networked in a ZigBee mode; the target mode refers to that the equipment supports Wi-Fi and ZigBee communication modes for networking at the same time, namely the equipment supports Wi-Fi networking and is used as a ZigBee gateway to establish ZigBee communication with at least one other equipment comprising a ZigBee communication module.
The preset condition is used for judging whether the first device is a preset device, wherein the preset device is a device which is required by a network environment and is in a target mode to provide a gateway function.
For clearly describing the technical solution of the present application, in this embodiment, the first device includes a chip based on Wi-Fi and bluetooth Mesh as an example, and the technical solution of the present application is introduced.
It should be noted that, before networking the first device, the operation mode of the first device needs to be determined first.
In this embodiment, when the first device operates in the first mode and the first device satisfies the preset condition, the networking mode is switched from the first mode to the target mode. In particular, the first device comprises a chip based on Wi-Fi and Bluetooth Mesh. Therefore, when the first device is in the Wi-Fi coverage range, the networking mode of the first device is a Wi-Fi networking mode. When the first equipment meets the preset condition, the networking mode of the first equipment is converted into a target mode which supports Wi-Fi networking from a single Wi-Fi networking mode and is used as a Bluetooth gateway to establish Bluetooth communication with at least one other equipment comprising a Bluetooth communication module.
In this embodiment, only the dual-mode communication mode supported by the first device is exemplarily described, but the dual-mode communication mode supported by the first device is not limited, and the dual-mode communication mode supported by the first device may be selected according to actual requirements.
S302, the first device accesses the network according to the first network connection information.
It should be noted that before the first device accesses the network, the distribution network process needs to be performed first. Because the first equipment comprises a chip based on Wi-Fi and Bluetooth Mesh, the first equipment can be distributed in two modes, namely a Wi-Fi distribution mode and a Bluetooth Mesh distribution mode.
Next, distribution network characteristics of Wi-Fi and bluetooth Mesh are introduced.
In terms of safety, the Wi-Fi default wireless access point mode can be accessed without a password, so that the Wi-Fi distribution network safety is low; when the Bluetooth Mesh is in a network distribution, the marked Bluetooth Mesh protocol is used, and all Mesh messages can be encrypted and authenticated, so that the safety of the Bluetooth Mesh network distribution is high. From the view of a multi-node distribution network, Wi-Fi does not support the simultaneous distribution of multiple nodes, and Bluetooth Mesh supports the simultaneous distribution of multiple nodes. From the possibility of realizing dual-mode data interaction, Wi-Fi needs to additionally transmit a network name, three keys and various application module information required by a Bluetooth Mesh distribution network, so that the difficulty of realizing dual-mode data interaction of the Wi-Fi distribution network is very high; after the Bluetooth Mesh network is distributed, only a WiFi Service Set Identifier (SSID) and a password need to be transmitted, so that the Bluetooth Mesh network is simple and quick in dual-mode data interaction. From the perspective of being compatible with other ecology, the connection time of the Wi-Fi distribution network and amazon set without frustration is as long as 60 seconds; after the Bluetooth Mesh is distributed, the connection time length is controlled within 10 seconds by the aid of the amazon frustration-free setting.
Therefore, the Wi-Fi distribution network and the Bluetooth Mesh distribution network have the advantages that the Bluetooth Mesh distribution network is adopted. Meanwhile, the Wi-Fi distribution network and the Bluetooth Mesh distribution network can realize dual-mode data interaction, namely after the Wi-Fi distribution network, the Bluetooth Mesh network can be realized according to the network name, three keys, various application module information and other related information required by the Bluetooth Mesh distribution network so as to transmit data, or after the Bluetooth Mesh distribution network, the Wi-Fi network can be realized according to the SSID and the password so as to transmit data. Therefore, the distribution network mode of the IOT equipment based on dual-mode communication is more flexible.
In a possible implementation manner, the first device selects a bluetooth Mesh network distribution manner to perform network distribution, and initiates a bluetooth network distribution process. After the Bluetooth Mesh distribution network flow is finished, the first equipment stores the Bluetooth Mesh distribution network information, namely the first equipment obtains second connection information. The first connection information refers to an SSID and a password corresponding to a target router to which the first device is pre-connected. The first device acquires the first connection information in a Bluetooth mode.
In this embodiment, after obtaining the first network connection information, the first device successfully implements Wi-Fi connection with the target router according to the first network connection information.
S303, the first device transmits data to the second device in the target mode, where the second device is in the second mode.
In this embodiment, the first device is in a target mode, i.e., a target mode that supports Wi-Fi networking and at the same time acts as a bluetooth gateway to establish bluetooth communication with at least one device that includes a bluetooth communication module.
Wherein the second device is used to indicate the device in the second mode, i.e. the device in the bluetooth communication mode.
In a possible implementation manner, after the first device is networked through Wi-Fi and establishes bluetooth communication with the second device as a bluetooth gateway, the first device realizes data transmission with the second device through a bluetooth manner, and simultaneously, the purpose of networking the second device is also realized by using the first device as the bluetooth gateway, which enlarges the coverage area of the network.
The communication method provided by the embodiment of the application comprises the following steps: when the first device meets the preset condition, the first mode is switched to a target mode, wherein the target mode simultaneously supports a first mode and a second mode, the first mode is a mode supporting network connection through a first networking mode, and the second mode is a mode supporting network connection through a second networking mode. The first device accesses the network according to the first network connection information. The first device transmits data to the second device in the target mode, wherein the second device is in the second mode. When the first device is in the target mode, the first device is used as a Bluetooth gateway to establish Bluetooth communication with the second device and then transmits data to the second device while networking through Wi-Fi, or is used as a ZigBee gateway to establish ZigBee communication with the second device and then transmits data to the second device, and therefore the coverage range of the network is further expanded. In addition, the distribution network and the networking mode of the IOT equipment based on the dual-mode communication are more flexible.
Based on the above embodiments, the communication method provided by the present application is further described below with reference to a specific embodiment, and is described with reference to fig. 4, where fig. 4 is a second flowchart of the communication method provided by the embodiment of the present application.
As shown in fig. 4, the method includes:
s401, the first device and the third device establish connection through a second networking mode.
S402, receiving configuration information sent by a third device, wherein the configuration information comprises first network connection information corresponding to a first networking mode and second network connection information corresponding to a second networking mode.
Next, steps S401 and S402 will be explained together.
It should be emphasized that, before the first device accesses the target network, the first device needs to perform a network distribution procedure to obtain the network distribution information, so as to successfully access the target network.
The description will be made by taking an example that the first device includes a chip based on Wi-Fi and bluetooth Mesh. When the first device comprises a chip based on Wi-Fi and Bluetooth Mesh, the first device can be distributed in two ways, namely a Wi-Fi distribution network and a Mesh distribution network. Based on the content introduced in S402, it is more advantageous to perform network distribution by the bluetooth Mesh network distribution method. Meanwhile, after the first device is distributed with the network through the Bluetooth Mesh, the mode of realizing dual-mode data interaction is simpler and faster, namely after the first device is distributed with the network through the Bluetooth Mesh, the first device only needs to obtain the SSID and the password of the router corresponding to the Wi-Fi network to realize access to the Wi-Fi network, and the first device can realize the Wi-Fi network according to the SSID and the password.
In a possible implementation manner, the first device needs to complete a bluetooth Mesh network distribution process with the third device to complete the connection between the first device and the third device through the second networking manner, that is, the first device establishes a bluetooth connection with the third device. Wherein the third device is a device comprising a bluetooth communication module.
In this embodiment, the configuration information includes first network connection information corresponding to the first networking mode and second network connection information corresponding to the second networking mode. Specifically, the second network connection information refers to bluetooth network distribution information; the first connection information is that after the first device establishes bluetooth communication with the third device, the third device can transmit the SSID and the password of the target router corresponding to the first device through the bluetooth communication.
And S403, judging whether the networking mode of the first device is a first networking mode or a second networking mode, if so, executing S404, and if so, executing S411.
And determining the next execution step by judging whether the networking mode corresponding to the first device is the first networking mode or the second networking mode.
It should be emphasized that, for a device based on a chip of Wi-Fi and bluetooth Mesh, the first networking mode is used to indicate a Wi-Fi networking mode, and the second networking mode is used to indicate a bluetooth Mesh networking mode.
In addition, the networking mode of the first device is determined by the network environment where the first device is located, if the first device is located in the Wi-Fi network coverage range, the networking mode corresponding to the first device is the first networking mode, and if not, the networking mode is the second networking mode.
In this embodiment, when the networking mode corresponding to the first device is the first networking mode, S404 is executed; when the networking mode corresponding to the second device is the second networking mode, S411 is executed.
And S404, judging whether the first equipment is preset equipment or not, wherein the preset equipment is used as a gateway, if so, executing S405, and if not, executing S408.
In this embodiment, the preset conditions include: the first condition is a preset device, wherein the preset device is used for indicating that the device can be used as a gateway.
The point to be noted is that when the preset device is a device based on a Wi-Fi and bluetooth Mesh chip, the preset device may be used as a bluetooth gateway; when the preset equipment is equipment based on a chip of Wi-Fi and ZigBee, the preset equipment can be used as a ZigBee gateway.
In one possible implementation manner, whether the first device is the preset device is determined by judging whether the identifier of the first device is the preset identifier. For example, the preset identifier of the preset device is an Internet Protocol (IP) address. And determining whether the first equipment is the preset equipment or not by judging whether the IP address of the first equipment is the same as the IP address corresponding to the preset equipment or not. If the IP address of the first device is the same as the IP address corresponding to the preset device, the first device is the preset device; and if the IP address of the first device is different from the IP address corresponding to the preset device, the first device is not the preset device.
In another possible implementation manner, whether the first device is a preset device is determined by judging whether the first device includes a preset identifier. For example, the preset identifier of the preset device is a preset serial number. And judging whether the first equipment is preset equipment or not by judging whether the equipment information of the first equipment comprises a preset serial number or not. If the equipment information of the first equipment comprises a preset serial number, the first equipment is preset equipment; if the device information of the first device does not include the preset serial number, the first device is not the preset device.
In this embodiment, only the implementation manner of determining whether the first device is the preset device is described as an example, but not limiting the implementation manner of determining whether the first device is the preset device, and the implementation manner of determining whether the first device is the preset device may be selected according to actual requirements.
Executing S405 when the first device is determined to be the preset device; in contrast, when it is determined that the first device is not the preset device, S408 is performed.
S405, the first equipment is switched from the first mode to the target mode.
In this embodiment, after the first device is determined to be the preset device, the working mode of the first device is converted from the first mode to the target mode.
Specifically, after the first device is determined to be the preset device, the working mode of the first device is converted from the single Wi-Fi networking mode to the target mode which supports the Wi-Fi networking mode and is used as the bluetooth gateway to establish bluetooth communication with at least one other device including the bluetooth communication module.
In this embodiment, a first device based on a Wi-Fi and bluetooth Mesh chip is taken as an example, and an exemplary description is given to a target mode of the first device, but the target mode of the first device is not limited, and the target mode of the first device may be determined according to a specific dual-mode communication technology supported by the first device.
S406, the first device accesses the network according to the first network connection information.
Step S406 is similar to the step S302, and is not described herein again.
And when the first equipment accesses the network according to the first network connection information, the first equipment realizes Wi-Fi networking.
S407, the first device transmits data to the second device in the target mode, wherein the second device is in the second mode.
In this embodiment, in the target mode, the first device serves as a bluetooth gateway to establish bluetooth communication with the plurality of second devices, construct a bluetooth Mesh networking, and transmit data to the plurality of second devices. The second device comprises a Bluetooth communication module, and the working mode of the second device is in the second mode.
And S408, the first equipment is connected with the network according to the first network connection information.
In this embodiment, when the first device is not the preset device, it is indicated that the first device is only operated in the first mode.
In one possible implementation, the first device connects to the network according to the first network connection information. Specifically, the first device is connected with the Wi-Fi network according to the SSID and the password corresponding to the target router.
And S409, judging whether the first equipment is successfully connected with the network, if so, executing S410, and if not, executing S411.
Based on step SS408, the first device connects to the Wi-Fi network according to the SSID and password corresponding to the target router. Considering that the networking result of the first device connecting to the Wi-Fi network is a connection failure due to various factors, it may be further determined that the first device selects an appropriate networking mode to access the network according to the networking result of the first device, which may enhance the network error correction capability of the first device.
And judging whether the first equipment is successfully connected with the network, if so, executing S410, and if not, executing S411.
S410, determining that the first equipment is accessed to the network.
And when the first equipment is determined to be successfully connected with the network, indicating that the first equipment is also successfully accessed into the Wi-Fi network.
S411, the first device is connected with the network according to the second network connection information.
In this embodiment, the first device connects to the network according to the second network connection information. Specifically, the first device establishes a bluetooth connection according to the bluetooth network distribution information to perform bluetooth Mesh networking.
The communication method provided by the embodiment of the application comprises the following steps: and the first equipment and the third equipment establish connection through a second networking mode. And receiving configuration information sent by the third device, wherein the configuration information comprises first network connection information corresponding to the first networking mode and second network connection information corresponding to the second networking mode. And if the networking mode of the first equipment is determined to be the first networking mode, executing the operation of judging whether the first equipment is preset equipment. And if the first equipment is preset equipment, switching the first equipment from the first mode to a target mode. The first device accesses the network according to the first network connection information. The first device transmits data to the second device in the target mode, wherein the second device is in the second mode. And if the first equipment is determined not to be the preset equipment, the first equipment is connected with the network according to the first network connection information. And if the first equipment is successfully connected with the network, determining that the first equipment is accessed to the network. Or if the first equipment fails to connect the network, connecting the network according to the second network connection information. And if the networking mode of the first equipment is determined to be the second networking mode, accessing the network according to the second network connection information. The first device is converted from the first mode to the target mode and used as a Bluetooth gateway to establish Bluetooth communication with the second device and transmit data to the second device, so that the coverage range of the network is further expanded, and more devices can surf the internet in a flexible mode. The other devices are all devices comprising Bluetooth communication modules and can be located in the coverage range of a Wi-Fi network or out of the coverage range of the Wi-Fi network. Meanwhile, according to the networking result of the first equipment accessing the network in the first networking mode, the first equipment is controlled to switch the networking mode, and the second networking mode is tried to access the network, so that the possibility of successful networking of the first equipment is further improved, and the network error correction capability is enhanced.
Based on the above embodiments, the following further introduces a communication method provided by the present application with reference to a specific example, and introduces with reference to fig. 5, where fig. 5 is a schematic diagram of the communication method provided by the present application.
As shown in fig. 5, in the Wi-Fi network coverage, one Wi-Fi router and nine devices, STA1-STA9, are included. The device STA1-STA3 and the device STA5-STA9 are all formed by a Wi-Fi router to successfully establish Wi-Fi connection, and the device STA4 and the Wi-Fi router are not formed by Wi-Fi connection successfully, so that the device STA1-STA3 and the device STA5-STA9 can both perform data transmission with the Wi-Fi router, and the device STA4 cannot perform data transmission with the Wi-F router.
The STA5 establishes a Bluetooth Mesh network as a Bluetooth gateway through a Bluetooth Mesh networking mode with six devices including Bluetooth communication modules while realizing Wi-Fi networking. Among the six devices including the bluetooth communication module are STA10-STA16, respectively. In addition, since the device STA4 has failed to access the Wi-Fi network, the device STA4 attempts to network by bluetooth. After device STA4 successfully establishes a bluetooth connection with STA5, device STA4 may perform data transmission with STA 5.
It should be noted that, as shown in fig. 5, the bluetooth Mesh network includes devices STA4-STA5 and STA10-STA16, and device STA5 is implemented as a bluetooth gateway in the bluetooth Mesh network to provide network services for devices STA4 and STA10-STA 16. And data transmission can be realized among all devices in the Bluetooth Mesh network in a Bluetooth connection mode.
Fig. 6 is a schematic structural diagram of a communication device according to an embodiment of the present application. As shown in fig. 6, the apparatus 600 includes: a first processing module 601, a second processing module 602, and a transmission module 603.
A first processing module 601, configured to switch a first mode to a target mode when a first device meets a preset condition, where the target mode simultaneously supports the first mode and a second mode, the first mode is a mode supporting network connection in a first networking manner, and the second mode is a mode supporting network connection in a second networking manner;
a second processing module 602, configured to access a network by the first device according to the first network connection information;
a transmitting module 603, configured to transmit, by the first device, data to a second device in the target mode, where the second device is in the second mode.
In one possible design, the preset conditions include: the first equipment is preset equipment;
the first processing module 601 is specifically configured to:
judging whether the first equipment is the preset equipment or not, wherein the preset equipment is used as a gateway;
and if so, switching the first equipment from the first mode to the target mode.
In one possible design, the first processing module 601 is specifically configured to:
judging whether the identifier of the first device is a preset identifier or not, or judging whether the first device comprises the preset identifier or not;
if so, determining that the first equipment is the preset equipment.
In one possible design, the second processing module 602 is further configured to:
establishing connection with a third device through the second networking mode;
and receiving configuration information sent by the third device, wherein the configuration information includes first network connection information corresponding to the first networking mode and second network connection information corresponding to the second networking mode.
In one possible design, the second processing module 602 is further configured to:
if the networking mode of the first device is determined to be the first networking mode, executing the operation of judging whether the first device is the preset device;
and if the networking mode of the first equipment is determined to be the second networking mode, accessing the network according to second network connection information.
In a possible design, if it is determined that the first device is not the preset device, the second processing module 602 is further configured to:
the first equipment is connected with a network according to the first network connection information;
if the first equipment is successfully connected with the network, determining that the first equipment is accessed into the network; alternatively, the first and second electrodes may be,
and if the first equipment fails to be connected with the network, connecting the network according to the second network connection information.
The apparatus provided in this embodiment may be used to implement the technical solutions of the above method embodiments, and the implementation principles and technical effects are similar, which are not described herein again.
Fig. 7 is a schematic diagram of a hardware structure of a communication device according to an embodiment of the present application, and as shown in fig. 7, a communication device 700 according to the embodiment includes: a processor 701 and a memory 702; wherein
A memory 702 for storing computer-executable instructions;
the processor 701 is configured to execute the computer execution instructions stored in the memory to implement the steps performed by the communication method in the foregoing embodiments. Reference may be made in particular to the description relating to the method embodiments described above.
Alternatively, the memory 702 may be separate or integrated with the processor 701.
When the memory 702 is provided separately, the communication device further comprises a bus 703 for connecting said memory 702 and the processor 701.
An embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored, and when a processor executes the computer-executable instructions, a communication method performed by the above communication device is implemented.
An embodiment of the present application further provides a computer program product, where the program product includes: a computer program, stored in a readable storage medium, from which at least one processor of the electronic device can read the computer program, the at least one processor executing the computer program causing the electronic device to perform the solution provided by any of the embodiments described above.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules is only one logical division, and other divisions may be realized in practice, for example, a plurality of modules may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
The integrated module implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present application.
It should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
The memory may comprise a high-speed RAM memory, and may further comprise a non-volatile storage NVM, such as at least one disk memory, and may also be a usb disk, a removable hard disk, a read-only memory, a magnetic or optical disk, etc.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
The storage medium may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should 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 or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. A method of communication, comprising:
when meeting a preset condition, a first device is switched to a target mode from a first mode, wherein the target mode simultaneously supports the first mode and a second mode, the first mode is a mode supporting network connection through a first networking mode, and the second mode is a mode supporting network connection through a second networking mode;
the first equipment accesses a network according to the first network connection information;
and the first equipment transmits data to second equipment in the target mode, wherein the second equipment is in the second mode.
2. The method according to claim 1, wherein the preset condition comprises: the first equipment is preset equipment;
when the first device meets the preset condition, switching from a first mode to a target mode, including:
judging whether the first equipment is the preset equipment or not, wherein the preset equipment is used as a gateway;
and if so, switching the first equipment from the first mode to the target mode.
3. The method of claim 2, wherein the determining whether the first device is the preset device comprises:
judging whether the identifier of the first device is a preset identifier or not, or judging whether the first device comprises the preset identifier or not;
if so, determining that the first equipment is the preset equipment.
4. The method according to any one of claims 1-3, wherein the first device, before switching from the first mode to the target mode when the preset condition is met, further comprises:
establishing connection with a third device through the second networking mode;
and receiving configuration information sent by the third device, wherein the configuration information includes first network connection information corresponding to the first networking mode and second network connection information corresponding to the second networking mode.
5. The method of claim 4, wherein after receiving the network configuration information sent by the third device, the method further comprises:
if the networking mode of the first device is determined to be the first networking mode, executing the operation of judging whether the first device is the preset device;
and if the networking mode of the first equipment is determined to be the second networking mode, accessing the network according to second network connection information.
6. The method according to any of claims 1-3, wherein if it is determined that the first device is not the preset device, the method further comprises:
the first equipment is connected with a network according to the first network connection information;
if the first equipment is successfully connected with the network, determining that the first equipment is accessed into the network; alternatively, the first and second electrodes may be,
and if the first equipment fails to be connected with the network, connecting the network according to the second network connection information.
7. A communications apparatus, comprising:
the first processing module is used for switching a first mode into a target mode when a first device meets a preset condition, wherein the target mode simultaneously supports the first mode and a second mode, the first mode is a mode supporting network connection through a first networking mode, and the second mode is a mode supporting network connection through a second networking mode;
the second processing module is used for the first equipment to access the network according to the first network connection information;
a transmission module, configured to transmit, by the first device, data to a second device in the target mode, where the second device is in the second mode.
8. A communication device, comprising:
a memory for storing a program;
a processor for executing the program stored by the memory, the processor being configured to perform the method of any of claims 1 to 6 when the program is executed.
9. A computer-readable storage medium comprising instructions which, when executed on a computer, cause the computer to perform the method of any one of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program realizes the method of any one of claims 1 to 6 when executed by a processor.
CN202110915915.5A 2021-08-10 2021-08-10 Communication method and device Pending CN113645301A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110915915.5A CN113645301A (en) 2021-08-10 2021-08-10 Communication method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110915915.5A CN113645301A (en) 2021-08-10 2021-08-10 Communication method and device

Publications (1)

Publication Number Publication Date
CN113645301A true CN113645301A (en) 2021-11-12

Family

ID=78420599

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110915915.5A Pending CN113645301A (en) 2021-08-10 2021-08-10 Communication method and device

Country Status (1)

Country Link
CN (1) CN113645301A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114422485A (en) * 2022-01-27 2022-04-29 上海顺舟智能科技股份有限公司 Firmware updating method and device for Zigbee wireless intelligent equipment
JP7292556B1 (en) 2022-10-11 2023-06-16 三菱電機株式会社 Extended terminal device, communication system, communication method and communication program

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106793001A (en) * 2017-01-19 2017-05-31 深圳市民益得信息科技有限公司 A kind of cordless communication network network-building method and device
CN108199905A (en) * 2018-02-01 2018-06-22 乐鑫信息科技(上海)有限公司 MESH network and its MESH equipment and with network method
US20180198641A1 (en) * 2017-01-11 2018-07-12 Smartiply, Inc. Intelligent Multi-Modal IOT Gateway
CN108667862A (en) * 2017-03-28 2018-10-16 腾讯科技(深圳)有限公司 Terminal node access network, gateway realization method and device in Internet of Things application
CN109041062A (en) * 2018-07-03 2018-12-18 阿里巴巴集团控股有限公司 A kind of method for network access and device
CN109890112A (en) * 2019-03-21 2019-06-14 深圳市酷搏创新科技有限公司 Control method, intelligent illuminating system and the Internet of things system of intelligent illuminating system
CN110045705A (en) * 2019-04-29 2019-07-23 生迪智慧科技有限公司 Using the intelligent home furnishing control method of heterogeneous wireless network, apparatus and system
CN110087283A (en) * 2018-05-25 2019-08-02 东莞市骁卫物联科技有限公司 A kind of intelligent lock system application method and device based on multi-mode wireless transmission mode
CN112637874A (en) * 2020-12-22 2021-04-09 上海汉枫电子科技有限公司 BLE Mesh-based intelligent device network distribution method
CN112866967A (en) * 2021-01-21 2021-05-28 北京自如信息科技有限公司 Networking method and device of ZigBee device and computer device
CN113132332A (en) * 2019-12-31 2021-07-16 佛山市云米电器科技有限公司 Networking login method, household appliance equipment, household appliance system and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180198641A1 (en) * 2017-01-11 2018-07-12 Smartiply, Inc. Intelligent Multi-Modal IOT Gateway
CN106793001A (en) * 2017-01-19 2017-05-31 深圳市民益得信息科技有限公司 A kind of cordless communication network network-building method and device
CN108667862A (en) * 2017-03-28 2018-10-16 腾讯科技(深圳)有限公司 Terminal node access network, gateway realization method and device in Internet of Things application
CN108199905A (en) * 2018-02-01 2018-06-22 乐鑫信息科技(上海)有限公司 MESH network and its MESH equipment and with network method
CN110087283A (en) * 2018-05-25 2019-08-02 东莞市骁卫物联科技有限公司 A kind of intelligent lock system application method and device based on multi-mode wireless transmission mode
CN109041062A (en) * 2018-07-03 2018-12-18 阿里巴巴集团控股有限公司 A kind of method for network access and device
CN109890112A (en) * 2019-03-21 2019-06-14 深圳市酷搏创新科技有限公司 Control method, intelligent illuminating system and the Internet of things system of intelligent illuminating system
CN110045705A (en) * 2019-04-29 2019-07-23 生迪智慧科技有限公司 Using the intelligent home furnishing control method of heterogeneous wireless network, apparatus and system
CN113132332A (en) * 2019-12-31 2021-07-16 佛山市云米电器科技有限公司 Networking login method, household appliance equipment, household appliance system and storage medium
CN112637874A (en) * 2020-12-22 2021-04-09 上海汉枫电子科技有限公司 BLE Mesh-based intelligent device network distribution method
CN112866967A (en) * 2021-01-21 2021-05-28 北京自如信息科技有限公司 Networking method and device of ZigBee device and computer device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杨森;李月娥;: "基于ZigBee与WIFI的无线传感器网关设计" *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114422485A (en) * 2022-01-27 2022-04-29 上海顺舟智能科技股份有限公司 Firmware updating method and device for Zigbee wireless intelligent equipment
CN114422485B (en) * 2022-01-27 2023-11-24 上海顺舟智能科技股份有限公司 Firmware updating method and device for Zigbee wireless intelligent device
JP7292556B1 (en) 2022-10-11 2023-06-16 三菱電機株式会社 Extended terminal device, communication system, communication method and communication program
WO2024079788A1 (en) * 2022-10-11 2024-04-18 三菱電機株式会社 Extension terminal device, communication system, communication method, and communication program

Similar Documents

Publication Publication Date Title
US10917925B2 (en) System and method for setting mesh networks with a generic gateway node
Casetti et al. Content-centric routing in Wi-Fi direct multi-group networks
CN111543080B (en) System and method for network topology management
US7907936B2 (en) Communication system, wireless-communication device, and control method therefor
US10680939B2 (en) Hybrid flood-relaying and routing mesh networks
WO2016081734A2 (en) Techniques to support heterogeneous network data path discovery
CN113691969A (en) Communication method and device
WO2008022059A2 (en) Route tree building in a wireless mesh network
JP7455984B2 (en) Inter-donor topology adaptation within the access backhaul integration network
KR20190030653A (en) A method for establishing a network cluster between network devices
EP3059993B1 (en) Method, base station and terminal for controlling link in cooperative communication
CN113645301A (en) Communication method and device
EP4185009A1 (en) Packet forwarding method, apparatus and system
CN113645298A (en) Communication method and device of Internet of things equipment
CN115707149A (en) Communication method and communication device
WO2019136606A1 (en) Relay transmission method and relay node
Campos et al. Network infrastructure extension using 802.1 D‐based wireless mesh networks
KR20170132608A (en) Signaling method for session connection, and apparatus implementing the same method
CN109873763B (en) Communication method and device
CN113645072A (en) Main/standby gateway deployment method and device
TW202110208A (en) Method and apparatus for forwarding data among network nodes in maritime network
Crowe et al. Continual 4g cell coverage for the nodes during a gateway failure using batman-adv
WO2023184542A1 (en) Method and apparatus for configuring information, and communication system
WO2021163861A1 (en) Communication method and device
WO2023197105A1 (en) Information configuration method and apparatus, and communication system

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