WO2018010267A1 - Communication method and terminal - Google Patents

Communication method and terminal Download PDF

Info

Publication number
WO2018010267A1
WO2018010267A1 PCT/CN2016/096731 CN2016096731W WO2018010267A1 WO 2018010267 A1 WO2018010267 A1 WO 2018010267A1 CN 2016096731 W CN2016096731 W CN 2016096731W WO 2018010267 A1 WO2018010267 A1 WO 2018010267A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
frequency offset
base station
threshold
data
Prior art date
Application number
PCT/CN2016/096731
Other languages
French (fr)
Chinese (zh)
Inventor
苏二路
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2018010267A1 publication Critical patent/WO2018010267A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W16/00Network planning, e.g. coverage or traffic planning tools; Network deployment, e.g. resource partitioning or cells structures
    • H04W16/14Spectrum sharing arrangements between different networks

Definitions

  • the present invention relates to the field of communications, and in particular, to a communication method and a terminal.
  • a device-to-device (D2D) communication based on a cellular network or ProSeimity Service (ProSeimity Service), means that user data can be directly transmitted between terminals without being transited through the network.
  • D2D communication is significantly different from traditional cellular communication network architecture.
  • the schematic diagram of D2D communication network architecture is shown in Figure 1.
  • the resource multiplexing gain can be generated; the link gain and the resource multiplexing gain can improve the efficiency of the wireless spectrum resource, thereby improving the network throughput.
  • FIG 2-1 shows the application scenario of the D2D technology.
  • the application scenarios of the D2D technology include: (1) UE1 (User Equipment1, User Equipment 1) and UE2 are not in LTE (Long Term Evolution). In the network coverage, when UE1 and UE2 are relatively close, UE1 and UE2 can directly use D2D technology to communicate.
  • UE1 and UE2 When UE1 and UE2 are far away, they must find a relay terminal to access the LTE network. (2) One of UE1 and UE2 is within the coverage of the LTE network, and one is not within the coverage of the LTE network. At this time, it is necessary to find that the relay terminal is transferred to the LTE network by using the D2D technology; (3) UE1 and UE2 are both within the coverage of the LTE network, but UE1 and UE2 are in different network coverage of the base station, and UE1 is at this time.
  • UE2 can communicate directly through D2D technology; (4) UE1 and UE2 are both within the coverage of the LTE network, and UE1 and UE2 are within the network coverage of the same base station, and UE1 and UE2 can directly communicate through D2D technology. .
  • the traditional wireless communication network has high requirements for the communication infrastructure, and the damage of the core network or the access network device may cause the communication system to be paralyzed.
  • the introduction of D2D communication has made it possible for cellular communication terminals to establish Ad Hoc (peer-to-peer) networks.
  • Ad Hoc peer-to-peer
  • the terminal can realize end-to-end communication or even access to the cellular network by means of D2D, and the application scenario of the wireless communication is further expanded.
  • the related technical solution can only use the local machine to communicate with the base station.
  • This method has no problem for a terminal with a relatively small frequency, but because the terminal is in motion, the terminal may be due to Doppler effect, etc. The reason is that the frequency offset of the terminal is too high, and the frequency difference between the base station and the base station becomes larger, which ultimately leads to poor stability of the terminal data service.
  • the terminal A performs data service in the cell, and the terminal A is far away from the LTE cell. Therefore, the frequency offset of the terminal A may become very high due to high speed or interference, thereby seriously affecting the stability of the terminal data service, and the terminal B is Close to the LTE cell, the frequency offset of terminal B will be relatively low, and the data service is relatively stable.
  • the related technical solution can only use the terminal itself to communicate with the base station to perform data services. At this time, the terminal data service may be unstable.
  • the embodiment of the present invention provides a communication method and a terminal, which enable the terminal to maintain a stable data service when the frequency offset of the terminal is large.
  • an embodiment of the present invention provides a communication method, where the method includes:
  • the first terminal determines its own first frequency offset
  • the first terminal If the first frequency offset is greater than a preset first threshold, the first terminal requests a frequency offset from each terminal in the D2D terminal set;
  • the first terminal establishes a communication connection with the second terminal.
  • an embodiment of the present invention provides a communication method, where the method includes:
  • the second terminal sends its own second frequency offset to the first terminal, where the second terminal is a terminal in the D2D terminal set paired with the first terminal;
  • the second terminal receives the second data sent by the first terminal, and sends the second data to the base station.
  • an embodiment of the present invention provides a D2D terminal, where the D2D terminal includes:
  • a first determining unit configured to determine a D2D terminal set paired with the D2D terminal
  • a second determining unit configured to determine a first frequency offset of the D2D terminal itself
  • a first requesting unit configured to request a frequency offset from each terminal in the D2D terminal set if the first frequency offset is greater than a preset first threshold
  • a first receiving unit configured to receive, sent by each terminal in the D2D terminal set Second frequency offset
  • a third determining unit configured to determine a second terminal from the set of D2D terminals according to a second frequency offset of each terminal in the set of D2D terminals
  • the first establishing unit is configured to establish a communication connection with the second terminal.
  • an embodiment of the present invention provides a D2D terminal, where the D2D terminal includes:
  • a third sending unit configured to send a second frequency offset of the first terminal to the first terminal, where the second terminal is a terminal in the D2D terminal set paired with the first terminal;
  • a fifth receiving unit configured to receive an establishment request sent by the first terminal, and establish a communication connection with the first terminal according to the establishment request;
  • a fourth sending unit configured to receive first data sent by the base station, and send the first data to the first terminal
  • the sixth receiving unit is configured to receive the second data sent by the first terminal, and send the second data to the base station.
  • a computer storage medium is further provided, and the computer storage medium may store an execution instruction for executing the communication method in the foregoing embodiment.
  • An embodiment of the present invention provides a communication method and a terminal, where: a first terminal determines a D2D terminal set paired with the first terminal; the first terminal determines a first frequency offset of the first terminal; A frequency offset is greater than a preset first threshold, the first terminal requests a frequency offset from each terminal in the D2D terminal set; the first terminal receives each of the D2D terminal sets a second frequency offset sent by the terminal; the first terminal determines a second terminal from the set of D2D terminals according to a second frequency offset of each terminal in the set of D2D terminals; the first terminal Establishing a communication connection with the second terminal; thus, the terminal can maintain the data service of the terminal stably when the frequency offset of the terminal is large.
  • 1 is a schematic diagram of a D2D communication network architecture
  • Figure 2-1 is a schematic diagram of an application scenario of the D2D technology
  • Figure 2-2 shows the application of D2D technology in high-speed rail scenarios
  • FIG. 3 is a schematic flowchart of implementing a communication method according to an embodiment of the present invention.
  • FIG. 4 is a schematic flowchart of implementing a communication method according to Embodiment 2 of the present invention.
  • FIG. 5 is a schematic flowchart of an implementation process of a third communication method according to Embodiment 3 of the present invention.
  • 6-1 is a schematic structural diagram of a fourth communication system according to Embodiment 4 of the present invention.
  • Figure 6-3 is a schematic diagram of the frequency offset generated by the terminal during the operation of the high-speed rail
  • FIG. 7 is a schematic flowchart of implementing a communication method according to Embodiment 5 of the present invention.
  • FIG. 8 is a schematic structural diagram of a communication system according to Embodiment 6 of the present invention.
  • FIG. 9 is a schematic structural diagram of a communication system according to Embodiment 7 of the present invention.
  • FIG. 3 is a schematic flowchart of the implementation of the communication method according to the embodiment of the present invention. As shown in FIG. 3, the method includes:
  • Step S301 the first terminal determines a D2D terminal set that is paired with the first terminal.
  • the first terminal is in a motion state
  • the terminal in the D2D terminal set paired with the first terminal is also in a motion state
  • the first terminal and the D2D paired with the first terminal are The terminals in the terminal set are relatively stationary.
  • the first terminal may Receiving, by the base station, a request for acquiring a terminal in the D2D pairing group with the first terminal, and receiving a response sent by the base station, where the response carries identifier information of a terminal set of the D2D pairing group with the first terminal.
  • the first terminal is configured to be a set of D2D terminals that are paired with the first terminal in a D2D pairing group, and is determined to be a D2D terminal set that is paired with the first terminal; the first terminal may also use its own discovery mechanism. Automatically acquiring identification information of other D2D-enabled terminals within a certain distance, and sending a pairing request to the other D2D-enabled terminals, and determining a terminal set responding to the pairing request as a D2D paired with the first terminal Terminal collection.
  • Step S302 the first terminal determines its own first frequency offset
  • the first terminal determines the first frequency offset according to a hardware module that is used by itself to determine a frequency offset.
  • Step S303 if the first frequency offset is greater than a preset first threshold, the first terminal requests a frequency offset from each terminal in the D2D terminal set;
  • Step S304 the first terminal receives a second frequency offset sent by each terminal in the D2D terminal set.
  • Step S305 the first terminal determines a second terminal from the set of D2D terminals according to a second frequency offset of each terminal in the set of D2D terminals;
  • the first terminal compares the received second frequency offset of each terminal in the D2D terminal set with its own first frequency offset, and selects a first frequency offset that is smaller than itself.
  • the smallest second frequency offset in the quantity determines the terminal corresponding to the second offset as the second terminal.
  • Step S306 the first terminal establishes a communication connection with the second terminal.
  • the first frequency offset of the first terminal exceeds the set first threshold, if the first terminal performs data service through the base station, because the first frequency offset is too large, causing data The service is unstable.
  • the first terminal establishes a communication connection with the second terminal, and the second terminal has a small frequency offset.
  • the first terminal passes the second terminal and the base station. The communication connection is made, thereby improving the stability of the data service.
  • the first terminal determines a D2D terminal set that is paired with the first terminal; the first terminal determines its own first frequency offset; if the first frequency offset is greater than a preset a first threshold, the first terminal requests a frequency offset from each terminal in the D2D terminal set; the first terminal receives a second frequency offset sent by each terminal in the D2D terminal set Transmitting; determining, by the first terminal, a second terminal from the set of D2D terminals according to a second frequency offset of each terminal in the set of D2D terminals; establishing, by the first terminal, communication with the second terminal Connection; in this way, the stability of data traffic between the first terminal and the base station can be improved.
  • FIG. 4 is a schematic flowchart of the implementation method of the communication method according to the second embodiment of the present invention. As shown in FIG. 4, the method includes:
  • Step S401 the first terminal determines a D2D terminal set that is paired with the first terminal
  • the first terminal is in a motion state
  • the terminal in the D2D terminal set paired with the first terminal is also in a motion state
  • the first terminal and the D2D paired with the first terminal are The terminals in the terminal set are relatively stationary.
  • Step S402 the first terminal determines its own first frequency offset
  • Step S403 determining whether the first frequency offset is greater than a preset first threshold
  • Step S404 if the first frequency offset is greater than a preset first threshold, the first terminal requests a frequency offset from each terminal in the D2D terminal set;
  • Step S405 each terminal in the D2D terminal set sends a second frequency offset to the first terminal.
  • the first terminal receives a second frequency offset sent by each terminal in the D2D terminal set.
  • Step S406 the first terminal determines a second terminal from the set of D2D terminals according to a second frequency offset of each terminal in the set of D2D terminals;
  • the first terminal compares the received second frequency offset of each terminal in the D2D terminal set with its own first frequency offset, and selects a first frequency offset that is smaller than itself.
  • the smallest second frequency offset is determined by the terminal corresponding to the second offset as the second terminal.
  • Step S407 the first terminal sends a setup request to the second terminal, and the first terminal establishes a communication connection with the second terminal according to the establishment request.
  • the second terminal receives the establishment request and establishes a communication connection with the first terminal based on the establishment request.
  • Step S408 the first terminal disconnects from the base station
  • Step S409 the first terminal receives the first data sent by the second terminal from the base station
  • the second terminal receives the first data sent by the base station, and sends the first data to the first terminal.
  • Step S410 the first terminal sends, to the second terminal, second data for sending to the base station;
  • the second terminal receives the second data sent by the first terminal, and sends the second data to the base station.
  • Step S411 determining whether the linear distance between the first terminal and the second terminal exceeds a preset second threshold
  • the distance between the first terminal and the second terminal may change during the motion.
  • Step S412 if the linear distance between the first terminal and the second terminal exceeds a preset second threshold, the first terminal disconnects the communication connection with the second terminal, and then Go to step S401;
  • Step S413 if the linear distance between the first terminal and the second terminal does not exceed a preset second threshold, the second terminal determines its own third frequency offset;
  • Step S414 the second terminal determines whether the third frequency offset is greater than a preset first threshold
  • Step S415 if the third frequency offset is greater than a preset first threshold, the second terminal sends signaling to the first terminal.
  • the signaling is used to notify the first terminal that the third frequency offset of the second terminal exceeds the first threshold, and the first terminal receives the signaling.
  • Step S417 the first terminal determines whether the fourth frequency offset is less than a preset third threshold
  • the third threshold is different from the first threshold, and the third threshold is a low threshold for determining whether to adopt the D2D communication method provided by the embodiment of the present invention, where the first threshold is According to the high threshold of the D2D communication method provided by the embodiment of the present invention, when the frequency offset of the terminal is greater than the first threshold or greater than the third threshold, the terminal is triggered to search by using the D2D communication method provided by the embodiment of the present invention.
  • the D2D terminal that the terminal can communicate with.
  • Step S419 the second terminal disconnects the communication connection with the base station
  • Step S420 the first terminal receives the third data sent by the base station, and sends the third data to the second terminal.
  • the second terminal receives third data from the base station and sent by the first terminal.
  • Step S421 the first terminal receives the fourth data sent by the second terminal, and sends the fourth data to the base station;
  • the second terminal sends fourth data that needs to be sent to the base station to the first terminal.
  • Step S422 if the fourth frequency offset is not less than a preset third threshold, the first terminal disconnects the communication connection with the second terminal, and proceeds to step S404.
  • the embodiment of the present invention first provides a communication method.
  • the embodiment of the present invention describes a terminal A that supports the D2D function.
  • the terminal A is in a motion state, and the terminal A is far away from the base station during the motion, so the The frequency offset of the terminal A is high, and the data service of the terminal A is unstable.
  • This embodiment provides a D2D communication method to solve the technical problem.
  • FIG. 5 is a third D2D communication method according to an embodiment of the present invention. A schematic diagram of the implementation process is shown in FIG. 5, and the method is specifically as follows:
  • terminal A is far away from the base station, and terminal set Ba (ie, all D2D terminals that are closer to the base station and paired with terminal A) are closer to the base station, and all terminals are Both are in motion and the terminal A and the terminal set Ba are relatively stationary.
  • Step S501 the terminal A determines whether the frequency offset of the terminal is greater than a threshold value
  • the terminal A determines its own first frequency offset, and determines whether the first frequency offset of the terminal is greater than the first threshold.
  • the first threshold may be set according to an actual scenario.
  • Step S502 if the first frequency offset does not exceed the first threshold, the terminal A performs data communication with the base station according to the normal mode;
  • Step S503 when the first frequency offset exceeds the first threshold, the terminal A sends a multicast carrying its own first frequency offset to other already paired D2D terminal sets Ba;
  • Step S504 the terminal set Ba compares its own frequency offset and the frequency offset from the terminal A;
  • the terminal Ba receives the multicast sent by the terminal A, and parses the multicast to obtain the first frequency offset of the terminal A, compares the second frequency offset of itself with the terminal A from the terminal. The first frequency offset.
  • Step S505 the pairing terminal Bx sends its own frequency offset to the terminal A;
  • the paired terminal Bx transmits its own second frequency offset.
  • the quantity is given to terminal A, ⁇ f_B represents the second frequency offset, and ⁇ f_A represents the first frequency offset.
  • Ba represents a set of all D2D terminals that are relatively close to the center of the base station and has a lower frequency offset, paired with the terminal A;
  • Bx represents a closer to the center of the base station and the second frequency offset of the second frequency offset is smaller than the first frequency offset Any one of all D2D terminals paired with the terminal A.
  • Step S506 the terminal A receives the terminal B with the smallest frequency offset selected from the paired terminal Bx and establishes a communication connection with the terminal B;
  • the terminal A selects the terminal B with the smallest second frequency offset after receiving the second frequency offset from the paired terminal Bx (the terminal with the smallest second frequency offset among the selected Ba sets) Establishing a communication connection with the terminal B.
  • Step S507 the terminal A receives the communication data sent by the terminal B;
  • B denotes the terminal with the smallest second frequency offset among the selected Ba sets, and the communication data is from the base station.
  • Step S508 the distance between the terminal A and the terminal B changes and exceeds a certain distance, then returns to step S501 to re-determine the frequency offset of the terminal A shown;
  • the first frequency offset of the terminal A is re-determined.
  • Step S509 determining that the frequency offset of the terminal B is greater than a threshold
  • the terminal B and the base station determine a third frequency offset of the terminal B during communication.
  • Step S510 the terminal B sends signaling to A
  • the terminal The B sends a signaling to the terminal A, where the signaling is used to notify the terminal A that the third frequency offset of the terminal B is too large, that is, the terminal A is prompted to have a larger frequency.
  • Step S511 the terminal A determines whether the frequency offset of the terminal is lower than a value
  • the terminal A determines its own fourth frequency offset at this time, and determines whether the fourth frequency offset is lower than the third threshold.
  • Step S512 if the fourth frequency offset of the terminal A is lower than the third threshold, the terminal A establishes a communication connection with the base station;
  • step S513 the terminal B receives the communication data sent by the terminal A.
  • the terminal B disconnects the communication connection with the base station, and the terminal B communicates with the base station through the terminal A.
  • the technical solution provided by the embodiment of the present invention can avoid data instability caused by excessive frequency offset at the cell edge.
  • the terminal does not directly communicate with the base station using its own frequency compensation value, but communicates with the terminal with a small frequency offset (terminal B), and the terminal A receives the communication data sent by the terminal B, and further Data communication anomalies caused by excessive frequency offset are greatly reduced.
  • FIG. 6-1 is a schematic structural diagram of a communication system according to Embodiment 4 of the present invention.
  • the system includes a terminal A601, a terminal B602, and a base station 603.
  • the terminal A601 includes a first frequency offset determining module 611, a first communications module 612, a first distance measuring module 613, and a first frequency offset varying module 614
  • the terminal B602 includes a second frequency offset determining module 621.
  • a second communication module 622, a second distance measurement module 623, and a second frequency offset variation module 624 wherein:
  • the first frequency offset determining module 611 is configured to determine a first frequency offset of the first frequency offset, and when the first frequency offset exceeds the first threshold, the terminal A sends a multicast carrying The first frequency offset of the body is given to other already paired D2D terminal sets Ba;
  • the first communication module 612 is configured to establish a communication connection with the terminal B, the terminal A and the terminal B communicate, and the terminal A receives the data sent by the terminal B from the base station;
  • the first distance measurement module 613 is configured to measure a linear distance between the terminal A and the terminal B, and determine whether a linear distance between the terminal A and the terminal B exceeds a predetermined second threshold;
  • the first frequency offset change module 614 is configured to generate a frequency offset due to the terminal A during the motion if the linear distance between the terminal A and the terminal B does not exceed the second threshold. Changing, determining a fourth frequency offset of the terminal A, and determining whether the fourth frequency offset is less than a third threshold, if the fourth frequency offset of the terminal A at this time is lower than a third threshold And the terminal A establishes communication with the base station;
  • the second frequency offset determining module 621 is configured to determine its own second frequency offset, and the terminal B compares its own second frequency offset and the first frequency offset, if the terminal set B The second frequency offset is less than the first frequency offset of the terminal A, that is, ⁇ f_B ⁇ ⁇ f_A, the terminal B transmits its own second frequency offset to the terminal A;
  • the second communication module 622 is configured to establish a communication connection with the terminal A, and the terminal B communicates with the terminal A;
  • the second distance measuring module 623 is configured to measure a linear distance between the terminal B and the terminal A, and determine whether a linear distance between the terminal B and the terminal A exceeds a predetermined second threshold;
  • the second frequency offset change module 624 is configured to determine, when the terminal B changes the frequency offset during the motion, determine the third frequency offset of the terminal B, and determine the third frequency. Whether the offset is greater than a first threshold, and if the third frequency offset is greater than the first threshold, the terminal B disconnects communication with the base station and communicates with the base station through the terminal A.
  • FIG. 6-2 is a schematic flowchart of an implementation process of a D2D communication method according to an embodiment of the present invention. As shown in FIG. 6-2, the method includes:
  • Step S601 the terminal A determines the first frequency offset of the self.
  • the terminal A sends the multicast to carry its own first frequency offset to other Paired D2D terminal set Ba
  • the terminal in the terminal set Ba compares its own second frequency offset and the first frequency offset, if the second frequency offset of the terminal Bx in the terminal set Ba is less than
  • the first frequency offset of the terminal A that is, ⁇ f_B ⁇ ⁇ f_A
  • the pairing member Bx sends its own second frequency offset to the terminal A;
  • Figure 6-3 is a schematic diagram of the frequency offset generated by the terminal during the operation of the high-speed rail.
  • the frequency offset of the terminal is due to the Doppler effect, and the calculation method of the Doppler shift:
  • v is the vehicle speed
  • c is the speed of light
  • f is the center frequency of the cell
  • fd is the Doppler shift.
  • f 0 is the frequency sent by the base station
  • f 1 is the frequency sent by the terminal. It is the angle between the connection between the base station and the terminal and the horizontal line.
  • the base station receives the downlink.
  • the frequency of the transmission is f 0 -f d
  • the frequency of the uplink sent by the terminal received by the base station is f 1 -2f d .
  • Step S602 the terminal A receives the second frequency offset from the paired terminal Bx, selects the terminal B with the smallest first frequency offset, and establishes a communication connection with the terminal B, and the terminal A receives the The communication data sent by terminal B;
  • step S603 it is determined whether the distance between the terminal A and the terminal B changes. If the change occurs and exceeds the second threshold, the process returns to step S601 to determine the first frequency offset.
  • Step S604 the terminal B and the base station determine their own third frequency offset in the communication process. If the third frequency offset of the terminal B exceeds the first threshold, the terminal B notifies. The terminal A, if the fourth frequency offset of the terminal A at this time is lower than a third threshold, the terminal A establishes communication with the base station, and the terminal B disconnects the communication with the base station and passes the Terminal A communicates with the base station.
  • FIG. 7 is a schematic flowchart of an implementation method of an interaction method of a D2D communication system according to Embodiment 5 of the present invention. As shown in FIG. 7, the method includes:
  • Step S701 the terminal A determines whether the frequency offset of the terminal is greater than the first threshold
  • the terminal A determines its own first frequency offset, and determines whether the first frequency offset of the terminal is greater than the first threshold.
  • the first threshold may be set according to the actual scenario.
  • Step S702 the terminal A sends a multicast carrying its own frequency offset to other pairs of D2D terminal sets that have been paired;
  • Step S703 the paired terminal set Bx sends its own frequency offset to the terminal A;
  • the terminal Ba receives the multicast sent by the terminal A, and parses the multicast to obtain the first frequency offset of the terminal A, compares the second frequency offset of itself with the terminal A from the terminal. The first frequency offset. If the second frequency offset of the terminal Bx in the terminal set Ba is smaller than the first frequency offset of the terminal A, that is, ⁇ f_B ⁇ f_A, the paired terminal Bx sends its own second frequency offset to Terminal A, ⁇ f_B represents the second frequency offset, and ⁇ f_A represents the first frequency offset.
  • Step S704 the terminal A selects the terminal B with the smallest frequency offset and establishes a communication connection with the terminal B.
  • Step S705 the terminal A receives the communication data sent by the terminal B.
  • the terminal A disconnects the communication connection with the base station, and the terminal B and the base station Communicate.
  • Step S706 the frequency offset of the terminal B is greater than the first threshold
  • the distance between the terminal A and the terminal B may change, and the frequency offsets of the terminal A and the terminal B also change. Determining a third frequency offset of the terminal B during communication between the terminal B and the base station if the terminal A measures a change from the terminal B but does not exceed a preset second threshold. .
  • Step S707 the terminal B sends a signaling to notify the terminal A;
  • the terminal B sends information to the terminal A, where the signaling is used to notify the terminal A that the terminal is at this time.
  • the frequency offset of B is too large.
  • Step S708 the terminal A establishes communication with the base station
  • the terminal A determines its own fourth frequency offset. If the fourth frequency offset is less than the third threshold, the terminal A and the The base station establishes a communication connection.
  • step S709 the terminal B receives the communication data sent by the terminal A.
  • the terminal B disconnects the communication connection with the base station, and communicates with the base station through the terminal A.
  • the terminal A is far from the base station, the terminal Bx is closer to the base station, and the terminal A determines its own first frequency offset, when the first When a frequency offset exceeds the first threshold, the terminal A sends a multicast carrying its own first frequency offset to other already paired D2D terminal sets Ba, and each terminal in the terminal set Ba compares its own second. a frequency offset and a first frequency offset from the terminal A, if the second frequency offset of the terminal Bx in the terminal set Ba is smaller than the first frequency offset of the terminal A, that is, ⁇ f_B ⁇ ⁇ f_A , the pairing member Bx sends its own second frequency offset to the terminal A;
  • the terminal A Receiving, by the terminal A, the second frequency offset from the pairing terminal Bx, selecting the terminal B with the smallest second frequency offset and establishing a communication connection with the terminal B, and the terminal A receiving the terminal B Transmitting from the communication data with the base station; if the distance between the terminal A and the terminal B changes, and exceeds the second threshold, returning to the first step to re-determine the first frequency offset of the terminal A ;
  • the terminal B Determining, by the terminal B and the base station, a third frequency offset of the terminal B, if the third frequency offset of the terminal B exceeds a first threshold, the terminal B notifies the terminal A of the When the third frequency offset of the terminal B exceeds the first threshold, the terminal A determines its own fourth frequency offset, if the fourth frequency offset of the terminal A is lower than the third The threshold is such that the terminal A establishes a communication connection with the base station, and the terminal B disconnects the communication connection with the base station and communicates with the base station through the terminal A.
  • FIG. 8 is a schematic structural diagram of the system.
  • the communication system includes a first terminal 801, a second terminal 802, and a base station 803.
  • the first terminal 801 includes: a first determining unit 811, a second determining unit 812, a first requesting unit 813, a first receiving unit 814, a third determining unit 815, a first establishing unit 816, and a first disconnecting unit.
  • the second terminal 802 includes: a third sending unit 821, a third establishing unit 822, a sixth receiving unit 823, and a fourth sending unit 824, where:
  • the first determining unit 811 is configured to determine a D2D terminal set that is paired with the first terminal;
  • the second determining unit 812 is configured to determine a first frequency offset of the first terminal itself
  • the first requesting unit 813 is configured to: if the first frequency offset is greater than a preset first threshold, request a frequency offset from each terminal in the D2D terminal set;
  • the third sending unit 821 is configured to send its second frequency offset to the first terminal.
  • the second terminal is a terminal in a D2D terminal set paired with the first terminal;
  • the first receiving unit 814 is configured to receive a second frequency offset sent by each terminal in the D2D terminal set.
  • the third determining unit 815 is configured to determine a second terminal from the set of D2D terminals according to a second frequency offset of each terminal in the set of D2D terminals;
  • the first establishing unit 816 is configured to establish a communication connection with the second terminal
  • the third establishing unit 822 is configured to receive an establishment request sent by the first terminal, and establish a communication connection with the first terminal according to the establishment request;
  • the first disconnecting unit 817 is configured to disconnect the communication connection with the base station 803;
  • the first sending unit 818 is configured to send, to the second terminal, second data for sending to the base station 803;
  • the sixth receiving unit 823 is configured to receive the second data sent by the first terminal, and send the second data to the base station 803;
  • the fourth sending unit 824 is configured to receive the first data sent by the base station 803, and send the first data to the first terminal;
  • the second receiving unit 819 is configured to receive the first data sent by the second terminal from the base station 803.
  • FIG. 9 is a schematic structural diagram of a communication system according to Embodiment 7 of the present invention.
  • the system includes a first terminal 901.
  • the second terminal 902 and the base station 903, the first terminal 901 includes: a first determining unit 911, a second disconnecting unit 912, a fourth determining unit 913, a fifth determining unit 914, a third receiving unit 915, and a sixth determining a unit 916, a fourth determining unit 917, a second establishing unit 918, a second transmitting unit 919, a fourth receiving unit 9110, a third disconnecting unit 9111, and a second requesting unit 9112,
  • the second terminal 902 comprising: a seventh a determining unit 921, a second determining unit 922, a fifth transmitting unit 923, a fourth disconnecting unit 924, an eighth receiving unit 925, and a sixth transmitting unit 926, wherein:
  • the first determining unit 911 is configured to determine whether a linear distance between the first terminal and the second terminal exceeds a preset second threshold
  • the fourth determining unit 913 is configured to redetermine the D2D terminal set paired with the first terminal
  • the fifth determining unit 914 is configured to determine a first frequency offset of the first terminal itself
  • the seventh determining unit 921 is configured to determine, if the linear distance between the first terminal and the second terminal does not exceed a preset second threshold, the second terminal determines its own third frequency offset the amount;
  • the second determining unit 922 is configured to determine whether the third frequency offset is greater than a preset first threshold
  • the fifth sending unit 923 is configured to: if the third frequency offset is greater than a preset first threshold, the second terminal sends signaling to the first terminal;
  • the signaling is used to notify the first terminal that the third frequency offset of the second terminal exceeds the first threshold.
  • the third receiving unit 915 is configured to receive signaling sent by the second terminal
  • the sixth determining unit 916 is configured to determine a fourth frequency offset of the first terminal itself
  • the fourth determining unit 917 is configured to determine whether the fourth frequency offset is less than a preset third threshold
  • the second establishing unit 918 is configured to establish a communication connection with the base station if the fourth frequency offset is less than a preset third threshold, wherein the third threshold is different from the first threshold Two thresholds;
  • the second sending unit 919 is configured to receive third data sent by the base station, and send the third data to the second terminal;
  • the eighth receiving unit 925 is configured to receive third data from the base station that is sent by the first terminal.
  • the fifth sending unit 926 is configured to send, to the first terminal, fourth data for sending to the base station;
  • the fourth receiving unit 9110 is configured to receive fourth data sent by the second terminal, and send the fourth data to the base station;
  • the third disconnecting unit 9111 is configured to disconnect the communication connection with the second terminal if the fourth frequency offset is not less than a preset third threshold
  • the second requesting unit 9112 is configured to request a frequency offset from each of the D2D terminal sets paired with the first terminal.
  • Embodiments of the present invention also provide a storage medium.
  • the foregoing storage medium may be configured to store program code for performing the following steps:
  • the first terminal determines a D2D terminal set that is paired with the first terminal.
  • the first terminal determines its own first frequency offset.
  • the first terminal If the first frequency offset is greater than a preset first threshold, the first terminal requests a frequency offset from each terminal in the D2D terminal set.
  • the first terminal receives a second frequency offset sent by each terminal in the D2D terminal set.
  • the first terminal determines, according to the second frequency offset of each terminal in the D2D terminal set, the second terminal from the D2D terminal set.
  • the first terminal establishes a communication connection with the second terminal.
  • the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • a mobile hard disk e.g., a hard disk
  • magnetic memory e.g., a hard disk
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
  • the embodiment of the invention provides a communication method and a terminal, wherein: the first terminal determines a D2D terminal set paired with the first terminal; the first terminal determines its own first frequency offset; if the first frequency offset is greater than Determining a first threshold, the first terminal requests a frequency offset from each terminal in the D2D terminal set; the first terminal receives a second frequency offset sent by each terminal in the D2D terminal set; the first terminal Determining, by the second frequency offset of each terminal in the D2D terminal set, the second terminal from the D2D terminal set; the first terminal establishes a communication connection with the second terminal; thus, the terminal can make the frequency offset of the terminal larger At the same time, the terminal's data service can also remain stable.

Abstract

Disclosed in embodiments of the present invention are a communication method and terminal. The method comprises: a first terminal determines a D2D terminal set for pairing with the first terminal; the first terminal determines a first frequency offset amount of itself; if the first frequency offset amount is greater than a predetermined first threshold, the first terminal requests each terminal in the D2D terminal set for a frequency offset amount; the first terminal receives a second frequency offset amount sent by each terminal in the D2D terminal set; the first terminal determines, according to the second frequency offset amount of each terminal in the D2D terminal set, a second terminal from the D2D terminal set; and the first terminal establishes a communication connection to the second terminal.

Description

一种通讯方法及终端Communication method and terminal 技术领域Technical field
本发明涉及通信领域,尤其涉及一种通讯方法及终端。The present invention relates to the field of communications, and in particular, to a communication method and a terminal.
背景技术Background technique
基于蜂窝网络的D2D(Device to Device,设备到设备)通信,或称为ProSe(Proximity Service,邻近服务),是指用户数据可不经过网络中转而直接在终端之间传输。D2D通信与传统的蜂窝通信网络架构有显著区别,D2D的通信网络架构示意图如图1所示。在D2D通信模式下,用户数据直接在终端之间传输,避免了蜂窝通信中用户数据经过网络中转传输,由此产生链路增益;其次,D2D用户之间以及D2D与蜂窝之间的资源可以复用,由此可产生资源复用增益;通过链路增益和资源复用增益则可提高无线频谱资源的效率,进而提高网络吞吐量。A device-to-device (D2D) communication based on a cellular network, or ProSeimity Service (ProSeimity Service), means that user data can be directly transmitted between terminals without being transited through the network. D2D communication is significantly different from traditional cellular communication network architecture. The schematic diagram of D2D communication network architecture is shown in Figure 1. In the D2D communication mode, user data is directly transmitted between terminals, which avoids user data transmission in the cellular communication through the network, thereby generating link gain; secondly, resources between D2D users and between D2D and cellular can be recovered. Therefore, the resource multiplexing gain can be generated; the link gain and the resource multiplexing gain can improve the efficiency of the wireless spectrum resource, thereby improving the network throughput.
随着移动通信服务和技术的发展,具有邻近特性的用户间近距离的数据共享、小范围的社交和商业活动以及面向本地特定用户的特定业务,都在成为当前及下阶段无线平台中一个不可忽视的增长点。基于邻近用户感知的D2D技术的引入,有望提升上述业务模式下的用户体验。图2-1为D2D技术应用场景示意图,如图2-1所示,D2D技术的应用场景包括:(1)UE1(User Equipment1,用户设备1)和UE2都不在LTE(Long Term Evolution,长期演进)网络覆盖范围内,当UE1和UE2距离较近时,UE1和UE2可以直接利用D2D技术来进行通信,当UE1和UE2距离较远时,则必须寻找到中继终端从而接入到LTE网络中;(2)UE1和UE2有一个在LTE网络覆盖范围内,一个不在LTE网络覆盖范围内。此时需要寻找中继终端利用D2D技术转接到LTE网络中;(3)UE1和UE2都在LTE网络覆盖范围内,但UE1和UE2在不同的基站的网络覆盖范围,此时UE1 和UE2可以直接通过D2D技术进行通信;(4)UE1和UE2都在LTE网络的覆盖范围内,并且UE1和UE2在同一基站的网络覆盖范围内,此时UE1和UE2可以直接通过D2D技术进行通信。With the development of mobile communication services and technologies, close-range data sharing, small-scale social and commercial activities, and specific services for local specific users are all in the current and next-stage wireless platforms. Neglected growth points. The introduction of D2D technology based on neighboring user perception is expected to improve the user experience in the above business model. Figure 2-1 shows the application scenario of the D2D technology. As shown in Figure 2-1, the application scenarios of the D2D technology include: (1) UE1 (User Equipment1, User Equipment 1) and UE2 are not in LTE (Long Term Evolution). In the network coverage, when UE1 and UE2 are relatively close, UE1 and UE2 can directly use D2D technology to communicate. When UE1 and UE2 are far away, they must find a relay terminal to access the LTE network. (2) One of UE1 and UE2 is within the coverage of the LTE network, and one is not within the coverage of the LTE network. At this time, it is necessary to find that the relay terminal is transferred to the LTE network by using the D2D technology; (3) UE1 and UE2 are both within the coverage of the LTE network, but UE1 and UE2 are in different network coverage of the base station, and UE1 is at this time. And UE2 can communicate directly through D2D technology; (4) UE1 and UE2 are both within the coverage of the LTE network, and UE1 and UE2 are within the network coverage of the same base station, and UE1 and UE2 can directly communicate through D2D technology. .
传统无线通信网络对通信基础设施的要求较高,核心网或接入网设备的损坏都可能导致通信系统的瘫痪。D2D通信的引入使得蜂窝通信终端建立Ad Hoc(点对点)网络成为可能。当无线通信基础设施损坏,或者在无线网络的覆盖盲区,终端可借助D2D实现端到端通信甚至接入蜂窝网络,无线通信的应用场景得到进一步的扩展。The traditional wireless communication network has high requirements for the communication infrastructure, and the damage of the core network or the access network device may cause the communication system to be paralyzed. The introduction of D2D communication has made it possible for cellular communication terminals to establish Ad Hoc (peer-to-peer) networks. When the wireless communication infrastructure is damaged, or in the coverage area of the wireless network, the terminal can realize end-to-end communication or even access to the cellular network by means of D2D, and the application scenario of the wireless communication is further expanded.
目前对于处于运动状态的终端,相关的技术方案只能使用本机与基站进行通信,这种方法对于频率量比较小的终端没有问题,但是因为终端正在运动中,终端可能由于多普勒效应等原因使终端的频率偏移量过高,与基站交互过程中频率的差异性变大,最终导致终端数据业务的稳定性较差。At present, for a terminal in motion, the related technical solution can only use the local machine to communicate with the base station. This method has no problem for a terminal with a relatively small frequency, but because the terminal is in motion, the terminal may be due to Doppler effect, etc. The reason is that the frequency offset of the terminal is too high, and the frequency difference between the base station and the base station becomes larger, which ultimately leads to poor stability of the terminal data service.
当多个终端之间保持同向,相同速度的运动,即终端之间相对静止,但终端与基站之间处于运动状态,如火车、高铁等场景(如图2-2所示)中,D2D终端A在小区进行数据业务,终端A距离LTE小区较远,所以终端A的频率偏移量可能由于高速或干扰等原因变得非常高,进而严重影响终端数据业务的稳定性,而终端B由于距离LTE小区较近,所以终端B的频率偏移量会比较低,数据业务相对稳定。目前对于处于运动过程的终端,出现频率偏移量较大时,相关的技术方案只能使用终端自身与基站通信进行数据业务,此时,终端数据业务会不稳定。When multiple terminals maintain the same direction, the same speed of motion, that is, the terminals are relatively static, but the terminal and the base station are in motion, such as trains, high-speed rails, etc. (as shown in Figure 2-2), D2D The terminal A performs data service in the cell, and the terminal A is far away from the LTE cell. Therefore, the frequency offset of the terminal A may become very high due to high speed or interference, thereby seriously affecting the stability of the terminal data service, and the terminal B is Close to the LTE cell, the frequency offset of terminal B will be relatively low, and the data service is relatively stable. At present, when a frequency offset is large for a terminal in a motion process, the related technical solution can only use the terminal itself to communicate with the base station to perform data services. At this time, the terminal data service may be unstable.
发明内容Summary of the invention
为解决相关存在的技术问题,本发明实施例提供一种通讯方法及终端,能够使得终端在自身的频率偏移量较大时,终端的数据业务也能够保持稳定。In order to solve the related technical problem, the embodiment of the present invention provides a communication method and a terminal, which enable the terminal to maintain a stable data service when the frequency offset of the terminal is large.
为达到上述目的,本发明实施例的技术方案是这样实现的:To achieve the above objective, the technical solution of the embodiment of the present invention is implemented as follows:
第一方面,本发明实施例提供一种通讯方法,所述方法包括: In a first aspect, an embodiment of the present invention provides a communication method, where the method includes:
第一终端确定与所述第一终端进行配对的D2D终端集合;Determining, by the first terminal, a set of D2D terminals paired with the first terminal;
所述第一终端确定自身的第一频率偏移量;The first terminal determines its own first frequency offset;
如果所述第一频率偏移量大于预先设定的第一阈值,所述第一终端向所述D2D终端集合中的每一终端请求频率偏移量;If the first frequency offset is greater than a preset first threshold, the first terminal requests a frequency offset from each terminal in the D2D terminal set;
所述第一终端接收所述D2D终端集合中的每一终端发送的第二频率偏移量;Receiving, by the first terminal, a second frequency offset sent by each terminal in the D2D terminal set;
所述第一终端根据所述D2D终端集合中每一终端的第二频率偏移量从所述D2D终端集合中确定第二终端;Determining, by the first terminal, the second terminal from the set of D2D terminals according to a second frequency offset of each terminal in the set of D2D terminals;
所述第一终端与所述第二终端建立通信连接。The first terminal establishes a communication connection with the second terminal.
第二方面,本发明实施例提供一种通讯方法,所述方法包括:In a second aspect, an embodiment of the present invention provides a communication method, where the method includes:
第二终端向第一终端发送自身的第二频率偏移量,其中,所述第二终端是与所述第一终端进行配对的D2D终端集合中的终端;The second terminal sends its own second frequency offset to the first terminal, where the second terminal is a terminal in the D2D terminal set paired with the first terminal;
所述第二终端接收所述第一终端发送的建立请求,基于所述建立请求与所述第一终端建立通信连接;Receiving, by the second terminal, the establishment request sent by the first terminal, and establishing a communication connection with the first terminal according to the establishment request;
所述第二终端接收基站发送的第一数据,将所述第一数据发送给所述第一终端;Receiving, by the second terminal, the first data sent by the base station, and sending the first data to the first terminal;
所述第二终端接收所述第一终端发送的第二数据,并将所述第二数据发送给所述基站。The second terminal receives the second data sent by the first terminal, and sends the second data to the base station.
第三方面,本发明实施例提供一种D2D终端,所述D2D终端包括:In a third aspect, an embodiment of the present invention provides a D2D terminal, where the D2D terminal includes:
第一确定单元,设置为确定与所述D2D终端进行配对的D2D终端集合;a first determining unit, configured to determine a D2D terminal set paired with the D2D terminal;
第二确定单元,设置为确定所述D2D终端自身的第一频率偏移量;a second determining unit, configured to determine a first frequency offset of the D2D terminal itself;
第一请求单元,设置为如果所述第一频率偏移量大于预先设定的第一阈值,向所述D2D终端集合中的每一终端请求频率偏移量;a first requesting unit, configured to request a frequency offset from each terminal in the D2D terminal set if the first frequency offset is greater than a preset first threshold;
第一接收单元,设置为接收所述D2D终端集合中的每一终端发送的 第二频率偏移量;a first receiving unit, configured to receive, sent by each terminal in the D2D terminal set Second frequency offset;
第三确定单元,设置为根据所述D2D终端集合中每一终端的第二频率偏移量从所述D2D终端集合中确定第二终端;a third determining unit, configured to determine a second terminal from the set of D2D terminals according to a second frequency offset of each terminal in the set of D2D terminals;
第一建立单元,设置为与所述第二终端建立通信连接。The first establishing unit is configured to establish a communication connection with the second terminal.
第四方面,本发明实施例提供一种D2D终端,所述D2D终端包括:In a fourth aspect, an embodiment of the present invention provides a D2D terminal, where the D2D terminal includes:
第三发送单元,设置为向第一终端发送自身的第二频率偏移量,其中,所述第二终端是与所述第一终端进行配对的D2D终端集合中的终端;a third sending unit, configured to send a second frequency offset of the first terminal to the first terminal, where the second terminal is a terminal in the D2D terminal set paired with the first terminal;
第五接收单元,设置为接收所述第一终端发送的建立请求,基于所述建立请求与所述第一终端建立通信连接;a fifth receiving unit, configured to receive an establishment request sent by the first terminal, and establish a communication connection with the first terminal according to the establishment request;
第四发送单元,设置为接收基站发送的第一数据,将所述第一数据发送给所述第一终端;a fourth sending unit, configured to receive first data sent by the base station, and send the first data to the first terminal;
第六接收单元,设置为接收所述第一终端发送的第二数据,并将所述第二数据发送给所述基站。The sixth receiving unit is configured to receive the second data sent by the first terminal, and send the second data to the base station.
在本发明实施例中,还提供了一种计算机存储介质,该计算机存储介质可以存储有执行指令,该执行指令用于执行上述实施例中的通讯方法。In the embodiment of the present invention, a computer storage medium is further provided, and the computer storage medium may store an execution instruction for executing the communication method in the foregoing embodiment.
本发明实施例提供一种通讯方法及终端,其中:第一终端确定与所述第一终端进行配对的D2D终端集合;所述第一终端确定自身的第一频率偏移量;如果所述第一频率偏移量大于预先设定的第一阈值,所述第一终端向所述D2D终端集合中的每一终端请求频率偏移量;所述第一终端接收所述D2D终端集合中的每一终端发送的第二频率偏移量;所述第一终端根据所述D2D终端集合中每一终端的第二频率偏移量从所述D2D终端集合中确定第二终端;所述第一终端与所述第二终端建立通信连接;如此,能够使得终端在自身的频率偏移量较大时,终端的数据业务也能够保持稳定。 An embodiment of the present invention provides a communication method and a terminal, where: a first terminal determines a D2D terminal set paired with the first terminal; the first terminal determines a first frequency offset of the first terminal; A frequency offset is greater than a preset first threshold, the first terminal requests a frequency offset from each terminal in the D2D terminal set; the first terminal receives each of the D2D terminal sets a second frequency offset sent by the terminal; the first terminal determines a second terminal from the set of D2D terminals according to a second frequency offset of each terminal in the set of D2D terminals; the first terminal Establishing a communication connection with the second terminal; thus, the terminal can maintain the data service of the terminal stably when the frequency offset of the terminal is large.
附图说明DRAWINGS
图1为D2D通信网络架构示意图;1 is a schematic diagram of a D2D communication network architecture;
图2-1为D2D技术应用场景示意图;Figure 2-1 is a schematic diagram of an application scenario of the D2D technology;
图2-2为D2D技术在高铁场景应用示意图;Figure 2-2 shows the application of D2D technology in high-speed rail scenarios;
图3为本发明实施例一通讯方法的实现流程示意图;3 is a schematic flowchart of implementing a communication method according to an embodiment of the present invention;
图4为本发明实施例二通讯方法的实现流程示意图;4 is a schematic flowchart of implementing a communication method according to Embodiment 2 of the present invention;
图5为本发明实施例三通讯方法的实现流程示意图;FIG. 5 is a schematic flowchart of an implementation process of a third communication method according to Embodiment 3 of the present invention; FIG.
图6-1为本发明实施例四通讯系统的组成结构示意图;6-1 is a schematic structural diagram of a fourth communication system according to Embodiment 4 of the present invention;
图6-2为本发明实施例四通讯方法的实现流程示意图;6-2 is a schematic flowchart of implementing a communication method according to Embodiment 4 of the present invention;
图6-3为终端在高铁运行过程中产生的频率偏移量的示意图;Figure 6-3 is a schematic diagram of the frequency offset generated by the terminal during the operation of the high-speed rail;
图7为本发明实施例五通讯方法的实现流程示意图;7 is a schematic flowchart of implementing a communication method according to Embodiment 5 of the present invention;
图8为本发明实施例六通讯系统的组成结构示意图;8 is a schematic structural diagram of a communication system according to Embodiment 6 of the present invention;
图9为本发明实施例七通讯系统的组成结构示意图。FIG. 9 is a schematic structural diagram of a communication system according to Embodiment 7 of the present invention.
具体实施方式detailed description
下面结合附图和具体实施例对本发明的技术方案进一步详细阐述。The technical solutions of the present invention are further elaborated below in conjunction with the accompanying drawings and specific embodiments.
实施例一 Embodiment 1
为了解决背景技术中存在的技术问题,本发明实施例提供一种通讯方法,图3为本发明实施例一通讯方法的实现流程示意图,如图3所示,所述方法包括:In order to solve the technical problem in the prior art, the embodiment of the present invention provides a communication method, and FIG. 3 is a schematic flowchart of the implementation of the communication method according to the embodiment of the present invention. As shown in FIG. 3, the method includes:
步骤S301,第一终端确定与所述第一终端进行配对的D2D终端集合;Step S301, the first terminal determines a D2D terminal set that is paired with the first terminal.
这里,所述第一终端处于运动状态,所述与第一终端进行配对的D2D终端集合中的终端也处于运动状态,并且所述第一终端和所述与所述第一终端进行配对的D2D终端集合中的终端相对静止。所述第一终端可以向 基站发送获取与所述第一终端在一个D2D配对组的终端的请求,接收所述基站发送的响应,所述响应中携带有与所述第一终端在一个D2D配对组的终端集合的标识信息,所述第一终端将与所述第一终端在一个D2D配对组的终端集合,确定为与所述第一终端进行配对的D2D终端集合;所述第一终端也可以通过自身的发现机制,自动获取在一定距离内的其他支持D2D的终端的标识信息,并向所述其他支持D2D的终端发送配对请求,将响应所述配对请求的终端集合确定为与所述第一终端进行配对的D2D终端集合。Here, the first terminal is in a motion state, the terminal in the D2D terminal set paired with the first terminal is also in a motion state, and the first terminal and the D2D paired with the first terminal are The terminals in the terminal set are relatively stationary. The first terminal may Receiving, by the base station, a request for acquiring a terminal in the D2D pairing group with the first terminal, and receiving a response sent by the base station, where the response carries identifier information of a terminal set of the D2D pairing group with the first terminal. The first terminal is configured to be a set of D2D terminals that are paired with the first terminal in a D2D pairing group, and is determined to be a D2D terminal set that is paired with the first terminal; the first terminal may also use its own discovery mechanism. Automatically acquiring identification information of other D2D-enabled terminals within a certain distance, and sending a pairing request to the other D2D-enabled terminals, and determining a terminal set responding to the pairing request as a D2D paired with the first terminal Terminal collection.
步骤S302,所述第一终端确定自身的第一频率偏移量;Step S302, the first terminal determines its own first frequency offset;
这里,所述第一终端根据自身用于确定频率偏移量的硬件模块确定所述第一频率偏移量。Here, the first terminal determines the first frequency offset according to a hardware module that is used by itself to determine a frequency offset.
步骤S303,如果所述第一频率偏移量大于预先设定的第一阈值,所述第一终端向所述D2D终端集合中的每一终端请求频率偏移量;Step S303, if the first frequency offset is greater than a preset first threshold, the first terminal requests a frequency offset from each terminal in the D2D terminal set;
步骤S304,所述第一终端接收所述D2D终端集合中的每一终端发送的第二频率偏移量;Step S304, the first terminal receives a second frequency offset sent by each terminal in the D2D terminal set.
步骤S305,所述第一终端根据所述D2D终端集合中每一终端的第二频率偏移量从所述D2D终端集合中确定第二终端;Step S305, the first terminal determines a second terminal from the set of D2D terminals according to a second frequency offset of each terminal in the set of D2D terminals;
这里,所述第一终端,将收到的所述D2D终端集合中的每一终端的第二频率偏移量与自身的第一频率偏移量进行比较,选择小于自身的第一频率偏移量中最小的第二频率偏移量,将与所述第二偏移量对应的终端确定为第二终端。Here, the first terminal compares the received second frequency offset of each terminal in the D2D terminal set with its own first frequency offset, and selects a first frequency offset that is smaller than itself. The smallest second frequency offset in the quantity determines the terminal corresponding to the second offset as the second terminal.
步骤S306,所述第一终端与所述第二终端建立通信连接。Step S306, the first terminal establishes a communication connection with the second terminal.
这里,当所述第一终端的第一频率偏移量超过设定的第一阈值时,如果所述第一终端通过基站进行数据业务,因为所述第一频率偏移量过大,造成数据业务不稳定,此时所述第一终端与所述第二终端建立通信连接,而所述第二终端的频率偏移量较小,所述第一终端通过所述第二终端与所述基站进行通信连接,进而提高了数据业务的稳定性。 Here, when the first frequency offset of the first terminal exceeds the set first threshold, if the first terminal performs data service through the base station, because the first frequency offset is too large, causing data The service is unstable. The first terminal establishes a communication connection with the second terminal, and the second terminal has a small frequency offset. The first terminal passes the second terminal and the base station. The communication connection is made, thereby improving the stability of the data service.
本发明实施例中,第一终端确定与所述第一终端进行配对的D2D终端集合;所述第一终端确定自身的第一频率偏移量;如果所述第一频率偏移量大于预先设定的第一阈值,所述第一终端向所述D2D终端集合中的每一终端请求频率偏移量;所述第一终端接收所述D2D终端集合中的每一终端发送的第二频率偏移量;所述第一终端根据所述D2D终端集合中每一终端的第二频率偏移量从所述D2D终端集合中确定第二终端;所述第一终端与所述第二终端建立通信连接;如此,能够提高所述第一终端与基站之间的数据业务的稳定性。In the embodiment of the present invention, the first terminal determines a D2D terminal set that is paired with the first terminal; the first terminal determines its own first frequency offset; if the first frequency offset is greater than a preset a first threshold, the first terminal requests a frequency offset from each terminal in the D2D terminal set; the first terminal receives a second frequency offset sent by each terminal in the D2D terminal set Transmitting; determining, by the first terminal, a second terminal from the set of D2D terminals according to a second frequency offset of each terminal in the set of D2D terminals; establishing, by the first terminal, communication with the second terminal Connection; in this way, the stability of data traffic between the first terminal and the base station can be improved.
实施例二Embodiment 2
本发明实施例再提供一种通讯方法,图4为本发明实施例二通讯方法的实现流程示意图,如图4所示,所述方法包括:The embodiment of the present invention further provides a communication method, and FIG. 4 is a schematic flowchart of the implementation method of the communication method according to the second embodiment of the present invention. As shown in FIG. 4, the method includes:
步骤S401,第一终端确定与所述第一终端进行配对的D2D终端集合;Step S401, the first terminal determines a D2D terminal set that is paired with the first terminal;
这里,所述第一终端处于运动状态,所述与第一终端进行配对的D2D终端集合中的终端也处于运动状态,并且所述第一终端和所述与所述第一终端进行配对的D2D终端集合中的终端相对静止。Here, the first terminal is in a motion state, the terminal in the D2D terminal set paired with the first terminal is also in a motion state, and the first terminal and the D2D paired with the first terminal are The terminals in the terminal set are relatively stationary.
步骤S402,所述第一终端确定自身的第一频率偏移量;Step S402, the first terminal determines its own first frequency offset;
步骤S403,判断所述第一频率偏移量是否大于预先设定的第一阈值;Step S403, determining whether the first frequency offset is greater than a preset first threshold;
步骤S404,如果所述第一频率偏移量大于预先设定的第一阈值,所述第一终端向所述D2D终端集合中的每一终端请求频率偏移量;Step S404, if the first frequency offset is greater than a preset first threshold, the first terminal requests a frequency offset from each terminal in the D2D terminal set;
步骤S405,所述D2D终端集合中的每一终端向所述第一终端发送第二频率偏移量;Step S405, each terminal in the D2D terminal set sends a second frequency offset to the first terminal.
这里,所述第一终端接收所述D2D终端集合中的每一终端发送的第二频率偏移量。Here, the first terminal receives a second frequency offset sent by each terminal in the D2D terminal set.
步骤S406,所述第一终端根据所述D2D终端集合中每一终端的第二频率偏移量从所述D2D终端集合中确定第二终端; Step S406, the first terminal determines a second terminal from the set of D2D terminals according to a second frequency offset of each terminal in the set of D2D terminals;
这里,所述第一终端将收到的所述D2D终端集合中的每一终端的第二频率偏移量与自身的第一频率偏移量进行比较,选择小于自身的第一频率偏移量中最小的第二频率偏移量,将与所述第二偏移量对应的终端确定为第二终端。Here, the first terminal compares the received second frequency offset of each terminal in the D2D terminal set with its own first frequency offset, and selects a first frequency offset that is smaller than itself. The smallest second frequency offset is determined by the terminal corresponding to the second offset as the second terminal.
步骤S407,所述第一终端向所述第二终端发送建立请求,基于所述建立请求所述第一终端与所述第二终端建立通信连接;Step S407, the first terminal sends a setup request to the second terminal, and the first terminal establishes a communication connection with the second terminal according to the establishment request.
这里,所述第二终端接收所述建立请求,并基于所述建立请求与所述第一终端建立通信连接。Here, the second terminal receives the establishment request and establishes a communication connection with the first terminal based on the establishment request.
步骤S408,所述第一终端与基站断开连接;Step S408, the first terminal disconnects from the base station;
步骤S409,所述第一终端接收所述第二终端发送的来自所述基站的第一数据;Step S409, the first terminal receives the first data sent by the second terminal from the base station;
这里,所述第二终端接收基站发送的第一数据,将所述第一数据发送给所述第一终端。Here, the second terminal receives the first data sent by the base station, and sends the first data to the first terminal.
步骤S410,所述第一终端向所述第二终端发送用于发送给所述基站的第二数据;Step S410, the first terminal sends, to the second terminal, second data for sending to the base station;
这里,所述第二终端接收所述第一终端发送的第二数据,并将所述第二数据发送给所述基站。Here, the second terminal receives the second data sent by the first terminal, and sends the second data to the base station.
步骤S411,判断所述第一终端与所述第二终端之间的直线距离是否超过预先设定的第二阈值;Step S411, determining whether the linear distance between the first terminal and the second terminal exceeds a preset second threshold;
这里,因为所述第一终端与所述第二终端都处于运动状态,在运动过程中所述第一终端和所述第二终端之间的距离可能会发生变化。Here, since the first terminal and the second terminal are both in a moving state, the distance between the first terminal and the second terminal may change during the motion.
步骤S412,如果所述第一终端和所述第二终端之间的直线距离超过预先设定的第二阈值,则所述第一终端断开与所述第二终端之间的通信连接,转到步骤S401;Step S412, if the linear distance between the first terminal and the second terminal exceeds a preset second threshold, the first terminal disconnects the communication connection with the second terminal, and then Go to step S401;
步骤S413,如果所述第一终端和所述第二终端之间的直线距离没有超过预先设定的第二阈值,所述第二终端确定自身的第三频率偏移量; Step S413, if the linear distance between the first terminal and the second terminal does not exceed a preset second threshold, the second terminal determines its own third frequency offset;
步骤S414,所述第二终端判断所述第三频率偏移量是否大于预先设定的第一阈值;Step S414, the second terminal determines whether the third frequency offset is greater than a preset first threshold;
步骤S415,如果所述第三频率偏移量大于预先设定的第一阈值,则所述第二终端向所述第一终端发送信令;Step S415, if the third frequency offset is greater than a preset first threshold, the second terminal sends signaling to the first terminal.
这里,所述信令用于通知所述第一终端所述第二终端的第三频率偏移量超过所述第一阈值,所述第一终端接收所述信令。Here, the signaling is used to notify the first terminal that the third frequency offset of the second terminal exceeds the first threshold, and the first terminal receives the signaling.
步骤S416,所述第一终端确定所述第一终端自身的第四频率偏移量;Step S416, the first terminal determines a fourth frequency offset of the first terminal itself;
步骤S417,所述第一终端判断所述第四频率偏移量是否小于预先设定的第三阈值;Step S417, the first terminal determines whether the fourth frequency offset is less than a preset third threshold;
步骤S418,如果所述第四频率偏移量小于预先设定的第三阈值,所述第一终端与基站建立通信连接;Step S418, if the fourth frequency offset is less than a preset third threshold, the first terminal establishes a communication connection with the base station;
这里,所述第三阈值与所述第一阈值是不同的两个阈值,所述第三阈值是判决是否采用本发明实施例提供的D2D通信方法的低门限,所述第一阈值是判决是否采用本发明实施例提供的D2D通信方法的高门限,当终端的频率偏移量大于所述第一阈值或大于所述第三阈值时,都会触发终端采用本发明实施例提供的D2D通信方法寻找所述终端可以进行通信的D2D终端。Here, the third threshold is different from the first threshold, and the third threshold is a low threshold for determining whether to adopt the D2D communication method provided by the embodiment of the present invention, where the first threshold is According to the high threshold of the D2D communication method provided by the embodiment of the present invention, when the frequency offset of the terminal is greater than the first threshold or greater than the third threshold, the terminal is triggered to search by using the D2D communication method provided by the embodiment of the present invention. The D2D terminal that the terminal can communicate with.
步骤S419,所述第二终端与所述基站断开通信连接;Step S419, the second terminal disconnects the communication connection with the base station;
步骤S420,所述第一终端接收所述基站发送的第三数据,将所述第三数据发送给所述第二终端;Step S420, the first terminal receives the third data sent by the base station, and sends the third data to the second terminal.
这里,所述第二终端接收所述第一终端发送的来自所述基站的第三数据。Here, the second terminal receives third data from the base station and sent by the first terminal.
步骤S421,所述第一终端接收所述第二终端发送的第四数据,并将所述第四数据发送给所述基站;Step S421, the first terminal receives the fourth data sent by the second terminal, and sends the fourth data to the base station;
这里,所述第二终端将需要发送给所述基站的第四数据发送给所述第一终端。 Here, the second terminal sends fourth data that needs to be sent to the base station to the first terminal.
步骤S422,如果所述第四频率偏移量不小于预先设定的第三阈值,所述第一终端断开与所述第二终端之间的通信连接,转到步骤S404。Step S422, if the fourth frequency offset is not less than a preset third threshold, the first terminal disconnects the communication connection with the second terminal, and proceeds to step S404.
实施例三Embodiment 3
本发明实施例先提供一通讯方法,本发明实施例描述当一种支持D2D功能的终端A,所述终端A处于运动状态,在运动过程中由于所述终端A距离基站较远,因此所述终端A的频率偏移量较高,从而导致所述终端A的数据业务不稳定,本实施例提供一种D2D通信方法来解决这一技术问题,图5为本发明实施例三D2D通信方法的实现流程示意图,如图5所示,所述方法具体如下:The embodiment of the present invention first provides a communication method. The embodiment of the present invention describes a terminal A that supports the D2D function. The terminal A is in a motion state, and the terminal A is far away from the base station during the motion, so the The frequency offset of the terminal A is high, and the data service of the terminal A is unstable. This embodiment provides a D2D communication method to solve the technical problem. FIG. 5 is a third D2D communication method according to an embodiment of the present invention. A schematic diagram of the implementation process is shown in FIG. 5, and the method is specifically as follows:
首先,假设存在支持D2D功能的终端A和终端集合Ba,终端A距离基站较远,终端集合Ba(即:距离基站较近且与终端A配对的所有D2D终端)距离基站较近,并且所有终端都处于运动状态,而且所述终端A和所述终端集合Ba之间相对静止。First, it is assumed that there are terminal A and terminal set Ba supporting D2D function, terminal A is far away from the base station, and terminal set Ba (ie, all D2D terminals that are closer to the base station and paired with terminal A) are closer to the base station, and all terminals are Both are in motion and the terminal A and the terminal set Ba are relatively stationary.
步骤S501,终端A确定自身的频率偏移量是否大于门限值;Step S501, the terminal A determines whether the frequency offset of the terminal is greater than a threshold value;
这里,终端A确定自身的第一频率偏移量,判断自身的第一频率偏移量是否大于第一阈值,所述第一阈值可以根据实际场景进行设定。Here, the terminal A determines its own first frequency offset, and determines whether the first frequency offset of the terminal is greater than the first threshold. The first threshold may be set according to an actual scenario.
步骤S502,如果所述第一频率偏移量没有超过第一阈值,则所述终端A按照普通模式与基站进行数据通信;Step S502, if the first frequency offset does not exceed the first threshold, the terminal A performs data communication with the base station according to the normal mode;
步骤S503,当所述第一频率偏移量超出第一阈值时,所述终端A发送组播携带自身的第一频率偏移量给其他已经配对的D2D终端集合Ba;Step S503, when the first frequency offset exceeds the first threshold, the terminal A sends a multicast carrying its own first frequency offset to other already paired D2D terminal sets Ba;
步骤S504,终端集合Ba对比自身的频率偏移量和来自终端A的频率偏移量;Step S504, the terminal set Ba compares its own frequency offset and the frequency offset from the terminal A;
这里,所述终端Ba接收所述终端A发送的组播,并解析所述组播得到所述终端A的第一频率偏移量,对比自身的第二频率偏移量和来自所述终端A的第一频率偏移量。 Here, the terminal Ba receives the multicast sent by the terminal A, and parses the multicast to obtain the first frequency offset of the terminal A, compares the second frequency offset of itself with the terminal A from the terminal. The first frequency offset.
步骤S505,配对终端Bx发送自身的频率偏移量给终端A;Step S505, the pairing terminal Bx sends its own frequency offset to the terminal A;
这里,如果所述终端集合Ba中的终端Bx的第二频率偏移量小于所述终端A的第一频率偏移量,即Δf_B<Δf_A,则,配对终端Bx发送自己的第二频率偏移量给终端A,Δf_B表示第二频率偏移量,Δf_A表示第一频率偏移量。其中,Ba表示距离基站中心较近频率偏移量较低,与终端A配对的所有D2D终端的集合;Bx表示距离基站中心较近且自身的第二频率偏移量小于第一频率偏移量,与所述终端A配对的所有D2D终端中的任意一个终端。Here, if the second frequency offset of the terminal Bx in the terminal set Ba is smaller than the first frequency offset of the terminal A, that is, Δf_B < Δf_A, the paired terminal Bx transmits its own second frequency offset. The quantity is given to terminal A, Δf_B represents the second frequency offset, and Δf_A represents the first frequency offset. Where, Ba represents a set of all D2D terminals that are relatively close to the center of the base station and has a lower frequency offset, paired with the terminal A; Bx represents a closer to the center of the base station and the second frequency offset of the second frequency offset is smaller than the first frequency offset Any one of all D2D terminals paired with the terminal A.
步骤S506,终端A收到来自配对终端Bx的频率偏移量选择频率偏移最小的终端B并与终端B建立通讯连接;Step S506, the terminal A receives the terminal B with the smallest frequency offset selected from the paired terminal Bx and establishes a communication connection with the terminal B;
这里,所述终端A收到所述来自配对终端Bx的第二频率偏移量后选择第二频率偏移量最小的终端B(选定的Ba集合中第二频率偏移量最小的终端)与所述终端B建立通讯连接。Here, the terminal A selects the terminal B with the smallest second frequency offset after receiving the second frequency offset from the paired terminal Bx (the terminal with the smallest second frequency offset among the selected Ba sets) Establishing a communication connection with the terminal B.
步骤S507,所述终端A接收所述终端B发来的通讯数据;Step S507, the terminal A receives the communication data sent by the terminal B;
这里,B表示选定的Ba集合中第二频率偏移量最小的终端,所述通讯数据来自于基站。Here, B denotes the terminal with the smallest second frequency offset among the selected Ba sets, and the communication data is from the base station.
步骤S508,终端A与终端B的距离变化并且超过一定距离,则返回步骤S501重新确定所示终端A的频率偏移量;Step S508, the distance between the terminal A and the terminal B changes and exceeds a certain distance, then returns to step S501 to re-determine the frequency offset of the terminal A shown;
这里,如果所述终端A测量与所述终端B之间的距离发生变化,并且超过预先设定的第二阈值,则返回步骤S501重新确定所述终端A的第一频率偏移量。Here, if the distance between the terminal A measurement and the terminal B changes and exceeds a preset second threshold, then returning to step S501, the first frequency offset of the terminal A is re-determined.
步骤S509,确定终端B的频率偏移量大于门限值;Step S509, determining that the frequency offset of the terminal B is greater than a threshold;
这里,如果所述终端A与所述终端B之间的距离没有超过所述第二阈值,所述终端B和基站通信过程中确定所述终端B的第三频率偏移量。Here, if the distance between the terminal A and the terminal B does not exceed the second threshold, the terminal B and the base station determine a third frequency offset of the terminal B during communication.
步骤S510,终端B发送信令给A;Step S510, the terminal B sends signaling to A;
这里,如果所述终端B的第三频率偏移量超过第一阈值,则所述终端 B发送信令给所述终端A,其中,所述信令用于通知所述终端A所述终端B的第三频率偏移量过大,即提示终端A终端B的频率偏较大。Here, if the third frequency offset of the terminal B exceeds a first threshold, the terminal The B sends a signaling to the terminal A, where the signaling is used to notify the terminal A that the third frequency offset of the terminal B is too large, that is, the terminal A is prompted to have a larger frequency.
步骤S511,终端A确定自身的频率偏移量是否低于一个值;Step S511, the terminal A determines whether the frequency offset of the terminal is lower than a value;
这里,所述终端A确定自己此时的第四频率偏移量,判断所述第四频率偏移量是否低于第三阈值。Here, the terminal A determines its own fourth frequency offset at this time, and determines whether the fourth frequency offset is lower than the third threshold.
步骤S512,如果所述终端A的第四频率偏移量低于第三阈值,则所述终端A与基站建立通信连接;Step S512, if the fourth frequency offset of the terminal A is lower than the third threshold, the terminal A establishes a communication connection with the base station;
步骤S513,终端B接收该终端A发来的通讯数据。In step S513, the terminal B receives the communication data sent by the terminal A.
这里,所述终端B断开与基站之间的通信连接,终端B通过所述终端A与所述基站进行通信。Here, the terminal B disconnects the communication connection with the base station, and the terminal B communicates with the base station through the terminal A.
本实施例中,支持D2D功能的终端(终端A)在运动过程中进行数据业务时,通过本发明实施例提供的技术方案能够避免在小区边缘由于频率偏移量过大而造成的数据不稳定,而且,该终端不会使用自身的频率补偿值直接和基站通信,而是和频率偏移量较小的终端(终端B)进行通讯连接,终端A接收该终端B发来的通讯数据,进而大大减少由于频率偏移量过大而引起的数据通讯异常。In this embodiment, when the terminal (terminal A) supporting the D2D function performs data service during the motion, the technical solution provided by the embodiment of the present invention can avoid data instability caused by excessive frequency offset at the cell edge. Moreover, the terminal does not directly communicate with the base station using its own frequency compensation value, but communicates with the terminal with a small frequency offset (terminal B), and the terminal A receives the communication data sent by the terminal B, and further Data communication anomalies caused by excessive frequency offset are greatly reduced.
实施例四Embodiment 4
本发明先提供一种通讯和系统,图6-1为本发明实施例四通讯系统的组成结构示意图,如图6-1所示,所述系统包括终端A601、终端B602和基站603,所述终端A601包括第一频率偏移量确定模块611、第一通信模块612、第一距离测量模块613和第一频率偏移量变化模块614,所述终端B602包括第二频率偏移量确定模块621、第二通信模块622、第二距离测量模块623和第二频率偏移量变化模块624,其中:The present invention provides a communication and system. FIG. 6-1 is a schematic structural diagram of a communication system according to Embodiment 4 of the present invention. As shown in FIG. 6-1, the system includes a terminal A601, a terminal B602, and a base station 603. The terminal A601 includes a first frequency offset determining module 611, a first communications module 612, a first distance measuring module 613, and a first frequency offset varying module 614, and the terminal B602 includes a second frequency offset determining module 621. a second communication module 622, a second distance measurement module 623, and a second frequency offset variation module 624, wherein:
所述第一频率偏移量确定模块611,设置为确定自身的第一频率偏移量,当所述第一频率偏移量超出第一阈值时,所述终端A发送组播携带自 身的第一频率偏移量给其他已经配对的D2D终端集合Ba;The first frequency offset determining module 611 is configured to determine a first frequency offset of the first frequency offset, and when the first frequency offset exceeds the first threshold, the terminal A sends a multicast carrying The first frequency offset of the body is given to other already paired D2D terminal sets Ba;
所述第一通信模块612,设置为建立与所述终端B之间的通信连接,所述终端A和所述终端B进行通信,所述终端A接收所述终端B发送的来自基站的数据;The first communication module 612 is configured to establish a communication connection with the terminal B, the terminal A and the terminal B communicate, and the terminal A receives the data sent by the terminal B from the base station;
所述第一距离测量模块613,设置为测量所述终端A和所述终端B之间的直线距离,判断所述终端A和所述终端B之间的直线距离是否超过预定的第二阈值;The first distance measurement module 613 is configured to measure a linear distance between the terminal A and the terminal B, and determine whether a linear distance between the terminal A and the terminal B exceeds a predetermined second threshold;
所述第一频率偏移量变化模块614,设置为如果所述终端A和所述终端B之间的直线距离没有超过第二阈值,由于所述终端A在运动过程中频率偏移量发生了变化,确定所述终端A的第四频率偏移量,并判断所述第四频率偏移量是否小于第三阈值,如果所述终端A此时的第四频率偏移量低于第三阈值,则所述终端A和基站建立通信;The first frequency offset change module 614 is configured to generate a frequency offset due to the terminal A during the motion if the linear distance between the terminal A and the terminal B does not exceed the second threshold. Changing, determining a fourth frequency offset of the terminal A, and determining whether the fourth frequency offset is less than a third threshold, if the fourth frequency offset of the terminal A at this time is lower than a third threshold And the terminal A establishes communication with the base station;
所述第二频率偏移量确定模块621,设置为确定自身的第二频率偏移量,终端B对比自身的第二频率偏移量和第一频率偏移量,如果所述终端集合B第二频率偏移量小于终端A的第一频率偏移量,即Δf_B<Δf_A,则终端B发送自身的第二频率偏移量给所述终端A;The second frequency offset determining module 621 is configured to determine its own second frequency offset, and the terminal B compares its own second frequency offset and the first frequency offset, if the terminal set B The second frequency offset is less than the first frequency offset of the terminal A, that is, Δf_B < Δf_A, the terminal B transmits its own second frequency offset to the terminal A;
所述第二通信模块622,设置为建立与所述终端A之间的通信连接,所述终端B和所述终端A进行通信;The second communication module 622 is configured to establish a communication connection with the terminal A, and the terminal B communicates with the terminal A;
所述第二距离测量模块623,设置为测量所述终端B和所述终端A之间的直线距离,判断所述终端B和所述终端A之间的直线距离是否超过预定的第二阈值;The second distance measuring module 623 is configured to measure a linear distance between the terminal B and the terminal A, and determine whether a linear distance between the terminal B and the terminal A exceeds a predetermined second threshold;
所述第二频率偏移量变化模块624,设置为所述终端B在运动过程中频率偏移量发生变化时,确定所述终端B的第三频率偏移量,并判断所述第三频率偏移量是否大于第一阈值,如果所述第三频率偏移量大于第一阈值,所述终端B断开和所述基站的通信并通过所述终端A与所述基站进行通信。The second frequency offset change module 624 is configured to determine, when the terminal B changes the frequency offset during the motion, determine the third frequency offset of the terminal B, and determine the third frequency. Whether the offset is greater than a first threshold, and if the third frequency offset is greater than the first threshold, the terminal B disconnects communication with the base station and communicates with the base station through the terminal A.
本实施例还提供了一种支持D2D功能的终端,以所述终端在高铁上 运动过程为例,如果所述终端距离小区中心较远会产生比较大的频率偏移量,为了减少因频率偏移量较大而对数据业务带来较大的影响,本实施例又提供了一种D2D通信方法,图6-2为本发明实施例四D2D通信方法的实现流程示意图,如图6-2所示,所述方法包括:The embodiment further provides a terminal supporting the D2D function, wherein the terminal is on the high-speed rail. For example, if the terminal is far away from the center of the cell, a relatively large frequency offset is generated. In order to reduce the impact on the data service due to the large frequency offset, the embodiment provides A D2D communication method, FIG. 6-2 is a schematic flowchart of an implementation process of a D2D communication method according to an embodiment of the present invention. As shown in FIG. 6-2, the method includes:
步骤S601,终端A对确定自身的第一频率偏移量,当所述第一频率偏移量超出第一阈值时,所述终端A发送组播携带自身的第一频率偏移量给其他已经配对的D2D终端集合Ba,所述终端集合Ba中的终端对比自身的第二频率偏移量和第一频率偏移量,如果所述终端集合Ba中的终端Bx的第二频率偏移量小于终端A的第一频率偏移量,即Δf_B<Δf_A,则配对成员Bx发送自身的第二频率偏移量给所述终端A;Step S601, the terminal A determines the first frequency offset of the self. When the first frequency offset exceeds the first threshold, the terminal A sends the multicast to carry its own first frequency offset to other Paired D2D terminal set Ba, the terminal in the terminal set Ba compares its own second frequency offset and the first frequency offset, if the second frequency offset of the terminal Bx in the terminal set Ba is less than The first frequency offset of the terminal A, that is, Δf_B < Δf_A, the pairing member Bx sends its own second frequency offset to the terminal A;
这里,图6-3为终端在高铁运行过程中产生的频率偏移量的示意图,终端的频率偏移量是由于多普勒效应产生的,多普勒频移的计算方法:Here, Figure 6-3 is a schematic diagram of the frequency offset generated by the terminal during the operation of the high-speed rail. The frequency offset of the terminal is due to the Doppler effect, and the calculation method of the Doppler shift:
Figure PCTCN2016096731-appb-000001
Figure PCTCN2016096731-appb-000001
其中,v为车速,c为光速,f为小区中心频率,fd为多普勒频移。如图6-3所示,f0是基站下行发出的频率,f1是终端上行发出的频率,是基站与终端的连线与水平线所呈的夹角,由图6-3可以看出,当终端靠近基站时,终端收到的基站发出的下行频率为f0+fd,基站收到的终端上行发出的频率为f1+2fd,当终端远离基站时,终端收到的基站下行发出的频率为f0-fd,基站收到的终端上行发出的频率为f1-2fdWhere v is the vehicle speed, c is the speed of light, f is the center frequency of the cell, and fd is the Doppler shift. As shown in Figure 6-3, f 0 is the frequency sent by the base station, and f 1 is the frequency sent by the terminal. It is the angle between the connection between the base station and the terminal and the horizontal line. As can be seen from Figure 6-3, When the terminal is close to the base station, the downlink frequency sent by the base station received by the terminal is f 0 +f d , and the frequency of the uplink sent by the base station is f 1 +2f d . When the terminal is far away from the base station, the base station receives the downlink. The frequency of the transmission is f 0 -f d , and the frequency of the uplink sent by the terminal received by the base station is f 1 -2f d .
步骤S602,所述终端A收到来自所述配对终端Bx的第二频率偏移量选择第一频率偏移量最小的终端B,并与所述终端B建立通讯连接,所述终端A接收所述终端B发来的通讯数据;Step S602, the terminal A receives the second frequency offset from the paired terminal Bx, selects the terminal B with the smallest first frequency offset, and establishes a communication connection with the terminal B, and the terminal A receives the The communication data sent by terminal B;
步骤S603,判断所述终端A测量与所述终端B之间的距离是否发生变化,如果发生变化并且超过第二阈值,则,返回步骤S601所述终端A重新确定第一频率偏移量;In step S603, it is determined whether the distance between the terminal A and the terminal B changes. If the change occurs and exceeds the second threshold, the process returns to step S601 to determine the first frequency offset.
步骤S604,所述终端B和基站通信过程中确定自身的第三频率偏移量,如果所述终端B的第三频率偏移量超过第一阈值,所述终端B通知 所述终端A,如果所述终端A此时的第四频率偏移量低于第三阈值,则所述终端A和基站建立通信,所述终端B断开和所述基站的通信并通过所述终端A与所述基站进行通信。Step S604, the terminal B and the base station determine their own third frequency offset in the communication process. If the third frequency offset of the terminal B exceeds the first threshold, the terminal B notifies. The terminal A, if the fourth frequency offset of the terminal A at this time is lower than a third threshold, the terminal A establishes communication with the base station, and the terminal B disconnects the communication with the base station and passes the Terminal A communicates with the base station.
实施例五Embodiment 5
本实施例先提供一种通讯系统的交互方法,下面是以一个具体的例子来说明终端在运动过程中在距离基站较远进行数据业务时,为了避免由于频率偏移量过大而造成的数据业务异常的解决方法,图7为本发明实施例五D2D通信系统交互方法的实现流程示意图,如图7所示,所述方法包括:This embodiment first provides an interaction method of a communication system. The following is a specific example to illustrate data when the terminal is far away from the base station to perform data services during the motion, in order to avoid data caused by excessive frequency offset. FIG. 7 is a schematic flowchart of an implementation method of an interaction method of a D2D communication system according to Embodiment 5 of the present invention. As shown in FIG. 7, the method includes:
步骤S701,终端A确定自身的频率偏移量是否大于第一阈值;Step S701, the terminal A determines whether the frequency offset of the terminal is greater than the first threshold;
这里,这里,终端A确定自身的第一频率偏移量,判断自身的第一频率偏移量是否大于第一阈值,所述第一阈值可以根据实际场景进行设定。Here, the terminal A determines its own first frequency offset, and determines whether the first frequency offset of the terminal is greater than the first threshold. The first threshold may be set according to the actual scenario.
步骤S702,终端A发送组播携带自身的频率偏移量给其他已经配对的D2D终端集合Ba;Step S702, the terminal A sends a multicast carrying its own frequency offset to other pairs of D2D terminal sets that have been paired;
步骤S703,配对终端集合Bx发送自身的频率偏移量给终端A;Step S703, the paired terminal set Bx sends its own frequency offset to the terminal A;
这里,所述终端Ba接收所述终端A发送的组播,并解析所述组播得到所述终端A的第一频率偏移量,对比自身的第二频率偏移量和来自所述终端A的第一频率偏移量。如果所述终端集合Ba中的终端Bx的第二频率偏移量小于所述终端A的第一频率偏移量,即Δf_B<Δf_A,则,配对终端Bx发送自己的第二频率偏移量给终端A,Δf_B表示第二频率偏移量,Δf_A表示第一频率偏移量。Here, the terminal Ba receives the multicast sent by the terminal A, and parses the multicast to obtain the first frequency offset of the terminal A, compares the second frequency offset of itself with the terminal A from the terminal. The first frequency offset. If the second frequency offset of the terminal Bx in the terminal set Ba is smaller than the first frequency offset of the terminal A, that is, Δf_B<Δf_A, the paired terminal Bx sends its own second frequency offset to Terminal A, Δf_B represents the second frequency offset, and Δf_A represents the first frequency offset.
步骤S704,终端A选择频率偏移量最小的终端B并与终端B建立通信连接Step S704, the terminal A selects the terminal B with the smallest frequency offset and establishes a communication connection with the terminal B.
步骤S705,终端A接收终端B发来的通讯数据;Step S705, the terminal A receives the communication data sent by the terminal B.
这里,所述终端A断开与基站的通信连接,通过所述终端B与基站 进行通信。Here, the terminal A disconnects the communication connection with the base station, and the terminal B and the base station Communicate.
步骤S706,终端B的频率偏移量大于第一阈值;Step S706, the frequency offset of the terminal B is greater than the first threshold;
这里,由于终端A和终端B都处于运动状态,所以终端A和终端B之间的距离可能发生变化,而且终端A和终端B的频率偏移量也在发生变化。如果所述终端A测量与所述终端B之间的距离发生变化,但没有超过预先设定的第二阈值,所述终端B和基站通信过程中确定所述终端B的第三频率偏移量。Here, since both the terminal A and the terminal B are in a motion state, the distance between the terminal A and the terminal B may change, and the frequency offsets of the terminal A and the terminal B also change. Determining a third frequency offset of the terminal B during communication between the terminal B and the base station if the terminal A measures a change from the terminal B but does not exceed a preset second threshold. .
步骤S707,终端B发送信令通知终端A;Step S707, the terminal B sends a signaling to notify the terminal A;
这里,如果所述终端B的第三频率偏移量大于第一阈值,则所述终端B发送信息给所述终端A,其中,所述信令用于通知所述终端A此时所述终端B的频率偏移量过大。Here, if the third frequency offset of the terminal B is greater than the first threshold, the terminal B sends information to the terminal A, where the signaling is used to notify the terminal A that the terminal is at this time. The frequency offset of B is too large.
步骤S708,终端A建立与基站的通信;Step S708, the terminal A establishes communication with the base station;
这里,所述终端A接收到所述终端B发送的信令后,确定自身的第四频率偏移量,如果所述第四频率偏移量小于第三阈值,则所述终端A与所述基站建立通信连接。Here, after receiving the signaling sent by the terminal B, the terminal A determines its own fourth frequency offset. If the fourth frequency offset is less than the third threshold, the terminal A and the The base station establishes a communication connection.
步骤S709,终端B接收终端A发来的通讯数据。In step S709, the terminal B receives the communication data sent by the terminal A.
这里,所述终端B断开与所述基站之间的通信连接,并通过所述终端A与所述基站进行通信。Here, the terminal B disconnects the communication connection with the base station, and communicates with the base station through the terminal A.
从本实施例可以看出,假设存在两款支持D2D功能的终端,终端A距离基站较远,终端Bx距离基站较近,所述终端A确定自身的第一频率偏移量,当所述第一频率偏移量超出第一阈值时,所述终端A发送组播携带自己的第一频率偏移量给其他已经配对的D2D终端集合Ba,终端集合Ba中的每一个终端对比自己的第二频率偏移量和来自所述终端A的第一频率偏移量,如果终端集合Ba中的终端Bx的第二频率偏移量小于所述终端A的第一频率偏移量,即Δf_B<Δf_A,则配对成员Bx发送自己的第二频率偏移量给终端A; It can be seen from the present embodiment that it is assumed that there are two terminals supporting the D2D function, the terminal A is far from the base station, the terminal Bx is closer to the base station, and the terminal A determines its own first frequency offset, when the first When a frequency offset exceeds the first threshold, the terminal A sends a multicast carrying its own first frequency offset to other already paired D2D terminal sets Ba, and each terminal in the terminal set Ba compares its own second. a frequency offset and a first frequency offset from the terminal A, if the second frequency offset of the terminal Bx in the terminal set Ba is smaller than the first frequency offset of the terminal A, that is, Δf_B < Δf_A , the pairing member Bx sends its own second frequency offset to the terminal A;
所述终端A收到所述来自配对终端Bx的第二频率偏移量,选择第二频率偏移量最小的终端B并与所述终端B建立通信连接,所述终端A接收所述终端B发来的来自与所述基站的通讯数据;如果所述终端A与所述终端B之间的距离发生变化,并且超过第二阈值,则返回第一步重新确定终端A第一频率偏移量;Receiving, by the terminal A, the second frequency offset from the pairing terminal Bx, selecting the terminal B with the smallest second frequency offset and establishing a communication connection with the terminal B, and the terminal A receiving the terminal B Transmitting from the communication data with the base station; if the distance between the terminal A and the terminal B changes, and exceeds the second threshold, returning to the first step to re-determine the first frequency offset of the terminal A ;
所述终端B和基站通信过程中确定所述终端B的第三频率偏移量,如果所述终端B的第三频率偏移量超过第一阈值,则所述终端B通知所述终端A此时所述终端B的第三频率偏移量超过了第一阈值,所述终端A确定自身的第四频率偏移量,如果所述终端A此时的第四频率偏移量低于第三阈值,则所述终端A和所述基站建立通信连接,所述终端B断开和所述基站之间的通信连接并通过所述终端A与所述基站进行通信。Determining, by the terminal B and the base station, a third frequency offset of the terminal B, if the third frequency offset of the terminal B exceeds a first threshold, the terminal B notifies the terminal A of the When the third frequency offset of the terminal B exceeds the first threshold, the terminal A determines its own fourth frequency offset, if the fourth frequency offset of the terminal A is lower than the third The threshold is such that the terminal A establishes a communication connection with the base station, and the terminal B disconnects the communication connection with the base station and communicates with the base station through the terminal A.
实施例六Embodiment 6
基于前述的实施例,本发明实施例提供一种通讯系统,图8为所述系统的组成结构示意图,如图8所示,所述通讯系统包括第一终端801、第二终端802和基站803,其中,所述第一终端801包括:第一确定单元811、第二确定单元812、第一请求单元813、第一接收单元814、第三确定单元815、第一建立单元816、第一断开单元817、第一发送单元818和第二接收单元819;所述第二终端802包括:第三发送单元821、第三建立单元822、第六接收单元823和第四发送单元824,其中:Based on the foregoing embodiments, an embodiment of the present invention provides a communication system, and FIG. 8 is a schematic structural diagram of the system. As shown in FIG. 8, the communication system includes a first terminal 801, a second terminal 802, and a base station 803. The first terminal 801 includes: a first determining unit 811, a second determining unit 812, a first requesting unit 813, a first receiving unit 814, a third determining unit 815, a first establishing unit 816, and a first disconnecting unit. The unit 817, the first sending unit 818, and the second receiving unit 819; the second terminal 802 includes: a third sending unit 821, a third establishing unit 822, a sixth receiving unit 823, and a fourth sending unit 824, where:
所述第一确定单元811,设置为确定与第一终端进行配对的D2D终端集合;The first determining unit 811 is configured to determine a D2D terminal set that is paired with the first terminal;
所述第二确定单元812,设置为确定所述第一终端自身的第一频率偏移量;The second determining unit 812 is configured to determine a first frequency offset of the first terminal itself;
所述第一请求单元813,设置为如果所述第一频率偏移量大于预先设定的第一阈值,向所述D2D终端集合中的每一终端请求频率偏移量;The first requesting unit 813 is configured to: if the first frequency offset is greater than a preset first threshold, request a frequency offset from each terminal in the D2D terminal set;
所述第三发送单元821,设置为向第一终端发送自身的第二频率偏移 量,其中,所述第二终端是与所述第一终端进行配对的D2D终端集合中的终端;The third sending unit 821 is configured to send its second frequency offset to the first terminal. The second terminal is a terminal in a D2D terminal set paired with the first terminal;
所述第一接收单元814,设置为接收所述D2D终端集合中的每一终端发送的第二频率偏移量;The first receiving unit 814 is configured to receive a second frequency offset sent by each terminal in the D2D terminal set.
所述第三确定单元815,设置为根据所述D2D终端集合中每一终端的第二频率偏移量从所述D2D终端集合中确定第二终端;The third determining unit 815 is configured to determine a second terminal from the set of D2D terminals according to a second frequency offset of each terminal in the set of D2D terminals;
所述第一建立单元816,设置为与所述第二终端建立通信连接;The first establishing unit 816 is configured to establish a communication connection with the second terminal;
所述第三建立单元822,设置为接收所述第一终端发送的建立请求,基于所述建立请求与所述第一终端建立通信连接;The third establishing unit 822 is configured to receive an establishment request sent by the first terminal, and establish a communication connection with the first terminal according to the establishment request;
所述第一断开单元817,设置为与所述基站803断开通信连接;The first disconnecting unit 817 is configured to disconnect the communication connection with the base station 803;
所述第一发送单元818,设置为向所述第二终端发送用于发送给所述基站803的第二数据;The first sending unit 818 is configured to send, to the second terminal, second data for sending to the base station 803;
所述第六接收单元823,设置为接收所述第一终端发送的第二数据,并将所述第二数据发送给所述基站803;The sixth receiving unit 823 is configured to receive the second data sent by the first terminal, and send the second data to the base station 803;
所述第四发送单元824,设置为接收所述基站803发送的第一数据,将所述第一数据发送给所述第一终端;The fourth sending unit 824 is configured to receive the first data sent by the base station 803, and send the first data to the first terminal;
所述第二接收单元819,设置为接收所述第二终端发送的来自所述基站803的第一数据。The second receiving unit 819 is configured to receive the first data sent by the second terminal from the base station 803.
这里需要指出的是:以上通讯系统实施例的描述,与上述方法实施例的描述是类似的,具有同方法实施例相似的有益效果,因此不做赘述。对于本发明通讯系统实施例中未披露的技术细节,请参照本发明方法实施例的描述而理解,为节约篇幅,因此不再赘述。It should be noted here that the description of the above embodiment of the communication system is similar to the description of the above embodiment of the method, and has similar advantageous effects as the method embodiment, and therefore will not be described again. For the technical details that are not disclosed in the embodiment of the communication system of the present invention, please refer to the description of the method embodiment of the present invention, and the details are not described herein.
实施例七Example 7
基于前述的实施例,本实施例提供一种通讯系统,图9为本发明实施例七通讯系统的组成结构示意图,如图9所示,所述系统包括第一终端901、 第二终端902和基站903,所述第一终端901包括:第一判断单元911、第二断开单元912、第四确定单元913、第五确定单元914、第三接收单元915、第六确定单元916、第四判断单元917、第二建立单元918、第二发送单元919、第四接收单元9110、第三断开单元9111和第二请求单元9112,所述第二终端902包括:第七确定单元921、第二判断单元922、第五发送单元923、第四断开单元924、第八接收单元925和第六发送单元926,其中:The present embodiment provides a communication system according to the foregoing embodiment. FIG. 9 is a schematic structural diagram of a communication system according to Embodiment 7 of the present invention. As shown in FIG. 9, the system includes a first terminal 901. The second terminal 902 and the base station 903, the first terminal 901 includes: a first determining unit 911, a second disconnecting unit 912, a fourth determining unit 913, a fifth determining unit 914, a third receiving unit 915, and a sixth determining a unit 916, a fourth determining unit 917, a second establishing unit 918, a second transmitting unit 919, a fourth receiving unit 9110, a third disconnecting unit 9111, and a second requesting unit 9112, the second terminal 902 comprising: a seventh a determining unit 921, a second determining unit 922, a fifth transmitting unit 923, a fourth disconnecting unit 924, an eighth receiving unit 925, and a sixth transmitting unit 926, wherein:
所述第一判断单元911,设置为判断所述第一终端与所述第二终端之间的直线距离是否超过预先设定的第二阈值;The first determining unit 911 is configured to determine whether a linear distance between the first terminal and the second terminal exceeds a preset second threshold;
所述第二断开单元912,设置为如果所述第一终端和所述第二终端之间的直线距离超过预先设定的第二阈值,则断开与所述第二终端之间的通信连接;Disconnecting the second terminal with the second terminal connection;
所述第四确定单元913,设置为重新确定与第一终端进行配对的D2D终端集合;The fourth determining unit 913 is configured to redetermine the D2D terminal set paired with the first terminal;
所述第五确定单元914,设置为确定所述第一终端自身的第一频率偏移量,;The fifth determining unit 914 is configured to determine a first frequency offset of the first terminal itself,
所述第七确定单元921,设置为如果所述第一终端和所述第二终端之间的直线距离没有超过预先设定的第二阈值,所述第二终端确定自身的第三频率偏移量;The seventh determining unit 921 is configured to determine, if the linear distance between the first terminal and the second terminal does not exceed a preset second threshold, the second terminal determines its own third frequency offset the amount;
所述第二判断单元922,设置为判断所述第三频率偏移量是否大于预先设定的第一阈值;The second determining unit 922 is configured to determine whether the third frequency offset is greater than a preset first threshold;
所述第五发送单元923,设置为如果所述第三频率偏移量大于预先设定的第一阈值,则所述第二终端向所述第一终端发送信令;The fifth sending unit 923 is configured to: if the third frequency offset is greater than a preset first threshold, the second terminal sends signaling to the first terminal;
这里,所述信令用于通知所述第一终端此时所述第二终端的第三频率偏移量超过所述第一阈值。Here, the signaling is used to notify the first terminal that the third frequency offset of the second terminal exceeds the first threshold.
所述第三接收单元915,设置为接收所述第二终端发送的信令; The third receiving unit 915 is configured to receive signaling sent by the second terminal;
所述第六确定单元916,设置为确定所述第一终端自身的第四频率偏移量;The sixth determining unit 916 is configured to determine a fourth frequency offset of the first terminal itself;
所述第四判断单元917,设置为判断所述第四频率偏移量是否小于预先设定的第三阈值;The fourth determining unit 917 is configured to determine whether the fourth frequency offset is less than a preset third threshold;
所述第二建立单元918,设置为如果所述第四频率偏移量小于预先设定的第三阈值,与基站建立通信连接,其中,所述第三阈值与所述第一阈值是不同的两个阈值;The second establishing unit 918 is configured to establish a communication connection with the base station if the fourth frequency offset is less than a preset third threshold, wherein the third threshold is different from the first threshold Two thresholds;
所述第二发送单元919,设置为接收所述基站发送的第三数据,将所述第三数据发送给所述第二终端;The second sending unit 919 is configured to receive third data sent by the base station, and send the third data to the second terminal;
所述第八接收单元925,设置为接收所述第一终端发送的来自所述基站的第三数据。The eighth receiving unit 925 is configured to receive third data from the base station that is sent by the first terminal.
所述第五发送单元926,设置为向所述第一终端发送用于发送给所述基站的第四数据;The fifth sending unit 926 is configured to send, to the first terminal, fourth data for sending to the base station;
所述第四接收单元9110,设置为接收所述第二终端发送的第四数据,并将所述第四数据发送给所述基站;The fourth receiving unit 9110 is configured to receive fourth data sent by the second terminal, and send the fourth data to the base station;
所述第三断开单元9111,设置为如果所述第四频率偏移量不小于预先设定的第三阈值,断开与所述第二终端之间的通信连接;The third disconnecting unit 9111 is configured to disconnect the communication connection with the second terminal if the fourth frequency offset is not less than a preset third threshold;
所述第二请求单元9112,设置为向与所述第一终端进行配对的D2D终端集合中的每一终端请求频率偏移量。The second requesting unit 9112 is configured to request a frequency offset from each of the D2D terminal sets paired with the first terminal.
这里需要指出的是:以上通讯系统实施例的描述,与上述方法实施例的描述是类似的,具有同方法实施例相似的有益效果,因此不做赘述。对于本发明通讯系统实施例中未披露的技术细节,请参照本发明方法实施例的描述而理解,为节约篇幅,因此不再赘述。It should be noted here that the description of the above embodiment of the communication system is similar to the description of the above embodiment of the method, and has similar advantageous effects as the method embodiment, and therefore will not be described again. For the technical details that are not disclosed in the embodiment of the communication system of the present invention, please refer to the description of the method embodiment of the present invention, and the details are not described herein.
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:Embodiments of the present invention also provide a storage medium. Optionally, in the embodiment, the foregoing storage medium may be configured to store program code for performing the following steps:
S1,第一终端确定与第一终端进行配对的D2D终端集合; S1. The first terminal determines a D2D terminal set that is paired with the first terminal.
S2,第一终端确定自身的第一频率偏移量;S2. The first terminal determines its own first frequency offset.
S3,如果第一频率偏移量大于预先设定的第一阈值,第一终端向D2D终端集合中的每一终端请求频率偏移量;S3. If the first frequency offset is greater than a preset first threshold, the first terminal requests a frequency offset from each terminal in the D2D terminal set.
S4,第一终端接收D2D终端集合中的每一终端发送的第二频率偏移量;S4. The first terminal receives a second frequency offset sent by each terminal in the D2D terminal set.
S5,第一终端根据D2D终端集合中每一终端的第二频率偏移量从D2D终端集合中确定第二终端;S5. The first terminal determines, according to the second frequency offset of each terminal in the D2D terminal set, the second terminal from the D2D terminal set.
S6,第一终端与第二终端建立通信连接。S6. The first terminal establishes a communication connection with the second terminal.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in this embodiment, the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory. A variety of media that can store program code, such as a disc or a disc.
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。For example, the specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。 The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.
工业实用性Industrial applicability
本发明实施例提供一种通讯方法及终端,其中:第一终端确定与第一终端进行配对的D2D终端集合;第一终端确定自身的第一频率偏移量;如果第一频率偏移量大于预先设定的第一阈值,第一终端向D2D终端集合中的每一终端请求频率偏移量;第一终端接收D2D终端集合中的每一终端发送的第二频率偏移量;第一终端根据D2D终端集合中每一终端的第二频率偏移量从D2D终端集合中确定第二终端;第一终端与第二终端建立通信连接;如此,能够使得终端在自身的频率偏移量较大时,终端的数据业务也能够保持稳定。 The embodiment of the invention provides a communication method and a terminal, wherein: the first terminal determines a D2D terminal set paired with the first terminal; the first terminal determines its own first frequency offset; if the first frequency offset is greater than Determining a first threshold, the first terminal requests a frequency offset from each terminal in the D2D terminal set; the first terminal receives a second frequency offset sent by each terminal in the D2D terminal set; the first terminal Determining, by the second frequency offset of each terminal in the D2D terminal set, the second terminal from the D2D terminal set; the first terminal establishes a communication connection with the second terminal; thus, the terminal can make the frequency offset of the terminal larger At the same time, the terminal's data service can also remain stable.

Claims (10)

  1. 一种通讯方法,所述方法包括:A communication method, the method comprising:
    第一终端确定与所述第一终端进行配对的D2D终端集合;Determining, by the first terminal, a set of D2D terminals paired with the first terminal;
    所述第一终端确定自身的第一频率偏移量;The first terminal determines its own first frequency offset;
    如果所述第一频率偏移量大于预先设定的第一阈值,所述第一终端向所述D2D终端集合中的每一终端请求频率偏移量;If the first frequency offset is greater than a preset first threshold, the first terminal requests a frequency offset from each terminal in the D2D terminal set;
    所述第一终端接收所述D2D终端集合中的每一终端发送的第二频率偏移量;Receiving, by the first terminal, a second frequency offset sent by each terminal in the D2D terminal set;
    所述第一终端根据所述D2D终端集合中每一终端的第二频率偏移量从所述D2D终端集合中确定第二终端;Determining, by the first terminal, the second terminal from the set of D2D terminals according to a second frequency offset of each terminal in the set of D2D terminals;
    所述第一终端与所述第二终端建立通信连接。The first terminal establishes a communication connection with the second terminal.
  2. 根据权利要求1中所述方法,其中,所述方法还包括:The method of claim 1 wherein the method further comprises:
    所述第一终端断开与基站之间的通信连接;Transmitting, by the first terminal, a communication connection with a base station;
    所述第一终端接收所述第二终端发送的来自所述基站的第一数据;Receiving, by the first terminal, first data sent by the second terminal from the base station;
    所述第一终端向所述第二终端发送用于发送给所述基站的第二数据。The first terminal sends second data for sending to the base station to the second terminal.
  3. 根据权利要求1或2中所述方法,其中,所述方法还包括:The method of claim 1 or 2, wherein the method further comprises:
    所述第一终端判断所述第一终端与所述第二终端之间的直线距离是否超过预先设定的第二阈值;Determining, by the first terminal, whether a linear distance between the first terminal and the second terminal exceeds a preset second threshold;
    如果所述第一终端和所述第二终端之间的直线距离超过预先设定的第二阈值,则所述第一终端断开与所述第二终端之间的通信连接;If the linear distance between the first terminal and the second terminal exceeds a preset second threshold, the first terminal disconnects the communication connection with the second terminal;
    所述第一终端重新确定与第一终端进行配对的D2D终端集合;Determining, by the first terminal, a set of D2D terminals paired with the first terminal;
    所述第一终端确定所述第一终端自身的第一频率偏移量。The first terminal determines a first frequency offset of the first terminal itself.
  4. 根据权利要求3中所述的方法,其中,所述方法还包括:The method of claim 3 wherein the method further comprises:
    如果所述第一终端和所述第二终端之间的直线距离没有超过预先设定的第二阈值,所述第一终端接收所述第二终端发送的信令,其中,所述信令用于通知所述第一终端所述第二终端的第三频率偏移量超过所述第 一阈值并请求所述第一终端的频率偏移量;If the linear distance between the first terminal and the second terminal does not exceed a preset second threshold, the first terminal receives signaling sent by the second terminal, where the signaling is used by Notifying the third terminal that the third terminal offset of the second terminal exceeds the first a threshold and requesting a frequency offset of the first terminal;
    所述第一终端确定所述第一终端自身的第四频率偏移量;Determining, by the first terminal, a fourth frequency offset of the first terminal itself;
    所述第一终端判断所述第四频率偏移量是否小于预先设定的第三阈值;Determining, by the first terminal, whether the fourth frequency offset is less than a preset third threshold;
    如果所述第四频率偏移量小于所述第三阈值,所述第一终端与基站建立通信连接,其中,所述第三阈值与所述第一阈值是不同的两个阈值;If the fourth frequency offset is less than the third threshold, the first terminal establishes a communication connection with the base station, where the third threshold is different from the first threshold by two thresholds;
    所述第一终端接收所述基站发送的第三数据,将所述第三数据发送给所述第二终端;Receiving, by the first terminal, third data sent by the base station, and sending the third data to the second terminal;
    所述第一终端接收所述第二终端发送的第四数据,并将所述第四数据发送给所述基站。The first terminal receives fourth data sent by the second terminal, and sends the fourth data to the base station.
  5. 根据权利要求4中所述的方法,其中,所述方法还包括:The method of claim 4 wherein the method further comprises:
    如果所述第四频率偏移量不小于预先设定的第三阈值,所述第一终端断开与所述第二终端之间的通信连接;If the fourth frequency offset is not less than a preset third threshold, the first terminal disconnects a communication connection with the second terminal;
    所述第一终端向与所述第一终端进行配对的D2D终端集合中的每一终端请求频率偏移量。The first terminal requests a frequency offset from each of the D2D terminal sets paired with the first terminal.
  6. 一种通讯方法,所述方法包括:A communication method, the method comprising:
    第二终端向第一终端发送自身的第二频率偏移量,其中,所述第二终端是与所述第一终端进行配对的D2D终端集合中的终端;The second terminal sends its own second frequency offset to the first terminal, where the second terminal is a terminal in the D2D terminal set paired with the first terminal;
    所述第二终端接收所述第一终端发送的建立请求,基于所述建立请求与所述第一终端建立通信连接;Receiving, by the second terminal, the establishment request sent by the first terminal, and establishing a communication connection with the first terminal according to the establishment request;
    所述第二终端接收基站发送的第一数据,将所述第一数据发送给所述第一终端;Receiving, by the second terminal, the first data sent by the base station, and sending the first data to the first terminal;
    所述第二终端接收所述第一终端发送的第二数据,并将所述第二数据发送给所述基站。The second terminal receives the second data sent by the first terminal, and sends the second data to the base station.
  7. 根据权利要求6中所述方法,其中,所述方法还包括: The method of claim 6 wherein the method further comprises:
    所述第二终端确定自身的第三频率偏移量;The second terminal determines its own third frequency offset;
    所述第二终端判断所述第三频率偏移量是否大于预先设定的第一阈值;Determining, by the second terminal, whether the third frequency offset is greater than a preset first threshold;
    如果所述第三频率偏移量大于预先设定的第一阈值,则所述第二终端向所述第一终端发送信令,其中,所述信令用于通知所述第一终端所述第二终端的第三频率偏移量超过所述第一阈值。And if the third frequency offset is greater than a preset first threshold, the second terminal sends signaling to the first terminal, where the signaling is used to notify the first terminal The third frequency offset of the second terminal exceeds the first threshold.
  8. 根据权利要求7中所述方法,其中,所述方法还包括:The method of claim 7 wherein the method further comprises:
    所述第二终端与基站断开通信连接;Transmitting, by the second terminal, a communication connection with a base station;
    所述第二终端接收所述第一终端发送的来自所述基站的第三数据;The second terminal receives third data sent by the first terminal from the base station;
    所述第二终端向所述第一终端发送用于发送给所述基站的第四数据。The second terminal sends fourth data for sending to the base station to the first terminal.
  9. 一种设备到设备D2D终端,所述D2D终端包括:A device to device D2D terminal, the D2D terminal comprising:
    第一确定单元,设置为确定与所述D2D终端进行配对的D2D终端集合;a first determining unit, configured to determine a D2D terminal set paired with the D2D terminal;
    第二确定单元,设置为确定所述D2D终端自身的第一频率偏移量;a second determining unit, configured to determine a first frequency offset of the D2D terminal itself;
    第一请求单元,设置为如果所述第一频率偏移量大于预先设定的第一阈值,向所述D2D终端集合中的每一终端请求频率偏移量;a first requesting unit, configured to request a frequency offset from each terminal in the D2D terminal set if the first frequency offset is greater than a preset first threshold;
    第一接收单元,设置为接收所述D2D终端集合中的每一终端发送的第二频率偏移量;a first receiving unit, configured to receive a second frequency offset sent by each terminal in the D2D terminal set;
    第三确定单元,设置为根据所述D2D终端集合中每一终端的第二频率偏移量从所述D2D终端集合中确定第二终端;a third determining unit, configured to determine a second terminal from the set of D2D terminals according to a second frequency offset of each terminal in the set of D2D terminals;
    第一建立单元,设置为与所述第二终端建立通信连接。The first establishing unit is configured to establish a communication connection with the second terminal.
  10. 一种设备到设备D2D终端,所述D2D终端包括:A device to device D2D terminal, the D2D terminal comprising:
    第三发送单元,设置为向第一终端发送自身的第二频率偏移量,其中,所述D2D终端是与所述第一终端进行配对的D2D终端集合中的终端;a third sending unit, configured to send a second frequency offset of the first terminal to the first terminal, where the D2D terminal is a terminal in a D2D terminal set paired with the first terminal;
    第五接收单元,设置为接收所述第一终端发送的建立请求,基于所述 建立请求与所述第一终端建立通信连接;a fifth receiving unit, configured to receive an establishment request sent by the first terminal, based on the Establishing a request to establish a communication connection with the first terminal;
    第四发送单元,设置为接收基站发送的第一数据,将所述第一数据发送给所述第一终端;a fourth sending unit, configured to receive first data sent by the base station, and send the first data to the first terminal;
    第六接收单元,设置为接收所述第一终端发送的第二数据,并将所述第二数据发送给所述基站。 The sixth receiving unit is configured to receive the second data sent by the first terminal, and send the second data to the base station.
PCT/CN2016/096731 2016-07-14 2016-08-25 Communication method and terminal WO2018010267A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610556678.7A CN107635208A (en) 2016-07-14 2016-07-14 A kind of means of communication and terminal
CN201610556678.7 2016-07-14

Publications (1)

Publication Number Publication Date
WO2018010267A1 true WO2018010267A1 (en) 2018-01-18

Family

ID=60952273

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/096731 WO2018010267A1 (en) 2016-07-14 2016-08-25 Communication method and terminal

Country Status (2)

Country Link
CN (1) CN107635208A (en)
WO (1) WO2018010267A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102823311A (en) * 2010-05-06 2012-12-12 诺基亚公司 Measurements and fast power adjustments in D2D communications
WO2015053382A1 (en) * 2013-10-11 2015-04-16 京セラ株式会社 Communication control method, user terminal, and communication device
CN104618913A (en) * 2013-11-01 2015-05-13 电信科学技术研究院 Method and device for transmitting D2D resource allocation information
CN104883728A (en) * 2014-02-27 2015-09-02 上海朗帛通信技术有限公司 Transmission method in D2D communication, and device thereof

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140069140A (en) * 2011-09-21 2014-06-09 엠파이어 테크놀로지 디벨롭먼트 엘엘씨 Doppler-nulling traveling-wave antenna relays for high-speed vehicular communications
US20130229931A1 (en) * 2012-03-02 2013-09-05 Electronics And Telecommunications Research Institute Methods of managing terminal performed in base station and terminal
WO2015064977A1 (en) * 2013-10-31 2015-05-07 엘지전자 주식회사 Method by which terminal transmits and receives signal to/from base station by using device-to-device communication in wireless communication system, and device for same
CN103581071B (en) * 2013-11-08 2016-06-01 北京航天科工世纪卫星科技有限公司 The transmitting signal frequency deviation real-time correction method of high dynamic motion carrier and system thereof
CN103986558B (en) * 2014-05-26 2017-06-09 东南大学 Adaptive cooperation transmission method in a kind of cellular mobile communication D2D systems
CN104486739B (en) * 2014-11-20 2019-03-22 南京酷派软件技术有限公司 Determine the method and system of subsidiary communications terminal
CN105007241A (en) * 2015-07-01 2015-10-28 杭州祥声通讯股份有限公司 Doppler frequency offset estimation method and system under high-speed rail environment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102823311A (en) * 2010-05-06 2012-12-12 诺基亚公司 Measurements and fast power adjustments in D2D communications
WO2015053382A1 (en) * 2013-10-11 2015-04-16 京セラ株式会社 Communication control method, user terminal, and communication device
CN104618913A (en) * 2013-11-01 2015-05-13 电信科学技术研究院 Method and device for transmitting D2D resource allocation information
CN104883728A (en) * 2014-02-27 2015-09-02 上海朗帛通信技术有限公司 Transmission method in D2D communication, and device thereof

Also Published As

Publication number Publication date
CN107635208A (en) 2018-01-26

Similar Documents

Publication Publication Date Title
TWI602468B (en) Terminal through the relay node to determine the use of methods and devices
KR101558420B1 (en) Providing positioning assistance to mobile stations via a self - organizing network
JP6433917B2 (en) Method and apparatus for assigning device ID in D2D communication
KR101924830B1 (en) Method and apparatus for synchronizing of terminal in wireless communication network
US20180026958A1 (en) Fast-accessing method and apparatus
EP3282755B1 (en) Relay node switching method and system
JP2020511863A (en) Wireless communication method and system for network slices
JP6579597B2 (en) D2D synchronization method, user equipment, and serving cell
US20160044613A1 (en) Notification of relay capabilities for ue-to-network relay functions
EP3400736B1 (en) Sharing network feedback information using a device-to-device link
EP3050374B1 (en) Methods and apparatus of key pairing for d2d devices under different d2d areas
US20180242211A1 (en) Method and Device for Dynamically Building a Virtual Cell
CN107864508A (en) A kind of pre-synchronization method and device of radio roaming authentication state
KR20150119929A (en) D2d discovery sequence detecting method and d2d data receiving method and device
WO2017080247A1 (en) Synchronization method and device
CN105532028A (en) Systems and methods for fast initial link setup security optimizations for psk and sae security modes
US9301160B2 (en) Network supervised device-to-device communication
CN110291816B (en) Multi-connectivity establishing method, communication system, user equipment and access point
US20160135017A1 (en) System and method for multiple clients synchronization in wi-fi peer-to-peer group
WO2017032124A1 (en) Communication method and base station
WO2015149725A1 (en) Backhaul link adjustment method, mobile device and system
WO2018010267A1 (en) Communication method and terminal
WO2015180104A1 (en) Apparatus and method for processing link between network nodes
CN110868704B (en) Internet of things coverage enhancement processing method and device based on D2D relay
TWI691230B (en) Communication between user equipment and its control method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16908592

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16908592

Country of ref document: EP

Kind code of ref document: A1