A wireless networking method, a wireless device and a storage medium

By identifying backup anchor points in wireless devices and automatically switching network identifiers, the problem of excessive manual operation by users in existing wireless networking solutions is solved, achieving automated and efficient switching of wireless networks.

CN114980237BActive Publication Date: 2026-04-10ZTE CORP
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-23
Publication Date
2026-04-10

AI Technical Summary

Technical Problem

Existing wireless networking solutions require users to perform a lot of manual operations, resulting in low automation. This is especially true in situations where there is no base station coverage or the base station signal is weak, which affects user efficiency.

Method used

The first device determines a backup anchor point and sends an anchor point switching message to the backup anchor point, instructing it to become the new anchor point. At the same time, it sends a switching message to the node device, causing it to save the network identifier and exit the original wireless network. Subsequently, the device accesses the new wireless network created by the backup anchor point according to the network identifier.

Benefits of technology

It automates and intelligentizes the wireless networking process, reduces manual operation by users, and ensures stable operation and rapid switching of the wireless network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114980237B_ABST
    Figure CN114980237B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a wireless networking method, a wireless device and a storage medium. After a first device creates a first local wireless network, a standby anchor point can be determined, an anchor point switching message is sent to a second device serving as the standby anchor point, and the second device is instructed to switch to a new anchor point of the first local wireless network. Subsequently, the first device sends a switching message to each node device in the first local wireless network, instructing the node device to save a first network identifier and exit the first local wireless network. The second device re-creates the first local wireless network with the first network identifier and accepts a local wireless device as a node device for access. The anchor point switching process can be automatically implemented by the original anchor point, the standby anchor point and the node device in cooperation with each other. Regardless of whether the user of the original anchor point, the standby anchor point or the ordinary node device needs to perform manual operation, this reduces the burden of manual operation of the user and improves the automation and intelligent degree of wireless networking.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] Embodiments of the present application relate to, but are not limited to, the field of wireless communication, in particular, relate to, but are not limited to, a wireless networking method, a wireless device and a storage medium. BACKGROUND

[0002] At present, the communication between mobile wireless devices mainly relies on the basic communication network such as base station for connection, so in the case that the wireless base station signal is not covered or the covered signal is very weak, or in the case that the base station and other infrastructure is damaged seriously, the communication between mobile terminals will face great obstacles. In view of this problem, the current solution is to create a local wireless network by a mobile terminal for other mobile terminals to access, so as to realize the communication between local mobile terminals. When the mobile terminal creating the local wireless network is out of power or needs to move away from other mobile terminals within the network, the user of the other mobile terminal needs to manually exit the local wireless network and then manually create a new local wireless network. In this wireless networking scheme, a large amount of manual operation of the user is relied on, which increases the operation burden of the user. SUMMARY

[0003] The wireless networking method, the wireless device and the storage medium provided by the embodiments of the present application mainly solve the technical problem that in the related wireless networking scheme, a large amount of manual operation of the user needs to be performed, and the automation degree is low.

[0004] To solve the above technical problem, the embodiments of the present application provide a wireless networking method, comprising:

[0005] A first device determines a backup anchor point from node devices of a first local wireless network, the first device being a current anchor point of the first local wireless network, and a network identifier of the first local wireless network being a first network identifier;

[0006] The first device sends an anchor point switching message to the backup anchor point of the first local wireless network, the anchor point switching message being used to instruct the backup anchor point to be a new anchor point of the first local wireless network;

[0007] The first device sends a switching message to node devices in the first local wireless network, the switching message being used to instruct the node devices to save the first network identifier and exit the first local wireless network;

[0008] The first device searches and accesses the first local wireless network created by the backup anchor point according to the first network identifier.

[0009] The embodiments of the present application also provide a wireless networking method, comprising:

[0010] The second device receives an anchor point switching packet sent by an anchor point of a first local wireless network, the anchor point switching packet being used to instruct the second device to switch to a new anchor point of the first local wireless network, and a network identifier of the first local wireless network being a first network identifier;

[0011] The second device saves the first network identifier and exits the first local wireless network;

[0012] The second device re-creates the first local wireless network according to the first network identifier;

[0013] The second device accepts a local wireless device as a node device of the first local wireless network to access the first local wireless network.

[0014] The embodiment of the present application further provides a wireless networking method, comprising:

[0015] The third device receives a switching message sent by an anchor point in a first local wireless network, the switching message being used to represent that switching of the anchor point of the first local wireless network will occur, and a network identifier of the first local wireless network being a first network identifier;

[0016] The third device saves the first network identifier according to the switching message and exits the first local wireless network;

[0017] The third device searches and accesses the first local wireless network created by a new anchor point according to the first network identifier.

[0018] The embodiment of the present application further provides a wireless device, comprising a processor, a memory and a communication bus;

[0019] The communication bus is used to realize connection communication between the processor and the memory;

[0020] The processor is used to execute a first wireless networking program stored in the memory, so as to realize steps of the first wireless networking method; or, the processor is used to execute a second wireless networking program stored in the memory, so as to realize steps of the second wireless networking method; or, the processor is used to execute a third wireless networking program stored in the memory, so as to realize steps of the third wireless networking method.

[0021] The embodiment of the present application further provides a storage medium, which stores 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 can be executed by one or more processors to implement the steps of the first wireless networking method, the second wireless networking program can be executed by one or more processors to implement the steps of the second wireless networking method, and the third wireless networking program can be executed by one or more processors to implement the steps of the third wireless networking method.

[0022] According to the wireless networking method, the wireless device and the storage medium provided by the embodiment of the present application, after the first device creates the first local wireless network as an anchor point, a standby anchor point can be determined, and then an anchor point switching message is sent to the second device as the standby anchor point in the process of anchor point switching, so as to instruct the second device to switch to a new anchor point of the first local wireless network. Subsequently, the first device sends a switching message to each node device in the first local wireless network, and each node device in the first local wireless network saves the network identifier of the first local wireless network, that is, the first network identifier, according to the instruction of the switching message, and exits the first local wireless network after receiving the switching message. According to the instruction of the anchor point switching message, the second device re-creates the first local wireless network with the network identifier of the first network identifier, and accepts a local wireless device as a node device 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 present application, in the process of anchor point switching, the original anchor point, the standby anchor point and the ordinary node device in the local wireless network can automatically realize mutual cooperation, and neither the user of the original anchor point nor the user of the standby anchor point nor the user of the ordinary node device needs to perform manual operation, which reduces the burden of manual operation of the user and improves the automation and intelligent degree of wireless networking.

[0023] Other features and corresponding advantages of the present application will be described in the subsequent part of the description and it should be understood that at least part of the advantages will become apparent from the description of the present application. BRIEF DESCRIPTION OF DRAWINGS

[0024] Figure 1 A flow chart of the wireless networking method provided in the embodiment one of the present application;

[0025] Figure 2 A flow chart of selecting a standby anchor point for the first device as an anchor point in the embodiment one of the present application;

[0026] Figure 3 An illustrative view of selecting a node device close to the center as a standby anchor point in the embodiment one of the present application;

[0027] Figure 4A flow chart for selecting a backup anchor point according to an activity range in the first embodiment of the present application;

[0028] Figure 5 A flow chart for determining whether a backup anchor point is qualified as a new anchor point in the first embodiment of the present application;

[0029] Figure 6 A schematic diagram of a process performed before determining a backup anchor point in the first device in the second embodiment of the present application;

[0030] Figure 7 A flow chart for a node device to communicate with other node devices through an anchor point in the second embodiment of the present application;

[0031] Figure 8a A display interface diagram of a wireless device in the second embodiment of the present application;

[0032] Figure 8b Another display interface diagram of a wireless device in the second embodiment of the present application;

[0033] Figure 9 A flow chart for an anchor point to communicate with a remote wireless network in the third embodiment of the present application;

[0034] Figure 10 A schematic diagram of a local wireless network and a remote wireless network in the third embodiment of the present application;

[0035] Figure 11 A flow chart for an anchor point to switch between a local wireless network connection and a remote wireless network connection in the third embodiment of the present application;

[0036] Figure 12 A flow chart for a wireless device to access or create a local wireless network in the fourth embodiment of the present application;

[0037] Figure 13 A flow chart for an anchor point to switch between a local wireless network connection and a remote wireless network connection in the fourth embodiment of the present application;

[0038] Figure 14 A flow chart for an anchor point to select a backup anchor point and perform anchor point switching in the fourth embodiment of the present application;

[0039] Figure 15 A specific flow chart for an anchor point to perform anchor point switching in the fourth embodiment of the present application;

[0040] Figure 16 A hardware structure diagram of a wireless device in the fifth embodiment of the present application. DETAILED DESCRIPTION

[0041] In order to make the objects, technical solutions and advantages of the present application clearer, further understand the embodiments of the present application through specific implementation combined with the drawings. It should be understood that the specific embodiments described herein are only used to explain the present application, and are not used to limit the present application.

[0042] Embodiment one:

[0043] With the continuous development of wireless technology, the wireless network rate is continuously improved, especially the performance of 5G wireless network compared with 4G wireless network has been greatly improved. Based on the continuous expansion of the services provided by the wireless network, for example, the continuous influx of home intelligent devices has given birth to the Internet of Things. The Internet of Things (Internet of Things, IoT) originated from the media field, and is the third revolution of information technology industry. Internet of Things refers to connecting any object with network through information sensing device according to agreed protocol, and the object exchanges and communicates information through information transmission medium to realize intelligent identification, positioning, tracking, supervision and other functions. With the continuous development of Internet of Things, the interconnection protocol between devices has been greatly developed, thereby laying a foundation for local or remote interconnection of devices.

[0044] Generally, the communication connection between mobile terminals is established based on the basic communication network such as base station to realize wireless communication. Some schemes integrate intercom module into mobile terminal, such as mobile phone with intercom function. However, both of the two wireless communication schemes have significant disadvantages: for example, for the former, this communication scheme does not meet the needs in the case of no base station or poor base station signal coverage; for the latter, after integrating the intercom module, the volume and power consumption of the mobile terminal will be significantly increased, which does not meet the development trend of mobile terminal portability and low power consumption. Moreover, the communication protocol relied on by the traditional intercom module may be eliminated in the future, which leads to the loss of the realization of the latter wireless communication scheme.

[0045] In this embodiment, the wireless device can create a local wireless network for other local wireless devices to access. Since other devices are accessed to the local wireless network through the wireless device creating the local wireless network, the wireless device creating the local wireless network is equivalent to an "anchor point", and here the wireless device creating the local wireless network is referred to as the anchor point of the local wireless network, and the other wireless devices accessing the local wireless network are referred to as "node devices".

[0046] In the related art, when the wireless device a creates the local wireless network N0, other wireless devices (for example, wireless devices b, c, d) near a can access the local wireless network N0 through a. But if a is out of power and cannot support the maintenance of the local wireless network N0, the users of b, c, d need to manually disconnect the wireless connection between each wireless device and a. Then these users negotiate together to select a new anchor point from the three wireless devices b, c, d, and recreate the local wireless network N1. Here, it is assumed that c is selected as the new anchor point after the users negotiate, and 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 access the local wireless network N1. Of course, if a still has enough power to support wireless communication, the user of a can also control a to search for and access the local wireless network N1.

[0047] It can be seen that in the above wireless networking scheme, once the original anchor point cannot continue to maintain the local wireless network it created, the users of each wireless device in the local wireless network need to manually operate to different degrees before a new local wireless network can be established. This brings great time and effort to the users, especially in post-disaster rescue and other occasions, the time-consuming of wireless networking seriously affects the progress of other work of the users.

[0048] To solve the above problems, the embodiment provides a wireless networking method, please refer to Figure 1 The flowchart of the wireless networking method is shown in the figure:

[0049] S102: The first device determines a backup anchor point from the node devices of the first local wireless network.

[0050] In the embodiment, the first local wireless network is a local wireless network with a network identifier of the first network identifier, which is originally created by the first device. Therefore, the first device is the anchor point of the first local wireless network before the anchor point switching. In the embodiment, the wireless devices other than the anchor point in the first local wireless network are referred to as "node devices", so the node devices access the first local wireless network through the first device.

[0051] As the anchor point of the first local wireless network, the first device can determine a backup anchor point of the first local wireless network, which is the new anchor point after the anchor point switching process is completed, i.e., a node device of the first local wireless network that is re-created in the anchor point switching process. It can be understood that the first device can determine the backup anchor point temporarily when anchor point switching is needed, or can determine the backup anchor point in advance before there is a need for anchor point switching. In some examples, the backup anchor point of the first local wireless network can be specified by users, for example, when the first local wireless network is created or after the creation is completed, users negotiate to specify the backup anchor point, and in this case, the first device can determine the backup anchor point according to the pre-stored network configuration information. In some other examples, the first device can select the backup anchor point by itself:

[0052] In some examples of the embodiment, the first device can select the backup anchor point according to the location information of the node devices, for example, as shown in Figure 2

[0053] S202: The first device obtains the location information of the node devices in the first local wireless network.

[0054] In some examples of the embodiment, the first device can obtain the location information of the node devices from the node devices respectively, for example, the node devices in the first local wireless network can obtain their real-time locations based on satellite positioning and the like, and transmit the real-time locations to the first device. It can be understood that since the first local wireless network is likely to be moving all the time, for example, the first local wireless network is created by multiple team members in a travel team, therefore, the devices in the first local wireless network will move with the team members. Therefore, the first device can obtain the location information of the node devices periodically in order to be able to master the real-time locations of the node devices; in some other scenarios, the first device can instruct the node devices to report their real-time locations only when the first device needs to apply the location information of the node devices in the first local wireless network.

[0055] In some other examples, the first device can locate the devices in the first local wireless network by itself, for example, the first device can implement the location of the devices in the first local wireless network by using any one of, but not limited to, a multilateration method, a triangulation method, and a pole method, thereby obtaining the location information of the node devices.

[0056] ​It should be understood that in the above example, the first device obtains the position information of each node device in the first local wireless network, but in some other examples, the first device can not obtain the position information of all node devices in the first local wireless network, for example, one of the node devices fails to report its position information to the first device, and then the first device can determine the backup anchor point according to the position information of the remaining node devices. For another example, the first device only locates part of the node devices in the first local wireless network, and thus the first device cannot obtain the position information of the other part of the node devices.

[0057] S204: The first device determines the backup anchor point according to the position information of the node devices.

[0058] After the first device obtains the position information of the node devices, the backup anchor point can be determined according to the position information. In some examples of the embodiment, the first node device can directly select the node device with the central position among the devices in the first local wireless network as the backup anchor point. In some examples of the embodiment, the first device can determine the node device with a larger active range as the backup anchor point according to the historical position information and the current position information of each node device.

[0059] If the first device determines the node device with the central position among the devices in the first local wireless network as the backup node device according to the position information of each node device, referring to FIG. 2, the first device can first calculate the distance between each pair of node devices, and then determine the two node devices with the farthest distance from each other (for example, the node devices b and c in FIG. 2, and the distance between them is d1). Subsequently, the first device can determine the midpoint O of the line connecting the two node devices, and select the node device with the closest distance to the midpoint O from the other node devices, for example, the node device e shown in FIG. 2, which can be regarded as the node device with the most central position among the node devices in the first local wireless network. Of course, it should be understood by those skilled in the art that the way to determine the node device with the central position is not limited to this way. Figure 3 Figure 3 Figure 3

[0060] ​​​In some examples, if the first device has sufficient power, after selecting the central node device in the first local wireless network according to the above manner, the first device can further determine the distance d2 between the first device and the central node device, and determine the ratio of d1 and d2, and determine whether to select the central node device as the backup anchor point according to the ratio and the preset ratio. If the calculated ratio is greater than the preset ratio, the central node device is selected as the backup anchor point; otherwise, the current anchor point remains as the anchor point. In an example of the embodiment, the preset ratio is 0.1. However, it should be understood by those skilled in the art that the preset ratio can be flexibly set, and is not limited to 0.1. It should be understood that the sensitivity of anchor point switching can be controlled by adjusting the size of the preset ratio.

[0061] If the first device determines the node device with the largest active range in the first local wireless network as the backup node device according to the location information of the node devices, please refer to Figure 4 The flowchart is shown in FIG. 4.

[0062] S402: The first device determines the first node device with the largest recent active range and the second node device with the largest historical cumulative active range.

[0063] After the first device obtains the location information of the node devices each time, the first device can determine the active range of the node device in the last positioning period according to the current location information and the last historical location information of the node device, that is, the recent active range of the node device. For example, for the node device a, the last historical location information is (x1, y1), and the current location information is (x2, y2). The recent active range of the node device a is the distance between the location points (x2, y2) and (x1, y1). By comparing the recent active ranges of the node devices, the first device can select the node device with the largest recent active range, that is, the first node device.

[0064] On the other hand, the first device can determine the historical cumulative active range of each node device respectively. For example, since the first device creates the first local wireless network, a total of four times of positioning are performed. For the same node device, the first device can obtain three recent active ranges of the device, and the sum of the three recent active ranges is the historical cumulative active range of the node device. By comparing the historical cumulative active ranges of the node devices, the first device can select the node device with the largest historical cumulative active range, that is, the second node device.

[0065] S404: The first device determines whether the first node device and the second node device are the same.

[0066] If the determination result is yes, go to S406, otherwise go to S408.

[0067] S406: The first device selects the node device as a backup anchor point.

[0068] Since the same node device is the node device with the largest historical cumulative activity range and the node device with the largest recent activity range, the node device is the node device with the largest activity range and can be used as a backup anchor point.

[0069] S408: The first device respectively determines the anchor point scores of the two node devices.

[0070] If the first node device is not the same as the second node device, the first device can respectively determine the anchor point scores of the first node device and the second node device. For example, the first device respectively obtains the recent activity range and the historical cumulative activity range of the two node devices. Assuming that the recent activity ranges of the first node device and the second node device are C1 and C2, and the historical cumulative activity ranges of the first node device and the second node device are S1 and S2. The weights of the recent activity range and the historical cumulative activity range in the calculation of the anchor point score are W1 and W2, respectively. The anchor point score T1 of the first node device and the anchor point score T2 of the second node device are respectively:

[0071] T1 = C1 * W1 + S1 * W2;

[0072] T2 = C2 * W1 + S2 * W2.

[0073] In some examples of the embodiment, the value of W1 can be 0.7, and the value of W2 can be 0.3. The calculation of the anchor point score in the embodiment in combination with the recent activity range and the historical cumulative activity range is mainly to reduce the influence of accidental positioning errors and suppress frequent switching of anchor points.

[0074] S410: The first device selects the node device with a larger anchor point score as a backup anchor point.

[0075] The first device compares the values of T1 and T2. If T1 is greater than T2, the first node device is selected as a backup anchor point. Otherwise, the second node device is selected as a backup anchor point.

[0076] In some examples of the embodiment, when determining the backup anchor point, the first device not only considers the location information of the node devices, but also considers other information, for example, the first device also considers the working mode of the first local wireless network. Optionally, the working mode of the first local wireless network can be divided into a first working mode and a second working mode. In one example of the embodiment, when the working mode of the first local wireless network is the first working mode, the first device determines, according to the location information of the node devices, a node device that is in the center among the devices of the first local wireless network as the backup node device. The first working mode can be a travel mode, which is suitable for team travel use. In one example of the embodiment, when the working mode of the first local wireless network is the second working mode, the first device determines, according to the location information of the node devices, a node device that has the largest activity range among the devices of the first local wireless network as the backup node device. The second working mode can be an emergency mode, which is suitable for post-disaster rescue scene use.

[0077] It can be understood that in other examples, the first device can also select the backup anchor point according to the device configuration information of the node devices, where the device configuration information includes, but is not limited to, at least one of the following: the remaining power of the node device, the ability of the node device to create a wireless network, and the like. Alternatively, the first device can select the backup anchor point in combination with the location information of the node devices, the device configuration information, or even further in combination with the working mode of the first local wireless network.

[0078] S104: The first device sends an anchor point switching packet to the backup anchor point of the first local wireless network.

[0079] After determining the backup anchor point, the first device can send an anchor point switching packet to the backup anchor point, where the anchor point switching packet is used to inform the backup anchor point to switch to the anchor point of the first local wireless network in the subsequent process, in other words, the first device requires the backup anchor point to re-create the first local wireless network after being disconnected from the first device.

[0080] In some examples of the embodiment, when selecting the backup anchor point, the first device does not consider the device configuration information of the node devices, 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 an anchor point. Therefore, in some examples of the embodiment, after the first device determines the backup anchor point, the first device sends the anchor point switching packet to the backup anchor point, and then determines whether the backup anchor point is suitable as a new anchor point, please refer to Figure 5

[0081] S502: The first device sends a device configuration information request packet to the backup anchor point.

[0082] ​The configuration information request is used for requesting the backup anchor point to feed back its device configuration information. As introduced above, the device configuration information includes at least one of the capability of the backup anchor point to create a wireless network and the current residual power.

[0083] S504: The first device receives the device configuration information sent by the backup anchor point according to the configuration information request message.

[0084] S506: The first device judges whether the backup anchor point has the capability to be a new anchor point of the first local wireless network according to the device configuration information of the backup anchor point.

[0085] If the judgment result is yes, S508 is executed, otherwise, S510 is executed. It should be understood that if the backup anchor point does not have the capability to create a wireless network, the backup anchor point absolutely cannot be a new anchor point. If the current residual power of the backup anchor point is too low, the backup anchor point is also not suitable to be a new anchor point.

[0086] S508: The first device sends an anchor point switching message to the backup anchor point.

[0087] S510: The first device reselects a backup anchor point.

[0088] The process of the first device reselecting a backup anchor point has been described in detail above, and will not be repeated here. After selecting a new anchor point, the first device can execute the flow from S502 again. Figure 5

[0089] S106: The first device sends a switching message to the node devices in the first local wireless network.

[0090] After the first device sends the anchor point switching message to the backup anchor point, the first device can send a switching message to the node devices in the first local wireless network. The switching message is used to instruct the node devices in the first local wireless network to save the network identifier of the first local wireless network, i.e., the first network identifier, and disconnect the connection with the first local wireless network.

[0091] Since the node devices in the first local wireless network will disconnect the connection with the first local wireless network after receiving the switching message, the first device needs to ensure that the backup anchor point can timely create a new first local wireless network after the first local wireless network is disconnected. Therefore, the first device needs to ensure that the backup anchor point has received the anchor point switching message and is ready for anchor point switching. Therefore, in some examples of the embodiment, after the first device sends the anchor point switching message to the backup anchor point, the first device needs to ensure that it has received the switching confirmation message from the backup anchor point before sending the switching message to the node devices in the first local wireless network.

[0092] ​S108: The second device and the third device save the first network identifier and exit the first local wireless network.

[0093] In the embodiment, the backup anchor point selected by the first device is the second device. For the convenience of introduction, the node device in the first local wireless network except the first device and the second device is referred to as the "third device". The first device sends the switching message to all the node devices, that is, both the second device and the third device. Therefore, the second device and the third device save the first network identifier according to the indication of the switching message and exit the first local wireless network after receiving the switching message.

[0094] It should be understood that after the first device sends the switching message, it will also exit the first local wireless network.

[0095] S110: The second device re-creates the first local wireless network according to the first network identifier.

[0096] After the second device exits the first local wireless network maintained by the first device, it will re-create the first local wireless network, that is, the second device will re-create a local wireless network with the first network identifier. In some examples of the embodiment, the anchor point usually creates a local wireless network by using a high-frequency channel.

[0097] S112: The first device and the third device search for and access the first local wireless network created by the second device according to the first network identifier.

[0098] After the second device re-creates the first local wireless network as a new anchor point, it can wait for the access of the local wireless device. The first device (that is, the original anchor point) and the third device can search for the first local wireless network by using the pre-stored first network identifier, send an access request to the second device after searching for the first local wireless network, and thus access the first local wireless network.

[0099] It cannot be excluded that the second device may have some problems in the process of recreating the first local wireless network, resulting in the first local wireless network being unable to be reconstructed, and thus the first device and the third device always face the result of search failure when searching for the first local wireless network according to the first network identifier. In some examples of the embodiment, at least one of the first device and the third device can recreate a local wireless network by itself in the case of failing to search for the first local wireless network. In an example, one of the first device and the third device can create a local wireless network by scanning high-frequency channels and selecting a high-frequency channel with a communication quality meeting the requirements. It can be understood that the network identifier of the created first local wireless network can continue to be the first network identifier or can no longer be the first network identifier, for example, one device can create a second local wireless network with a second network identifier. In some examples of the embodiment, the second device and the device of the third device can create a local wireless network by itself after the number of times of failing to search for the first local wireless network according to the first network identifier reaches a preset number of times. Of course, it is not excluded that the device creates a local wireless network by itself immediately after failing to search once. After the anchor point creates a local wireless network, it can wait for the local wireless device to search for and join the local wireless network.

[0100] The wireless networking method provided in the embodiment can determine a backup anchor point when a device is not suitable to continue to serve as an anchor point of a local wireless network, and instruct the backup 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 the devices in the local wireless network except the backup anchor point can search for and join the local wireless network with the same network identifier again after exiting the original local wireless network. In this way, the anchor point of a local wireless network can be migrated from one device to another device without the need for manual participation of a user, and the node devices can automatically find the new anchor point and access the local wireless network with the same network identifier. This not only ensures smooth operation of the local wireless network during anchor point switching, but also reduces the operation burden of all users of the wireless devices during wireless networking and saves the time spent by the user in managing and maintaining the local wireless network.

[0101] Embodiment Two

[0102] The embodiment will continue to introduce the local wireless networking method on the basis of the foregoing embodiments.

[0103] It can be understood that the process of creating the first local wireless network by the first device can be the same as the process of creating the first local wireless network by the second device, i.e. the anchor point before the first device indicates the first device to create the first local wireless network through the anchor point switching message, and receives the local wireless device to access the first local wireless network through the first device after the first local wireless network is created. But in some other examples of the embodiment, the first device can also be a wireless device that creates the first local wireless network spontaneously, i.e. before the first device creates the first local wireless network, there is no other device to indicate the first device to create the first local wireless network with the first network identifier.

[0104] The process of determining the standby anchor point by the first device from the node devices of the first local wireless network is introduced below, please refer to Figure 6 The flow chart is shown as follows:

[0105] S602: The first device scans the local wireless network through high frequency.

[0106] In the embodiment, the local wireless network is created based on high frequency signal, so the first device can scan whether there is a local wireless network that can be accessed in the vicinity of the first device through high frequency at the beginning.

[0107] S604: The first device judges whether the local wireless network is scanned.

[0108] If the judgment result is yes, S610 is executed, otherwise S606 is executed.

[0109] S606: The first device selects a high frequency channel to create the first local wireless network.

[0110] In the embodiment, if the first device does not scan any local wireless network, it means that there is no local wireless network in the vicinity of the first device, so the first device cannot join the local wireless network that has been created and can only create a local wireless network by itself. Before the first device creates the local wireless network, the network identifier of the local wireless network to be created by the first device and the frequency point thereof need to be selected. In the embodiment, it is assumed that the network identifier determined by the first device is the first network identifier, and when the first device selects the frequency point of the local wireless network, the high frequency channel can be scanned again to select the high frequency channel with small interference and good channel quality, and then the first local wireless network is created.

[0111] S608: The first device accepts the local wireless device as a node device to access the first local wireless network.

[0112] After the first device creates the first local wireless network, it can accept other local wireless devices to access the first local wireless network, and these local wireless devices accessing the first local wireless network through the first device are node devices of the first local wireless network.

[0113] S610: The first device selects to access the existing local wireless network.

[0114] It can be understood that, for the anchor point (for example, the first device before the anchor point switching, and the second device after the anchor point switching), because the node devices access the first local wireless network through the anchor point, the anchor point can obtain the relevant information of the node devices, for example, obtaining the device identifier (information that can uniquely distinguish a device in the first local wireless network, for example, the MAC address of the device, the name set by the user for the device, etc.) of the node device, obtaining the remaining power of the node device, etc. The anchor point can associate with the node device by using the obtained information, for example, marking the node device by using the device identifier. The anchor point can also generate network device information according to the information of each device in the first local wireless network, and transmit the network device information to each node device in the first local wireless network, so that the node device can also understand other devices in the network except itself according to the network device information. In some examples of the embodiment, the network device information sent by the anchor point to the node device includes the device identifier of each device (which can include the anchor point itself) in the first local wireless network, and after receiving the network device information, the node device can know which devices are in the first local wireless network. In the embodiment, after receiving the network device information, the node device can use the network device information to communicate with other node devices in the first local wireless network through the anchor point, please refer to Figure 7

[0115] S702: The node device receives the network device information sent by the anchor point.

[0116] The network device information received by the node device at least includes the device identifier of each device in the first local wireless network, and in some examples of the embodiment, the network device information sent by the anchor point can further include the location information of each device, so that the node device can also know the current location of each device.

[0117] It should be understood that the node device mentioned here includes the second device and the third device mentioned above.

[0118] S704: The node device selects a device in the first local wireless network as a target communication object according to the network device information.

[0119] After the node device obtains the device identifier of each device in the first local wireless network, the node device can display the device identifier in the form of a list on the screen, for example, please refer to​Figure 8a As shown, the display of the device identities can help the user to understand the situation of the devices in the first local wireless network, and also help the user to select the target communication object. Of course, those skilled in the art can understand that the node device can also not present the network device information of the first local wireless network in the form of a list. For example, in some examples, after receiving the network device information, the node device can display the positions of the devices on the screen according to the position information of the devices, for example, please refer to Figure 8b As shown, in Figure 8b Among them, the node device can also display the device identities of the devices at the corresponding positions on the screen. The user can touch the position corresponding to the device identity on the screen, so that the node device determines the target communication object according to the mapping relationship between the device identity and the position on the screen, and the touch position detected by the screen.

[0120] It can be understood that in some examples, the node device specifies only one device as the target communication object at a time; in other examples, the node device can also specify multiple devices as the target communication object at a time.

[0121] S706: The node device sends a communication message to the target communication object through the anchor point.

[0122] The node device can generate a communication message according to the communication content, which includes but is not limited to at least one of the following: text, file (picture, video or audio), etc. It can be understood that if the target communication object selected by the node device is the anchor point, the communication message can be directly received by the target communication object; but 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 by the anchor point. In order to let the anchor point know that the message is not sent to itself after receiving the communication message, and know which device the communication message should be forwarded to, the node device carries the device identity of the target communication object in the communication message when generating the communication message.

[0123] S708: The first device forwards the communication information to the target communication object in the case where it is determined that the device identity of the first device does not match the device identity of the target communication object.

[0124] After the first device (i.e. the anchor point) receives the communication message, it extracts the device identity carried in the communication message, and judges whether the device identity matches the device identity of the first device. If it matches, it means that the target communication object of the communication message is the first device itself; but if it does not match, the first device will forward the communication message to the corresponding device according to the carried device identity. If the target communication object is only one, the first device can choose to forward in unicast mode, and if the target communication object has multiple, the first device can choose to forward in multicast mode.

[0125] In the above examples, the anchor point determines whether the communication message is sent to itself according to whether the device identifier carried in the communication message matches the device identifier of the anchor point itself, which means that the node device carries the device identifier in the communication message regardless of the target communication object of the communication message. However, in some examples of the embodiment, if the node device is directly sent to the anchor point, the device identifier can not be carried in the communication message, and the corresponding device identifier is carried only if the communication message is sent to other devices. Therefore, in these examples, the anchor point can determine whether the communication message is sent to itself according to whether the device identifier is extracted from the communication message.

[0126] The wireless networking method provided in the embodiment can enable communication between devices in the local wireless network, which is beneficial to information exchange of users of the devices in the corresponding scene, and facilitates risk warning, resource allocation, and the like.

[0127] Embodiment Three

[0128] The embodiment provides a networking method, which can enable information interaction between different wireless networks, for example, as shown in Figure 9

[0129] S902: The first device scans a remote wireless network through low frequency.

[0130] It can be understood that there can be other wireless networks near a local wireless network, for example, as shown in Figure 10 The local wireless network A and the local wireless network B are local wireless networks located in two different places, and for the local wireless network A, the local wireless network B is a remote wireless network, referred to as a “remote wireless network”; similarly, for the local wireless network B, A is also a remote wireless network. Therefore, the remote wireless network is a relative concept, and for a certain local wireless network, its remote wireless network is another local wireless network that has a certain physical distance from it.

[0131] According to 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. In the embodiment, the anchor point of the remote wireless network is referred to as a “remote anchor point”.

[0132] Figure 10 Only two local wireless networks close to each other and serving as remote wireless networks are shown in the above description, and it is self-evident that in actual situations, there can be two or more remote wireless networks near a local wireless network.

[0133] ​It should be appreciated that the distance between the remote wireless network and the local wireless network is usually far, and therefore, it is difficult for a wireless device in the local wireless network to communicate with the remote wireless network through a high frequency channel. In this embodiment, the wireless device in the local wireless network can communicate with the wireless device in the remote wireless network through a low frequency, because the low frequency has advantages of anti-interference, strong penetration performance, long transmission distance, etc. Here, the first device in the foregoing embodiment is taken as an example to illustrate that the first device in the first local wireless network can discover the remote wireless network through a low frequency.

[0134] S904: The first device accesses the remote wireless network through the remote anchor point.

[0135] It should be appreciated that there can be no other local wireless network near the local wireless network, and therefore, the first device can not search for the remote wireless network when searching for the remote wireless network through 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 this case, the first device has no choice but to access the remote wireless network through the remote anchor point of the remote wireless network if the first device wants to interact with the remote wireless network. In some other scenarios, there are two or more remote wireless networks near the first local wireless network, and therefore, the first device can select one of the at least two remote wireless networks to access in the search result. In some examples of this embodiment, the first device selects to access the remote wireless network with the best signal quality by default, and in some other examples, the first device selects to access the remote wireless network closest to the first device by default. In some other examples, the user of the first device can select the remote wireless network to access.

[0136] S906: The first device interacts with the remote anchor point.

[0137] After the first device connects with the remote anchor point through the low frequency connection, the first device can communicate with the remote anchor point to realize information interaction. In the embodiment, the information transmitted between the first device and the remote anchor point includes at least one of the following: text, emoticon, file (audio, video, picture, document), etc. In some examples, the first device and the remote anchor point can know the location of each other, and the first device can transmit its location information to the remote anchor point. Since the location information of the first device can basically represent the overall location of the first local wireless network, the remote anchor point can roughly determine the position of the first local wireless network after receiving the location information transmitted by the first device. This can help realize communication between two or more tour groups in a mountainous area, and improve the safety of the tour groups. In the post-disaster rescue scenario, it is also helpful for communication between different rescue teams and optimization of disaster relief resources. In some examples of the embodiment, the anchor points of the two wireless networks can transmit the location information of all devices in the local wireless network to the opposite end when transmitting the location information. For example, the remote anchor point can send the network device information of the remote wireless network to the first device, and the network device information sent by the remote anchor point includes the device identifier of each device in the remote wireless network, and further includes the location information of each device.

[0138] In some examples of the embodiment, the first device does not support high frequency communication and low frequency communication at the same time, so the connection of the first device with the devices in the local wireless network and the connection between the first device and the remote anchor point can only be alternately performed. In other words, when the first device maintains the first local wireless network, it cannot be connected with the remote anchor point; and when the first device is connected with the remote anchor point, the node devices in the first local wireless network cannot access the first local wireless network. In these examples, the first device can refer to the flow shown in FIG. 13 to realize the switching between the local wireless network connection and the remote wireless network connection. Figure 11

[0139] S1102: The first device sends a sleep message to the node devices in the first local wireless network.

[0140] When the first device maintains the first local wireless network as an anchor point, if there is a demand for communication with the remote wireless network, the first device can send a sleep message to the node devices in the first local wireless network. The sleep message is used to instruct the node devices to save the first network identifier, exit the first local wireless network, and search for access to the first local wireless network again after a preset sleep time. After receiving the sleep message, the node devices can save the first network identifier, exit the first local wireless network, and start timing. When the timing time reaches the preset sleep time, the node devices search for the first local wireless network according to the first network identifier.

[0141] ​S1104: The first device exits the first local wireless network and starts timing from the time the hibernation message was sent.

[0142] After the first device sends out the hibernation message, it can exit the first local wireless network and start timing at the same time.

[0143] S1106: The first device searches for and connects to the remote wireless network.

[0144] S1108: The first device interacts with the remote wireless network.

[0145] The process of the first device searching for and registering the remote wireless network, and exchanging information with the remote wireless network, will not be described in detail here.

[0146] S1110: The first device determines whether the time difference between the current time and the time when the sleep message was sent reaches the preset sleep duration.

[0147] If the judgment result is yes, the first device enters S1112; if the judgment result is no, it continues to execute S1108.

[0148] S1112: The first device disconnects from the remote wireless network and recreates the first local wireless network using the first network identifier for node devices to access.

[0149] After determining that the time difference between the current time and the time when the sleep message is sent reaches the preset sleep duration, the first device disconnects from the segment wireless network and recreates the first local wireless network using the first network identifier. After recreating the first local wireless network, the first device can wait for local wireless devices to connect to it.

[0150] exist Figure 11 In the example shown, after the first device sends a sleep message, it starts timing for a preset sleep duration. Similarly, after receiving the sleep message, the node device also starts timing for a preset sleep duration. Thus, when the node device finishes sleep and resumes searching for the first local wireless network, the first device almost simultaneously disconnects from the remote wireless network and begins rebuilding it. If the first device takes a long time to rebuild the first local wireless network, some node devices may fail to find it, resulting in a search failure. Therefore, in other examples of this embodiment, the timing duration of the first device is not equal to that of the node device; the timing duration of the first device is shorter than that of the node device. This ensures that the first device has recreated the first local wireless network before the node device begins searching again, avoiding the problem of node device search failures.

[0151] It can be understood that the time length required for the first device to search for and access a remote wireless network is usually relatively short, and thus, Figure 11 In the process of determining whether the time length reaches the preset sleep time length, the first device is in the process of starting information interaction with the remote wireless network. However, in fact, the first device can periodically determine whether the time length reaches the preset sleep time length after the time length starts. For example, in some examples, there is no other wireless network around the first device, and thus the first device searches for the remote wireless network that can be accessed multiple times, but the time length has reached the preset sleep time length. In this case, the first device starts to recreate the first local wireless network before accessing the remote wireless network.

[0152] It should be noted that, in the above examples, the anchor point of the first local wireless network communicates with the remote anchor point of the remote wireless network to realize the connection between the two wireless networks, but in some other examples of the present embodiment, the interaction between the wireless networks can also be realized by devices other than the anchor points. For example, in one example, a node device in a local wireless network can be designated as an inter-network interaction device, which accesses the remote wireless network to perform information interaction. Because the node device can also obtain network device information from the anchor point, such as at least one of the device identifier, the location information, and the like of each device in the first local wireless network, the node device can also interact with the remote wireless network to exchange location information and the like. The difference is that, 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, it only needs to save the first network identifier and temporarily exit the first local wireless network, without the need to disperse the entire first local wireless network. After the node device completes the interaction with the remote wireless network, it can search for and join the first local wireless network according to the first network identifier.

[0153] It should be understood that, if the wireless device supports simultaneous high-frequency and low-frequency communication, it does not need to exit the first local wireless network when it is used as the inter-network interaction device. In this case, the anchor point or the node device as the inter-network interaction device has little difference in effect.

[0154] The wireless networking method provided by the present embodiment not only enables the wireless device to create a local wireless network by using a high-frequency channel to realize the interaction between local wireless devices, but also enables the devices in the local wireless network to connect to other wireless networks that are far away by using a low-frequency channel to realize information interaction, which is conducive to information transmission and expansion of the communication range.

[0155] Embodiment Four

[0156] The Internet of Things refers to real-time collection of information of any object that needs to be monitored, connected and interacted through information sensors, radio frequency identification technology, global positioning system, infrared sensor, laser scanner and other devices and technologies, collection of sound, light, heat, electricity, mechanics, chemistry, biology, position and other information, access through various possible networks, realize the ubiquitous connection of things and people, and then realize the intelligent perception, identification and management of objects and processes. The Internet of Things is an information carrier based on the Internet, traditional telecommunication network, etc. It allows all ordinary physical objects that can be independently addressed to form an interconnected network.

[0157] D2D (Device-to-Device) communication is a new technology that allows terminals to communicate directly through multiplexing cell resources under the control of the system, which to some extent solves the problem of lack of spectrum resources in wireless communication system. D2D technology can be applied to mobile cellular networks to improve resource utilization and network capacity. Each D2D communication link occupies the same resources as a cellular communication link.

[0158] At present, the application of IOT or D2D is based on the Internet. If the backbone network or mobile communication network is left, the two will be limited or even lead to the inability to realize the function. At present, the communication between wireless devices mainly relies on the basic communication network of the base station, such as: Tianyi intercom, Zhuozhid, cluster, micro-la, etc. This communication scheme needs the assistance of traditional base station equipment and cannot meet the needs in specific situations such as no base station signal or poor base station signal. Another is to implant a walkie-talkie module into a wireless device, for example, in some examples, a walkie-talkie module can be implanted in a smart phone cover, thereby combining a smart phone and a walkie-talkie. In some other examples, a walkie-talkie module can be directly placed in the mainboard of a smart phone. The phone uses a cellular network, and the intercom function is realized based on the LoRa (Long Range Radio) protocol. This communication scheme not only increases the size and power consumption of the wireless device, but also makes it extremely likely that the protocol it relies on will be eliminated, such as the LoRa protocol will no longer be promoted in China in the future.

[0159] In view of the above problems, the embodiment provides a wireless networking scheme: in the absence of mobile base station signal coverage, 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 at the same time, the anchor point of the local wireless network can also be connected with other local wireless networks through a low-frequency channel and effective communication is carried out, thereby completing information transmission.

[0160] The wireless device tries to scan the local wireless network in the nearby area after triggering the local wireless networking, and if a local wireless network is scanned, one can be selected from the scanning result and the wireless device tries to join; otherwise, the wireless device can form a local wireless network with itself as the anchor point and provide access for other wireless devices. In addition, the anchors of two or more local wireless networks can also establish a larger range of local wireless networks to achieve information sharing. The wireless networking scheme in this embodiment includes some of the following processes:

[0161] First, the local wireless network is formed by high frequency.

[0162] In the case where the wireless base station signal has no coverage or the coverage signal is weak, the wireless device triggers the local wireless networking: first, it scans whether there is a local wireless network in the nearby area, and if there is, it tries to access the existing local wireless network, otherwise it forms a new local wireless network with itself as the anchor point, please refer to Figure 12

[0163] S1202: The wireless device scans the wireless high frequency channel;

[0164] S1204: The wireless device determines whether a local wireless network is scanned;

[0165] If it is confirmed that there is no local wireless network in the nearby area through the high frequency channel scanning, it enters step S1206; otherwise, it enters step S1210;

[0166] S1206: The wireless device determines the network identifier of the local wireless network to be created, scans the high frequency channel and selects the high frequency channel for creating the local wireless network;

[0167] S1208: The wireless device creates a local wireless network with itself as the anchor point and waits for other local wireless devices to access the network;

[0168] S1210: The wireless device selects a target wireless network from the scanning result;

[0169] The so-called "target wireless network" in this embodiment is the local wireless network that the wireless device wants to access.

[0170] S1212: The wireless device sends an access request to the target wireless network;

[0171] After the anchor point of the target wireless network receives the access request of the wireless device, it can determine whether the wireless device can access according to the network condition.

[0172] S1214: The wireless device accesses the target wireless network and performs information transmission and interaction.

[0173] ​Of course, if the wireless device is rejected by the target wireless network anchor point, it cannot access the target wireless network and can only select a new target wireless network from the search results or create a local wireless network by itself.

[0174] Second, the wireless device as an anchor point periodically locates the node devices in the local wireless network.

[0175] In the embodiment, the location is mainly performed by the anchor point in the local wireless network. After locating the local wireless network, the anchor point can broadcast the location information of all the devices in the network to all the node devices in the local wireless network and mark each node device with a device identifier, which is particularly important in emergency rescue or team travel. It can be understood that the anchor point can perform broadcast communication to the node devices in the local wireless network or perform unicast communication to any node device.

[0176] Third, the wireless device as an anchor point can interact with the remote wireless network.

[0177] Please refer to Figure 13 as shown:

[0178] S1302: The anchor point saves the network identifier of the local wireless network and sends a sleep message to the node devices in the local wireless network.

[0179] S1304: The node devices save the network identifier of the local wireless network after receiving the sleep message and exit the local wireless network.

[0180] S1306: The anchor point scans the remote wireless network through low frequency scanning.

[0181] S1308: The anchor point selects a target remote wireless network.

[0182] After scanning the remote wireless network, the anchor point can determine whether the remote wireless network is scanned in the nearby area. If yes, it can select a remote wireless network as the target remote wireless network.

[0183] S1310: The anchor point establishes a connection with the remote anchor point.

[0184] S1312: The anchor point interacts with the remote anchor point.

[0185] The anchor point shares the location information of the devices in the local wireless network with the anchor point of the target remote wireless network, i.e., the remote anchor point, and can also transmit text, voice, and other information.

[0186] Optionally, when the anchor point of the local wireless network transmits information to the remote wireless network, it can selectively filter sensitive information or use other means to ensure the security of sensitive information.

[0187] S1314: The anchor point determines whether the time difference between the current time and the time of sending the sleep message reaches the preset sleep duration;

[0188] If yes, go to S1316; otherwise, return to step S1312;

[0189] S1316: When the determination result is yes, the anchor point disconnects the connection with the remote wireless network and re-establishes the local wireless network;

[0190] S1318: The anchor point accepts the access of the node devices of the local wireless network.

[0191] It can be understood that for the node devices in the local wireless network, after receiving the sleep message, the network identifier of the local wireless network is saved, the local wireless network is exited, and the timing is started until the timing duration reaches the preset sleep duration, and then the local wireless network is searched and joined again.

[0192] In some examples of the embodiment, the anchor point can indicate the size of the preset sleep duration to the node devices in the sleep message, so that the anchor point can flexibly set the preset sleep duration according to the interaction needs of the anchor point with the remote wireless network.

[0193] Fourth, the wireless device as the anchor point can help to realize the information interaction between the node devices in the local wireless network.

[0194] The anchor point can transmit the network device information (including the identifier information and the location information of each device) of the local wireless network to each node device of the local wireless network. After receiving the network device information, the node device can display it on the screen to present the relative position relationship between each device to the user. The user can specify a target communication object from each device other than itself, and the node device generates a communication message carrying the identifier of the target communication object device. After the node device generates the communication message, it sends it to the anchor point. After receiving the communication message, the anchor point extracts the device identifier carried therein and determines whether the device identifier matches the device identifier of the anchor point. If they match, it means that the target communication object of the communication message is the anchor point itself; but if they do not match, the first device will forward the communication message to the corresponding device according to the device identifier carried therein.

[0195] Fifth, the wireless device as the anchor point controls the anchor point switching.

[0196] The connection and communication of the local wireless network are realized by the anchor point in the network, and different application scenarios can have different requirements for the anchor point. For example, in emergency rescue, a wireless device with a large active range can be selected as the anchor point, and in team travel, a wireless device with a position close to the center can be selected as the anchor point. In addition, the selection of the anchor point also needs to consider the current state of the corresponding wireless device, such as the battery power. In the embodiment, the local wireless network can actively adjust the anchor point as needed to maximize the normal use of the network. Please see the following anchor point flowchart: Figure 14 The anchor point flowchart shown in the figure is as follows:

[0197] S1402: The anchor point obtains its own state information;

[0198] In the embodiment, the state information of the anchor point includes the remaining power and the relative position of the anchor point in the devices in the local wireless network.

[0199] S1404: The anchor point determines whether its state can continue to serve as the anchor point in the current network working mode.

[0200] If the determination result is no, S1406 is entered; if the determination result is yes, a period of time is waited, and then S1402 is continuously executed.

[0201] In the embodiment, the anchor point supports working in two network working modes: travel mode and emergency mode, wherein the travel mode is suitable for team travel scenarios, and the emergency mode is suitable for emergency rescue scenarios. According to the foregoing introduction, different network working modes have different requirements for the position of the anchor point, so if the position of the current anchor point does not meet the requirements of the current network working mode, anchor point switching can be needed. In addition, because the power consumption of maintaining the local wireless network as the anchor point is relatively high, if the remaining power of the anchor point is not much, the anchor point is not suitable to continue to serve as the anchor point of the local wireless network. In some examples of the embodiment, as long as one kind of state information of the anchor point does not meet the requirements of the current network working mode, anchor point switching can be triggered. In some other examples, anchor point switching is triggered only when the number of kinds of state information of the anchor point that does not meet the requirements of the current network working mode reaches a certain number. In some other examples, anchor point switching is triggered only when all the state information of the anchor point does not meet the requirements of the current network working mode.

[0202] S1406: The anchor point selects a standby anchor point according to the position information of each node device obtained and according to the corresponding selection principle.

[0203] In some examples of the embodiment, the anchor point periodically obtains the position information of each device in the local wireless network, and when it is determined that anchor point switching is needed, the anchor point selects a corresponding standby anchor point in combination with the anchor point selection principle corresponding to the current network working mode and the position information of each device.

[0204] It can be understood that in some examples, the anchor point selection backup anchor point is verified and can not be suitable as an anchor point, for example, it does not have the ability to be an anchor point, then the anchor point needs to reselect the backup anchor point, in this case, when the anchor point reselects, the previous backup anchor point is excluded.

[0205] S1408: The anchor point sends a configuration information request message to the backup anchor point;

[0206] S1410: The anchor point receives the device configuration information of the backup anchor point;

[0207] S1412: The anchor point determines whether the backup anchor point has the ability to be an anchor point according to the device configuration information;

[0208] If the determination result is yes, go to S1414, otherwise execute S1406.

[0209] S1414: Start anchor point switching.

[0210] The following will be described in conjunction with Figure 15 The anchor point switching process is described, in Figure 15 Among them, the first device and the second device are respectively the anchor point and the backup anchor point, and the third device is a node device in the local wireless network except the anchor point and the backup anchor point:

[0211] S1502: The first device sends an anchor point switching message to the second device;

[0212] S1504: The second device sends a switching confirmation message to the first device;

[0213] S1506: The first device sends a switching message to the second device and the third device;

[0214] S1508: The first device, the second device, and the third device save the network identifier and exit the local wireless network;

[0215] S1510: The second device re-creates the local wireless network according to the saved network identifier;

[0216] S1512: The first device and the third device search and access the local wireless network according to the saved network identifier.

[0217] It can be understood that the first device and the third device, as the wireless devices, can not search for the local wireless network according to the saved network identifier, and in this case, the wireless device can search again after the search fails, until the number of search failures reaches a certain number, or the search time reaches a certain length, and then the search can be stopped and the local wireless network can be created again. In an example of the embodiment, when the wireless device creates the local wireless network, a new network identifier can be selected, or the saved network identifier can be used, because if the new network identifier is used, the devices in the original network can be reconnected to the same network as soon as possible, and other wireless devices can also create the local wireless network due to the search failure.

[0218] The application can not only provide emergency communication and positioning services in the case of no coverage or weak coverage of the wireless base station signal, but also provide organization and communication services among team members during travel. The embodiment of the application also provides corresponding devices and systems. The following will be described in detail.

[0219] Embodiment five:

[0220] The embodiment provides a storage medium, which includes volatile or non-volatile, removable or non-removable medium implemented in any method or technology for storing information, such as computer readable instructions, data structures, computer program modules or other data. The storage medium 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 Disc Read-Only Memory), digital versatile disc (DVD) or other optical disc storage, magnetic box, magnetic tape, magnetic disc storage or other magnetic storage device, or any other medium that can be used to store desired information and can be accessed by a computer.

[0221] The storage medium can store one or more computer programs readable, compiled and executable by one or more processors. In the embodiment, the storage medium can store a first wireless networking program executable by the one or more processors to implement the process of the first device side (anchor point side) in any of the wireless networking methods introduced in the foregoing embodiments; a second wireless networking program executable by the one or more processors to implement the process of the second device side (backup anchor point side) in any of the wireless networking methods introduced in the foregoing embodiments; and a third wireless networking program executable by the one or more processors to implement the process of the third device side (node device side) in any of the wireless networking methods introduced in the foregoing embodiments.

[0222] The embodiment also provides a computer program product including a computer readable device having stored thereon the computer program as described above. In the embodiment, the computer readable device can include the computer readable storage medium as described above. For example, the computer program product includes a wireless device, such as the wireless device 16 as shown in the following figure: Figure 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, and the memory 162 can be the storage medium as described above storing at least one of the first wireless networking program, the second wireless networking program and the third wireless networking program.

[0223] It can be understood that, generally, a wireless device needs to be an anchor point in some cases, a backup anchor point in some other cases, and only a normal node device in some other cases. Therefore, in some examples of the 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 can select one of them to execute according to the situation and implement the corresponding process.

[0224] The wireless device 16 in the embodiment includes at least one of a mobile phone, a PAD (tablet computer), a PDA (personal digital assistant), a wearable device and the like.

[0225] The specific process of the wireless device 16 implementing the wireless networking method can refer to the introduction of the foregoing embodiments, which will not be described here again.

[0226] It will be apparent to those skilled in the art that all or some of the steps, functions, procedures, modules and / or units in the methods disclosed above can be implemented by software (which can be written in computer program code), firmware, hardware, or any suitable combination thereof. In hardware implementations, the division between the functional modules / units referred to in the above description does not necessarily correspond to the division of physical components; for example, one physical component can serve multiple functions, or one function or step can be performed by several physical components working in cooperation. Some or all of the physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit.

[0227] Moreover, it is publicly known to those skilled in the art that communication media typically embodies computer-readable instructions, data structures, computer program modules or other data in modulated data signals such as carrier waves or other transport mechanisms, and can include any information delivery media. Therefore, the present application is not limited to any particular hardware and software combination.

[0228] The above description is further to the detailed description of the embodiments of the present application in connection with the specific implementation, and cannot be deemed as limiting the specific implementation of the present application to these descriptions. For those skilled in the art, some simple deductions or replacements can be made without departing from the concept of the present application, and all of these should be deemed as falling within the protection scope of the present application.

Claims

1. A wireless networking method, comprising: determining, by a first device, a backup anchor point from node devices of a first local wireless network, the first device being a current anchor point of the first local wireless network, a network identity of the first local wireless network being a first network identity; sending, by the first device, an anchor point switching packet to the backup anchor point of the first local wireless network, the anchor point switching packet being used to instruct the backup anchor point to be a new anchor point of the first local wireless network; sending, by the first device, a switching message to node devices in the first local wireless network, the switching message being used to instruct the node devices to save the first network identity and exit the first local wireless network; searching, by the first device, for and accessing a first local wireless network created by the backup anchor point according to the first network identity; before the determining, by the first device, the backup anchor point from the node devices of the first local wireless network, further comprising: scanning, by the first device, a remote wireless network through a low frequency, the remote wireless network being a wireless network created by another remote anchor point and independent of the first local wireless network; accessing, by the first device, the remote wireless network through the remote anchor point, the remote anchor point being an anchor point of the remote wireless network; interacting, by the first device, with the remote anchor point.

2. The wireless networking method of claim 1, wherein, The determining, by the first device, the backup anchor point from the node devices of the first local wireless network, comprises: obtaining, by the first device, location information of the node devices in the first local wireless network; determining, by the first device, the backup anchor point according to the location information of the node devices.

3. The wireless networking method of claim 2, wherein, The determining, by the first device, the backup anchor point according to the location information of the node devices, comprises: in a case where a working mode of the first local wireless network is a first working mode, determining, by the first device, a node device in a center of the first local wireless network as the backup node device according to the location information of the node devices; in a case where the working mode of the first local wireless network is a second working mode, determining, by the first device, a node device with a largest active range in the first local wireless network as the backup node device according to the location information of the node devices.

4. The wireless networking method of claim 1, wherein, further comprising: sending, by the first device, network device information to the node devices in the first local wireless network, the network device information including device identities of the devices in the first local wireless network.

5. The wireless meshing method of claim 4, wherein, after the sending, by the first device, the network device information to the node devices in the first local wireless network, further comprising: receiving, by the first device, communication information sent by the node devices, the communication information including a device identity of a target communication object; in a case where a device identity of the first device is determined to be not matched with the device identity of the target communication object, forwarding, by the first device, the communication information to the target communication object.

6. The wireless meshing method of claim 1, wherein, before the scanning, by the first device, the remote wireless network through the low frequency, further comprising: The first device sends a hibernation message to a node device in the first local wireless network, the hibernation message being used to instruct the node device to save the first network identifier, exit the first local wireless network, and search for access to the first local wireless network again after a preset hibernation time length; The first device further comprises the following steps after scanning a remote wireless network by low frequency: The first device determines that a time difference between a current time and a sending time of the hibernation message reaches the preset hibernation time length; The first device disconnects the connection with the remote wireless network, and re-creates the first local wireless network by using the first network identifier for the node device to access.

7. A wireless networking method, comprising: A second device receives an anchor point switching packet sent by an anchor point of a first local wireless network, the anchor point switching packet being used to instruct the second device to switch to a new anchor point of the first local wireless network, and a network identifier of the first local wireless network being a first network identifier; The second device saves the first network identifier and exits the first local wireless network; The second device re-creates the first local wireless network according to the first network identifier; The second device accepts a local wireless device as a node device of the first local wireless network to access the first local wireless network; Before the step of the second device receiving the anchor point switching packet sent by the anchor point of the first local wireless network, the method further comprises: The second device receives a hibernation message sent by an anchor point in the first local wireless network; The second device saves the first network identifier, exits the first local wireless network, and starts timing; After a timing time length reaches a preset hibernation time length, the second device searches for and accesses the first local wireless network re-created by the anchor point according to the first network identifier.

8. The wireless mesh networking method of claim 7, wherein, Before the second device receives the anchor point switching packet sent by the anchor point of the first local wireless network, the method further comprises: The second device receives device configuration information sent by the anchor point; The second device sends the device configuration information to the anchor point according to the configuration information request packet, and the device configuration information is used to represent the capability of the second device as an anchor point.

9. A wireless networking method, comprising: A third device receives a switching message sent by an anchor point in a first local wireless network, the switching message being used to represent that the anchor point of the first local wireless network will be switched, and a network identifier of the first local wireless network being a first network identifier; The third device saves the first network identifier and exits the first local wireless network according to the switching message; The third device searches for and accesses the first local wireless network created by a new anchor point according to the first network identifier; The third device receives a hibernation message sent by an anchor point in the first local wireless network; The third device saves the first network identifier, exits the first local wireless network, and starts timing; After a timing time length reaches a preset hibernation time length, the third device searches for and accesses the first local wireless network re-created by the anchor point according to the first network identifier.

10. The wireless networking method of claim 9, wherein, The third device searches and accesses a first local wireless network according to the first network identifier includes: The third device searches and accesses a first local wireless network according to the first network identifier includes: The third device creates a second local wireless network on a high frequency channel if the first local wireless network is not found, and the network identifier of the second local wireless network is a second network identifier; The third device accepts a local wireless device as a node device to access the second local wireless network.

11. The wireless networking method of any of claims 9-10, wherein, The wireless networking method further includes: The third device receives network device information sent by the anchor point, and the network device information at least includes device identifiers of devices in the first local wireless network; The third device selects a device in the first local wireless network as a target communication object according to the network device information; The third device sends a communication message to the target communication object through the anchor point, and the communication message includes the device identifier of the target communication object.

12. The wireless mesh networking method of claim 11, wherein, The network device information further includes position information of the devices; The third device selects a device in the first local wireless network as a target communication object according to the network device information includes: The third device controls a screen to display the position and the device identifier of each device in the first local wireless network according to the network device information; The third device determines the target communication object according to the mapping relationship between the device identifier and the position of the screen and the touch position detected by the screen.

13. A wireless device, comprising a processor, a memory and a communication bus; The communication bus is used to realize the connection communication between the processor and the memory; The processor is used to execute a first wireless networking program stored in the memory to realize the steps of the wireless networking method in any one of claims 1 to 6; or, the processor is used to execute a second wireless networking program stored in the memory to realize the steps of the wireless networking method in claim 7 or 8; or, the processor is used to execute a third wireless networking program stored in the memory to realize the steps of the wireless networking method in any one of claims 9 to 12.

14. A storage medium, characterized by The storage medium stores 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 can be executed by one or more processors to realize the steps of the wireless networking method in any one of claims 1 to 6; the second wireless networking program can be executed by one or more processors to realize the steps of the wireless networking method in claim 7 or 8; and the third wireless networking program can be executed by one or more processors to realize the steps of the wireless networking method in any one of claims 9 to 12.

Citation Information

Patent Citations

  • Wi-Fi mobile networking method with balanced energy consumption

    CN104780580A

  • A wireless networking method and a terminal

    CN109729557A