CN111050382B - Point-to-point communication method and device - Google Patents

Point-to-point communication method and device Download PDF

Info

Publication number
CN111050382B
CN111050382B CN201811190968.XA CN201811190968A CN111050382B CN 111050382 B CN111050382 B CN 111050382B CN 201811190968 A CN201811190968 A CN 201811190968A CN 111050382 B CN111050382 B CN 111050382B
Authority
CN
China
Prior art keywords
frequency point
frequency
preset
communicate
point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811190968.XA
Other languages
Chinese (zh)
Other versions
CN111050382A (en
Inventor
袁亮
刘鹏午
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Pinecone Electronic Co Ltd
Original Assignee
Beijing Xiaomi Pinecone Electronic Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Pinecone Electronic Co Ltd filed Critical Beijing Xiaomi Pinecone Electronic Co Ltd
Priority to CN201811190968.XA priority Critical patent/CN111050382B/en
Publication of CN111050382A publication Critical patent/CN111050382A/en
Application granted granted Critical
Publication of CN111050382B publication Critical patent/CN111050382B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/20Selecting an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists

Abstract

The present disclosure relates to a peer-to-peer communication method and device, and relates to the field of communications, including: when the measurement period is judged to arrive, respectively setting a plurality of measurement frequency points in the first frequency point set as receiving frequency points according to a preset sequence so as to communicate with the main equipment; acquiring a plurality of interference values corresponding to a plurality of measurement frequency points according to signals received in a measurement period, and determining a frequency point corresponding to the minimum interference value in the plurality of interference values as an optimal frequency point; sending a frequency point switching command to the main equipment so as to switch the sending frequency point of the main equipment to an optimal frequency point, wherein the frequency point switching command comprises the optimal frequency point; and setting the optimal frequency point as a receiving frequency point to communicate with the main equipment. Because the time for measuring the interference value is not required to be lost, the loss of the throughput rate can be effectively reduced, the successful switching of the communication frequency point can be ensured under the condition of severe communication environment, and the communication quality of both communication parties is ensured to a certain extent.

Description

Point-to-point communication method and device
Technical Field
The present disclosure relates to the field of communications, and in particular, to a peer-to-peer communication method and apparatus.
Background
In the field of wireless communication, because a wireless channel environment is complex, communication is greatly interfered, and the quality of wireless communication is seriously affected by the change of the wireless channel environment, a method of periodically or aperiodically measuring a communication frequency point with minimum interference and best communication effect in the current environment and then switching the communication frequency points of two communication parties to the frequency point with minimum interference and best communication effect is often used to improve the effect of wireless communication. However, when the measurement period arrives and the interference value needs to be evaluated and detected, the communication is stopped for interference scanning in the gap of the outflow time. And after the whole communication frequency band is scanned, evaluating the interference value, and further selecting the frequency point corresponding to the frequency band with the smaller interference value for communication. Thus, since a certain communication time is sacrificed for interference scanning, the throughput rate is inevitably lowered, and the communication effect is adversely affected.
Disclosure of Invention
The purpose of the present disclosure is to provide a peer-to-peer communication method and apparatus, which can improve communication efficiency, reduce loss of throughput, and improve communication quality to some extent.
In order to achieve the above object, the present disclosure provides a peer-to-peer communication method applied to a slave device, where the slave device is one of two parties of the peer-to-peer communication, and the method includes:
when the measurement period is judged to arrive, respectively setting a plurality of measurement frequency points in a first frequency point set as receiving frequency points according to a preset sequence so as to communicate with a main device, wherein the main device is the other party of the two parties of the point-to-point communication;
acquiring a plurality of interference values corresponding to the plurality of measurement frequency points according to the signals received in the measurement period, and determining the frequency point corresponding to the minimum interference value in the plurality of interference values as an optimal frequency point;
sending a frequency point switching command to the main equipment so as to switch the sending frequency point of the main equipment to the optimal frequency point, wherein the frequency point switching command comprises the optimal frequency point;
and setting the optimal frequency point as a receiving frequency point to communicate with the main equipment.
Optionally, when it is determined that the measurement period reaches, respectively setting the multiple measurement frequency points in the first frequency point set as the receiving frequency points according to a preset order to communicate with the master device includes:
and when the measurement period is up, the number of frames received from the main equipment in the current measurement period is within a preset number of frames and the frame number meets a preset requirement, respectively setting the plurality of measurement frequency points in the first frequency point set as the receiving frequency points according to the preset sequence so as to communicate with the main equipment.
Optionally, the sending the frequency point switching command to the master device includes:
when the difference between the interference value of the optimal frequency point and the interference value of the service frequency point is not greater than the first preset threshold value, the interference value of the service frequency point is not less than the second preset threshold value, and the optimal frequency point is not equal to the service frequency point, the frequency point switching command is sent to the main equipment,
and the service frequency point is a receiving frequency point used when the slave equipment receives the master equipment signal before the measurement period is reached.
Optionally, the method further comprises:
and respectively controlling the gain values of the signals received at the plurality of measurement frequency points.
Optionally, the method further comprises:
when the slave equipment is judged to be used for the first time, setting a preset initial frequency point as the receiving frequency point so as to establish connection with the master equipment;
receiving a matching signal sent by the main device, wherein the matching signal comprises a common frequency point which is the frequency point with the minimum interference value in the current environment;
and setting the general frequency point as the receiving frequency point to communicate with the master equipment.
Optionally, the method further comprises:
and when the signal sent by the main equipment is not received after the preset time length is exceeded, setting the general frequency point as the receiving frequency point to communicate with the main equipment.
Optionally, the method further comprises:
and randomly selecting one frequency point from the second frequency point set as a sending frequency point according to the random number obtained by using the preset seed so as to communicate with the main equipment.
The present disclosure further provides a peer-to-peer communication method, applied to a master device, where the master device is one of two parties of the peer-to-peer communication, and the method includes:
when the measurement period is judged to arrive, respectively setting a plurality of measurement frequency points in a first frequency point set as sending frequency points according to a preset sequence so as to communicate with slave equipment, wherein the slave equipment is the other party of the two parties of the point-to-point communication;
receiving a frequency point switching command sent by the slave equipment, wherein the frequency point switching command comprises an optimal frequency point with the minimum interference value in the current environment;
and setting the optimal frequency point as the sending frequency point to communicate with the slave equipment.
Optionally, when it is determined that the measurement period reaches, respectively setting the multiple measurement frequency points in the first frequency point set as the transmission frequency points according to a preset order to communicate with the slave device includes:
and when the measurement period is up, the number of frames sent to the slave equipment in the current measurement period is within a preset number of frames and the frame number meets a preset requirement, respectively setting the plurality of measurement frequency points in the first frequency point set as the sending frequency points according to the preset sequence so as to communicate with the slave equipment.
Optionally, the method further comprises:
when the main equipment is judged to be used for the first time, determining the frequency point with the minimum interference value in the current environment as a common frequency point;
setting a preset initial frequency point as the sending frequency point to send a matching signal to establish connection with the slave equipment, wherein the matching signal comprises the common frequency point;
and setting the general frequency point as the sending frequency point to communicate with the slave equipment.
Optionally, the method further comprises:
and when the signal sent by the slave equipment is not received for more than a preset time, setting the general frequency point as the sending frequency point to communicate with the slave equipment.
Optionally, the method further comprises:
and randomly selecting one frequency point from the second frequency point set as a receiving frequency point according to the random number obtained by using the preset seed so as to communicate with the slave equipment.
The present disclosure also provides a peer-to-peer communication apparatus, applied to a slave device, where the slave device is one of the two parties of peer-to-peer communication, and the apparatus includes:
the first frequency point switching module is used for respectively setting a plurality of measuring frequency points in a first frequency point set as receiving frequency points according to a preset sequence to communicate with a main device when the measuring period is judged to arrive, wherein the main device is the other of the two parties of the point-to-point communication;
an optimal frequency point determining module, configured to obtain multiple interference values corresponding to the multiple measurement frequency points according to the signal received in the measurement period, and determine a frequency point corresponding to a minimum interference value among the multiple interference values as an optimal frequency point;
a first sending module, configured to send a frequency point switching command to the master device, so that a sending frequency point of the master device is switched to the optimal frequency point, where the frequency point switching command includes the optimal frequency point;
the first frequency point switching module is further configured to set the optimal frequency point as a receiving frequency point to communicate with the master device.
Optionally, the first frequency point switching module is configured to:
and when the measurement period is up, the number of frames received from the main equipment in the current measurement period is within a preset number of frames and the frame number meets a preset requirement, respectively setting the plurality of measurement frequency points in the first frequency point set as the receiving frequency points according to the preset sequence so as to communicate with the main equipment.
Optionally, the first sending module is further configured to:
when the difference between the interference value of the optimal frequency point and the interference value of the service frequency point is not greater than the first preset threshold value, the interference value of the service frequency point is not less than the second preset threshold value, and the optimal frequency point is not equal to the service frequency point, the frequency point switching command is sent to the main equipment,
and the service frequency point is a receiving frequency point used when the slave equipment receives the master equipment signal before the measurement period is reached.
Optionally, the apparatus further comprises:
and the gain value control module is used for respectively controlling the gain values of the signals received at the plurality of measurement frequency points.
Optionally, the apparatus further comprises:
the initial frequency point setting module is used for setting a preset initial frequency point as the receiving frequency point to establish connection with the master device when the slave device is judged to be used for the first time;
the first receiving module is used for receiving a matching signal sent by the main device, wherein the matching signal comprises a common frequency point, and the common frequency point is the frequency point with the minimum interference value in the current environment;
the first frequency point switching module is further configured to set the general frequency point as the receiving frequency point to communicate with the master device.
Optionally, the first frequency point switching module is further configured to set the general frequency point as the receiving frequency point to communicate with the master device when a signal sent by the master device is not received for more than a preset time period.
Optionally, the apparatus further comprises:
and the first random frequency hopping module is used for randomly selecting one frequency point from the second frequency point set as a sending frequency point according to the random number obtained by using the preset seed so as to communicate with the main equipment.
The present disclosure further provides a peer-to-peer communication apparatus, applied to a master device, where the master device is one of two parties of the peer-to-peer communication, and the apparatus includes:
the second frequency point switching module is used for respectively setting the plurality of measurement frequency points in the first frequency point set as sending frequency points according to a preset sequence to communicate with slave equipment when the measurement period is judged to arrive, wherein the slave equipment is the other party of the two parties of the point-to-point communication;
a second receiving module, configured to receive a frequency point switching command sent by the slave device, where the frequency point switching command includes an optimal frequency point with a minimum interference value in a current environment;
the second frequency point switching module is further configured to set the optimal frequency point as the sending frequency point to communicate with the slave device.
Optionally, the second frequency point switching module is configured to:
and when the measurement period is up, the number of frames sent to the slave equipment in the current measurement period is within a preset number of frames and the frame number meets a preset requirement, respectively setting the plurality of measurement frequency points in the first frequency point set as the sending frequency points according to the preset sequence so as to communicate with the slave equipment.
Optionally, the apparatus further comprises:
a common frequency point determining module, configured to determine, when it is determined that the master device is in initial use, a frequency point with a minimum interference value in a current environment as a common frequency point;
a second sending module, configured to set a predetermined initial frequency point as the sending frequency point to send a matching signal to establish connection with the slave device, where the matching signal includes the general frequency point;
the second frequency point switching module is further configured to set the general frequency point as the sending frequency point to communicate with the slave device.
Optionally, the second frequency point switching module is further configured to:
and when the signal sent by the slave equipment is not received for more than a preset time, setting the general frequency point as the sending frequency point to communicate with the slave equipment.
Optionally, the apparatus further comprises:
and the second random frequency hopping module is used for randomly selecting one frequency point from the second frequency point set as a receiving frequency point according to the random number obtained by using the preset seed so as to communicate with the slave equipment.
Through the technical scheme, the frequency point needing to measure the interference value is used as the communication frequency point of the two sides of the point-to-point communication for communication, so that the interference values of different frequency points in the current environment can be obtained under the condition of not stopping communication, the optimal frequency point with the minimum interference value is selected as the receiving frequency point communicated with other equipment, the loss of the throughput rate can be effectively reduced due to the fact that the time for measuring the interference value is not lost, meanwhile, after the slave equipment sends the frequency point switching command containing the optimal frequency point to the master equipment, the optimal frequency point is immediately used as the communication frequency point between the master equipment and the slave equipment, and therefore the communication frequency point can be successfully switched under the condition of severe communication environment.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure without limiting the disclosure. In the drawings:
fig. 1 is a flowchart illustrating a point-to-point communication method applied to a slave device according to an exemplary embodiment of the present disclosure.
Fig. 2 is a flowchart illustrating a point-to-point communication method applied to a slave device according to still another exemplary embodiment of the present disclosure.
Fig. 3 is a flowchart illustrating a point-to-point communication method applied to a slave device according to still another exemplary embodiment of the present disclosure.
Fig. 4 is a flowchart illustrating a peer-to-peer communication method applied to a master device according to an exemplary embodiment of the present disclosure.
Fig. 5 is a flowchart illustrating a point-to-point communication method applied to a master device according to still another exemplary embodiment of the present disclosure.
Fig. 6 is a block diagram illustrating a structure of a peer-to-peer communication apparatus applied to a slave device according to an exemplary embodiment of the present disclosure.
Fig. 7 is a block diagram illustrating a structure of a peer-to-peer communication apparatus applied to a slave device according to an exemplary embodiment of the present disclosure.
Fig. 8 is a block diagram illustrating a structure of a peer-to-peer communication apparatus applied to a master device according to an exemplary embodiment of the present disclosure.
Fig. 9 is a block diagram illustrating a structure of a peer-to-peer communication apparatus applied to a master device according to an exemplary embodiment of the present disclosure.
Description of the reference numerals
101 first frequency point switching module 102 optimal frequency point determining module
103 first sending module 104 gain value control module
105 initial frequency point setting module 106 first receiving module
107 first random frequency hopping module 201 second frequency point switching module
202 second receiving module 203 general frequency point determining module
204 second sending module 205 second random frequency hopping module
Detailed Description
The following detailed description of specific embodiments of the present disclosure is provided in connection with the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present disclosure, are given by way of illustration and explanation only, not limitation.
Fig. 1 is a flowchart illustrating a peer-to-peer communication method applied to a slave device, where the slave device is one of two parties of the peer-to-peer communication, according to an exemplary embodiment of the disclosure. As shown in fig. 1, the method includes step 101 and step 104.
In step 101, when it is determined that a measurement period arrives, a plurality of measurement frequency points in a first frequency point set are respectively set as receiving frequency points according to a preset sequence to communicate with a master device, where the master device is the other of the two peer-to-peer communication parties.
The plurality of measurement frequency points in the first frequency point set can be determined according to actual measurement frequency bands and are respectively set according to different bandwidths. The collection of the measurement bandwidths corresponding to all the set measurement frequency points at least can cover the whole measurement frequency band; the measurement bandwidths corresponding to two adjacent frequency points can be just connected, and a partially overlapped part can also exist, so long as the requirement of completely covering the measurement frequency band can be met. For example, when the communication bandwidth is 20M, the intervals between the frequency points may be 5M to cover the whole frequency band; when the communication bandwidth is 10M, the intervals among the frequency points can be 3M so as to cover the whole frequency band; when the communication bandwidth is 1.4M, the intervals between the frequency points may be 1M, so as to cover the whole frequency band. Therefore, when the first frequency point set is determined, it is only required to ensure that the bandwidths corresponding to all the frequency points in the set can cover the whole measurement frequency band, and the interval between the frequency points in the set is smaller than the communication bandwidth.
The preset sequence may be an arrangement sequence of the plurality of measurement frequency points in the first frequency point set, may also be a sequence of the plurality of measurement frequency points from small to large, and may also be a sequence of the plurality of measurement frequency points from large to small, as long as the plurality of measurement frequency points can all be set as the receiving frequency points of the slave device to receive a signal sent from the master device once.
In step 102, a plurality of interference values corresponding to the plurality of measurement frequency points are obtained according to the signals received in the measurement period, and the frequency point corresponding to the minimum interference value among the plurality of interference values is determined as an optimal frequency point.
In the measurement period, the communication between the master device and the slave device is established on the plurality of measurement frequency points in the measurement frequency band, so that a plurality of interference values corresponding to the plurality of measurement frequency points can be obtained through received signals while normal communication is performed, the interference values corresponding to all the measurement frequency points in the whole frequency band are obtained, and the frequency point with the minimum interference value can be selected as the optimal frequency point.
In step 103, a frequency point switching command is sent to the master device, so that the sending frequency point of the master device is switched to the optimal frequency point, where the frequency point switching command includes the optimal frequency point.
After determining the optimal frequency point meeting the communication bandwidth requirement in the current environment, sending the optimal frequency point to the main equipment together with a frequency point switching command, so that the main equipment switches the sending frequency point to the optimal frequency point.
In step 104, the optimal frequency point is set as a receiving frequency point to communicate with the master device.
After the receiving frequency point of the slave equipment is also switched to the optimal frequency point, the communication with the master equipment after the frequency point switching can be completed.
The sending frequency point of the slave device and the receiving frequency point of the master device may be kept the same frequency point all the time, or may be synchronously switched to the optimal frequency point according to the frequency point switching command.
In one possible embodiment, the method further comprises: and selecting one frequency point from the second frequency point set as a sending frequency point according to the random number obtained by using the preset seed so as to communicate with the main equipment. The preset seed may be, for example, a System Frame Number (SFN). Since the same random function is used, the random number obtained from the same seed is the same, but the random number varies randomly for the third party. Therefore, as long as the master device selects one frequency point from the second frequency point set as the receiving frequency point according to the random number obtained by using the preset seed, it can be ensured that the transmitting frequency point of the slave device and the receiving frequency point of the master device are maintained at the same frequency point. The second frequency point set may be the same as the first frequency point set, that is, the second frequency point set may also be a set of multiple measurement frequency points, or may be different from the first frequency point set, that is, the frequency points in the second frequency point set may also be determined by different bandwidths that can be selected.
In one possible embodiment, the slave device is the party that transmits less information in peer-to-peer communication, and the master device is the party that transmits more information in peer-to-peer communication.
By the technical scheme, when the optimal frequency point in the current environment needs to be obtained, the frequency point needing to measure the interference value is used as the communication frequency point of two sides of point-to-point communication for communication, so that the interference values of different frequency points in the current environment can be obtained under the condition of not stopping communication, the optimal frequency point with the minimum interference value is selected as the receiving frequency point communicated with other equipment, the loss of throughput rate can be effectively reduced because the time for measuring the interference value does not need to be lost, and meanwhile, after the slave equipment sends the frequency point switching command containing the optimal frequency point to the master equipment, the optimal frequency point is immediately used as the communication frequency point between the master equipment and the slave equipment, so that the communication frequency point can be successfully switched under the condition of severe communication environment, and the communication frequency point is switched to the frequency point with the minimum interference value in the current environment, therefore, the communication quality of both communication parties is guaranteed to a certain extent.
Fig. 2 is a flowchart illustrating a point-to-point communication method applied to a slave device according to still another exemplary embodiment of the present disclosure. As shown in fig. 2, the method includes a step S201 in addition to the steps S102 to S104 shown in fig. 1.
In step 201, when it is determined that the measurement period arrives, the number of frames received from the master device in the current measurement period is within a preset number of frames, and the number of frames meets a preset requirement, the plurality of measurement frequency points in the first frequency point set are respectively set as the receiving frequency points according to the preset sequence to communicate with the master device. The preset requirement may be, for example, that the frame number is an odd number, or that the frame number is an even number, etc.
When the measurement period arrives, if the communication from the master device to the slave device is established on the measurement frequency point for multiple consecutive frames, the communication effect is likely to be reduced because the environmental interference is too large and the interference value of the measured frequency point is too large. Therefore, after the measurement period is judged to arrive, when the measurement frequency point is used for communication between the master device and the slave device, the communication frequency point can be switched to use the measurement frequency point. For example, odd frames within a preset number of frames in the measurement period all use the measurement frequency point as a communication frequency point. The preset number of frames may be the number of frames required to poll all the measurement frequency points in the first frequency point set once. For example, if the number of the measured frequency points is N, and the first frame in the measurement period is an odd frame, the preset number of frames should be not less than 2N-1, so as to ensure that all the measured frequency points in the first frequency point set can be used, so as to obtain the interference values of different frequency points in the current environment.
In the method, for a frame that does not use a measurement frequency point as a communication frequency point, that is, when the measurement period arrives, the number of frames received from the master device in the current measurement period is within a preset number of frames, and the number of frames is an even number, a preset frequency point may be used as a communication frequency point, the preset frequency point may be, for example, a service frequency point, and the service frequency point is a reception frequency point used when the slave device receives a signal of the master device before the measurement period arrives.
By the technical scheme, after the measuring period is reached and the frame number received from the main equipment in the current measuring period is within the preset frame number, the communication frequency point is switched back and forth between the measuring frequency point and the preset frequency point (such as a service frequency point). Therefore, the communication effect and quality between the master device and the slave device in the measurement period can be stabilized to a certain extent, and the situation that the communication effect between the master device and the slave device is influenced or even the master device and the slave device cannot communicate due to the overlarge interference of the measurement frequency point is avoided.
In a possible implementation manner, the sending the frequency point switching command to the master device includes: and when the difference between the interference value of the optimal frequency point and the interference value of the service frequency point is not greater than the first preset threshold, the interference value of the service frequency point is not less than the second preset threshold, and the optimal frequency point is not equal to the service frequency point, sending the frequency point switching command to the master device, wherein the service frequency point is a receiving frequency point used when the slave device receives the master device signal before the measurement period is reached. After the measurement of the measurement frequency points in the first frequency point set is completed, the obtained interference values are evaluated, and the measurement frequency point with the minimum interference value is selected as the optimal frequency point for communication between master and slave devices in the current environment, but in order to prevent invalid frequency point switching, that is, after the communication frequency points are switched, the communication effect between the current master and slave devices cannot be improved, therefore, after the optimal frequency points are determined, the interference values of the optimal frequency points need to be judged at one time:
firstly, whether the difference value between the interference value corresponding to the optimal frequency point and the interference value corresponding to the service frequency point is smaller than a first preset threshold value or not is judged, and when the difference value between the interference value corresponding to the optimal frequency point and the interference value corresponding to the service frequency point is smaller than the first preset threshold value, the communication effect can be improved after the communication frequency point is switched to the optimal frequency point. The first preset threshold may be, for example: -3 db.
Secondly, the interference value of the service frequency point can be directly judged, when the interference value of the service frequency point is relatively small, for example, smaller than the second preset threshold, the communication requirement between the master device and the slave device is met, and the communication frequency point does not need to be switched, wherein the second preset threshold can be, for example: -20 db.
In addition, the service frequency point and the optimal frequency point can be compared, the service communication frequency point is switched when the obtained optimal frequency point is different from the service frequency point, otherwise, when the service frequency point is the obtained optimal frequency point, the communication frequency point does not need to be switched.
By the technical scheme, after the optimal frequency point is determined, before the switching command is sent to the main equipment, whether the communication frequency point needs to be switched is judged to be the optimal frequency point, so that part of useless switching can be avoided, namely, the communication effects before and after the frequency point switching are similar.
In one possible embodiment, the method further comprises: and respectively controlling the gain values of the signals received at the plurality of measurement frequency points. When communicating on every measurement frequency point, the master device sends the signal on different measurement frequency points, the slave device receives on corresponding measurement frequency point, because the characteristic of every measurement frequency point and the interference value that receives probably are all inconsistent, consequently in order to guarantee the quality of communication, need carry out solitary Gain value Control (AGC) to every different measurement frequency point, all set up suitable Gain value respectively to every measurement frequency point, need set up suitable Gain value alone when the slave device receives the signal that the master device sent each time promptly.
In addition, in order to ensure the communication quality, each measurement frequency point needs to be converged quickly, the channel environment of wireless communication may change greatly in two adjacent measurement periods, and in order to establish a certain frame time on the measurement frequency point in the measurement period, the AGC can converge to a proper value quickly, and the AGC adjustment adopts a large step size, for example, 8 db.
Fig. 3 is a flowchart illustrating a peer-to-peer communication method applied to a slave device according to still another exemplary embodiment of the present disclosure, and the method further includes steps 301 to 304, as shown in fig. 3.
In step 301, it is determined whether the slave device is in initial use, and if so, the process goes to step 302, and if not, the process goes to step 304.
In step 302, a preset initial frequency point is set as the receiving frequency point to establish a connection with the master device. The preset initial frequency point is a frequency point which is preset in the slave equipment and is the same as the preset initial frequency point in the master equipment, and is used for quickly pairing, identifying and establishing connection between the master equipment and the slave equipment when the master equipment and the slave equipment are started for the first time.
In step 303, a matching signal sent by the master device is received, where the matching signal includes a general frequency point, and the general frequency point is a frequency point with a minimum interference value in the current environment. After the slave device establishes connection with the master device, the master device sends a frequency point with the minimum interference value determined according to the interference value in the current environment as a communication frequency point between the master device and the slave device, namely a common frequency point.
In step 304, the general frequency point is set as the receiving frequency point to communicate with the master device. After receiving the general frequency point, the slave device stores the general frequency point, and communicates with the master device by using the general frequency point as a receiving frequency point. Therefore, when the master device and the slave device are communicated after being started, the communication can be timely established on the frequency point with the minimum interference value in the current environment, and the communication frequency point is not required to be measured and switched when the first measurement period is reached, so that the communication quality of the master device and the slave device can be ensured. When the slave equipment is judged not to be used for the first time, the connection with the master equipment is not needed, and the stored common frequency points are directly used for communication.
In a possible implementation manner, in step 301, when it is determined that the slave device is not in initial use, a service frequency point, that is, a reception frequency point used when the slave device receives a signal of the master device before the slave device is started, may be further set as a reception frequency point to communicate with the master device. The service frequency point may be the same as the general frequency point.
Through the technical scheme, when the slave equipment is used for the first time, the slave equipment can be connected with the master equipment through the preset initial frequency point correspondingly arranged in the master equipment, and the frequency point with the minimum interference value in the current environment is obtained from the master equipment and is used as the receiving frequency point to communicate with the master equipment.
In one possible embodiment, the method further comprises: and when the signal sent by the main equipment is not received after the preset time length is exceeded, setting the general frequency point as the receiving frequency point to communicate with the main equipment. If the communication frequency point switching process is unexpected, the switching is not successful, or other reasons cause the master device and the slave device to work on different frequency points respectively, so that the communication cannot be established again, therefore, a robust design is also added in the disclosure, the slave device is enabled to return to the common frequency point for communication when the slave device does not receive signals sent by the master device after exceeding a preset time, namely, the slave device cannot communicate with the master device, namely, the common frequency point is set as a receiving frequency point for communicating with the master device, so that the master device and the slave device have the opportunity to restart the communication on the common frequency point, and the serious condition that the communication interruption of the master device and the slave device cannot be automatically recovered is avoided.
Fig. 4 is a flowchart illustrating a peer-to-peer communication method applied to a master device according to an exemplary embodiment of the present disclosure. The master device is one of the two peer-to-peer communication parties, and as shown in fig. 4, the method includes steps S401 to S403.
In step S401, when it is determined that the measurement period has arrived, the multiple measurement frequency points in the first frequency point set are respectively set as transmission frequency points according to a preset sequence to communicate with a slave device, where the slave device is the other of the two peer-to-peer communication parties. The first frequency point set and the first frequency point set are the same set, and a plurality of measurement frequency points in the first frequency point set can also be determined according to actual measurement frequency bands and are respectively set according to different bandwidths. The preset sequence is also the same as the preset sequence described above. That is, when it is determined that the measurement period reaches, the master device and the slave device set the multiple measurement frequency points in the first frequency point set to be the sending frequency points or the receiving frequency points according to the same preset sequence, so that the sending frequency points of the master device are the same as the receiving frequency points of the slave device, and communication of the master device and the slave device on the measurement frequency points is completed.
In step S402, a frequency point switching command sent by the slave device is received, where the frequency point switching command includes an optimal frequency point with a minimum interference value in the current environment. After the measurement period is reached, the slave device obtains the optimal frequency point, and after the optimal frequency point with the minimum interference value in the current environment is obtained, the slave device sends a frequency point switching command containing the optimal frequency point to the master device.
In step 403, the optimal frequency point is set as the transmission frequency point to communicate with the slave device. After receiving the frequency point switching command sent by the slave equipment, setting the optimal frequency point as a sending frequency point to send the next frame signal to the slave equipment. The next frame signal may be, for example, the frequency point switching command fed back to the slave device, or may also be any data signal.
According to the technical scheme, when the optimal frequency point in the current environment needs to be obtained, the frequency point needing to measure the interference value is used as the communication frequency point of the two parties of point-to-point communication for communication, so that the interference values of different frequency points in the current environment can be obtained under the condition of not stopping communication, the optimal frequency point with the minimum interference value is selected as the receiving frequency point communicated with other equipment, and the loss of the throughput rate can be effectively reduced because the time for measuring the interference value does not need to be lost. Meanwhile, after a frequency point switching command sent by slave equipment is received, the optimal frequency point is immediately used as a communication frequency point between master equipment and slave equipment, so that the communication frequency point can be successfully switched under the condition of a severe communication environment, and the communication frequency point is switched to the frequency point with the minimum interference value in the current environment, thereby ensuring the communication quality of both communication parties to a certain extent.
In a possible implementation manner, when it is determined that the measurement period arrives, the setting, in a preset order, the multiple measurement frequency points in the first frequency point set as the transmission frequency points respectively to communicate with the slave device includes: and when the measurement period is up, the number of frames sent to the slave equipment in the current measurement period is within a preset number of frames and the frame number meets a preset requirement, respectively setting the plurality of measurement frequency points in the first frequency point set as the sending frequency points according to the preset sequence so as to communicate with the slave equipment. The preset requirement may be, for example, that the frame number is an odd number, or that the frame number is an even number, etc.
When the measurement period arrives, if the communication from the master device to the slave device is established on the measurement frequency point for multiple consecutive frames, the communication effect is likely to be reduced because the environmental interference is too large and the interference value of the measured frequency point is too large. Therefore, after the measurement period is judged to arrive, when the measurement frequency point is used for communication between the master device and the slave device, the communication frequency point can be switched to use the measurement frequency point. For example, odd frames within a preset number of frames in the measurement period all use the measurement frequency point as a communication frequency point. The preset number of frames may be the number of frames required to poll all the measurement frequency points in the first frequency point set once. For example, if the number of the measured frequency points is N, and the first frame in the measurement period is an odd frame, the preset number of frames should be not less than 2N-1, so as to ensure that all the measured frequency points in the first frequency point set can be used, so as to obtain the interference values of different frequency points in the current environment.
In the method, for a frame that does not use a measurement frequency point as a communication frequency point, that is, when the measurement period arrives, the number of frames received from the master device in the current measurement period is within a preset number of frames, and the number of frames is an even number, a preset frequency point may be used as a communication frequency point, the preset frequency point may be, for example, a service frequency point, and the service frequency point is a reception frequency point used when the slave device receives a signal of the master device before the measurement period arrives.
By the technical scheme, after the measuring period is reached and the frame number received from the main equipment in the current measuring period is within the preset frame number, the communication frequency point is switched back and forth between the measuring frequency point and the preset frequency point (such as a service frequency point). Therefore, the communication effect and quality between the master device and the slave device in the measurement period can be stabilized to a certain extent, and the situation that the communication effect between the master device and the slave device is influenced or even the master device and the slave device cannot communicate due to the overlarge interference of the measurement frequency point is avoided.
Fig. 5 is a flowchart illustrating a peer-to-peer communication method applied to a master device according to an exemplary embodiment of the present disclosure. As shown in fig. 5, the method further includes steps 501 to 503.
In step 501, it is determined whether the master device is in initial use, and if so, the process goes to step 502, and if not, the process goes to step 504.
In step 502, the frequency point with the minimum interference value in the current environment is determined as a general frequency point. When the main equipment is judged to be used for the first time, frequency point scanning is carried out on the current environment, signal intensity is scanned one by one in a measuring frequency band, and the slave equipment cannot send signals to the main equipment at the moment, so that the scanned signals are all environment signals and can be considered as noise, and therefore the frequency point with the minimum energy is obtained through scanning, namely the frequency point with the minimum interference value is considered as a common frequency point.
In step 503, a predetermined initial frequency point is set as the sending frequency point to send a matching signal to establish a connection with the slave device, where the matching signal includes the general frequency point. After the general frequency point with the minimum interference value in the current environment is obtained, the same preset initial frequency point as the preset initial frequency point in the slave equipment is used as a sending frequency point to establish connection with the slave equipment, and the general frequency point is sent to the slave equipment at the same time, so that the communication frequency point between the master equipment and the slave equipment is switched to the general frequency point, and the communication quality between the master equipment and the slave equipment is improved.
In step 504, the general frequency point is set as the transmission frequency point to communicate with the slave device. After the general frequency point is transmitted to the slave equipment, the transmission frequency point of the master equipment is correspondingly switched to the general frequency point to communicate with the slave equipment.
Through the technical scheme, when the master device is used for the first time, the master device can be connected with the master device through the preset initial frequency point correspondingly arranged in the slave device, and the frequency point scanning is carried out on the current environment so as to obtain the frequency point with the minimum interference value in the current environment as a general frequency point and serve as a sending frequency point, and the sending frequency point is sent to the slave device so as to be communicated with the slave device.
In one possible embodiment, the method further comprises: and when the signal sent by the slave equipment is not received for more than a preset time, setting the general frequency point as the sending frequency point to communicate with the slave equipment. If the communication frequency point switching process is unexpected, the switching is not successful, or other reasons cause the master device and the slave device to work on different frequency points respectively, so that the communication cannot be established again, therefore, a robust design is added in the disclosure, the master device is enabled to return to the general frequency point for communication when the master device does not receive signals sent by the slave device after exceeding a preset time, namely, the master device cannot communicate with the slave device, namely, the general frequency point is set as a receiving frequency point for communicating with the slave device, so that the master device and the slave device have the opportunity to restart the communication on the general frequency point, and the serious condition that the communication interruption of the master device and the slave device cannot be automatically recovered is avoided.
In one possible embodiment, the method further comprises: and randomly selecting one frequency point from the second frequency point set as a receiving frequency point according to the random number obtained by using the preset seed so as to communicate with the slave equipment. The preset seed may be, for example, a System Frame Number (SFN). Since the same random function is used, the random number obtained from the same seed is the same, but the random number varies randomly for the third party. Therefore, if the slave device selects one frequency point from the second frequency point set as the transmission frequency point according to the random number obtained by using the preset seed, it can be ensured that the transmission frequency point of the slave device and the reception frequency point of the master device are maintained at the same frequency point. The second frequency point set may be the same as the first frequency point set, that is, the second frequency point set may also be a set of multiple measurement frequency points, or may be different from the first frequency point set, and the frequency points in the second frequency point set may also be determined according to different selected bandwidths.
Fig. 6 is a block diagram illustrating a structure of a peer-to-peer communication apparatus 100 applied to a slave device, which is one of two parties of the peer-to-peer communication, according to an exemplary embodiment of the disclosure. As shown in fig. 6, the apparatus 100 includes:
a first frequency point switching module 101, configured to set, when it is determined that a measurement period arrives, a plurality of measurement frequency points in a first frequency point set to be receiving frequency points according to a preset sequence, respectively, so as to communicate with a master device, where the master device is another of the two peer-to-peer communication parties;
an optimal frequency point determining module 102, configured to obtain multiple interference values corresponding to the multiple measurement frequency points according to the signal received in the measurement period, and determine a frequency point corresponding to a minimum interference value in the multiple interference values as an optimal frequency point;
a first sending module 103, configured to send a frequency point switching command to the master device, so that a sending frequency point of the master device is switched to the optimal frequency point, where the frequency point switching command includes the optimal frequency point;
the first frequency point switching module 101 is further configured to set the optimal frequency point as a receiving frequency point to communicate with the master device.
By the technical scheme, when the optimal frequency point in the current environment needs to be obtained, the frequency point needing to measure the interference value is used as the communication frequency point of two sides of point-to-point communication for communication, so that the interference values of different frequency points in the current environment can be obtained under the condition of not stopping communication, the optimal frequency point with the minimum interference value is selected as the receiving frequency point communicated with other equipment, the loss of throughput rate can be effectively reduced because the time for measuring the interference value does not need to be lost, and meanwhile, after the slave equipment sends the frequency point switching command containing the optimal frequency point to the master equipment, the optimal frequency point is immediately used as the communication frequency point between the master equipment and the slave equipment, so that the communication frequency point can be successfully switched under the condition of severe communication environment, and the communication frequency point is switched to the frequency point with the minimum interference value in the current environment, therefore, the communication quality of both communication parties is guaranteed to a certain extent.
In a possible implementation manner, the first frequency point switching module 101 is configured to: and when the measurement period is up, the number of frames received from the main equipment in the current measurement period is within a preset number of frames and the frame number meets a preset requirement, respectively setting the plurality of measurement frequency points in the first frequency point set as the receiving frequency points according to the preset sequence so as to communicate with the main equipment. The preset requirement may be, for example, that the frame number is an odd number, or that the frame number is an even number, etc.
In a possible implementation manner, the first sending module 103 is further configured to: and when the difference between the interference value of the optimal frequency point and the interference value of the service frequency point is not greater than the first preset threshold, the interference value of the service frequency point is not less than the second preset threshold, and the optimal frequency point is not equal to the service frequency point, sending the frequency point switching command to the master device, wherein the service frequency point is a receiving frequency point used when the slave device receives the master device signal before the measurement period is reached.
Fig. 7 is a block diagram illustrating a structure of a peer-to-peer communication apparatus 100 applied to a slave device according to another exemplary embodiment of the present disclosure, where, as shown in fig. 7, the apparatus 100 further includes: and the gain control module 104 is configured to perform gain control on the signals received at the multiple measurement frequency points, respectively.
In a possible embodiment, as shown in fig. 7, the apparatus 100 further comprises: an initial frequency point setting module 105, configured to set a preset initial frequency point as the receiving frequency point to establish a connection with the master device when it is determined that the slave device is in initial use; the first receiving module 106 is configured to receive a matching signal sent by the master device, where the matching signal includes a general frequency point, and the general frequency point is a frequency point with a minimum interference value in a current environment; the first frequency point switching module 101 is further configured to set the general frequency point as the receiving frequency point to communicate with the master device.
In a possible implementation manner, the first frequency point switching module 101 is further configured to set the general frequency point as the receiving frequency point to communicate with the master device when a signal sent by the master device is not received for more than a preset time period.
In a possible embodiment, as shown in fig. 7, the apparatus 100 further comprises: and the first random frequency hopping module 107 is configured to randomly select one frequency point from the second frequency point set as a sending frequency point according to a random number obtained by using a preset seed, so as to communicate with the master device.
Fig. 8 is a block diagram illustrating a structure of a peer-to-peer communication apparatus 200 applied to a master device, wherein the master device is one of the two parties of peer-to-peer communication according to an exemplary embodiment of the disclosure. As shown in fig. 8, the apparatus 200 includes:
the second frequency point switching module 201 is configured to, when it is determined that the measurement period arrives, set the multiple measurement frequency points in the first frequency point set to be transmission frequency points according to a preset sequence, so as to communicate with a slave device, where the slave device is the other of the two peer-to-peer communication parties;
a second receiving module 202, configured to receive a frequency point switching command sent by the slave device, where the frequency point switching command includes an optimal frequency point with a minimum interference value in a current environment;
the second frequency point switching module 201 is further configured to set the optimal frequency point as the sending frequency point to communicate with the slave device.
According to the technical scheme, when the optimal frequency point in the current environment needs to be obtained, the frequency point needing to measure the interference value is used as the communication frequency point of the two parties of point-to-point communication for communication, so that the interference values of different frequency points in the current environment can be obtained under the condition of not stopping communication, the optimal frequency point with the minimum interference value is selected as the receiving frequency point communicated with other equipment, and the loss of the throughput rate can be effectively reduced because the time for measuring the interference value does not need to be lost. Meanwhile, after a frequency point switching command sent by slave equipment is received, the optimal frequency point is immediately used as a communication frequency point between master equipment and slave equipment, so that the communication frequency point can be successfully switched under the condition of a severe communication environment, and the communication frequency point is switched to the frequency point with the minimum interference value in the current environment, thereby ensuring the communication quality of both communication parties to a certain extent.
In a possible implementation manner, the second frequency point switching module 201 is configured to: and when the measurement period is up, the number of frames sent to the slave equipment in the current measurement period is within a preset number of frames and the frame number meets a preset requirement, respectively setting the plurality of measurement frequency points in the first frequency point set as the sending frequency points according to the preset sequence so as to communicate with the slave equipment. The preset requirement may be, for example, that the frame number is an odd number, or that the frame number is an even number, etc.
Fig. 9 is a block diagram illustrating a structure of a peer-to-peer communication apparatus 200 applied to a master device according to another exemplary embodiment of the present disclosure, where, as shown in fig. 9, the apparatus 200 further includes: a general frequency point determining module 203, configured to determine, when it is determined that the primary device is in initial use, a frequency point with a minimum interference value in a current environment as a general frequency point; a second sending module 204, configured to set a predetermined initial frequency point as the sending frequency point to send a matching signal to establish connection with the slave device, where the matching signal includes the general frequency point; the second frequency point switching module 201 is further configured to set the general frequency point as the sending frequency point to communicate with the slave device.
In a possible implementation manner, the second frequency point switching module 201 is further configured to: and when the signal sent by the slave equipment is not received for more than a preset time, setting the general frequency point as the sending frequency point to communicate with the slave equipment.
In a possible embodiment, as shown in fig. 9, the apparatus 200 further comprises: the second random frequency hopping module 205 is configured to randomly select one frequency point from the second frequency point set as a receiving frequency point according to a random number obtained by using a preset seed, so as to communicate with the slave device.
The preferred embodiments of the present disclosure are described in detail with reference to the accompanying drawings, however, the present disclosure is not limited to the specific details of the above embodiments, and various simple modifications may be made to the technical solution of the present disclosure within the technical idea of the present disclosure, and these simple modifications all belong to the protection scope of the present disclosure.
It should be noted that the various features described in the above embodiments may be combined in any suitable manner without departing from the scope of the invention. In order to avoid unnecessary repetition, various possible combinations will not be separately described in this disclosure.
In addition, any combination of various embodiments of the present disclosure may be made, and the same should be considered as the disclosure of the present disclosure, as long as it does not depart from the spirit of the present disclosure.

Claims (24)

1. A peer-to-peer communication method applied to a slave device, wherein the slave device is one of the two parties of peer-to-peer communication, the method comprising:
when the measurement period is judged to arrive, respectively setting a plurality of measurement frequency points in a first frequency point set as receiving frequency points according to a preset sequence so as to communicate with a main device, wherein the main device is the other party of the two parties of the point-to-point communication;
acquiring a plurality of interference values corresponding to the plurality of measurement frequency points according to the signals received in the measurement period, and determining the frequency point corresponding to the minimum interference value in the plurality of interference values as an optimal frequency point;
sending a frequency point switching command to the main equipment so as to switch the sending frequency point of the main equipment to the optimal frequency point, wherein the frequency point switching command comprises the optimal frequency point;
and setting the optimal frequency point as a receiving frequency point to communicate with the main equipment.
2. The method according to claim 1, wherein when it is determined that the measurement period arrives, respectively setting the plurality of measurement frequency points in the first frequency point set as receiving frequency points in a preset order to communicate with the master device comprises:
and when the measurement period is up, the number of frames received from the main equipment in the current measurement period is within a preset number of frames and the frame number meets a preset requirement, respectively setting the plurality of measurement frequency points in the first frequency point set as the receiving frequency points according to the preset sequence so as to communicate with the main equipment.
3. The method according to claim 1, wherein the sending the frequency point switch command to the master device comprises:
when the difference between the interference value of the optimal frequency point and the interference value of the service frequency point is not more than a first preset threshold value, the interference value of the service frequency point is not less than a second preset threshold value, and the optimal frequency point is not equal to the service frequency point, the frequency point switching command is sent to the main equipment,
and the service frequency point is a receiving frequency point used when the slave equipment receives the master equipment signal before the measurement period is reached.
4. The method of claim 1, further comprising:
and respectively controlling the gain values of the signals received at the plurality of measurement frequency points.
5. The method of claim 1, further comprising:
when the slave equipment is judged to be used for the first time, setting a preset initial frequency point as the receiving frequency point so as to establish connection with the master equipment;
receiving a matching signal sent by the main device, wherein the matching signal comprises a common frequency point which is the frequency point with the minimum interference value in the current environment;
and setting the general frequency point as the receiving frequency point to communicate with the master equipment.
6. The method of claim 5, further comprising:
and when the signal sent by the main equipment is not received after the preset time length is exceeded, setting the general frequency point as the receiving frequency point to communicate with the main equipment.
7. The method of claim 1, further comprising:
and randomly selecting one frequency point from the second frequency point set as a sending frequency point according to the random number obtained by using the preset seed so as to communicate with the main equipment.
8. A peer-to-peer communication method is applied to a master device, wherein the master device is one of two parties of the peer-to-peer communication, and the method comprises the following steps:
when the measurement period is judged to arrive, respectively setting a plurality of measurement frequency points in a first frequency point set as sending frequency points according to a preset sequence so as to communicate with slave equipment, wherein the slave equipment is the other party of the two parties of the point-to-point communication;
receiving a frequency point switching command sent by the slave equipment, wherein the frequency point switching command comprises an optimal frequency point with the minimum interference value in the current environment;
and setting the optimal frequency point as the sending frequency point to communicate with the slave equipment.
9. The method according to claim 8, wherein when the measurement period is determined to arrive, respectively setting the plurality of measurement frequency points in the first frequency point set as the transmission frequency points in the preset order to communicate with the slave device comprises:
and when the measurement period is up, the number of frames sent to the slave equipment in the current measurement period is within a preset number of frames and the frame number meets a preset requirement, respectively setting the plurality of measurement frequency points in the first frequency point set as the sending frequency points according to the preset sequence so as to communicate with the slave equipment.
10. The method of claim 8, further comprising:
when the main equipment is judged to be used for the first time, determining the frequency point with the minimum interference value in the current environment as a common frequency point;
setting a preset initial frequency point as the sending frequency point to send a matching signal to establish connection with the slave equipment, wherein the matching signal comprises the common frequency point;
and setting the general frequency point as the sending frequency point to communicate with the slave equipment.
11. The method of claim 10, further comprising:
and when the signal sent by the slave equipment is not received after the preset time length is exceeded, setting the general frequency point as the sending frequency point to communicate with the slave equipment.
12. The method of claim 8, further comprising:
and randomly selecting one frequency point from the second frequency point set as a receiving frequency point according to the random number obtained by using the preset seed so as to communicate with the slave equipment.
13. A peer-to-peer communication apparatus, for use with a slave device, the slave device being one of the peer-to-peer communication parties, the apparatus comprising:
the first frequency point switching module is used for respectively setting a plurality of measuring frequency points in a first frequency point set as receiving frequency points according to a preset sequence to communicate with a main device when the measuring period is judged to arrive, wherein the main device is the other of the two parties of the point-to-point communication;
an optimal frequency point determining module, configured to obtain multiple interference values corresponding to the multiple measurement frequency points according to the signal received in the measurement period, and determine a frequency point corresponding to a minimum interference value among the multiple interference values as an optimal frequency point;
a first sending module, configured to send a frequency point switching command to the master device, so that a sending frequency point of the master device is switched to the optimal frequency point, where the frequency point switching command includes the optimal frequency point;
the first frequency point switching module is further configured to set the optimal frequency point as a receiving frequency point to communicate with the master device.
14. The apparatus of claim 13, wherein the first frequency point switching module is configured to:
and when the measurement period is up, the number of frames received from the main equipment in the current measurement period is within a preset number of frames and the frame number meets a preset requirement, respectively setting the plurality of measurement frequency points in the first frequency point set as the receiving frequency points according to the preset sequence so as to communicate with the main equipment.
15. The apparatus of claim 13, wherein the first sending module is further configured to:
when the difference between the interference value of the optimal frequency point and the interference value of the service frequency point is not more than a first preset threshold value, the interference value of the service frequency point is not less than a second preset threshold value, and the optimal frequency point is not equal to the service frequency point, the frequency point switching command is sent to the main equipment,
and the service frequency point is a receiving frequency point used when the slave equipment receives the master equipment signal before the measurement period is reached.
16. The apparatus of claim 13, further comprising:
and the gain value control module is used for respectively controlling the gain values of the signals received at the plurality of measurement frequency points.
17. The apparatus of claim 13, further comprising:
the initial frequency point setting module is used for setting a preset initial frequency point as the receiving frequency point to establish connection with the master device when the slave device is judged to be used for the first time;
the first receiving module is used for receiving a matching signal sent by the main device, wherein the matching signal comprises a common frequency point, and the common frequency point is the frequency point with the minimum interference value in the current environment;
the first frequency point switching module is further configured to set the general frequency point as the receiving frequency point to communicate with the master device.
18. The apparatus according to claim 17, wherein the first frequency point switching module is further configured to set the general frequency point as the receiving frequency point to communicate with the master device when a signal sent by the master device is not received for more than a preset duration.
19. The apparatus of claim 13, further comprising:
and the first random frequency hopping module is used for randomly selecting one frequency point from the second frequency point set as a sending frequency point according to the random number obtained by using the preset seed so as to communicate with the main equipment.
20. An apparatus for peer-to-peer communication, wherein the apparatus is applied to a master device, and the master device is one of the two parties of peer-to-peer communication, the apparatus comprising:
the second frequency point switching module is used for respectively setting the plurality of measurement frequency points in the first frequency point set as sending frequency points according to a preset sequence to communicate with slave equipment when the measurement period is judged to arrive, wherein the slave equipment is the other party of the two parties of the point-to-point communication;
a second receiving module, configured to receive a frequency point switching command sent by the slave device, where the frequency point switching command includes an optimal frequency point with a minimum interference value in a current environment;
the second frequency point switching module is further configured to set the optimal frequency point as the sending frequency point to communicate with the slave device.
21. The apparatus of claim 20, wherein the second frequency point switching module is configured to:
and when the measurement period is up, the number of frames sent to the slave equipment in the current measurement period is within a preset number of frames and the frame number meets a preset requirement, respectively setting the plurality of measurement frequency points in the first frequency point set as the sending frequency points according to the preset sequence so as to communicate with the slave equipment.
22. The apparatus of claim 20, further comprising:
a common frequency point determining module, configured to determine, when it is determined that the master device is in initial use, a frequency point with a minimum interference value in a current environment as a common frequency point;
a second sending module, configured to set a predetermined initial frequency point as the sending frequency point to send a matching signal to establish connection with the slave device, where the matching signal includes the general frequency point;
the second frequency point switching module is further configured to set the general frequency point as the sending frequency point to communicate with the slave device.
23. The apparatus of claim 22, wherein the second frequency point switching module is further configured to:
and when the signal sent by the slave equipment is not received after the preset time length is exceeded, setting the general frequency point as the sending frequency point to communicate with the slave equipment.
24. The apparatus of claim 20, further comprising:
and the second random frequency hopping module is used for randomly selecting one frequency point from the second frequency point set as a receiving frequency point according to the random number obtained by using the preset seed so as to communicate with the slave equipment.
CN201811190968.XA 2018-10-12 2018-10-12 Point-to-point communication method and device Active CN111050382B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811190968.XA CN111050382B (en) 2018-10-12 2018-10-12 Point-to-point communication method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811190968.XA CN111050382B (en) 2018-10-12 2018-10-12 Point-to-point communication method and device

Publications (2)

Publication Number Publication Date
CN111050382A CN111050382A (en) 2020-04-21
CN111050382B true CN111050382B (en) 2022-04-15

Family

ID=70229949

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811190968.XA Active CN111050382B (en) 2018-10-12 2018-10-12 Point-to-point communication method and device

Country Status (1)

Country Link
CN (1) CN111050382B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115868116A (en) * 2022-05-18 2023-03-28 北京小米移动软件有限公司 Frequency sweeping method and device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103747450A (en) * 2014-01-24 2014-04-23 宇龙计算机通信科技(深圳)有限公司 Interference coordination and measurement methods and devices, base station and terminal
CN105282745A (en) * 2014-07-10 2016-01-27 中国移动通信集团公司 Base station frequency point selection method, apparatus and base station
CN105338631A (en) * 2014-05-29 2016-02-17 国际商业机器公司 Method and system for processing interference in wireless communication
WO2016155006A1 (en) * 2015-04-03 2016-10-06 华为技术有限公司 Data transmission method, device and system of time division duplex wireless data transmission system
CN106817703A (en) * 2016-12-16 2017-06-09 京信通信技术(广州)有限公司 A kind of frequency optimization method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102123425A (en) * 2010-01-11 2011-07-13 中兴通讯股份有限公司 Method and system for measurement, node B and user equipment (UE)

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103747450A (en) * 2014-01-24 2014-04-23 宇龙计算机通信科技(深圳)有限公司 Interference coordination and measurement methods and devices, base station and terminal
CN105338631A (en) * 2014-05-29 2016-02-17 国际商业机器公司 Method and system for processing interference in wireless communication
CN105282745A (en) * 2014-07-10 2016-01-27 中国移动通信集团公司 Base station frequency point selection method, apparatus and base station
WO2016155006A1 (en) * 2015-04-03 2016-10-06 华为技术有限公司 Data transmission method, device and system of time division duplex wireless data transmission system
CN106817703A (en) * 2016-12-16 2017-06-09 京信通信技术(广州)有限公司 A kind of frequency optimization method and device

Also Published As

Publication number Publication date
CN111050382A (en) 2020-04-21

Similar Documents

Publication Publication Date Title
KR102381640B1 (en) Random access method for multiple numerology operation
CN109845371B (en) Downlink data receiving method, transmitting method, device and storage medium
US10917896B2 (en) User equipment, communication system, and method of controlling a user equipment
US20200028599A1 (en) Measurement Configuration Method and Apparatus
CN108293243B (en) Method, equipment and system for end-to-end data transmission
CN104780525B (en) Method, equipment, group head and system for adjusting terminal-to-terminal communication transmission power
CN104579518A (en) Base station, and method and system for measuring and feeding CSI (channel state information)
US10499270B2 (en) Channel quality reporting method and apparatus
US20230209362A1 (en) Radio communication device and radio communication method
CN109314628B (en) RS set configuration method, device, equipment and storage medium
CN101827386B (en) Method, system and related device for adjusting transmitting power
CN110521266B (en) bWP switching indication method, device and storage medium on unlicensed spectrum
CN111050382B (en) Point-to-point communication method and device
US20130107831A1 (en) Apparatus and method for transmitting and receiving signal in a near field communication system
CN110521273B (en) Channel state indication method, device and storage medium on unlicensed spectrum
US10045361B2 (en) Method, apparatus, and system for establishing cooperative communication
US7684810B2 (en) Trunking system control method
JP4639987B2 (en) Wireless communication system and wireless communication apparatus
JP3068369B2 (en) Wireless zone switching method
CN111328048B (en) Communication method and device
JP6255730B2 (en) Wireless communication system, location registration method, relay device, and wireless terminal device
KR20110021887A (en) Method for allocating transmission resources in a telecommunication system
EP1304895A2 (en) Transceivers and method for use in radio communications
JPH04297137A (en) Connection control system for mobile communication
US10063330B2 (en) Transmission device, wireless network transmission system and method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 100085 unit C, building C, lin66, Zhufang Road, Qinghe, Haidian District, Beijing

Applicant after: Beijing Xiaomi pinecone Electronic Co., Ltd

Address before: 100085 Beijing city Haidian District Qinghe Shun Yip things Park Building 3 unit A

Applicant before: BEIJING PINECONE ELECTRONICS Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant