Network communication method, device and computer readable storage medium
By automatically obtaining network status data in the networking device to determine the target frequency point and establishing a connection, the problem of inefficient networking caused by frequency interference is solved, a fast and automatic networking process is realized, and communication efficiency is improved.
Patent Information
- Application Number
- CN202111132508.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-26
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2041-09-26
AI Technical Summary
During the inter-node communication process of networking equipment, external frequency interference leads to cumbersome frequency switching, affecting network efficiency. Especially when there are many frequency points, it takes a lot of time to determine the frequency point with the least interference.
When receiving the network access request from the target node, the network status data of the preset frequency band is obtained, the target frequency point is automatically determined based on the noise floor data or access status information, and a connection is established to monitor the access status information of other to be selected frequency points. Determine the second target frequency and improve networking efficiency.
There is no need for users to manually switch frequency points, which reduces the time to determine the target frequency points, improves networking efficiency, simplifies the frequency point screening process, and improves communication efficiency.
Smart Images

Figure CN113784448B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technologies, and in particular to a networking communication method, device and computer-readable storage medium. Background Art
[0002] During the communication process of each node of the networking equipment, it is easy to be interfered by the external frequency, which can easily affect the mutual communication between the networking equipment. Based on this, it is necessary to determine the frequency with the least interference from each frequency point, so that each node can communicate based on the frequency with the least interference. In view of these situations, the generally adopted solution is to manually switch each frequency point after each networking device is powered on, calculate the interference degree of each frequency point, and then determine the frequency with the least interference degree. Based on the manual switching of each frequency point, when the number of frequency points is large, it takes a lot of time to screen and switch the frequency points, resulting in low networking efficiency.
[0003] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention
[0004] The main purpose of the present invention is to provide a networking communication method, device and computer-readable storage medium, aiming to improve networking efficiency.
[0005] To achieve the above object, the present invention provides a networking communication method, the networking communication method comprising:
[0006] When receiving a network access request from a target node, obtaining network status data of a preset frequency band, wherein the preset frequency band includes at least one frequency point to be selected, and the network status data includes background noise data and / or access status information;
[0007] Determine a target frequency point from the at least one frequency point to be selected according to the network status data;
[0008] Control the target node to establish a connection with the target frequency point.
[0009] Optionally, the step of determining a target frequency point from the at least one frequency point to be selected according to the network status data includes:
[0010] Determine a used frequency point from the at least one frequency point to be selected according to the access state information;
[0011] The used frequency point is determined as the target frequency point.
[0012] Optionally, the step of determining a target frequency point from the at least one frequency point to be selected according to the network status data further includes:
[0013] A frequency point with the smallest background noise is selected from the at least one frequency point to be selected as a target frequency point according to the background noise data.
[0014] Optionally, the step of determining a target frequency point from the at least one frequency point to be selected according to the network status data further includes:
[0015] When the at least one candidate frequency point does not include a used frequency point, a candidate frequency point with the smallest background noise is selected from the at least one candidate frequency point as a target frequency point according to the background noise data.
[0016] Optionally, after the step of controlling the target node to establish a connection with the target frequency point, the method further includes:
[0017] Monitoring access status information of other candidate frequency points among the at least one candidate frequency point except the target frequency point;
[0018] Determining whether a synchronization signal is searched on the other frequency points to be selected according to the access status information of the other frequency points to be selected;
[0019] When a synchronization signal is searched for at the other candidate frequency points, determining a second target frequency point from the target frequency point and the candidate frequency point where the synchronization signal is searched for;
[0020] The target node is controlled to be connected to the second target frequency point, or the node corresponding to the candidate frequency point where the synchronization signal is searched is controlled to be connected to the second target frequency point.
[0021] Optionally, when a synchronization signal is searched for at the other candidate frequency points, the step of determining a second target frequency point from the target frequency point and the candidate frequency point where the synchronization signal is searched includes:
[0022] Acquire a first node identification value corresponding to the target frequency point and a second node identification value corresponding to the selected frequency point of the searched synchronization signal;
[0023] Comparing the first node identification value with the second node identification value;
[0024] The node identification value with the smallest node identification value between the first node identification value and the second node identification value is used as the target node identification value;
[0025] The frequency corresponding to the target node identification value is determined as the second target frequency.
[0026] Optionally, the step of monitoring access status information of other frequency points except the target frequency point includes:
[0027] Determining a preset monitoring time interval according to the first node identification value corresponding to the target frequency point;
[0028] The target node is controlled to monitor access status information of other candidate frequency points among the at least one candidate frequency point except the target frequency point at the preset monitoring time interval.
[0029] Optionally, the step of acquiring network status data of a preset frequency band includes:
[0030] Get the preset number of consecutive measurements;
[0031] The step of repeatedly performing the preset measurement for a continuous number of times to detect the background noise and / or access status information of each of the to-be-selected frequency points within a preset time period is repeated.
[0032] In addition, to achieve the above-mentioned purpose, the present invention also provides a networking communication device, which includes: a memory, a processor, and a networking communication program stored in the memory and executable on the processor, and when the networking communication program is executed by the processor, the steps of the networking communication method described above are implemented.
[0033] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a networking communication program is stored, and when the networking communication program is executed by a processor, the steps of the networking communication method described above are implemented.
[0034] A networking communication method, device and computer-readable storage medium proposed in an embodiment of the present invention obtain network status data of each frequency point in a preset frequency band when receiving a network access request from a target node, and then determine the connected frequency point according to the network status data, and use the connected frequency point as the target frequency point, or determine the frequency point with the smallest background noise according to the network status data, and determine the frequency point with the smallest background noise as the target frequency point, and then connect the target node to the target frequency point, thereby achieving successful addition of the target node to the networking communication network and improving networking efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 It is a schematic diagram of the terminal structure of the hardware operating environment involved in the embodiment of the present invention;
[0036] Figure 2 A schematic diagram of the flow chart of the first embodiment of the networking communication method of the present invention;
[0037] Figure 3 A schematic diagram of a first embodiment of a networking communication method of the present invention;
[0038] Figure 4 It is a flowchart of the second embodiment of the networking communication method of the present invention.
[0039] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0040] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0041] The main solution of the embodiment of the present invention is: when receiving a network access request from a target node, obtaining network status data of a preset frequency band, the preset frequency band includes at least one frequency point to be selected, and the network status data includes background noise data and / or access status information; determining a target frequency point from the at least one frequency point to be selected according to the network status data; and controlling the target node to establish a connection with the target frequency point.
[0042] like Figure 1 As shown, Figure 1 It is a schematic diagram of the terminal structure of the hardware operating environment involved in the embodiment of the present invention.
[0043] The terminal of the embodiment of the present invention can be a PC, or it can be a smart phone, a tablet computer, an e-book reader, an MP3 (Moving Picture Experts Group Audio Layer III) player, an MP4 (Moving Picture Experts Group Audio Layer IV) player, a portable computer, or other portable terminal devices with display function.
[0044] like Figure 1 As shown, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0045] Optionally, the terminal may also include a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, and the like. Among them, sensors include light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display screen according to the brightness of the ambient light, and the proximity sensor may turn off the display screen and / or backlight when the mobile terminal is moved to the ear. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; of course, the mobile terminal may also be equipped with other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which will not be repeated here.
[0046] Those skilled in the art will understand that Figure 1 The terminal structure shown in the figure does not constitute a limitation on the terminal, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0047] like Figure 1 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a networking communication program.
[0048] exist Figure 1 In the terminal shown, the network interface 1004 is mainly used to connect to the backend server and communicate data with the backend server; the user interface 1003 is mainly used to connect to the client (user end) and communicate data with the client; and the processor 1001 can be used to call the networking communication program stored in the memory 1005 and perform the following operations:
[0049] When receiving a network access request from a target node, obtaining network status data of a preset frequency band, wherein the preset frequency band includes at least one frequency point to be selected, and the network status data includes background noise data and / or access status information;
[0050] Determine a target frequency point from the at least one frequency point to be selected according to the network status data;
[0051] Control the target node to establish a connection with the target frequency point.
[0052] Further, the processor 1001 may call the networking communication program stored in the memory 1005, and further perform the following operations:
[0053] Determine a used frequency point from the at least one frequency point to be selected according to the access state information;
[0054] The used frequency point is determined as the target frequency point.
[0055] Further, the processor 1001 may call the networking communication program stored in the memory 1005, and further perform the following operations:
[0056] A frequency point with the smallest background noise is selected from the at least one frequency point to be selected as a target frequency point according to the background noise data.
[0057] Further, the processor 1001 may call the networking communication program stored in the memory 1005, and further perform the following operations:
[0058] When the at least one candidate frequency point does not include a used frequency point, a candidate frequency point with the smallest background noise is selected from the at least one candidate frequency point as a target frequency point according to the background noise data.
[0059] Further, the processor 1001 may call the networking communication program stored in the memory 1005, and further perform the following operations:
[0060] Monitoring access status information of other candidate frequency points among the at least one candidate frequency point except the target frequency point;
[0061] Determining whether a synchronization signal is searched on the other frequency points to be selected according to the access status information of the other frequency points to be selected;
[0062] When a synchronization signal is searched for at the other candidate frequency points, determining a second target frequency point from the target frequency point and the candidate frequency point where the synchronization signal is searched for;
[0063] The target node is controlled to be connected to the second target frequency point, or the node corresponding to the candidate frequency point where the synchronization signal is searched is controlled to be connected to the second target frequency point.
[0064] Further, the processor 1001 may call the networking communication program stored in the memory 1005, and further perform the following operations:
[0065] Acquire a first node identification value corresponding to the target frequency point and a second node identification value corresponding to the selected frequency point of the searched synchronization signal;
[0066] Comparing the first node identification value with the second node identification value;
[0067] The node identification value with the smallest node identification value between the first node identification value and the second node identification value is used as the target node identification value;
[0068] The frequency corresponding to the target node identification value is determined as the second target frequency.
[0069] Further, the processor 1001 may call the networking communication program stored in the memory 1005, and further perform the following operations:
[0070] Determining a preset monitoring time interval according to the first node identification value corresponding to the target frequency point;
[0071] The target node is controlled to monitor access status information of other candidate frequency points among the at least one candidate frequency point except the target frequency point at the preset monitoring time interval.
[0072] Further, the processor 1001 may call the networking communication program stored in the memory 1005, and further perform the following operations:
[0073] Get the preset number of consecutive measurements;
[0074] The step of repeatedly performing the preset measurement for a continuous number of times to detect the background noise and / or access status information of each of the to-be-selected frequency points within a preset time period is repeated.
[0075] Reference Figure 2 The first embodiment of the networking communication method of the present invention provides a networking communication method, and the networking communication method includes:
[0076] Step S10, when receiving a network access request from a target node, obtaining network status data of a preset frequency band, wherein the preset frequency band includes at least one frequency point to be selected, and the network status data includes background noise data and / or access status information;
[0077] Step S20, determining a target frequency point from the at least one frequency point to be selected according to the network status data;
[0078] Step S30, controlling the target node to establish a connection with the target frequency point.
[0079] During the communication process of each node of the networking device, it is easy to be interfered by the external frequency, which can easily affect the mutual communication between the networking devices. Based on this, it is necessary to determine the frequency with the least interference from each frequency point, so that each node can communicate based on the frequency with the least interference. In view of these situations, the generally adopted solution is to manually switch each frequency point after each networking device is powered on, calculate the interference degree of each frequency point, and then determine the frequency with the least interference degree. Based on the manual switching of each frequency point, when the number of frequency points is large, it takes a lot of time to determine the frequency with the least interference degree, and the steps are cumbersome, resulting in low networking efficiency.
[0080] Based on this, the embodiment of the present application automatically obtains the network status data of each frequency point in the preset frequency band after the target node is powered on, and then determines the target frequency point according to the network status data, and then establishes a connection between the target node and the target frequency point, and then communicates with the target node based on the target frequency point, thereby eliminating the need for the user to manually switch between the various frequencies to detect the degree of interference of each frequency point, reducing the time required to determine the target frequency point, and thereby improving networking efficiency.
[0081] Optionally, the target node is a terminal device that currently needs to access the network. The preset frequency band can be a system configuration before leaving the factory, or it can be an adaptive setting by the user before networking. The preset frequency band is the frequency range corresponding to the frequency point, and the frequency range can be 1900MHz-1920MHz, or 2010MHz-2025MHZ.
[0082] Optionally, the preset frequency band includes at least one frequency point to be selected, and the frequency point to be selected is a frequency point for transmitting wireless information, which is a specific numerical value, wherein the frequency point to be selected can be obtained in the preset frequency band at a preset frequency interval. For example, the frequency interval is 1MHz, and the preset frequency band is "1900MHz-1920MHz", then the frequency points to be selected are "1900MHZ, 1901MHz, 1902MHz, 1903MHz...1920MHz" respectively.
[0083] Optionally, each of the to-be-selected frequency points corresponds to its own network status data, the network status data includes background noise data and / or access status information, the background noise data is the background noise corresponding to each of the to-be-selected frequency points, the access status information includes a used status and an unused status, when the access status information of the to-be-selected frequency point is in the used status, it means that the to-be-selected frequency point has established a connection with the node, and the to-be-selected frequency point that has established a connection with the node is the used frequency point; when the access status information of the to-be-selected frequency point is in the unused status, it means that the to-be-selected frequency point has not established a connection with any node, and the to-be-selected frequency point that has not established a connection with any node is the unused frequency point.
[0084] It can be understood that in the same network, each node establishes networking communication based on the same frequency point, and each node at the same frequency point can communicate with each other. At least one node is combined with a frequency point to form a wireless self-organizing network. For example, a temperature sensor used to detect the temperature of different rooms is connected to the same frequency point to form a wireless self-organizing network of the temperature detection system, and the temperature sensor is the node.
[0085] Based on this, when the target node includes at least one node, in order to prevent each node from establishing a connection with a different frequency point, the step of obtaining the network status data of the preset frequency point includes:
[0086] Get the preset number of consecutive measurements;
[0087] Detecting background noise and / or access status information of each of the to-be-selected frequency points within a preset time period;
[0088] The step of repeatedly performing the preset measurement for a continuous number of times to detect the background noise and / or access status information of each of the to-be-selected frequency points within a preset time period is repeated.
[0089] Optionally, each node has a different node identifier, which is used to characterize the node. In an embodiment of the present application, a correspondence between the node identifier and the preset number of consecutive measurements is established, and each of the node identifiers has a different preset number of consecutive measurements, that is, each node has a different preset number of consecutive measurements. For example, if the node identifier is ID01, the preset number of consecutive measurements corresponding to ID01 is 1, and if the node identifier is ID03, the preset number of measurements corresponding to ID03 is 3.
[0090] Optionally, when a network access request of a target node is received, a target node identifier corresponding to the target node is obtained, and then a preset number of consecutive measurements corresponding to the target node identifier is determined according to a correspondence between the node identifier and the preset number of consecutive measurements.
[0091] After obtaining the preset number of consecutive measurements, the background noise and / or access status information of each frequency point is detected within a preset time length, and the preset time length may include a preset number of preset frame lengths, and the preset frame length may be 20ms or 40ms. The preset number is determined according to the number of frequency points to be selected. For example, the preset frequency points include 10 frequency points, and the preset number is 10. If the frame length is 20ms, the preset time length is 20ms*10=200ms.
[0092] Specifically, refer to Figure 3 , Figure 3In order to obtain the schematic diagram of the network status data of the preset frequency band, the specific steps of detecting the background noise and / or access status information of each of the to-be-selected frequency points within the preset time length are to detect the background noise and / or access status information of each of the to-be-selected frequency points in sequence in a preset order and detect the preset frame length in each of the to-be-selected frequency points. For example: the preset number of consecutive measurements corresponding to the target node is 2 times, the preset frame length is 20ms, the to-be-selected frequency points include frequency point A, frequency point B, frequency point C, frequency point D, and frequency point E, that is, the number of to-be-selected frequency points is 5, and then the preset time length is determined to be 20ms*5=100ms, and the background noise and / or access status information of frequency point A, frequency point B, frequency point C, frequency point D, and frequency point E are detected within the preset time length during the first measurement. After completing the first measurement, continue to detect the background noise and / or access status information of frequency point A, frequency point B, frequency point C, frequency point D, and frequency point E within the preset time length until the number of measurements reaches 2 times.
[0093] It is understandable that the preset number of consecutive measurements corresponding to different nodes is different. When multiple target nodes simultaneously input network access requests to the wireless ad hoc network, the time required for each target node to obtain the network status data of the preset frequency band is different, thereby avoiding multiple target nodes establishing connections with different frequency points after obtaining the network status data of the preset frequency band.
[0094] Optionally, in another embodiment, when the nodes inputting the network access request include at least one node, a target node can be arbitrarily selected from the at least one node to obtain network status data of a preset frequency band, and then determine the target frequency based on the network status data, and then control the target node to connect to the target frequency, and then notify other nodes to connect to the target frequency through the target frequency, so that the at least one node is connected to the target frequency.
[0095] Optionally, in one embodiment, in order to determine that the target node can work at the same frequency point as other nodes when accessing the wireless ad hoc network, after acquiring the network status data, the step of determining the target frequency point from the at least one candidate frequency point according to the network status data includes:
[0096] Determine a used frequency point from the at least one frequency point to be selected according to the access state information;
[0097] The used frequency point is determined as the target frequency point.
[0098] Optionally, when acquiring the access status information, a used frequency point is determined from the candidate frequency points, and then the used frequency point is determined as the target frequency point.
[0099] It can be understood that the frequency points to be selected include used frequency points, and the used frequency points can receive signals sent by nodes connected to the used frequency points. After establishing a connection with the used frequency points, the nodes connected to the used frequency points generate synchronization signals and send synchronization signals to the corresponding used frequency points, so that other nodes can know that the frequency point to be selected is a used frequency point based on the synchronization information.
[0100] Based on this, the specific implementation method of obtaining the access status information of the preset frequency point is to query each of the frequency points in turn whether there is a synchronization signal. If so, the access status information of the to-be-selected frequency point with a synchronization signal is determined to be in use. If not, the access status information of the to-be-selected frequency point without a synchronization signal is determined to be in an unused state.
[0101] Optionally, when there is at least one used frequency point among the at least one frequency point, the background noise of each of the used frequency points may be determined based on the background noise data, and then the frequency point with the smallest background noise is selected from the at least one used frequency point as the target frequency point.
[0102] Optionally, in yet another embodiment, the method for determining the target frequency may also be:
[0103] A frequency point to be selected with the minimum background noise is selected from the at least one frequency point to be selected as a target frequency point according to the background noise data.
[0104] Optionally, after acquiring the network status data of the preset frequency band, the background noise of each of the to-be-selected frequency points is determined according to the network status data, and then the background noise of each of the to-be-selected frequency points is compared, and the frequency point with the minimum background noise is determined as the target frequency point.
[0105] Optionally, in another embodiment, when no other node has joined the wireless ad hoc network to which the target node is to be connected, in order to improve networking efficiency, a frequency point with the best signal strength needs to be determined as the target frequency point. Based on this, the step of determining the target frequency point from the at least one frequency point to be selected according to the network status data further includes:
[0106] When the at least one candidate frequency point does not include a used frequency point, a candidate frequency point with the smallest background noise is selected from the at least one candidate frequency point as a target frequency point according to the background noise data.
[0107] Optionally, each of the to-be-selected frequency points in the corresponding preset frequency band in the wireless ad hoc network is an unused frequency point, that is, there is no synchronization signal in each of the to-be-selected frequency points, and the access status information corresponding to each of the to-be-selected frequency points is in an unused state. At this time, the background noise of each of the to-be-selected frequency points is determined according to the background noise data, and then the background noise of each of the to-be-selected frequency points is compared to obtain the to-be-selected frequency point with the smallest background noise, and then the frequency point with the smallest background noise is determined as the target frequency point.
[0108] Optionally, the background noise data may include RSSI values of each of the candidate frequency points, and the RSSI values of each of the candidate frequency points are compared to obtain the candidate frequency point with the smallest RSSI value, and then the candidate frequency point with the smallest RSSI value is determined as the target frequency point.
[0109] Optionally, after acquiring the target frequency, the target node is controlled to establish a connection with the target frequency, so that the target node successfully joins the wireless ad hoc network.
[0110] Optionally, after controlling the target node to establish a connection with the target frequency, the target node generates a corresponding synchronization signal according to the target frequency and the node identifier corresponding to the target node, and sends the synchronization signal to the target frequency, so that when other nodes need to use the wireless self-organizing network in the future, they can obtain the synchronization signal, and then determine the used frequency according to the synchronization signal, so that other nodes can quickly determine the target frequency according to the used frequency, and then establish a connection with the target frequency, so that the target node and the other nodes are connected to the same frequency to be selected, so as to ensure mutual communication between the target node and the other nodes.
[0111] In an embodiment of the present application, by acquiring network status data of a preset frequency band, and then determining a target frequency based on the network status data, and then controlling the target node to establish a connection with the target frequency, the problem of low networking efficiency caused by repeated switching of frequencies to detect interference in the existing networking method is solved, thereby improving the networking efficiency.
[0112] Optionally, refer to Figure 4 , after step S30, further comprising:
[0113] Step S40, monitoring access status information of other candidate frequency points except the target frequency point among the at least one candidate frequency point;
[0114] Step S50, judging whether a synchronization signal is searched on the other frequency points to be selected according to the access status information of the other frequency points to be selected;
[0115] Step S60, when a synchronization signal is searched at the other candidate frequency points, determining a second target frequency point from the target frequency point and the candidate frequency point where the synchronization signal is searched;
[0116] Step S70: Control the target node to connect to the second target frequency point, or control the node corresponding to the candidate frequency point where the synchronization signal is searched to connect to the second target frequency point.
[0117] It is understandable that, based on the long distance between the target node and other nodes, when the target node obtains the network status data of the preset frequency band, it may be impossible to detect the synchronization signal sent by other nodes, and then the target node cannot know the synchronization signal of other to-be-selected frequency points, which leads to the situation that the target node is connected to a different frequency point from the other to-be-selected nodes. Based on this, the embodiment of the present application proposes a networking communication method, after connecting the target node to the target frequency point, detecting the access status information of other to-be-selected frequency points other than the target frequency point, and then judging whether the synchronization signal is searched on the other to-be-selected frequency points according to the access status information of the other to-be-selected frequency points, if the synchronization signal is searched on the other to-be-selected frequency points, determining the second target frequency point from the target frequency point and the to-be-selected frequency point where the synchronization signal is searched, so that the target node and other nodes are both connected to the second target frequency point, that is, the target node and other nodes are both connected to the same frequency point.
[0118] Optionally, when monitoring the access status information of other candidate frequency points other than the target frequency point, the network corresponding to the target frequency point needs to remain silent (i.e. stop working). Based on this, when the current wireless ad hoc network includes multiple networks composed of multiple candidate frequency points, if all networks simultaneously monitor the access status information of other candidate frequency points, then the networks of all candidate frequency points are in a silent state, resulting in each candidate frequency point being unable to detect the access status information of other candidate frequency points. Based on this, the embodiment of the present application pre-sets a corresponding preset monitoring time interval for each of the candidate frequency points, and the preset monitoring time intervals corresponding to each of the frequency points are different, thereby preventing the situation where each candidate frequency point is unable to detect the access status information of other candidate frequency points.
[0119] Based on this, the S40 includes:
[0120] Determining a preset monitoring time interval according to the first node identification value corresponding to the target frequency point;
[0121] The target node is controlled to monitor access status information of other candidate frequency points among the at least one candidate frequency point except the target frequency point at the preset monitoring time interval.
[0122] Optionally, the preset monitoring time intervals corresponding to each candidate in the preset frequency band are different, and the preset detection time interval corresponds to the node identification value of the node connected to each of the candidate frequency points. Based on this, after the target node is connected to the target frequency point, the first node identification value corresponding to the target frequency point is obtained, and the first node identification value is the node identification value of the target node. Then, the preset monitoring time interval is calculated according to the first node identification value, and the target frequency point is controlled to monitor the access status information of other candidate frequency points except the target frequency point at the preset monitoring time interval.
[0123] Optionally, the specific method of calculating the preset monitoring time interval based on the first node identification value and the number of the frequency points to be selected is: obtain the number of the frequency points to be selected in the preset frequency band, obtain the first node identification value corresponding to the target frequency point, obtain the last 8 bits corresponding to the first node identification value according to the first node identification value, and then calculate the preset monitoring time interval based on the last 8 bits and the number of the frequency band to be selected based on the formula, the formula is "int(id(0:7))*T", and T is the preset frame length. For example, if the preset frame length is 40ms and the last 8 bits are 16, then "16*40ms=640ms" is calculated according to the formula, and the preset monitoring time interval is 640ms.
[0124] Optionally, in order to ensure that the target node and other nodes are connected to the same frequency point, after obtaining the candidate frequency point for the searched synchronization signal, it is necessary to determine the second target frequency point from the candidate frequency point for the searched synchronization signal and the target frequency point, so that the target node and other nodes are connected to the second target frequency point.
[0125] Optionally, the method of determining the second target frequency point from the candidate frequency point for searching the synchronization signal and the target frequency point may be:
[0126] Acquire a first node identification value corresponding to the target frequency point and a second node identification value corresponding to the selected frequency point of the searched synchronization signal;
[0127] Comparing the first node identification value with the second node identification value;
[0128] The node identification value with the smallest node identification value between the first node identification value and the second node identification value is used as the target node identification value;
[0129] The frequency corresponding to the target node identification value is determined as the second target frequency.
[0130] Optionally, the method for determining the second target frequency point from the target frequency point and the frequency point where the synchronization signal is searched may be to obtain the node identification value of the target node connected to the target frequency point, determine the identification value of the target node as the first node identification value corresponding to the target frequency point, and then obtain the node identification value of the node connected to the candidate frequency point where the synchronization signal is searched, and determine the node identification value of the node connected to the candidate frequency point where the synchronization signal is searched as the second node identification value. Then, compare the first node identification value with the second node identification value, and determine the smaller node identification value as the target node identification value. Then, use the frequency point corresponding to the target node identification value as the second target frequency point. For example, if the first node identification value of the target node corresponding to the target frequency point is ID01, and the second node identification value of the candidate frequency point where the synchronization signal is searched is ID02, and ID01 < ID02, then determine the first node identification value as the target node identification value, use the frequency point corresponding to the first node identification value as the target frequency point, and then determine the target frequency point as the second target frequency point.
[0131] Optionally, the method for determining the second target frequency point from the target frequency point and the frequency point where the synchronization signal is searched may also be to obtain the node identification value of the target node connected to the target frequency point, determine the identification value of the target node as the first node identification value corresponding to the target frequency point, and then obtain the node identification value of the node connected to the candidate frequency point where the synchronization signal is searched, and determine the node identification value of the node connected to the candidate frequency point where the synchronization signal is searched as the second node identification value. Then, compare the first node identification value with the second node identification value, and determine the larger node identification value as the target node identification value. Then, use the frequency point corresponding to the target node identification value as the second target frequency point. For example, if the first node identification value of the target node corresponding to the target frequency point is ID01, and the second node identification value of the candidate frequency point where the synchronization signal is searched is ID02, and ID01 < ID02, then determine the second node identification value as the target node identification value, use the frequency point corresponding to the second node identification value as the candidate frequency point where the synchronization signal is searched, and then determine the candidate frequency point where the synchronization signal is searched as the second target frequency point.
[0132] Optionally, the method for determining the second target frequency point from the target frequency point and the candidate frequency point where the synchronization signal is searched may also be to compare the magnitudes of the frequency points corresponding to the target frequency point and the candidate frequency point where the synchronization signal is searched, and use the smaller frequency point as the second target frequency point. For example, if the target frequency point is 1901 MHz and the candidate frequency point where the synchronization signal is searched is 1903 MHz, and 1901 MHz < 1903 MHz, then determine the target frequency point as the second target frequency point.
[0133] Optionally, the method of determining the second target frequency from the target frequency and the candidate frequency for searching the synchronization signal can also be to compare the frequency sizes corresponding to the target frequency and the candidate frequency for searching the synchronization signal, and take the frequency with a larger frequency as the second target frequency. For example, the target frequency is 1901MHz, and the candidate frequency for searching the synchronization signal is 1903MHz, and 1901MHz<1903MHz, then the candidate frequency for searching the synchronization signal is determined to be the second target frequency.
[0134] It can be understood that the method of determining the second target frequency point from the target frequency point and the frequency point of the searched synchronization signal includes but is not limited to the above-mentioned methods.
[0135] Optionally, after acquiring the second target frequency point, when the second target frequency point is the target frequency point, the target node is kept unchanged, and a networking request signal is sent to the node corresponding to the candidate frequency point for searching the synchronization signal, so that the node corresponding to the candidate frequency point for searching the synchronization signal receives the networking request signal and connects to the second target frequency point (target frequency point); when the second target frequency point is the candidate frequency point for searching the synchronization signal, the node corresponding to the candidate frequency point for searching the synchronization signal is kept unchanged, and the target node is controlled to be connected to the second target frequency point (the candidate frequency point for searching the synchronization signal), thereby ensuring that the frequency point to which the target node and the node corresponding to the candidate frequency point for searching the synchronization signal are connected is the same candidate frequency point.
[0136] In an embodiment of the present application, in order to ensure that each node in the wireless self-organizing network is connected to the same frequency, after controlling the target node to establish a connection with the target frequency, when the current time point is the preset monitoring time point, the access status information of other frequency points other than the target frequency is monitored, and then the candidate frequency point for searching the synchronization signal is determined from the access status information of the other nodes, and then the second target frequency point is determined based on the target frequency point and the candidate frequency point for searching the synchronization signal, and then the target node and other nodes are controlled to connect to the second target frequency point, thereby improving the fusion efficiency of each network in the wireless self-organizing network.
[0137] In addition, an embodiment of the present invention further provides a computer-readable storage medium, on which a networking communication program is stored. When the networking communication program is executed by a processor, the steps of the above embodiments are implemented.
[0138] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0139] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0140] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0141] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A networking communication method, characterized in that: The steps of the networking communication method include: When receiving a network access request from a target node, obtaining network status data of a preset frequency band, wherein the preset frequency band includes at least one frequency point to be selected, and the network status data includes background noise data and / or access status information; Determine a target frequency point from the at least one frequency point to be selected according to the network status data; Controlling the target node to establish a connection with the target frequency point; Monitoring access status information of other candidate frequency points among the at least one candidate frequency point except the target frequency point; Determining whether a synchronization signal is searched on the other frequency points to be selected according to the access status information of the other frequency points to be selected; When a synchronization signal is searched for at the other candidate frequency points, determining a second target frequency point from the target frequency point and the candidate frequency point where the synchronization signal is searched for; The target node is controlled to be connected to the second target frequency point, or the node corresponding to the selected frequency point where the synchronization signal is searched is controlled to be connected to the second target frequency point.
2. The networking communication method according to claim 1, characterized in that: The step of determining a target frequency point from the at least one frequency point to be selected according to the network status data comprises: Determine a used frequency point from the at least one frequency point to be selected according to the access state information; The used frequency point is determined as the target frequency point.
3. The networking communication method according to claim 1, characterized in that: The step of determining a target frequency point from the at least one candidate frequency point according to the network status data further includes: A frequency point to be selected with the minimum background noise is selected from the at least one frequency point to be selected as a target frequency point according to the background noise data.
4. The networking communication method according to claim 2, characterized in that: The step of determining a target frequency point from the at least one candidate frequency point according to the network status data further includes: When the at least one candidate frequency point does not include a used frequency point, a candidate frequency point with the smallest background noise is selected from the at least one candidate frequency point as a target frequency point according to the background noise data.
5. The networking communication method according to claim 1, characterized in that: When a synchronization signal is searched for at the other candidate frequency points, the step of determining a second target frequency point from the target frequency point and the candidate frequency point where the synchronization signal is searched comprises: Acquire a first node identification value corresponding to the target frequency point and a second node identification value corresponding to the selected frequency point of the searched synchronization signal; Comparing the first node identification value with the second node identification value; The node identification value with the smallest node identification value between the first node identification value and the second node identification value is used as the target node identification value; The frequency corresponding to the target node identification value is determined as the second target frequency.
6. The networking communication method according to claim 5, characterized in that: The step of monitoring access status information of other candidate frequency points except the target frequency point among the at least one candidate frequency point comprises: Determine a preset monitoring time interval according to the first node identification value corresponding to the target frequency point; The target node is controlled to monitor access status information of other candidate frequency points among the at least one candidate frequency point except the target frequency point at the preset monitoring time interval.
7. The networking communication method according to claim 1, characterized in that: The step of obtaining network status data of a preset frequency band includes: Get the preset number of consecutive measurements; The step of repeatedly performing the preset measurement for a continuous number of times to detect the background noise and / or access status information of each of the to-be-selected frequency points within a preset time period is repeated.
8. A networking communication device, characterized in that: The networking communication device includes: a memory, a processor, and a networking communication program stored in the memory and executable on the processor, wherein the networking communication program implements the steps of the networking communication method according to any one of claims 1 to 7 when executed by the processor.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a networking communication program, and when the networking communication program is executed by the processor, the steps of the networking communication method according to any one of claims 1 to 7 are implemented.
