CN114980237A - Wireless networking method, wireless device and storage medium - Google Patents

Wireless networking method, wireless device and storage medium Download PDF

Info

Publication number
CN114980237A
CN114980237A CN202110200901.5A CN202110200901A CN114980237A CN 114980237 A CN114980237 A CN 114980237A CN 202110200901 A CN202110200901 A CN 202110200901A CN 114980237 A CN114980237 A CN 114980237A
Authority
CN
China
Prior art keywords
wireless network
equipment
anchor point
local wireless
network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110200901.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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN202110200901.5A priority Critical patent/CN114980237A/en
Priority to PCT/CN2022/076831 priority patent/WO2022179447A1/en
Publication of CN114980237A publication Critical patent/CN114980237A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/08Reselecting an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface

Abstract

The embodiment of the invention provides a wireless networking method, wireless equipment and a storage medium, wherein after a first local wireless network is established by first equipment, a standby anchor point can be determined, an anchor point switching message is sent to second equipment serving as the standby anchor point, and the second equipment is instructed to be switched to a new anchor point of the first local wireless network. And then, the first equipment sends a switching message to each node equipment in the first local wireless network, indicates the node equipment to store the first network identifier and quits the first local wireless network. And the second equipment creates the first local wireless network again by using the first network identification and accepts the local wireless equipment as node equipment for access. The anchor point switching process can be mutually supported by former anchor point, reserve anchor point and node equipment and realize automatically, no matter be the user of former anchor point, reserve anchor point or ordinary node equipment, all need not carry out manually operation, and this has reduced user manually operation's burden, has promoted the degree of automation and the intelligent degree of wireless network deployment.

Description

Wireless networking method, wireless device and storage medium
Technical Field
The embodiments of the present invention relate to, but are not limited to, the field of wireless communications, and in particular, but not limited to, a wireless networking method, a wireless device, and a storage medium.
Background
Currently, communication between mobile wireless devices is mainly connected by an infrastructure communication network such as a base station, so that communication between mobile terminals faces a huge obstacle when a signal of a wireless base station is uncovered or a covered signal is weak, or when an infrastructure such as a base station is seriously damaged. In order to solve the problem, a currently proposed solution is to create a local wireless network by one mobile terminal for other mobile terminals to access, so as to implement communication between local mobile terminals. When the mobile terminal creating the local wireless network is low in power or needs to move away from other mobile terminals in the network, users of other mobile terminals need to manually quit the local wireless network and manually create a new local wireless network again. The implementation of the wireless networking scheme depends on a large amount of manual operations of users, and increases the operation burden of the users.
Disclosure of Invention
The embodiment of the invention provides a wireless networking method, wireless equipment and a storage medium, and mainly solves the technical problems that: in the related wireless networking scheme, a user is required to perform a large amount of manual operation, and the automation degree is low.
To solve the foregoing technical problem, an embodiment of the present invention provides a wireless networking method, including:
a first device determines a standby anchor point from node devices of a first local wireless network, wherein the first device is a current anchor point of the first local wireless network, and a network identifier of the first local wireless network is a first network identifier;
the first equipment sends an anchor point switching message to a standby anchor point of the first local wireless network, wherein the anchor point switching message is used for indicating the standby anchor point to serve as a new anchor point of the first local wireless network;
the first device sends a switching message to a node device in the first local wireless network, wherein the switching message is used for instructing the node device to save the first network identifier and exit the first local wireless network;
and the first equipment searches and accesses a first local wireless network created by the standby anchor point according to the first network identification.
The embodiment of the invention also provides a wireless networking method, which comprises the following steps:
the method comprises the steps that a second device receives an anchor point switching message sent by an anchor point of a first local wireless network, wherein the anchor point switching message is used for indicating the second device to be switched to a new anchor point of the first local wireless network, and a network identifier of the first local wireless network is a first network identifier;
the second equipment saves the first network identification and exits the first local wireless network;
the second equipment reestablishes the first local wireless network according to the first network identification;
and the second equipment accepts local wireless equipment as node equipment of the first local wireless network to access the first local wireless network.
The embodiment of the invention also provides a wireless networking method, which comprises the following steps:
the third equipment receives a switching message sent by an anchor point in a first local wireless network, wherein the switching message is used for representing that the anchor point of the first local wireless network is to be switched, and the network identifier of the first local wireless network is a first network identifier;
the third equipment saves the first network identification according to the switching message and quits the first local wireless network;
and the third equipment searches and accesses the first local wireless network created by the new anchor point according to the first network identification.
The embodiment of the invention also provides wireless equipment, which comprises a processor, a memory and a communication bus;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is configured to execute a first wireless networking program stored in the memory to implement the steps of the first wireless networking method; or, the processor is configured to execute a second wireless networking program stored in the memory, so as to implement the second wireless networking method; or, the processor is configured to execute a third wireless networking program stored in the memory, so as to implement the steps of the third wireless networking method.
The embodiment of the present invention further provides a storage medium, where at least one of a first wireless networking program, a second wireless networking program, and a third wireless networking program is stored in the storage medium, where the first wireless networking program may be executed by one or more processors to implement the steps of the first wireless networking method; the second wireless networking program may be executed by one or more processors to implement the steps of the second wireless networking method; the third wireless networking procedure may be executed by one or more processors to implement the steps of the third wireless networking method described above.
According to the wireless networking method, the wireless device and the storage medium provided by the embodiment of the invention, after the first device is used as an anchor point to create the first local wireless network, the spare anchor point can be determined, and then an anchor point switching message is sent to the second device used as the spare anchor point in the anchor point switching process so as to indicate that the second device is switched to a new anchor point of the first local wireless network. And then, the first device sends a switching message to each node device in the first local wireless network, and after each node device in the first local wireless network receives the switching message, the network identifier of the first local wireless network, namely the first network identifier, is stored according to the indication of the switching message, and the first local wireless network is exited. And the second equipment reestablishes the first local wireless network with the network identifier as the first network identifier according to the indication of the anchor point switching message, and receives the local wireless equipment as the node equipment of the first local wireless network to access the first local wireless network in the subsequent process. In the wireless networking scheme provided by the embodiment of the invention, in the anchor point switching process, the original anchor point, the standby anchor point and the common node equipment in the local wireless network can be matched with each other to realize automatically, and no matter the user is the user of the original anchor point, the standby anchor point or the common node equipment, the manual operation is not needed, so that the manual operation burden of the user is reduced, and the automation degree and the intelligent degree of the wireless networking are improved.
Additional features and corresponding advantages of the invention are set forth in the description which follows, and it is understood that at least some of the advantages will be apparent from the description of the invention.
Drawings
Fig. 1 is a flowchart of a wireless networking method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a first device serving as an anchor point selecting a standby anchor point according to a first embodiment of the present invention;
fig. 3 is a schematic diagram illustrating a node device near the center according to a selected location as a backup anchor point according to a first embodiment of the present invention;
fig. 4 is a flowchart of selecting a backup anchor point according to an active range according to an embodiment of the present invention;
fig. 5 is a flowchart illustrating an anchor point determining whether a spare anchor point is provided as a new anchor point according to an embodiment of the present invention;
fig. 6 is a schematic diagram illustrating a process performed by the first device before determining the anchor point according to the second embodiment of the present invention;
fig. 7 is a flowchart illustrating a node device communicating with another node device via an anchor point according to a second embodiment of the present invention;
fig. 8a is a schematic diagram of a display interface of a wireless device according to a second embodiment of the present invention;
fig. 8b is a schematic view of another display interface of the wireless device according to the second embodiment of the present invention;
fig. 9 is a flowchart of information communication between an anchor point and a remote wireless network according to a third embodiment of the present invention;
fig. 10 is a schematic diagram of a home wireless network and a remote wireless network according to a third embodiment of the present invention;
fig. 11 is a flowchart of switching between a local wireless network connection and a remote wireless network connection by an anchor point according to a third embodiment of the present invention;
fig. 12 is a flowchart of a wireless device accessing or creating a local wireless network according to the fourth embodiment of the present invention;
fig. 13 is a flowchart of switching between a local wireless network connection and a remote wireless network connection by an anchor point according to the fourth embodiment of the present invention;
fig. 14 is a flowchart of selecting a backup anchor point and performing anchor point switching according to an anchor point provided in the fourth embodiment of the present invention;
fig. 15 is a flowchart illustrating a specific process of performing anchor point switching by using an anchor point according to a fourth embodiment of the present invention;
fig. 16 is a schematic hardware structure diagram of a wireless device according to a fifth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention are described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The first embodiment is as follows:
with the continuous development of wireless technology, the wireless network rate is continuously improved, and especially, the performance of a 5G wireless network is greatly improved compared with that of a 4G wireless network. Services provided based on a wireless network are continuously expanded, for example, household intelligent equipment is continuously flooded to bring about the birth of internet of things with all things interconnected. The Internet of Things (Internet of Things, IoT) originates from the media field, is the third revolution of the information technology industry, and is a way to connect any object with a network through information sensing equipment according to an agreed protocol, and the object performs information exchange and communication through an information propagation medium, so as to realize functions of intelligent identification, positioning, tracking, supervision, and the like. With the continuous development of the internet of things, the interconnection protocol between the devices is also developed greatly, so that a foundation is laid for the local interconnection of the devices or the interconnection with a remote end.
In general, mobile terminals establish communication connection with each other through a base communication network such as a base station, thereby realizing wireless communication. Still other solutions integrate an intercom module into a mobile terminal, such as a cell phone with intercom capabilities. However, both of these wireless communication schemes have significant drawbacks: for example, for the former, such a communication scheme does not meet the requirements in the case of no base station or poor signal coverage of the base station; for the latter, after the interphone module is integrated, the volume and the power consumption of the mobile terminal are both increased significantly, which is not in line with the development trend of portability and low power consumption of the mobile terminal. Moreover, the communication protocol relied on by the conventional interphone module may be eliminated later, which results in the loss of the foundation for the implementation of the latter wireless communication scheme.
In this embodiment, the wireless device may create a local wireless network for other local wireless devices to access. Since other devices access the local wireless network through the wireless device that created the local wireless network, the wireless device that created the local wireless network is referred to herein as an "anchor point" of the local wireless network, and the other wireless devices that access the local wireless network are referred to as "node devices.
In the related art, after the wireless device a creates the local wireless network N0, other wireless devices (e.g., wireless devices b, c, d) in the vicinity of a can access the local wireless network N0 through a. However, if a is low enough to support continued maintenance of the local wireless network N0, users of b, c, d may be required to manually disconnect the wireless connection between each wireless device and a. Then these users agree together to select a new anchor point from the three wireless devices b, c, d and re-create the local wireless network N1, where assuming that c is decided as the new anchor point after the users agree, the user of c can manually create the local wireless network N1 on c, then the users of b and d manually control the wireless devices to search for the local wireless network N1 and control b and d to access the local wireless network N1, respectively. Of course, if the remaining power of a supports wireless communication, the user of a may also control a to search for and access the local wireless network N1.
It can be seen that in the above wireless networking scheme, once an original anchor point cannot maintain a created local wireless network, it is necessary that users of wireless devices in the local wireless network perform manual operations of different degrees, respectively, to establish a new local wireless network. The method brings huge time and energy consumption for users, and especially in the occasions such as rescue after disaster and the like, the time consumption of wireless networking seriously influences the promotion of other work of the users.
In view of the above problem, the present embodiment provides a wireless networking method, please refer to the flowchart of the wireless networking method shown in fig. 1:
s102: the first device determines a backup anchor point from node devices of the first local wireless network.
In this embodiment, the first local wireless network is a local wireless network whose network identifier is the first network identifier, and is originally created by the first device, and therefore, the first device is an anchor point of the first local wireless network before the anchor point is switched. In this embodiment, the wireless devices other than the anchor point in the first local wireless network are referred to as "node devices", and therefore, the node devices are accessed to the first local wireless network through the first device.
As an anchor point of the first local wireless network, the first device may determine a spare anchor point of the first local wireless network, where the spare anchor point is a new anchor point after the anchor point switching process is completed, that is, a node device that re-creates the first local wireless network in the anchor point switching process. It is understood that the first device may temporarily determine the spare anchor point when the anchor point needs to be switched, or may determine the spare anchor point in advance before the need of switching the anchor point exists. In some examples, the backup anchor point for the first local wireless network may be specified by a user, for example, the backup anchor point may be specified by a user at the time of creation of the first local wireless network or after the creation is completed, in which case the first device may determine the backup anchor point based on pre-stored network configuration information. In still other examples, the first device may itself select the alternate anchor point:
in some examples of this embodiment, the first device may select the backup anchor point according to the location information of each node device, for example, please refer to fig. 2:
s202: the first device obtains location information of a node device in a first local wireless network.
In some examples of this embodiment, the first device may obtain location information of each node device from each node device, for example, each node device in the first local wireless network may obtain its own real-time location based on satellite positioning or the like, and transmit the real-time location to the first device. It will be appreciated that since the first local wireless network is likely to be constantly moving, e.g., the first local wireless network is created by a plurality of teams of travel teams, the devices in the first local wireless network will move as the teams move. Therefore, in order to be able to grasp the real-time position of each node apparatus, the first apparatus may periodically acquire the position information of each node apparatus; in some other scenarios, the first device may instruct each node device to report its real-time location only when the first device needs to apply the location information of each node device in the first local wireless network.
In some examples, the first device may perform positioning on each device in the first local wireless network by itself, for example, the first device performs positioning on each device in the first local wireless network by using any one of a multilateral positioning manner, a triangulation positioning manner, and a pole manner, so as to obtain the location information of each node device.
It should be understood that, in the above example, the first device may acquire location information of each node device in the first local wireless network, but in some other examples, the first device may not acquire location information of all node devices in the first local wireless network, for example, if one node fails to report its location information to the first device, the first device may also determine the backup anchor point according to location information of the other node devices. For another example, if the first device locates only some node devices in the first local wireless network, the first device cannot acquire the location information of another part of node devices.
S204: and the first equipment determines the standby anchor point according to the position information of the node equipment.
After the first device acquires the position information of the node device, the spare anchor point can be determined according to the position information. In some examples of this embodiment, the first node device may directly select a node device whose current location is central among the devices of the first local wireless network as the standby anchor point. In some examples of this embodiment, the first device may determine, as the backup anchor point, a node device having a larger active range according to the historical location information and the current location information of each node device.
If the first device determines, according to the location information of each node device, that the node device located at the center among the devices of the first local wireless network is the standby node device, please refer to fig. 3, the first device may first calculate the distance between each two node devices, and then determine two node devices that are farthest from each other (for example, node devices b and c in fig. 3, where the distance between the two node devices is d 1). Subsequently, the first device may determine a midpoint O of a connection line between the two node devices, and select a node device closest to the midpoint O from the other node devices, such as a node device e shown in fig. 3, where the node device e may be regarded as a node device located at the center among the node devices of the first local wireless network. Of course, it will be understood by those skilled in the art that the manner of determining the node apparatus at the center is not limited to this one.
In some examples, if the first device has sufficient power, after selecting the node device located at the center among the node devices in the first local wireless network in the manner described above, the distance d2 between the first device and the center node device may be further determined, a ratio of d1 to d2 may be determined, and whether the center node device is selected as the anchor point for standby may be determined according to a magnitude relationship between the ratio and a preset ratio: if the calculated ratio is larger than the preset ratio, the central node equipment is used as a standby anchor point; otherwise, the current anchor point still serves as the anchor point. In an example of the present embodiment, the preset ratio is 0.1, but it can be understood by those skilled in the art that the size of the preset ratio can be flexibly set, and is not limited to the value of 0.1. It should be appreciated that the degree of sensitivity of the anchor point switching may be controlled by adjusting the size of the preset ratio.
If the first device determines, according to the location information of each node device, the node device with the largest activity range among the devices in the first local wireless network as the standby node device, please refer to the flowchart shown in fig. 4:
s402: the first device determines a first node device with the largest recent activity range and a second node device with the largest historical accumulated activity range.
After the first device acquires the location information of each node device each time, it may determine, according to the current location information and the latest historical location information of the node device, the activity range of the node device in the latest positioning cycle, that is, the latest activity range of the node device, for example, for the node device a, the latest historical location information is (x1, y1), and the current location information is (x2, y2), and then the latest activity range of the node device a is the distance between the location point (x2, y2) and the location point (x1, y 1). By comparing the latest activity ranges of the node devices, the first device may select the node device with the largest latest activity range, that is, the first node device.
On the other hand, the first device may determine the historical cumulative activity range for each node device, for example, if positioning is performed four times in total after the first device creates the first local wireless network, the first device may acquire three recent activity ranges for the same node device, and the sum of the three recent activity ranges is the historical cumulative activity range of the node device. By comparing the historical cumulative activity ranges of the node devices, the first device may select the node device with the largest historical cumulative activity range, that is, the second node device.
S404: the first device determines whether the first node device is the same as the second node device.
If yes, the process proceeds to S406, otherwise, the process proceeds to S408.
S406: the first device selects the node device as a backup anchor.
Because the same node device is the node device with the largest historical accumulated activity range and the node device with the largest recent activity range, the node device is the node device with the widest activity range and can be used as a standby anchor point.
S408: the first device determines the anchor point integrals of the two node devices, respectively.
If the first node device and the second node device are not the same, the first device may determine anchor point integrals of the first node device and the second node device, respectively, for example, the first device obtains the recent activity ranges and the historical cumulative activity ranges of the two node devices, respectively, assuming that the recent activity ranges of the first node device and the second node device are C1 and C2, respectively, and the historical cumulative activity ranges of the first node device and the second node device are S1 and S2, respectively. The weights of the recent activity range and the historical cumulative activity range when calculating the anchor point integral are W1 and W2, respectively, and then the anchor point integral T1 of the first node device and the anchor point integral T2 of the second node device are:
T1=C1*W1+S1*W2;
T2=C2*W1+S2*W2。
in some examples of this embodiment, the value of W1 may be 0.7 and the value of W2 may be 0.3. In the embodiment, the anchor point integral is calculated by combining the recent activity range and the historical accumulated activity range, so that the influence caused by accidental positioning errors is reduced, and frequent switching of anchor points is inhibited.
S410: the first device selects one of the two node devices having a larger anchor point integral as a backup anchor point.
The first device compares the values of T1 and T2 and selects the first node device as a backup anchor point if T1 is greater than T2; and the negative one selects the second node equipment as the standby anchor point.
In some examples of this embodiment, when determining the backup anchor point, the first device may consider not only the location information of the node device, but also other information, for example, the first device may also consider an operating mode of the first local wireless network, optionally, the operating mode of the first local wireless network may be divided into a first operating mode and a second operating mode, and in an example of this embodiment, when the operating mode of the first local wireless network is the first operating mode, the first device determines, as the backup node device, a node device that is located in the center among the devices of the first local wireless network according to the location information of each node device. The first mode of operation may be a travel mode, suitable for use by a team traveling. In an example of this embodiment, when the operation mode of the first local wireless network is the second operation mode, the first device determines, as the standby node device, a node device with the largest activity range among the devices of the first local wireless network according to the location information of the node devices. The second working mode can be an emergency mode and is suitable for being used in a post-disaster rescue scene.
It is to be understood that, in some other examples, the first device may also select the backup anchor point according to device configuration information of each node device, where the device configuration information includes, but is not limited to, at least one of a remaining power of the node device, a capability of the node device to create a wireless network, and the like. Or the first device may select the backup anchor point in combination with location information, device configuration information of the respective node devices and even further in combination with an operating mode of the first local wireless network.
S104: and the first equipment sends an anchor point switching message to the standby anchor point of the first local wireless network.
After determining the backup anchor point, the first device may send an anchor point switching message to the backup anchor point, where the anchor point switching message is used to notify the backup anchor point to switch an anchor point called a first local wireless network in a subsequent process, in other words, the first device requires that the backup anchor point reestablish the first local wireless network after disconnecting from the first device.
In some examples of this embodiment, when the first device selects the backup anchor point, the device configuration information of each node device is not considered, and therefore, the first device cannot determine whether the device configuration information of the backup anchor point selected by the first device supports the backup anchor point as the anchor point, and therefore, in some examples of this embodiment, after the first device determines the backup anchor point, before sending the anchor point switching message to the backup anchor point, it may also determine whether the backup anchor point is suitable as a new anchor point, please refer to fig. 5:
s502: the first device sends a device configuration information request message to the standby anchor point.
The configuration information request warrant is used to request the backup anchor point to feed back the device configuration information thereof, and as can be seen from the foregoing description, the device configuration information includes: the standby anchor point creates at least one of the capability of the wireless network and the current remaining power.
S504: and the first equipment receives equipment configuration information sent by the standby anchor point according to the configuration information request message.
S506: and the first equipment judges whether the standby anchor point has the capacity of being used as the new anchor point of the first local wireless network according to the equipment configuration information of the standby anchor point.
If yes, go to step S508, otherwise go to step S510. It should be appreciated that if the standby anchor does not have the capability to create a wireless network, the standby anchor is absolutely unable to act as a new anchor. If the current remaining power of the spare anchor is too low, it is not suitable as a new anchor.
S508: and the first equipment sends an anchor point switching message to the standby anchor point.
S510: the first device reselects the alternate anchor point.
The process of the first device reselecting the spare anchor point has been described in detail previously, and is not described in detail here. After selecting a new anchor point, the first device may start to execute the flow of fig. 5 again from S502.
S106: the first device sends a handover message to a node device in the first local wireless network.
After sending the anchor switching packet to the backup anchor, the first device may send a switching message to the node device in the first local wireless network, where the switching message is used to instruct each node device in the first local wireless network to store a network identifier of the first local wireless network, that is, the first network identifier, and disconnect the first local wireless network from the node device.
Because each node device in the first local wireless network will disconnect from the first local wireless network after receiving the switching message, and the first device needs to ensure that the standby anchor can recreate a new first local wireless network in time after the first local wireless network is disconnected, the first device needs to ensure that the standby anchor has already received the anchor switching message before, and the preparation for switching the anchor is made. Therefore, in some examples of this embodiment, after the first device sends the anchor handover message to the standby anchor, before sending the handover message to the node device in the first local wireless network, it needs to ensure that it receives the handover confirmation message from the standby anchor.
S108: the second device and the third device save the first network identification and exit the first local wireless network.
In this embodiment, the backup anchor point selected by the first device is the second device, and for convenience of description, a node device other than the first device and the second device in the first local wireless network is referred to as a "third device" herein. When the first device sends the switching message, the oriented objects are all node devices, that is, the oriented objects include both the second device and the third device, so that after the second device and the third device receive the switching message, the first network identifier is stored according to the instruction of the switching message, and the first local wireless network exits.
It should be appreciated that after the first device sends the handover message, it may also itself push out the first local wireless network.
S110: the second device recreates the first local wireless network based on the first network identification.
The second device, after exiting the first local wireless network maintained by the first device, will recreate the first local wireless network, that is, the second device will recreate a local wireless network whose network identifier is the first network identifier. In some examples of the embodiment, when the anchor point creates the local wireless network, it is usually created by using a high frequency channel.
S112: the first device and the third device search and access a first local wireless network created by the second device according to the first network identification.
The second device may wait for access by the local wireless device after re-creating the first local wireless network as a new anchor point. For the first device (i.e. the original anchor point) and the third device, the first local wireless network may be searched by using the first network identifier saved in advance, and after the first local wireless network is searched, the access request may be sent to the second device, so as to access the first local wireless network.
It cannot be excluded that some problems may occur in the process of recreating the first local wireless network by the second device, which results in that the first local wireless network cannot be reconstructed, and therefore, the first device and the third device always face the result of a search failure when searching for the first local wireless network according to the first network identifier. In some examples of this embodiment, at least one of the first device and the third device may recreate a local wireless network by itself in the event that the first local wireless network is not searched. In an example, one of the first device and the third device may select a high-frequency channel with a communication quality meeting a requirement by scanning the high-frequency channel to create a local wireless network, and it is understood that a network identifier of the created first local wireless network may continue to be the first network identifier or may no longer be the first network identifier, for example, one device may create a second local wireless network with the second network identifier. In some examples of this embodiment, the device of the second device and the third device may create the local wireless network by itself after the number of times of failure to search for the first local wireless network according to the first network identifier reaches a preset number of times, and of course, this does not exclude the fact that the local wireless network is created by itself immediately after the search fails once. After an anchor creates a local wireless network, it may wait for a local wireless device to search for and join the local wireless network.
In the wireless networking method provided by this embodiment, when a device is not suitable for being resumed as an anchor point of a local wireless network, it may determine a spare anchor point and instruct the spare anchor point to create a local wireless network with the same network identifier after exiting the local wireless network; on the other hand, the anchor point can also send a switching message to the node devices in the local wireless network, so that other devices except the standby anchor point in the local wireless network can re-search and join the local wireless network with the same network identifier after exiting the original local wireless network, and thus, the anchor point of one local wireless network can be migrated from one device to another device without manual participation of a user, and each node device can automatically find out a new anchor point and access the local wireless network with the same network identifier. The method not only ensures the stable operation of the local wireless network in the anchor point switching process, but also reduces the operation burden of all users of the wireless equipment in the wireless networking process, and saves the time spent by the users in managing and maintaining the local wireless network.
Example two:
based on the foregoing embodiments, the present embodiment will continue to describe a local wireless networking method:
it is understood that the procedure of the first device creating the first local wireless network may be the same as the procedure of the second device creating the first local wireless network, that is, the anchor point before the first device instructs the first device to create the first local wireless network through the anchor point switching message, and receives the access of the local wireless device to the first local wireless network through the first device after creating the first local wireless network. However, in some other examples of this embodiment, the first device may also be a wireless device that autonomously creates the first local wireless network, that is, before the first device creates the first local wireless network, no other device notifies that the first device creates the first local wireless network identified by the first network.
The following describes a procedure before the first device determines the backup anchor point from the node devices of the first local wireless network, please refer to the flowchart shown in fig. 6:
s602: the first device scans for local wireless networks through high frequency.
In this embodiment, the local wireless network is created based on the high frequency signal, so the first device can initially scan whether there is a local wireless network that can be accessed in the vicinity of itself by high frequency.
S604: the first device determines whether to scan for a local wireless network.
If the determination result is yes, S610 is executed, otherwise S606 is executed.
S606: a high frequency channel is selected to create a first local wireless network.
In this embodiment, if none of the local wireless networks of the first device is scanned, it indicates that no local wireless network exists near the first device, and therefore, the first device cannot join the created local wireless network, and only can create one local wireless network by itself. Before the first device creates the local wireless network, it needs to select the network identifier of the created local wireless network and the frequency point where the network identifier is located. In this embodiment, it is assumed that the network identifier determined by the first device is the first network identifier, and when the first device selects a frequency point of the local wireless network, the first device may scan the high-frequency channel again, select a high-frequency channel with low interference and good channel quality, and further create the first local wireless network.
S608: the first device accepts the local wireless device as a node device for accessing the first local wireless network.
After the first device creates the first local wireless network, other local wireless devices can be accepted to access the first local wireless network, and the local wireless devices accessing the first local wireless network through the first device are node devices of the first local wireless network.
S610: the first device selects to access an existing local wireless network.
It can be understood that, for an anchor point (for example, a first device before switching of the anchor point, and a second device after switching of the anchor point), because the node device is accessed into the first local wireless network through the anchor point, the anchor point may acquire relevant information of each node device, for example, acquire a device identifier of the node device (information that can uniquely distinguish one device in the first local wireless network, for example, a MAC address of the device, a name set by a user for the device, and the like), acquire a remaining power of the node device, and the like. The anchor point may associate with the node device using the acquired information, for example, mark the node device using the device identifier. The anchor point can also generate network equipment information according to the information of each equipment in the first local wireless network and transmit the network equipment information to each node equipment in the first local wireless network, so that the node equipment can know other equipment except the node equipment in the local network according to the network equipment information. In some examples of this embodiment, the network device information sent by the anchor point to the node device includes device identifiers of devices in the first local wireless network (which may include the anchor point itself), and after receiving the network device information, the node device may know which devices are in the first local wireless network. In this embodiment, after receiving the network device information, the node device may communicate with other node devices in the first local wireless network through the anchor point by using the network device information, as shown in fig. 7:
s702: and the node equipment receives the network equipment information sent by the anchor point.
In some examples of this embodiment, the network device information sent by the anchor point may further include location information of each device, so that the node device may also know a current location of each device.
It should be understood that the node device referred to herein includes the aforementioned second device and third device.
S704: the node device selects a device in the first local wireless network as a target communication object according to the network device information.
After the node device acquires the device identifier of each device in the first local wireless network, the device identifier may be displayed on the screen in a form of a list, for example, please refer to fig. 8a, where the display of the device identifier may be used for the user to know the condition of each device in the first local wireless network, and may also be used for the user to select a target communication object. Of course, it can be understood by those skilled in the art that the node device may present the network device information of the first local wireless network without adopting a list. For example, in some examples, after receiving the network device information, the node device may display the location of each device on the screen according to the location information of each device, for example, please refer to fig. 8b, and in fig. 8b, the node device may display the device identifier of each device at the corresponding location on the screen in association with each other. The user can determine the target communication object according to the mapping relation between the device identifier and the screen position and the touch position detected by the screen through the position corresponding to the touch screen and the device identifier.
It will be appreciated that in some examples, a node device designates only one device at a time as a target communication object; in other examples, the node device may also designate multiple devices as the target communication object at one time.
S706: the node device sends a communication message to the target communication object through the anchor point.
The node device may generate a communication message according to communication content, which includes but is not limited to at least one of text, file (picture, video or audio), and the like. It will be appreciated that if the target communication object selected by the node device is an anchor point, the communication message may be received directly by the target communication object; however, if the target communication object selected by the node device is not the anchor point, the communication message cannot be transmitted to the target communication object, and needs to be forwarded through the anchor point. In order for the anchor point to know, after receiving the communication message, that the communication message is not intended for itself and to know to which device the communication message should be forwarded, the node device carries the device identifier of the target communication object in the communication message when generating the communication message.
S708: and the first equipment forwards the communication information to the target communication object under the condition of determining that the equipment identification of the first equipment is not matched with the equipment identification of the target communication object.
After receiving the communication message, the first device (i.e. anchor point) extracts the device identifier carried therein, and judges whether the device identifier is matched with the device identifier of itself, if so, the target communication object of the communication message is itself; if not, the first device forwards the communication message to the corresponding device according to the carried device identifier. If the target communication object has only one object, the first device can select unicast mode for forwarding, and if the target communication objects have a plurality of objects, the first device can select multicast mode for forwarding.
In the above example, the anchor point determines whether the communication message is addressed to itself according to whether the device identifier carried in the communication message matches with the device identifier of itself, which means that the node device carries the device identifier no matter which target communication object of the communication message is when sending the communication message. However, in some examples of this embodiment, if the node device is directly sent to the anchor point, the node device may not carry the device identifier in the communication message, and if the node device is sent to another device, the node device may carry the corresponding device identifier. Thus, in these examples, the anchor point may determine whether the communication message was intended for itself based on whether the device identification was extracted from the communication message.
In the wireless networking method provided by this embodiment, communication can be implemented between devices in a local wireless network, which is beneficial for users of the devices to implement information exchange in corresponding scenes, and is convenient for risk early warning, resource allocation and the like.
Example three:
this embodiment provides a networking method, which can implement information interaction between different wireless networks, for example, please refer to fig. 9:
s902: the first device scans for a remote wireless network through low frequencies.
It is understood that there may be other wireless networks in a short distance from a local wireless network, for example, referring to fig. 10, a local wireless network a and a local wireless network B are local wireless networks located in two different places, respectively, and for the local wireless network a, the local wireless network B is a remote wireless network, and is called a "remote wireless network"; similarly, for local wireless network B, a is also a remote wireless network. Therefore, a remote wireless network is a relative concept, and for one local wireless network, the remote wireless network is another local wireless network that is at a certain physical distance from the remote wireless network.
As can be seen from the above description, the remote wireless network is essentially a local wireless network created at another location, and therefore, the remote wireless network also includes an anchor point connected to other wireless devices in the local wireless network, and in this embodiment, the anchor point of the remote wireless network is referred to as a "remote anchor point".
Fig. 10 only shows the case where two local wireless networks are close to each other and are remote wireless networks, and it is needless to say that in actual cases, two or more remote wireless networks may exist near one local wireless network.
It should be understood that, the distance between the remote wireless network and the local wireless network is usually relatively long, and therefore, for one wireless device in the local wireless network, the difficulty of communicating with the remote wireless network through a high-frequency channel may be relatively large, and therefore, in this embodiment, the wireless device in one local wireless network may communicate with the wireless device in the remote wireless network through a low frequency, because the low frequency has the advantages of interference resistance, strong penetration performance, long transmission distance, and the like. Continuing with the exemplary illustration of the first device as an anchor point for the first local wireless network in the foregoing embodiment: in the first local wireless network, the first device may discover the far-end wireless network through low frequency scanning.
S904: the first device accesses the remote wireless network through the remote anchor point.
It will be appreciated that there may not be other local wireless networks in the vicinity of one local wireless network and therefore the first device may not be able to search for a remote wireless network using a low frequency. In some scenarios, there is only one remote wireless network near the first local wireless network, and therefore, the first device can only search for one remote wireless network, in which case, if the first device wants to interact with the remote wireless network, there is no choice but to select to access the remote wireless network through the remote anchor point of the remote wireless network. In some other scenarios, there may be two or more remote wireless networks in the vicinity of the first local wireless network, and in these examples, there may be at least two remote wireless networks in the search results of the first device that are accessible to the first device, from which the first device may select one for access. In some examples of this embodiment, the first device selects by default to access the one remote wireless network with the best signal quality, and in some examples, the first device selects by default to access the one remote wireless network closest to the first device. Of course in some examples, the remote wireless network to be accessed may be selected by the user of the first device.
S906: and the first equipment performs information interaction with the far-end anchor point.
After the first device is connected with the far-end anchor point through the low frequency, the first device can communicate with the far-end anchor point to realize information interaction. In this embodiment, the information transmitted between the first device and the remote anchor point includes, but is not limited to, at least one of text, emoticons, files (audio, video, pictures, documents), and the like. In some examples, the first device and the remote anchor point may know the location of the other party, and the first device may transmit its location information to the remote anchor point, because the location information of the first device may substantially represent the overall location of the first local wireless network, and thus after receiving the location information transmitted by the first device, the remote anchor point may approximately determine the location of the first local wireless network. The method can help realize communication among two or more tour groups in mountainous area tour scenes, and is favorable for improving the safety of the tour groups. And in the rescue scene after disaster, the method is also beneficial to the communication among different rescue teams and optimizes the configuration of disaster relief resources. In some examples of this embodiment, when the anchor points of the two wireless networks transmit the location information, the anchor points may also transmit the location information of all devices in the local wireless network to the opposite end, for example, the remote anchor point may transmit all the network device information corresponding to the remote wireless network to the first device, and the network device information transmitted by the remote anchor point includes a device identifier of each device in the remote wireless network, and further, may also include the location information of each device.
In some examples of this embodiment, the first device does not support simultaneous high frequency communication and low frequency communication, and therefore, when the first device is connected to a device in the local wireless network and the first device is connected to the remote anchor, the first device cannot be connected to the remote anchor; when the first device is connected with the far-end anchor point, the node device in the first local wireless network can not be accessed into the first local wireless network. In these examples, the first device may implement the handover between the local wireless network connection and the remote wireless network connection with reference to the flow shown in fig. 11:
s1102: the first device sends a dormancy message to a node device in the first local wireless network.
When the first device is used as an anchor point to maintain the first local wireless network, if the first device has a requirement of communicating with the remote wireless network, a sleep message can be sent to the node device in the first local wireless network, wherein the sleep message is used for indicating the node device to store the first network identifier, quit the first local wireless network, and re-search for access to the first local wireless network after the preset sleep duration. After the node device receives the sleep message, the first network identifier can be stored, the first local wireless network exits, timing is started until the timing duration reaches the preset sleep duration, and the first local wireless network is searched according to the first network identifier.
S1104: the first device exits the first local wireless network and begins timing from the time of transmission of the sleep message.
After sending the sleep message, the first device may exit the first local wireless network and start timing at the same time.
S1106: the first device searches for and accesses a remote wireless network.
S1108: the first equipment carries out information interaction with a remote wireless network.
The process of the first device searching for and entering the remote wireless network and performing information interaction with the remote wireless network is not described herein again.
S1110: the first device judges whether the time difference between the current time and the sending time of the sleep message reaches a preset sleep duration.
If the determination result is yes, the first device proceeds to S1112, and if the determination result is no, the process continues to S1108.
S1112: and the first equipment disconnects with the remote wireless network, and adopts the first network identifier to recreate the first local wireless network for the node equipment to access.
After the time difference between the current time and the sending time of the dormancy message is determined to reach the preset dormancy duration, the first equipment is disconnected from the speech segment wireless network, the first local wireless network is reestablished by adopting the first network identifier, and after the first local wireless network is reestablished, the first equipment can wait for the local wireless equipment to be connected into the first local wireless network.
In the example shown in fig. 11, the first device performs timing according to the preset sleep duration after sending the sleep message, and the node device also performs timing according to the preset sleep duration after receiving the sleep message, so that when the node device finishes sleeping and restarts searching for the first local wireless network, the first device is also disconnected from the remote wireless network almost at the same time, and starts to reestablish the first local wireless network. If the time taken for the first device to reestablish the first local wireless network is long, some node devices cannot search for the first local wireless network, and a search failure occurs. Therefore, in some other examples of this embodiment, the timing duration of the first device is not equal to the timing duration of the node device, and the timing duration of the first device is less than the timing duration of the node device, so that it can be ensured that the first device has already re-created the first local wireless network before the node device starts to re-search the first local wireless network, and the problem of node device search failure is avoided.
It can be understood that the time period required for the first device to search for and access a remote wireless network is usually relatively short, and therefore, the process of determining whether the timing duration reaches the preset sleep duration by the first device in fig. 11 follows the process of starting information interaction with the remote wireless network. In practice, the first device may periodically determine whether the timed period reaches the preset sleep period since the start of the timing. For example, in some examples, no other wireless networks exist around the first device, and therefore, the first device searches for accessible remote wireless networks for multiple times, but the timer duration has reached the preset sleep duration, in which case, the first device has not accessed the remote wireless network and has started to recreate the first local wireless network.
It should be noted that, in the above example, the anchor point of the first local wireless network communicates with the remote anchor point of the remote wireless network, so as to implement connection between the two wireless networks, but in some other examples of this embodiment, interaction between the wireless networks may also be implemented by devices other than the anchor point. For example, in an example, a node device may be designated as an inter-network interaction device in a local wireless network, and the node device accesses a remote wireless network to perform information interaction. Because the node device may also acquire the network device information from the anchor point, for example, at least one of the device identifiers, the location information, and the like of each device in the first local wireless network, the node device may also implement interaction of the location information and the like with the remote wireless network. Different, because the anchor point is not used as the inter-network interaction device, even if the node device does not support simultaneous high-frequency and low-frequency communication, when the node device accesses the remote wireless network, only the first network identifier needs to be stored by the node device, and the node device temporarily exits from the first local wireless network, and the whole first local wireless network does not need to be disassembled. After the node device and the remote wireless network are interacted, the first local wireless network can be searched and joined again according to the first network identification.
It should be appreciated that if the wireless device supports simultaneous high and low frequency communications, it does not need to exit the first local wireless network as an inter-network interaction device, in which case the anchor point or node device does not function as an inter-network interaction device as much as possible.
The wireless networking method provided by the embodiment can create the local wireless network by using the high-frequency channel through the wireless device to realize interaction between the local wireless devices, and the devices in the local wireless network can be connected with other wireless networks with longer distance through the low-frequency channel to realize information interaction, thereby being beneficial to information transmission and expanding the communication range.
Example four:
the internet of things is that information of any object needing monitoring, connection and interaction is collected in real time through various devices and technologies such as an information sensor, a radio frequency identification technology, a global positioning system, an infrared sensor and a laser scanner, information such as sound, light, heat, electricity, mechanics, chemistry, biology and position of the object is collected, and the object, the object and people are connected in a ubiquitous mode through various possible network accesses, so that intelligent sensing, identification and management of the object and the process are achieved. The internet of things is an information bearer based on the internet, a traditional telecommunication network and the like, and all common physical objects which can be independently addressed form an interconnected network.
D2D (Device-to-Device) communication is a new technology that allows terminals to communicate directly by multiplexing cell resources under the control of the system, and solves the problem of the lack of spectrum resources in the wireless communication system to some extent. The D2D technique may be applied to mobile cellular networks to improve resource utilization and network capacity. Each D2D communication link occupies the same resources as one cellular communication link.
At present, the applications of either IOT or D2D are based on the internet, and if they leave the backbone network or the mobile communication network, they are limited or even disabled. At present, communication between wireless devices is mainly performed by means of an underlying communication network such as a base station, for example: tian Yi intercommunication, Zhuo Zhi Da, Ji Tong, Wei Zao, etc. The communication scheme needs the assistance of the traditional base station equipment and cannot meet the requirements under specific conditions such as no base station signal or poor base station signal. Another is to embed the intercom module in the wireless device, for example, in some examples, the intercom module can be embedded in the smart phone case, so as to integrate the smart phone and the intercom into one. In other examples, the intercom module may be directly placed in a motherboard of the smart phone, the smart phone uses a cellular network, and the intercom function is implemented based on a Long Range Radio (LoRa) protocol. The communication scheme not only can cause the volume and the power consumption of the wireless equipment to be increased, but also the protocol depended on by the communication scheme is possibly eliminated, and for example, the LoRa protocol is not popularized in China in the future.
To solve the above problem, the present embodiment provides a wireless networking scheme: under the condition that no mobile base station signal covers, for a plurality of wireless devices with relatively concentrated positions, a local wireless network is established through a high-frequency channel and local communication is carried out, and meanwhile, an anchor point of the local wireless network can be networked with other local wireless networks through a low-frequency channel and effective communication is carried out, so that information transmission is completed.
After triggering local wireless networking, the wireless device tries to scan local wireless networks in the nearby area, and if the local wireless networks are scanned, one of the scanning results can be selected and the wireless device tries to join; otherwise, the wireless device can establish a local wireless network by taking the wireless device as the anchor point, and the local wireless network is accessed by other wireless devices. In addition, a wider range of local wireless networks can be established between anchor points of two or more local wireless networks, thereby realizing information sharing. The wireless networking scheme in this embodiment includes the following procedures:
firstly, local wireless network networking is realized through high frequency.
In case of no coverage or weak coverage signal of the wireless base station, the wireless device triggers local wireless networking: firstly, whether a local wireless network exists in a nearby area is scanned, if so, an attempt is made to access the existing local wireless network, otherwise, a new local wireless network is established by taking the local wireless network as an anchor point, please refer to fig. 12:
s1202: the wireless device scans a wireless high frequency channel;
s1204: the wireless device judges whether a local wireless network is scanned;
through high frequency channel scanning, if it is confirmed that the nearby area has no local wireless network, the process goes to step S1206; otherwise, go to step S1210;
s1206: the wireless equipment determines to create a network identifier of a local wireless network, scans a high-frequency channel and selects the high-frequency channel for creating the local wireless network;
s1208: the wireless device creates a local wireless network by taking the wireless device as an anchor point, and waits for other local wireless devices to access the network;
s1210: the wireless device selects a target wireless network from the scanning result;
the "target wireless network" in this embodiment is the local wireless network that the wireless device selects to access.
S1212: the wireless device sends an access request to a target wireless network;
after receiving the access request of the wireless device, the anchor point of the target wireless network can judge whether the wireless device can be accessed according to the network condition.
S1214: the wireless device is accessed to a target wireless network to carry out information transmission and interaction.
Of course, if the wireless device is rejected by the target wireless network anchor point, it may not access the target wireless network, may only reselect a new target wireless network from the search results, or create a local wireless network itself.
Second, the wireless device acting as an anchor point periodically locates the node device in the local wireless network.
In this embodiment, the positioning is mainly performed by anchor points in the local wireless network. After the anchor point locates the local wireless network, the anchor point can broadcast the position information of all the devices in the local wireless network to all the node devices in the local wireless network, and each node device is marked by a device identifier, which is particularly important in emergency disaster relief or team travel. It is to be understood that the anchor point may perform broadcast communication to the node devices in the local wireless network, or may perform unicast communication to any node device.
Third, the wireless device acting as an anchor point may interact with a far-end wireless network.
Please refer to fig. 13:
s1302: the anchor point saves the network identification of the local wireless network and sends a dormancy message to the node equipment in the local wireless network;
s1304: after receiving the dormancy message, the node equipment stores the network identifier of the local wireless network and quits the local wireless network;
s1306: the anchor point scans the far-end wireless network through low frequency;
s1308: the anchor selects a target remote wireless network.
After scanning the remote wireless network, the anchor point can judge whether the remote wireless network is scanned in the adjacent area, if so, one remote wireless network can be selected as the target remote wireless network.
S1310: the anchor point is connected with a far-end anchor point;
s1312: the anchor point and the far-end anchor point carry out information interaction;
the anchor point of the target far-end wireless network, namely the far-end anchor point shares the position information of each device in the local wireless network, and meanwhile, the anchor point can also transmit information such as characters, voice and the like.
Optionally, when the anchor point of the local wireless network performs information transfer with the remote wireless network, the sensitive information may be selectively filtered or other means may be used to ensure the security of the sensitive information.
S1314: the anchor point judges whether the time difference between the current time and the sending time of the sleep message reaches the preset sleep duration or not;
if yes, go to S1316; otherwise, returning to step S1312;
s1316: if so, disconnecting the anchor point from the remote wireless network and rebuilding the local wireless network;
s1318: the anchor point accepts access to a node device of the local wireless network.
It can be understood that, for the node device in the local wireless network, after receiving the sleep message, the network identifier of the local wireless network is stored, the local wireless network exits, and timing is started until the timing duration reaches the preset sleep duration, and then the node device searches for the local wireless network again and joins the local wireless network.
In some examples of this embodiment, the anchor point may indicate the size of the preset dormancy duration to the node device in the dormancy message, so that the anchor point may flexibly set the preset dormancy duration according to the interaction requirement of the anchor point and the remote wireless network.
Fourth, the wireless device acting as an anchor may facilitate information interaction between node devices within the local wireless network.
The anchor point can transmit network equipment information (including identification information and position information of each equipment) of the local wireless network to each node equipment of the local wireless network, and the node equipment can display the network equipment information on a screen after receiving the network equipment information so as to present a relative position relationship between each equipment to a user. The user can specify a target communication object from each device except the user, and the node device generates a communication message carrying the identification of the target communication object device. After generating a communication message, the node equipment sends the communication message to an anchor point, after receiving the communication message, the anchor point extracts an equipment identifier carried in the communication message and judges whether the equipment identifier is matched with the equipment identifier of the anchor point, and if the equipment identifier is matched with the equipment identifier of the anchor point, the target communication object of the communication message is the anchor point; if not, the first device forwards the communication message to the corresponding device according to the carried device identifier.
And fifthly, the wireless equipment serving as the anchor point controls and realizes anchor point switching.
The connection and communication of the local wireless network are realized by the anchor points in the network, and different application scenes may have different requirements on the anchor points, for example, in emergency disaster relief, wireless equipment with a large activity range may be selected as the anchor points, and wireless equipment with a position closer to the center needs to be selected as the anchor points in team travel. In addition, the selection of the anchor point also needs to consider the current state of the corresponding wireless device, such as the battery level. In this embodiment, the anchor point may be actively adjusted by the local wireless network as needed to ensure that the network is normally available to the maximum extent. Please refer to the anchor point procedure shown in fig. 14 below:
s1402: the anchor point acquires the state information of the anchor point;
in this embodiment, the status information of the anchor point includes the remaining power and its relative location in each device of the local wireless network.
S1404: the anchor point judges whether the state of the anchor point can be continuously used as the anchor point in the current network working mode;
if the judgment result is no, the process goes to S1406; if yes, the process waits for a period of time and then continues to S1402.
In this embodiment, the anchor supports operation in two network operation modes: a travel mode and an emergency mode, wherein the travel mode is suitable for a team travel scene, and the emergency mode is suitable for an emergency disaster relief scene. According to the above introduction, the requirements of different network operating modes on the position of the anchor point are different, so if the position of the current anchor point does not meet the requirements of the current network operating mode, anchor point switching may be required; in addition, because the power consumption caused by maintaining the local wireless network as the anchor point is relatively high, if the remaining power of the anchor point is not large, the anchor point is not suitable to be continuously used as the anchor point of the local wireless network. In some examples of this embodiment, anchor switching may be triggered as long as one type of status information of an anchor does not meet the requirements of the current network operating mode; in some examples, the anchor point switching is triggered only after the types of state information required by the anchor point not to meet the requirement of the current network working mode reach a certain number; in other examples, the switching of the anchor point is triggered when all the state information of the anchor point is not required to meet the requirement of the current network working mode.
S1406: the anchor point selects a standby anchor point according to the acquired position information of each node device and a corresponding selection principle;
in some examples of this embodiment, the anchor point may periodically acquire location information of each device in the local wireless network, and when it is determined that anchor point switching is required, the anchor point selects a corresponding backup anchor point by combining an anchor point selection principle corresponding to the current network operating mode and the location information of each device.
It will be appreciated that in some examples, the anchor selection alternate anchor may not be suitable as an anchor subject to verification, e.g., it may not have the capability to act as an anchor, and the anchor may need to reselect an alternate anchor, in which case the anchor may exclude the previous alternate anchor when reselecting.
S1408: the anchor point sends a configuration information request message to the standby anchor point;
s1410: the anchor point receives the equipment configuration information of the standby anchor point;
s1412: the anchor point judges whether the spare anchor point has the capability of being used as the anchor point according to the equipment configuration information;
if yes, the process proceeds to S1414, otherwise, S1406 is executed.
S1414: an anchor point handoff is initiated.
In fig. 15, the first device and the second device are an anchor point and a standby anchor point, respectively, and the third device is a node device in the local wireless network except for the anchor point and the standby anchor point:
s1502: the first equipment sends an anchor point switching message to the second equipment;
s1504: the second equipment sends a switching confirmation message to the first equipment;
s1506: the first equipment sends a switching message to the second equipment and the third equipment;
s1508: the first equipment, the second equipment and the third equipment store the network identification and quit the local wireless network;
s1510: the second equipment reestablishes the local wireless network according to the stored network identification;
s1512: and the first equipment and the third equipment search and access the local wireless network according to the stored network identification.
It can be understood that, when the wireless devices of the first device and the third device search for the local wireless network according to the stored network identifiers, the situation that the wireless devices cannot be searched is likely to occur, in this case, after the search fails, the wireless devices may search again until the number of times of the search failure reaches a certain number, or after the search duration reaches a certain duration, the search may be stopped, and the local wireless network may be created again by themselves. In an example of this embodiment, when the wireless device creates a local wireless network, it may select a new network identifier, or may use the network identifier stored by the wireless device, because if the new network identifier is used, the device in the original network can be accessed to the same network again as soon as possible, which avoids that other wireless devices create a local wireless network due to a search failure.
The invention can not only provide emergency communication and positioning service under the condition that the wireless base station signal is uncovered or the covered signal is weak, but also provide organization and communication service among team members in travel. The embodiment of the invention also provides corresponding equipment and a corresponding system. The following are detailed below.
Example five:
the present embodiments provide a storage medium including volatile or non-volatile, removable or non-removable media implemented in any method or technology for storage of information such as computer-readable instructions, data structures, computer program modules or other data. Storage media includes, but is not limited to, RAM (Random Access Memory), ROM (Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash Memory or other Memory technology, CD-ROM (Compact disk Read-Only Memory), Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer.
The storage medium may store one or more computer programs that can be read, compiled, and executed by one or more processors, and in this embodiment, the storage medium may store a first wireless networking program that can be used by one or more processors to execute a procedure of implementing a first device side (anchor side) in any one of the wireless networking methods described in the foregoing embodiments; the second wireless networking program may be used for the one or more processors to execute the process of implementing the second device side (the standby anchor point side) in any one of the wireless networking methods described in the foregoing embodiments; the third wireless networking program may be used by one or more processors to execute the process of implementing the third device side (node device side) in any one of the wireless networking methods described in the foregoing embodiments.
The present embodiments also provide a computer program product comprising a computer readable means having a computer program as shown above stored thereon. The computer readable means in this embodiment may include a computer readable storage medium as shown above. For example, the computer program product comprises a wireless device, as shown in fig. 16: the wireless device 16 includes a processor 161, a memory 162, and a communication bus 163 for connecting the processor 161 and the memory 162, wherein the memory 162 may be the aforementioned storage medium storing at least one of the first wireless networking program, the second wireless networking program, and the third wireless networking program.
It is understood that, in general, a wireless device needs to be an anchor point in some cases, needs to be a backup anchor point in other cases, and in still other cases, it only serves as a normal node device, so in some examples of this embodiment, the memory 162 stores the first wireless networking program, the second wireless networking program, and the third wireless networking program at the same time, and the processor 161 may select which of them to execute according to the circumstances and implement the corresponding process.
The wireless device 16 in this embodiment includes at least one of a mobile phone, a PAD (tablet), a PDA (personal digital assistant), a wearable device, and the like.
Please refer to the description of the foregoing embodiments for a specific procedure of the wireless device 16 for implementing the wireless networking method, which is not described herein again.
It will be apparent to those skilled in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software (which may be implemented in computer program code executable by a computing device), firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit.
In addition, communication media typically embodies computer readable instructions, data structures, computer program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to one of ordinary skill in the art. Thus, the present invention is not limited to any specific combination of hardware and software.
The foregoing is a more detailed description of embodiments of the present invention, and the present invention is not to be considered limited to such descriptions. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.

Claims (16)

1. A wireless networking method, comprising:
a first device determines a standby anchor point from node devices of a first local wireless network, wherein the first device is a current anchor point of the first local wireless network, and a network identifier of the first local wireless network is a first network identifier;
the first equipment sends an anchor point switching message to a standby anchor point of the first local wireless network, wherein the anchor point switching message is used for indicating the standby anchor point to serve as a new anchor point of the first local wireless network;
the first device sends a switching message to a node device in the first local wireless network, wherein the switching message is used for instructing the node device to save the first network identifier and exit the first local wireless network;
and the first equipment searches and accesses a first local wireless network created by the standby anchor point according to the first network identification.
2. The wireless networking method of claim 1, wherein the first device determining a backup anchor point from node devices of the first local wireless network comprises:
the first equipment acquires the position information of the node equipment in the first local wireless network;
and the first equipment determines a standby anchor point according to the position information of the node equipment.
3. The wireless networking method of claim 2, wherein the first device determining a backup anchor point from the location information of the node device comprises:
under the condition that the working mode of the first local wireless network is a first working mode, the first device determines a node device which is in the center in each device of the first local wireless network as the standby node device according to the position information of each node device;
and under the condition that the working mode of the first local wireless network is a second working mode, the first equipment determines the node equipment with the largest activity range in all the equipment of the first local wireless network as the standby node equipment according to the position information of all the node equipment.
4. The wireless networking method of claim 1, further comprising:
and the first equipment sends network equipment information to node equipment in the first local wireless network, wherein the network equipment information comprises equipment identifications of all equipment in the first local wireless network.
5. The wireless networking method of claim 4, wherein after the first device sends network device information to the node device in the first local wireless network, further comprising:
the first device receives communication information sent by the node device, wherein the communication information comprises a device identifier of a target communication object;
and the first equipment forwards the communication information to the target communication object under the condition of determining that the equipment identification of the first equipment is not matched with the equipment identification of the target communication object.
6. The wireless networking method of any of claims 1-5, wherein prior to the first device determining the backup anchor point from the node devices of the first local wireless network, further comprising:
the first device scans a remote wireless network through low frequency;
the first equipment is accessed to the far-end wireless network through a far-end anchor point, and the far-end anchor point is an anchor point of the far-end wireless network;
and the first equipment performs information interaction with the far-end anchor point.
7. The wireless networking method of claim 6, wherein before the first device scans for a far-end wireless network through low frequencies, further comprising:
the first device sends a dormancy message to a node device in the first local wireless network, wherein the dormancy message is used for instructing the node device to save the first network identifier, quit the first local wireless network, and re-search for access to the first local wireless network after a preset dormancy duration;
after the first device scans the remote wireless network through the low frequency, the method further comprises:
the first equipment determines that the time difference between the current time and the sending time of the sleep message reaches a preset sleep duration;
and the first equipment disconnects the connection with the remote wireless network, and adopts the first network identifier to recreate the first local wireless network for the node equipment to access.
8. A wireless networking method, comprising:
the method comprises the steps that a second device receives an anchor point switching message sent by an anchor point of a first local wireless network, wherein the anchor point switching message is used for indicating the second device to be switched to a new anchor point of the first local wireless network, and a network identifier of the first local wireless network is a first network identifier;
the second equipment saves the first network identification and quits the first local wireless network;
the second equipment re-establishes the first local wireless network according to the first network identification;
and the second equipment accepts local wireless equipment as node equipment of the first local wireless network to access the first local wireless network.
9. The wireless networking method of claim 8, wherein before the second device receives the anchor point handover message sent by the anchor point of the first local wireless network, the method further comprises:
the second device receives a configuration information request message sent by the anchor point;
and the second equipment sends equipment configuration information to the anchor point according to the configuration information request message, wherein the equipment configuration information is used for representing the capability of the second equipment as the anchor point.
10. A wireless networking method, comprising:
the third equipment receives a switching message sent by an anchor point in a first local wireless network, wherein the switching message is used for representing that the anchor point of the first local wireless network is to be switched, and the network identifier of the first local wireless network is a first network identifier;
the third equipment saves the first network identification according to the switching message and quits the first local wireless network;
and the third equipment searches and accesses the first local wireless network created by the new anchor point according to the first network identification.
11. The wireless networking method of claim 10, further comprising:
the third equipment receives a dormancy message sent by an anchor point in the first local wireless network;
the third equipment saves the first network identification, quits the first local wireless network and starts timing;
and after the timing duration reaches the preset dormancy duration, the third equipment searches and accesses the first local wireless network recreated by the anchor point according to the first network identification.
12. The wireless networking method of claim 10, wherein the third device searching for and accessing a first local wireless network based on the first network identification comprises:
the third equipment scans a wireless network through high frequency according to the first network identification;
the third equipment selects a high-frequency channel to create a second local wireless network under the condition that the first local wireless network is not scanned, and the network identifier of the second local wireless network is a second network identifier;
and the third equipment accepts the local wireless equipment as node equipment to access the second local wireless network.
13. The wireless networking method of any of claims 10-12, wherein the wireless networking method further comprises:
the third device receives network device information sent by the anchor point, wherein the network device information at least comprises device identifications of devices in the first local wireless network;
the third equipment selects equipment in the first local wireless network as a target communication object according to the network equipment information;
and the third equipment sends a communication message to the target communication object through the anchor point, wherein the communication message comprises the equipment identification of the target communication object.
14. The wireless networking method of claim 13, wherein the network device information further comprises location information of each device; the third device selecting a device in the first local wireless network as a target communication object according to the network device information includes:
the third equipment control screen displays the position and the equipment identification of each equipment in the first local wireless network in a related manner according to the network equipment information;
and the third equipment determines the target communication object according to the mapping relation between the equipment identification and the screen position and the touch position detected by the screen.
15. A wireless device comprising a processor, a memory, and a communication bus;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is configured to execute a first wireless networking program stored in the memory to implement the steps of the wireless networking method according to any one of claims 1 to 7; or the processor is configured to execute a second wireless networking program stored in the memory to implement the steps of the wireless networking method according to claim 8 or 9; or, the processor is configured to execute a third wireless networking program stored in the memory to implement the steps of the wireless networking method according to any one of claims 10 to 14.
16. A storage medium storing at least one of a first wireless networking program, a second wireless networking program, and a third wireless networking program, the first wireless networking program being executable by one or more processors to implement the steps of the wireless networking method of any one of claims 1 to 7; the second wireless networking procedure being executable by one or more processors to implement the steps of the wireless networking method of claim 8 or 9; the third wireless networking procedure may be executed by one or more processors to implement the steps of the wireless networking method of any one of claims 10 to 14.
CN202110200901.5A 2021-02-23 2021-02-23 Wireless networking method, wireless device and storage medium Pending CN114980237A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110200901.5A CN114980237A (en) 2021-02-23 2021-02-23 Wireless networking method, wireless device and storage medium
PCT/CN2022/076831 WO2022179447A1 (en) 2021-02-23 2022-02-18 Wireless networking method, wireless device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110200901.5A CN114980237A (en) 2021-02-23 2021-02-23 Wireless networking method, wireless device and storage medium

Publications (1)

Publication Number Publication Date
CN114980237A true CN114980237A (en) 2022-08-30

Family

ID=82954542

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110200901.5A Pending CN114980237A (en) 2021-02-23 2021-02-23 Wireless networking method, wireless device and storage medium

Country Status (2)

Country Link
CN (1) CN114980237A (en)
WO (1) WO2022179447A1 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101136724A (en) * 2007-10-18 2008-03-05 郑紫微 Wireless self-organizing cooperative communication method
US8532074B2 (en) * 2010-07-29 2013-09-10 Microsoft Corporation Energy-efficient on-the-fly Wi-Fi hotspot using mobile devices
CN102970728B (en) * 2012-11-02 2016-08-10 小米科技有限责任公司 A kind of message informing method and device
CN104378800B (en) * 2013-08-13 2018-03-06 华为终端(东莞)有限公司 For adding the method and apparatus of neighbouring sensing network device cluster
CN104780580B (en) * 2015-03-19 2018-06-12 江苏晓山信息产业股份有限公司 A kind of Wi-Fi mobile networking methods of energy consumption balance

Also Published As

Publication number Publication date
WO2022179447A1 (en) 2022-09-01

Similar Documents

Publication Publication Date Title
US11943676B2 (en) Switching between network based and relay based operation for mission critical voice call
EP2768269B1 (en) Automatic ad-hoc network of mobile devices
CN104333888A (en) Self-organized instant messaging method based on Wi-Fi direct connection
TWM246927U (en) Wireless communication WTRU and system with controlled WTRU peer-to-peer communications
WO2017028743A1 (en) Relay user equipment control method, device, and user equipment
US9066253B2 (en) System and method for reduced interruption time in mobile communications
TW200428889A (en) Wireless personal communicator and communication method
JP2003259457A (en) Multi-service radio communication system
WO2009056028A1 (en) Methods, devices, and systems of providing measurement information and detecting coverage problem
WO2022088826A1 (en) Computing service discovery method and communication apparatus
JP4977858B2 (en) Wireless communication method, wireless communication terminal, and wireless communication program
CN108370498B (en) Method, device and equipment for determining transmission scheme
JP7447283B2 (en) Method and device for displaying IMS emergency service status
CN110475314B (en) Communication method and device
GB2507299A (en) Preparing a mobile terminal for reconnection to a different cell in the event of a radio link failure on a serving cell
KR102200775B1 (en) Communication device, communication method, and program
JP5160191B2 (en) Wireless communication terminal and control method thereof
WO2016149911A1 (en) Access point automatic switching method and wireless routing device
JP2001238264A (en) Mobile communication system and direct speech communication method used for it
CN104284392A (en) Information sending and cell searching method and device
WO2022179447A1 (en) Wireless networking method, wireless device and storage medium
WO2022237658A1 (en) Network connection exception processing method, electronic device, and storage medium
EP4247061A1 (en) Communication method, apparatus, and system
CN114390610B (en) Cell switching method, communication device and storage medium
WO2013133210A1 (en) Radio base station apparatus, radio terminal apparatus, communication control method, and communication control program

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