WO2018098746A1 - Synchronization time error correction method and device - Google Patents

Synchronization time error correction method and device Download PDF

Info

Publication number
WO2018098746A1
WO2018098746A1 PCT/CN2016/108145 CN2016108145W WO2018098746A1 WO 2018098746 A1 WO2018098746 A1 WO 2018098746A1 CN 2016108145 W CN2016108145 W CN 2016108145W WO 2018098746 A1 WO2018098746 A1 WO 2018098746A1
Authority
WO
WIPO (PCT)
Prior art keywords
time
base station
synchronization
error
signal
Prior art date
Application number
PCT/CN2016/108145
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 华为技术有限公司
Priority to PCT/CN2016/108145 priority Critical patent/WO2018098746A1/en
Priority to CN201680091082.2A priority patent/CN109983811B/en
Publication of WO2018098746A1 publication Critical patent/WO2018098746A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a synchronization time error correction method and device.
  • D2D communication based on cellular network, or Proximity Service (ProSe), means that user data can be directly transmitted between terminals without being transited through the network.
  • Proximity Service Proximity Service
  • D2D communication based on cellular networks Due to the potential of improving the system performance, improving the user experience and extending the application of cellular communication applications, D2D communication based on cellular networks has received extensive attention.
  • cellular network-based D2D communication can be direct communication from cell phone to cell phone, direct cell to vehicle communication, direct vehicle to vehicle communication, and direct communication from the vehicle to the roadside unit.
  • FIG. 1 is a schematic diagram of a system architecture of a D2D communication based on a cellular network.
  • the system architecture includes a base station, a device V1, a device V2, and a device V3.
  • Device V1 and device V2 are within the signal coverage of the base station, and device V3 is outside the signal coverage of the base station.
  • the device V1 and the device V2 can perform D2D communication
  • the device V2 and the device V3 can perform D2D communication
  • the device V1 and the device V3 can perform D2D communication.
  • the base station is mainly used for allocating and coordinating transmission resources in D2D communication.
  • the base station can be used to allocate transmission resources for D2D communication of device V1 and device V2, and for allocating transmission resources for D2D communication of device V1 and device V3.
  • D2D communication is often not normally performed between devices.
  • the embodiment of the invention discloses a synchronization time error correction method and device, which can correct the error of the synchronization time sent by the base station, and is beneficial to normal D2D communication between devices.
  • a synchronization time error correction method includes: receiving, by a first device, a time advancement amount TA sent by a base station in a state of being time synchronized with a base station; and acquiring, by the first device, the first device and the base station Synchronization time; the first device enters the error of the synchronization time by 0.5TA Correction.
  • the first device can correct the synchronization time to be consistent with the base station, thereby facilitating successful D2D communication between the devices.
  • the first device may also send a signal to the second device according to the time obtained by correcting the error of the synchronization time.
  • the second device is a device other than the base station.
  • the signal sent by the third device may also be received according to the time obtained by correcting the error of the synchronization time.
  • the first device may also detect whether the number of the searched GNSS satellites is less than a preset number in a state synchronized with the global satellite navigation system GNSS. If the number of GNSS satellites searched is less than the preset number, the first device ends the time synchronization with the GNSS and enters the punctual state; in the punctual state, if the first device is within the signal coverage of the base station, Then, the first device performs time synchronization with the base station and ends the punctual state.
  • D2D communication is normally performed between devices in the car network.
  • a device having the functionality to implement the first device behavior of the first aspect or the possible implementation of the first aspect described above.
  • This function can be implemented in hardware or in hardware by executing the corresponding software.
  • the hardware or software includes one or more units corresponding to the functions described above.
  • the unit can be software and/or hardware.
  • an apparatus comprising: one or more processors, a memory, a transceiver, a bus system and one or more programs, the processor, the transceiver and the memory are connected by a bus system; wherein one or more programs are stored in the memory, the one or more programs comprising instructions, the instructions causing the device when executed by the device Performing the method of the first aspect or the possible implementation of the first aspect.
  • a fourth aspect provides a computer readable storage medium storing one or more programs, the one or more programs comprising instructions that, when executed by the device, cause the device to perform the method of the first aspect or a possible implementation of the first aspect the way.
  • FIG. 1 is a schematic structural diagram of a system for D2D communication based on a cellular network according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a synchronization time error correction method according to an embodiment of the present invention
  • FIG. 3 is a schematic flow chart of another synchronization time error correction method according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of an apparatus according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of another device according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of still another apparatus according to an embodiment of the present invention.
  • the existing cellular network-based D2D communication system is further analyzed.
  • a device that is within the signal coverage of the base station needs to perform time synchronization with the base station to ensure that the device within the signal coverage of the base station performs normal communication with other devices. That is, in the system architecture shown in FIG. 1, devices V1 and V2 need to maintain the same time as the base station, and devices V1 and V2 can communicate normally normally, and devices V1 and V2 need to be. Keeping at the same time as the base station can communicate directly with device V3.
  • the time of the device V1 and the device V2 is synchronized with the base station, and the time of the base station, the device V1, and the device V2 is both t1.
  • the base station needs to allocate the transmission resource to the device V1. If the transmission resource allocated by the base station for the device V1 is that the device V1 sends data of 1 ms (milliseconds) to the device V2 at t1, the device V1 will be from the t1. Start sending 1ms of data to device V2. Accordingly, the device V2 determines the data of 1 ms received from t1 as the data transmitted by the device V1.
  • the time of the device V1 and the base station is not synchronized, the time of the base station is t1, the time of the device V1 is t2, the time of the device V2 is t1, and the time of the device V3 is T1.
  • T2 is delayed by 1 ms from t1, and the base station designating device V1 transmits data to the device 3 at t1. Since the time of the device V1 is delayed by 1 ms from the time of the base station, the device V1 transmits data to V3 at the time when the time of the base station is "t1 plus 1 ms".
  • the device V2 transmits data to the device V3 at the time of "t1 plus 1 ms"
  • the device V2 transmits data to V2 when the time of the base station is "t1 plus 1 ms". Therefore, the device V3 receives the data transmitted by the device V1 and the device V2 at the same time "t1 plus 1 ms". Since device V1 and device V2 use the same frequency to transmit data to device V3, device V3 will not be able to tell which data was sent by device V1 and which data was sent by device V2. Therefore, the device in the signal coverage of the base station needs time synchronization with the base station to ensure that the device in the signal coverage of the base station performs normal communication with other devices.
  • the device V1 after the device V1 enters the signal coverage of the base station, the synchronization signal sent by the base station can be detected. If the synchronization time corresponding to the synchronization signal sent by the base station is t1, the device V1 receives the synchronization signal and then takes the time. Set to t1. The device V1 directly uses the synchronization time t1 as the downlink synchronization time, and transmits a signal to the device V2 (or the device V3) or the signal transmitted by the device V2 (or the device V3) based on the downlink synchronization time. Correspondingly, the device V1 sends a signal to the base station based on the uplink synchronization time.
  • the uplink synchronization time and the downlink synchronization time may be different or the same.
  • the base station and the device V1 have a radio wave transmission delay (for example, if the base station sends a synchronization signal to the device V1 and takes 1 ms, the radio wave transmission delay is 1 ms), so when the device V1 sets the time of the device V1 to t1, the base station The time is "t1 plus 1ms". The farther the distance between the device and the base station is, the greater the delay of the radio wave transmission. Can It can be seen that the synchronization time corresponding to the synchronization signal sent by the base station received by the existing device is not accurate, which causes the D2D communication to be normally not performed between the devices.
  • the embodiment of the present invention provides a synchronization time error correction method and device for correcting the error of the synchronization time sent by the base station.
  • FIG. 2 is a schematic flowchart diagram of a synchronization time error correction method according to an embodiment of the present invention. As shown in FIG. 2, the synchronization time error correction method may include sections 201-203.
  • the first device receives the time advancement amount TA sent by the base station in a state of performing time synchronization with the base station.
  • the first device may be a mobile phone, a wearable device (such as a smart watch, etc.), a tablet computer, a personal computer (PC, Personal Computer), a PDA (Personal Digital Assistant), a car computer, a car, and the like.
  • the first device may be any one of the devices under the signal coverage of the base station shown in FIG. 1.
  • the first device may be device V1 and device V2 shown in FIG. 1.
  • the function of the TA is to correct the synchronization time to obtain the uplink synchronization time, and the first device sends a signal to the base station based on the synchronization time of the line, that is, when the first device sends a signal to the base station, the delay of the radio wave transmission is compensated. Time sends a signal to the base station.
  • the TA is determined by the base station based on the received measurement report and then transmitted to the first device. In normal communication, when the first device approaches the base station, the base station notifies the first device to decrease the TA; and when the first device moves away from the base station, the base station requests the first device to increase the timing advance.
  • the first device is the device V1 shown in FIG. 1, if the time of the base station is t1, and the base station sends the synchronization signal to the device V1 for 1 ms, the time of the base station when the device V1 sets its own time to t1. "T1 plus 1ms". Therefore, the time of the first device is delayed by 1 ms from the time of the base station.
  • the base station wants to receive the signal sent by the device V1 when "t1 plus 2ms", since the device V1 itself has a delay of 1ms, and the device V1 needs to transmit a signal for 1ms, the device V1 needs to send a signal to the base station 2ms in advance, that is, The device V1 needs to start transmitting signals to the base station when its own time is t1.
  • TA is the time to send the signal in advance 2ms.
  • the time "t1 plus 2ms" after the TA correction for the time t1 of the device V1 is the uplink synchronization time.
  • 0.5TA is the error of the time of the device V1 and the base station.
  • the first device acquires a synchronization time that is synchronized by the first device and the base station.
  • the base station when the time of the base station is t1, the base station sends a synchronization signal to the device V1, the device V1 sets its own time to t1, and t1 is the synchronization time of the first device and the base station, that is, the device V1 itself. time.
  • the first device corrects the error of the synchronization time by using 0.5TA.
  • the first device corrects the error of the synchronization time by 0.5TA to obtain a time consistent with the base station.
  • the device V1 adds the synchronization time t2 of the device V1 to 1 ms seconds to obtain the time t1 that is consistent with the base station.
  • This time t1 is the downlink synchronization time obtained after the synchronization time is corrected.
  • the signal may be sent to the second device according to the time obtained by correcting the error of the synchronization time.
  • the time that the first device determines whether the error of the synchronization time is corrected is the time that the first device sets the signal sent by the first device to the second device; if the error of the synchronization time is corrected, the time is obtained.
  • the time of the base station is t1
  • the time of the device V1 is t2
  • the time of the device V3 is t1. Therefore, the TA transmitted by the base station received by the device V1 is 2 ms. If the transmission resource allocated by the base station to the device V1 is that the device V1 transmits 2 ms of data to the device V3 at t1, the device V1 corrects the error of t2 by 0.5 TA (that is, 1 ms), and the obtained time is "t2 plus 1 ms". If "t2 plus 1ms" is the same as t1, the device V1 starts transmitting 2 ms of data to the device V3 from this point. Accordingly, the device V3 determines the 2 ms data received from t1 as the data transmitted by the device V1.
  • the second device is a device other than the base station.
  • the second device may be the device V2 or the device V3.
  • the first device transmits a signal to the second device according to the time after the synchronization time is corrected by 0.5TA.
  • the first device sends a signal to the second device to the base station according to the time after the synchronization time is corrected by the TA.
  • the third device may also receive the time according to the error obtained by correcting the error of the synchronization time.
  • the signal sent the time that the first device determines whether the error of the synchronization time is corrected is the time that the third device sets the signal sent by the third device to the first device; if the error of the synchronization time is corrected, the time obtained is The time when the third device set by the base station sends a signal to the first device, the first device determines that the received signal is a signal sent by the third device.
  • the time of the base station is t1
  • the time of the device V1 is t2
  • the time of the device V3 is t1. Therefore, the TA transmitted by the base station received by the device V1 is 2 ms. If the transmission resource allocated by the base station to the device V3 is that the device V3 transmits data of 2 seconds to the device V1 at t1, the device V1 corrects the error of t2 by 0.5TA (that is, 1 ms), and obtains the time "t2 plus 1 ms" consistent with the base station. . If "t2 plus 1ms" is the same as t1, the device V1 determines that the signal received from this time is the signal transmitted by the device V3.
  • the time of the base station is t1
  • the time of the device V1 is t2
  • the time of the device V2 is t3.
  • the TA transmitted by the base station received by the device V1 is 2 ms.
  • the TA transmitted by the base station received by the device V2 is 4 ms. If the transmission resource allocated by the base station to the device V1 is that the device V1 transmits 2 ms of data to the device V2 at t1, the device V1 corrects the error of t2 by 0.5 TA (that is, 1 ms), and obtains the time "t2 plus 1 ms" consistent with the base station. .
  • the device V2 corrects the error of t3 by 0.5TA (ie, 2ms), and obtains the time "t3 plus 2ms" consistent with the base station. If “t2 plus 1ms” is the same as t1, the device V1 starts transmitting a signal to the device V2 from this point. Similarly, if “t3 plus 2ms” is the same as t1, the device V2 determines the signal received from this time as the signal transmitted by the device V2.
  • 0.5TA ie, 2ms
  • the first device may correct the synchronization time of the first device and the base station according to the 0.5TA, and obtain a time consistent with the base station, so that Send signals to other devices or receive signals sent by other devices according to the time coincident with the base station. It can be seen that by implementing the method described in FIG. 2, the first device can correct the synchronization time to be consistent with the base station, thereby facilitating successful D2D communication between the devices.
  • the Internet of Vehicles has attracted more and more people's attention. It can improve the safety of road traffic through D2D communication between vehicles and vehicles, D2D communication between mobile phones and vehicles, or D2D communication between vehicles and roadside units. Reliability, improve traffic efficiency.
  • the traditional car network system has the following Problem: When the number of vehicles in the system is large, resource conflicts are likely to occur, system performance is poor, delay is uncontrollable, quality of service (QoS) cannot be guaranteed, and transmission distance is limited.
  • the D2D communication technology based on cellular network has the advantages of low delay, large coverage, and support for high-speed mobile terminals.
  • Car-to-vehicle communication in a cellular network can fully utilize the base station for dynamic scheduling of transmission resources, thereby reducing the probability of communication collisions and solving the problem of uncontrollable delay. Therefore, D2D communication technology based on cellular networks is often applied to communication between vehicles and vehicles in a car network system, communication between a mobile phone and a vehicle, or communication between a vehicle and a roadside unit.
  • a Global Navigation Satellite System (GNSS) is synchronized with a base station, and a vehicle (a mobile device such as a mobile phone) can be associated with a GNSS or a base station. Synchronize. In general, the vehicle can be synchronized with the GNSS first, and then synchronized with the base station when there is no GNSS signal.
  • GNSS Global Navigation Satellite System
  • device V1, device V2, and device V3 are devices in a car network. Device V1 and device V2 are within the signal coverage of the base station, and device V1 and device V2 are outside the coverage of the GNSS signal.
  • Device V3 is outside the signal coverage of the base station and is within the coverage of the GNSS signal.
  • Device V1 and device V2 are synchronized with the base station, and device V3 is synchronized with the GNSS.
  • the synchronization time of devices synchronized with GNSS is very accurate. Therefore, the time of the base station, the GNSS, and the device V3 can be considered to be the same.
  • the synchronization signal has a transmission delay, and therefore, the time of the device V1 and the device V2 and the base station has an error. Therefore, there is an abnormality in the D2D communication between the device V1 and the device V2 and the device V3.
  • the synchronization time error correction method described above in FIG. 2 can also be applied to devices in a vehicle network.
  • it can be applied to the device V1, the device V2, and the device V3 described above. Therefore, the first device that executes the synchronization time error correction method described above with reference to FIG. 2 can execute the portions 304 to 306 shown in FIG. 3 before executing the portion 201 except for the portions 201 to 203.
  • the 301-303 part is the same as the part 201-203, and the specific implementation of the 301-303 part can be specifically described in the description of 201-203, and details are not described herein. among them:
  • the first device detects, in a time synchronization with the global satellite navigation system GNSS, whether the number of the searched GNSS satellites is less than a preset number.
  • the time synchronization may be preferentially performed with the GNSS.
  • Section 305 is performed when the first device detects that the number of GNSS satellites is less than a preset number.
  • the first device detects that the number of GNSS satellites is greater than or equal to a preset number Continue to synchronize time with GNSS and continue to measure whether the number of GNSS satellites searched is less than the preset number.
  • the first device ends the time synchronization with the GNSS and enters a punctual state.
  • the first device After the first device ends the time synchronization with the GNSS, it enters a punctual state, and in the punctual state, the time of the first device itself is considered to be consistent with the time of the GNSS.
  • the first device is in a punctual state, and if the first device is within the signal coverage of the base station, time synchronization is performed with the base station, and the punctual state is ended.
  • the first device if the first device is in the punctual state, if the synchronization signal of the base station is detected, the first device performs time synchronization with the base station, and ends the punctual state.
  • the punctual state can be maintained for a preset time, and after maintaining the punctual state of the preset time, the first device cannot communicate with other devices.
  • the first device may not communicate with other devices after a preset time even if time synchronization is performed with the base station.
  • part 301 can be performed to receive the TA sent by the base station.
  • D2D communication is normally performed between devices in the vehicle network.
  • the embodiment of the present invention may divide the functional unit into the first device according to the foregoing method example.
  • each functional unit may be divided according to each function, or two or more functions may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present invention is schematic, and is only a logical function division, and the actual implementation may have another division manner.
  • FIG. 4 is a schematic structural diagram of an apparatus according to an embodiment of the present invention.
  • the device may be the device in the above method embodiment.
  • the device includes a receiving module 401, an obtaining module 402, and a correcting module 403. among them:
  • the receiving module 401 is configured to receive a timing advance TA sent by the base station in a state of performing time synchronization with the base station.
  • the obtaining module 402 is configured to acquire a synchronization time of the device synchronized with the base station.
  • the correction module 403 is configured to correct the error of the synchronization time by 0.5TA.
  • FIG. 5 is a schematic structural diagram of another device according to an embodiment of the present invention.
  • FIG. 5 is optimized by FIG. 4.
  • FIG. 5 further includes a sending module 404, a detecting module 405, an ending module 406, and a synchronization module 407. among them:
  • the sending module 404 is configured to send a signal to the second device according to the time obtained by correcting the error of the synchronization time.
  • the second device is a device other than the base station.
  • the detecting module 405 is configured to detect, after the receiving module 401 receives the timing advance TA sent by the base station, whether the number of the searched GNSS satellites is less than a preset number in a state synchronized with the global satellite navigation system GNSS.
  • the ending module 406 is configured to end time synchronization with the GNSS and enter a punctual state when the detecting module 405 detects that the number of GNSS satellites searched is less than a preset number.
  • the synchronization module 407 is configured to perform time synchronization with the base station and end the punctual state if the device is within the signal coverage of the base station in the punctual state.
  • the receiving module 401 is further configured to receive the signal sent by the third device according to the time obtained by correcting the error of the synchronization time.
  • the principle of the device for solving the problem in the embodiment of the present invention is similar to the method for correcting the synchronization time error in the method embodiment of the present invention. Therefore, the implementation of the device can be referred to the implementation of the method. Let me repeat.
  • FIG. 6 is a schematic diagram of another possible structure of the device disclosed in the embodiment of the present invention.
  • the device 600 includes a processor 601, a memory 602, a bus system 603, and a transceiver 604.
  • the processor 601 and the memory 602 are connected by a bus system 603, and the transceiver 604 and the processor 601 are connected to the bus system 603. Connected.
  • the processor 601 can be a central processing unit (CPU), a general-purpose processor, a coprocessor, a digital signal processor (DSP), and an application-specific integrated circuit (ASIC). , Field Programmable Gate Array (FPGA) or other programmable logic devices, transistors Logic device, hardware component, or any combination thereof.
  • the processor 601 can also be a combination of computing functions, such as one or more microprocessor combinations, a combination of a DSP and a microprocessor, and the like.
  • the bus system 603 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus.
  • PCI Peripheral Component Interconnect
  • EISA Extended Industry Standard Architecture
  • the bus system 603 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 6, but it does not mean that there is only one bus or one type of bus.
  • the transceiver 604 is configured to implement communication with other network elements, such as a base station.
  • the processor 601 calls the program code stored in the memory 602 to perform the following operations:
  • the error of the synchronization time is corrected by 0.5TA.
  • the processor 601 calls the program code stored in the memory 602, and is further configured to pass the time obtained by correcting the error of the synchronization time after correcting the error of the synchronization time by 0.5TA.
  • Transceiver 604 sends a signal to the second device.
  • the second device is a device other than the base station.
  • the processor 601 calls the program code stored in the memory 602, and is further configured to pass the time obtained by correcting the error of the synchronization time after correcting the error of the synchronization time by 0.5TA.
  • the transceiver 604 receives the signal transmitted by the third device.
  • the processor 601 calls the program code stored in the memory 602, and is further configured to perform time synchronization with the global satellite navigation system GNSS before receiving the time advance TA sent by the base station. Whether the number of GNSS satellites searched is less than the preset number; if the number of GNSS satellites searched is less than the preset number, the time synchronization with the GNSS is ended, and the punctual state is entered; in the punctual state, if the device is at the base station Within the signal coverage, it is time synchronized with the base station and ends the punctual state.
  • the principle of the device for solving the problem in the embodiment of the present invention is similar to the method for correcting the synchronization time error in the method embodiment of the present invention. Therefore, the implementation of the device can be referred to the implementation of the method. Let me repeat.
  • an embodiment of the present invention further provides a non-transitory computer readable storage medium storing one or more programs, the non-volatile computer readable storage medium storing at least one program, each of the programs Included in the instructions, when executed by the device provided by the embodiment of the present invention, the device is configured to perform the 201-203 part in FIG. 2, the 301-306 part in FIG. 3, or the first device in the foregoing method embodiment.
  • the device when executed by the device provided by the embodiment of the present invention, the device is configured to perform the 201-203 part in FIG. 2, the 301-306 part in FIG. 3, or the first device in the foregoing method embodiment.
  • the device is configured to perform the 201-203 part in FIG. 2, the 301-306 part in FIG. 3, or the first device in the foregoing method embodiment.
  • relational terms such as first, second, third, and pin number are used to distinguish one entity or operation from another entity or operation. It does not necessarily require or imply any such actual relationship or order between these entities or operations.
  • the above-mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • the functions described herein can be implemented in hardware, software, firmware, or any combination thereof.
  • the functions may be stored in a computer readable medium or transmitted as one or more instructions or code on a computer readable medium.
  • Computer readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one location to another.
  • a storage medium may be any available media that can be accessed by a general purpose or special purpose computer.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

A synchronization time error correction method and device. The method comprises: a first device receiving, while performing time synchronization with a base station, a time advance (TA) value sent by the base station (201); the first device acquiring a synchronization time of the first device being synchronized with the base station (202); and the first device performing error correction on the synchronization time by means of 0.5 TA (203). In this way, the method of the present invention enables the first device to correct the synchronization time to be consistent with the base station, and accordingly facilitates D2D communication between devices.

Description

一种同步时间误差修正方法及设备Synchronization time error correction method and device 技术领域Technical field
本发明涉及通信技术领域,尤其涉及一种同步时间误差修正方法及设备。The present invention relates to the field of communications technologies, and in particular, to a synchronization time error correction method and device.
背景技术Background technique
基于蜂窝网络的设备到设备(Device-to-Device,D2D)通信,或称为邻近服务(Proximity Service,ProSe),是指用户数据可不经网络中转而直接在终端之间传输。由于基于蜂窝网络的D2D通信具有潜在的提高系统性能、提升用户体验、扩展蜂窝通信应用的前景,因此受到了广泛的关注。例如,基于蜂窝网络的D2D通信可以为手机到手机的直接通信、手机到车辆的直接通信、车辆到车辆的直接通信和车辆到路边单元的直接通信等。Device-to-Device (D2D) communication based on cellular network, or Proximity Service (ProSe), means that user data can be directly transmitted between terminals without being transited through the network. Due to the potential of improving the system performance, improving the user experience and extending the application of cellular communication applications, D2D communication based on cellular networks has received extensive attention. For example, cellular network-based D2D communication can be direct communication from cell phone to cell phone, direct cell to vehicle communication, direct vehicle to vehicle communication, and direct communication from the vehicle to the roadside unit.
图1是现有的一种基于蜂窝网络的D2D通信的系统架构示意图,如图1所示,该系统架构中包括基站、设备V1、设备V2和设备V3。设备V1和设备V2处于基站的信号覆盖范围内,设备V3处于基站的信号覆盖范围之外。其中,设备V1和设备V2可进行D2D通信,设备V2和设备V3可进行D2D通信,设备V1和设备V3可进行D2D通信。基站主要用于对D2D通信中的传输资源进行分配和干扰协调等。例如,基站可用于为设备V1与设备V2的D2D通信分配传输资源,以及用于为设备V1与设备V3的D2D通信分配传输资源。FIG. 1 is a schematic diagram of a system architecture of a D2D communication based on a cellular network. As shown in FIG. 1 , the system architecture includes a base station, a device V1, a device V2, and a device V3. Device V1 and device V2 are within the signal coverage of the base station, and device V3 is outside the signal coverage of the base station. The device V1 and the device V2 can perform D2D communication, the device V2 and the device V3 can perform D2D communication, and the device V1 and the device V3 can perform D2D communication. The base station is mainly used for allocating and coordinating transmission resources in D2D communication. For example, the base station can be used to allocate transmission resources for D2D communication of device V1 and device V2, and for allocating transmission resources for D2D communication of device V1 and device V3.
然而在实践中发现,在基于蜂窝网络的D2D通信中,设备之间经常不能正常地进行D2D通信。However, in practice, it has been found that in cellular network-based D2D communication, D2D communication is often not normally performed between devices.
发明内容Summary of the invention
本发明实施例公开了一种同步时间误差修正方法及设备,能够对基站发送的同步时间的误差进行修正,有利于设备之间正常地进行D2D通信。The embodiment of the invention discloses a synchronization time error correction method and device, which can correct the error of the synchronization time sent by the base station, and is beneficial to normal D2D communication between devices.
第一方面,提供了一种同步时间误差修正方法,该方法包括:第一设备在与基站进行时间同步的状态下,接收基站发送的时间提前量TA;第一设备获取第一设备与基站同步的同步时间;第一设备通过0.5TA对同步时间的误差进 行修正。In a first aspect, a synchronization time error correction method is provided. The method includes: receiving, by a first device, a time advancement amount TA sent by a base station in a state of being time synchronized with a base station; and acquiring, by the first device, the first device and the base station Synchronization time; the first device enters the error of the synchronization time by 0.5TA Correction.
可见,通过实施第一方面所提供的方法,第一设备可将同步时间修正为与基站一致时间,从而有利于设备之间成功进行D2D通信。It can be seen that by implementing the method provided by the first aspect, the first device can correct the synchronization time to be consistent with the base station, thereby facilitating successful D2D communication between the devices.
作为一种可选的实施方式,第一设备通过0.5TA对同步时间的误差进行修正之后,还可根据对同步时间的误差进行修正后得到的时间向第二设备发送信号。As an optional implementation manner, after the first device corrects the error of the synchronization time by 0.5TA, the first device may also send a signal to the second device according to the time obtained by correcting the error of the synchronization time.
通过根据对第一设备的同步时间的误差进行修正后得到的时间向第二设备发送信号,可保证第一设备与第二设备之间正常地进行D2D通信。By transmitting a signal to the second device according to the time obtained by correcting the error of the synchronization time of the first device, it is ensured that the D2D communication is normally performed between the first device and the second device.
作为一种可选的实施方式,第二设备为除基站之外的设备。As an optional implementation manner, the second device is a device other than the base station.
作为一种可选的实施方式,第一设备通过0.5TA对同步时间的误差进行修正之后,还可根据对同步时间的误差进行修正后得到的时间接收第三设备发送的信号。As an optional implementation manner, after the first device corrects the error of the synchronization time by 0.5TA, the signal sent by the third device may also be received according to the time obtained by correcting the error of the synchronization time.
通过根据对第一设备的同步时间的误差进行修正后得到的时间接收第三设备发送的信号,可保证第一设备与第三设备之间正常地进行D2D通信。By receiving the signal transmitted by the third device according to the time obtained by correcting the error of the synchronization time of the first device, it is ensured that the D2D communication is normally performed between the first device and the third device.
作为一种可选的实施方式,第一设备接收基站发送的时间提前量TA之前,还可在与全球卫星导航系统GNSS进行时间同步的状态下,检测搜索到的GNSS卫星数量是否小于预设数量;若搜索到的GNSS卫星数量小于预设数量,则第一设备结束与GNSS进行的时间同步,并进入守时状态;在守时状态下,若第一设备处于基站的信号覆盖范围之内,则第一设备与基站进行时间同步,并结束守时状态。As an optional implementation manner, before the first device receives the timing advance TA sent by the base station, the first device may also detect whether the number of the searched GNSS satellites is less than a preset number in a state synchronized with the global satellite navigation system GNSS. If the number of GNSS satellites searched is less than the preset number, the first device ends the time synchronization with the GNSS and enters the punctual state; in the punctual state, if the first device is within the signal coverage of the base station, Then, the first device performs time synchronization with the base station and ends the punctual state.
通过实施该实施方式,有利于处于车联网中的设备之间正常进行D2D通信。By implementing this embodiment, D2D communication is normally performed between devices in the car network.
第二方面,提供了一种设备,该设备具有实现上述第一方面或第一方面可能的实现方式中第一设备行为的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的单元。该单元可以是软件和/或硬件。基于同一发明构思,由于该设备解决问题的原理以及有益效果可以参见上述第一方面和第一方面的各可能的方法实施方式以及所带来的有益效果,因此该设备的实施可以参见上述第一方面和第一方面的各可能的方法实施方式,重复之处不再赘述。In a second aspect, there is provided a device having the functionality to implement the first device behavior of the first aspect or the possible implementation of the first aspect described above. This function can be implemented in hardware or in hardware by executing the corresponding software. The hardware or software includes one or more units corresponding to the functions described above. The unit can be software and/or hardware. Based on the same inventive concept, the principle and the beneficial effects of the device can be referred to the first aspect and the possible method embodiments of the first aspect and the beneficial effects. Therefore, the implementation of the device can be referred to the first Aspects and possible method implementations of the first aspect are not repeated here.
第三方面,提供了一种设备包括:一个或多个处理器、存储器、收发器、 总线系统以及一个或多个程序,处理器、收发器和存储器通过总线系统相连;其中,一个或多个程序被存储在存储器中,一个或多个程序包括指令,指令当被设备执行时使设备执行第一方面的方法或第一方面可能的实现方式。In a third aspect, an apparatus is provided comprising: one or more processors, a memory, a transceiver, a bus system and one or more programs, the processor, the transceiver and the memory are connected by a bus system; wherein one or more programs are stored in the memory, the one or more programs comprising instructions, the instructions causing the device when executed by the device Performing the method of the first aspect or the possible implementation of the first aspect.
第四方面,提供了一种存储一个或多个程序的计算机可读存储介质,一个或多个程序包括指令,指令当被设备执行时使设备执行第一方面的方法或第一方面可能的实现方式。A fourth aspect provides a computer readable storage medium storing one or more programs, the one or more programs comprising instructions that, when executed by the device, cause the device to perform the method of the first aspect or a possible implementation of the first aspect the way.
附图说明DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings to be used in the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without paying any creative work.
图1是本发明实施例提供的一种基于蜂窝网络的D2D通信的系统架构示意图;1 is a schematic structural diagram of a system for D2D communication based on a cellular network according to an embodiment of the present invention;
图2是本发明实施例提供的一种同步时间误差修正方法的流程示意图;2 is a schematic flowchart of a synchronization time error correction method according to an embodiment of the present invention;
图3是本发明实施例提供的另一种同步时间误差修正方法的流程示意图;3 is a schematic flow chart of another synchronization time error correction method according to an embodiment of the present invention;
图4是本发明实施例提供的一种设备的结构示意图;4 is a schematic structural diagram of an apparatus according to an embodiment of the present invention;
图5是本发明实施例提供的另一种设备的结构示意图;FIG. 5 is a schematic structural diagram of another device according to an embodiment of the present disclosure;
图6是本发明实施例提供的又一种设备的结构示意图。FIG. 6 is a schematic structural diagram of still another apparatus according to an embodiment of the present invention.
具体实施方式detailed description
为了使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施例的技术方案进行描述。The technical solutions of the embodiments of the present invention will be described below in conjunction with the accompanying drawings.
为了便于理解本发明实施例,下面对现有的基于蜂窝网络的D2D通信系统进一步进行分析。In order to facilitate the understanding of the embodiments of the present invention, the existing cellular network-based D2D communication system is further analyzed.
在现有的基于蜂窝网络的D2D通信系统中,处于基站的信号覆盖范围内的设备需要与基站进行时间同步,才能保证处于基站的信号覆盖范围内的设备与其他设备进行正常通信。即在图1所示的系统架构中,设备V1和V2需要与基站保持相同的时刻,设备V1和V2之间才能正常地直接通信,且设备V1和V2需要 与基站保持相同的时刻,才能正常地与设备V3直接通信。In an existing cellular network-based D2D communication system, a device that is within the signal coverage of the base station needs to perform time synchronization with the base station to ensure that the device within the signal coverage of the base station performs normal communication with other devices. That is, in the system architecture shown in FIG. 1, devices V1 and V2 need to maintain the same time as the base station, and devices V1 and V2 can communicate normally normally, and devices V1 and V2 need to be. Keeping at the same time as the base station can communicate directly with device V3.
举例来说,在图1所示的系统架构中,设备V1、设备V2与基站的时间同步,基站、设备V1和设备V2的时间均为t1。在设备V1向设备V2发送信息之前,基站需要为设备V1分配传输资源,若基站为设备V1分配的传输资源为设备V1在t1向设备V2发送1ms(毫秒)的数据,则设备V1会从t1开始向设备V2发送1ms的数据。相应地,设备V2将从t1开始接收到的1ms的数据确定为设备V1发送的数据。For example, in the system architecture shown in FIG. 1, the time of the device V1 and the device V2 is synchronized with the base station, and the time of the base station, the device V1, and the device V2 is both t1. Before the device V1 sends the information to the device V2, the base station needs to allocate the transmission resource to the device V1. If the transmission resource allocated by the base station for the device V1 is that the device V1 sends data of 1 ms (milliseconds) to the device V2 at t1, the device V1 will be from the t1. Start sending 1ms of data to device V2. Accordingly, the device V2 determines the data of 1 ms received from t1 as the data transmitted by the device V1.
再举例来说,在图1所示的系统架构中,若设备V1与基站的时间不同步,基站的时间为t1、设备V1的时间为t2、设备V2的时间为t1、设备V3的时间为t1。t2比t1延迟1ms,基站指定设备V1在t1向设备3发送数据,由于设备V1的时间比基站的时间延迟1ms,设备V1会在基站的时间为“t1加1ms”的时间发送数据至V3。若基站指定设备V2在“t1加1ms”的时间向设备V3发送数据,设备V2会在基站的时间为“t1加1ms”时发送数据至V2。因此,设备V3在“t1加1ms”时会同时接收到设备V1和设备V2发送的数据。由于设备V1和设备V2是使用相同的频率来发送数据至设备V3,因此设备V3将不能分辨出哪些数据是设备V1发送的,哪些数据是设备V2发送的。因此,处于基站的信号覆盖范围内的设备需要与基站进行时间同步,才能保证处于基站的信号覆盖范围内的设备与其他设备进行正常通信。For example, in the system architecture shown in FIG. 1, if the time of the device V1 and the base station is not synchronized, the time of the base station is t1, the time of the device V1 is t2, the time of the device V2 is t1, and the time of the device V3 is T1. T2 is delayed by 1 ms from t1, and the base station designating device V1 transmits data to the device 3 at t1. Since the time of the device V1 is delayed by 1 ms from the time of the base station, the device V1 transmits data to V3 at the time when the time of the base station is "t1 plus 1 ms". If the base station designation device V2 transmits data to the device V3 at the time of "t1 plus 1 ms", the device V2 transmits data to V2 when the time of the base station is "t1 plus 1 ms". Therefore, the device V3 receives the data transmitted by the device V1 and the device V2 at the same time "t1 plus 1 ms". Since device V1 and device V2 use the same frequency to transmit data to device V3, device V3 will not be able to tell which data was sent by device V1 and which data was sent by device V2. Therefore, the device in the signal coverage of the base station needs time synchronization with the base station to ensure that the device in the signal coverage of the base station performs normal communication with other devices.
在现有的实际应用中,设备V1进入基站的信号覆盖范围之后,可检测基站发送的同步信号,若基站发送的同步信号对应的同步时间为t1,设备V1接收到该同步信号之后,将时间设置为t1。设备V1直接将该同步时间t1作为下行同步时间,并以该下行同步时间为基准来向设备V2(或设备V3)发送信号,或接收设备V2(或设备V3)发送的信号。相应地,设备V1以上行同步时间为基准向基站发送信号。上行同步时间和下行同步时间可以不同或相同。然而基站与设备V1之间具有电波传输延时(例如,若基站发送同步信号至设备V1需要1ms,则该电波传输延时为1ms),因此设备V1将设备V1的时间设置为t1时,基站的时间为“t1加1ms”。设备与基站之间的距离越远,电波传输延时越大。可 见,现有的设备接收到的基站发送的同步信号对应的同步时间并不准确,这就导致了设备之间经常不能正常地进行D2D通信。In the existing practical application, after the device V1 enters the signal coverage of the base station, the synchronization signal sent by the base station can be detected. If the synchronization time corresponding to the synchronization signal sent by the base station is t1, the device V1 receives the synchronization signal and then takes the time. Set to t1. The device V1 directly uses the synchronization time t1 as the downlink synchronization time, and transmits a signal to the device V2 (or the device V3) or the signal transmitted by the device V2 (or the device V3) based on the downlink synchronization time. Correspondingly, the device V1 sends a signal to the base station based on the uplink synchronization time. The uplink synchronization time and the downlink synchronization time may be different or the same. However, the base station and the device V1 have a radio wave transmission delay (for example, if the base station sends a synchronization signal to the device V1 and takes 1 ms, the radio wave transmission delay is 1 ms), so when the device V1 sets the time of the device V1 to t1, the base station The time is "t1 plus 1ms". The farther the distance between the device and the base station is, the greater the delay of the radio wave transmission. Can It can be seen that the synchronization time corresponding to the synchronization signal sent by the base station received by the existing device is not accurate, which causes the D2D communication to be normally not performed between the devices.
为解决设备之间不能正常地进行D2D通信的问题,本发明实施例提供了一种同步时间误差修正方法及设备,用于对基站发送的同步时间的误差进行修正。In order to solve the problem that the D2D communication cannot be performed normally between the devices, the embodiment of the present invention provides a synchronization time error correction method and device for correcting the error of the synchronization time sent by the base station.
请参见图2,图2为本发明实施例提供的一种同步时间误差修正方法的流程示意图。如图2所示,该同步时间误差修正方法可以包括201~203部分。Referring to FIG. 2, FIG. 2 is a schematic flowchart diagram of a synchronization time error correction method according to an embodiment of the present invention. As shown in FIG. 2, the synchronization time error correction method may include sections 201-203.
201、第一设备在与基站进行时间同步的状态下,接收基站发送的时间提前量TA。201. The first device receives the time advancement amount TA sent by the base station in a state of performing time synchronization with the base station.
其中,第一设备可以为手机、可穿戴设备(如智能手表等)、平板电脑、个人电脑(PC,Personal Computer)、PDA(Personal Digital Assistant,个人数字助理)、车载电脑、汽车等终端。当基站为图1所示的基站时,第一设备可以为图1所示的基站的信号覆盖范围下的任意一个设备。例如,第一设备可以为图1所示的设备V1和设备V2。The first device may be a mobile phone, a wearable device (such as a smart watch, etc.), a tablet computer, a personal computer (PC, Personal Computer), a PDA (Personal Digital Assistant), a car computer, a car, and the like. When the base station is the base station shown in FIG. 1, the first device may be any one of the devices under the signal coverage of the base station shown in FIG. 1. For example, the first device may be device V1 and device V2 shown in FIG. 1.
其中,TA的作用是为了对同步时间进行修正得到上行同步时间,第一设备以上行同步时间为基准向基站发送信号,即在第一设备向基站发送信号时,补偿电波传输延迟,在适当的时间向基站发送信号。TA是由基站根据接收到测量报告确定的,然后发送给第一设备。在正常通信中,当第一设备接近基站时,基站就会通知第一设备减小TA;而当第一设备远离基站时,基站就会要求第一设备加大时间提前量。The function of the TA is to correct the synchronization time to obtain the uplink synchronization time, and the first device sends a signal to the base station based on the synchronization time of the line, that is, when the first device sends a signal to the base station, the delay of the radio wave transmission is compensated. Time sends a signal to the base station. The TA is determined by the base station based on the received measurement report and then transmitted to the first device. In normal communication, when the first device approaches the base station, the base station notifies the first device to decrease the TA; and when the first device moves away from the base station, the base station requests the first device to increase the timing advance.
举例来说,若第一设备为图1所示的设备V1,若基站的时间为t1,基站发送同步信号至设备V1需要1ms的时间,则在设备V1将自身时间设置为t1时基站的时间为“t1加1ms”。因此,第一设备的时间比基站的时间延迟1ms。若基站要在“t1加2ms”时接收设备V1发送的信号,由于设备V1自身有1ms的延迟,并且设备V1发送信号需要1ms的传输时间,因此,设备V1需要提前2ms向基站发送信号,即设备V1需要在自身时间为t1时开始向基站发送信号。其中,TA就为提前发送信号的时间2ms。对设备V1的时间t1通过TA修正后的时间“t1加2ms”就为上行同步时间。For example, if the first device is the device V1 shown in FIG. 1, if the time of the base station is t1, and the base station sends the synchronization signal to the device V1 for 1 ms, the time of the base station when the device V1 sets its own time to t1. "T1 plus 1ms". Therefore, the time of the first device is delayed by 1 ms from the time of the base station. If the base station wants to receive the signal sent by the device V1 when "t1 plus 2ms", since the device V1 itself has a delay of 1ms, and the device V1 needs to transmit a signal for 1ms, the device V1 needs to send a signal to the base station 2ms in advance, that is, The device V1 needs to start transmitting signals to the base station when its own time is t1. Among them, TA is the time to send the signal in advance 2ms. The time "t1 plus 2ms" after the TA correction for the time t1 of the device V1 is the uplink synchronization time.
因此,0.5TA就为设备V1与基站的时间的误差。 Therefore, 0.5TA is the error of the time of the device V1 and the base station.
202、第一设备获取第一设备与基站同步的同步时间。202. The first device acquires a synchronization time that is synchronized by the first device and the base station.
本发明实施例中,例如,基站的时间为t1,基站发送同步信号至设备V1,则设备V1将自身时间设置为t1,t1就为第一设备与基站同步的同步时间,即设备V1自身的时间。In the embodiment of the present invention, for example, when the time of the base station is t1, the base station sends a synchronization signal to the device V1, the device V1 sets its own time to t1, and t1 is the synchronization time of the first device and the base station, that is, the device V1 itself. time.
203、第一设备通过0.5TA对同步时间的误差进行修正。203. The first device corrects the error of the synchronization time by using 0.5TA.
本发明实施例中,第一设备通过0.5TA对同步时间的误差进行修正得到与基站一致的时间。In the embodiment of the present invention, the first device corrects the error of the synchronization time by 0.5TA to obtain a time consistent with the base station.
例如,基站的时间为t1,设备V1的同步时间为t2,0.5TA为1ms,则设备V1将设备V1的同步时间t2加上1ms秒,得到与基站一致的时间t1。该时间t1就为对同步时间修正后得到的下行同步时间。For example, if the time of the base station is t1, the synchronization time of the device V1 is t2, and the time of 0.5TA is 1 ms, the device V1 adds the synchronization time t2 of the device V1 to 1 ms seconds to obtain the time t1 that is consistent with the base station. This time t1 is the downlink synchronization time obtained after the synchronization time is corrected.
作为一种可选的实施方式,第一设备通过0.5TA对同步时间的误差进行修正之后,可根据对该同步时间的误差进行修正后得到的时间向第二设备发送信号。具体地,第一设备判断对该同步时间的误差进行修正后得到的时间是否为基站设定的第一设备向第二设备发送信号的时间;若对该同步时间的误差进行修正后得到的时间为基站设定的第一设备向第二设备发送信号的时间,则第一设备向第二设备发送信号。As an optional implementation manner, after the first device corrects the error of the synchronization time by 0.5TA, the signal may be sent to the second device according to the time obtained by correcting the error of the synchronization time. Specifically, the time that the first device determines whether the error of the synchronization time is corrected is the time that the first device sets the signal sent by the first device to the second device; if the error of the synchronization time is corrected, the time is obtained. When the first device configured by the base station sends a signal to the second device, the first device sends a signal to the second device.
举例来说,在图1所示的系统架构中,基站的时间为t1、设备V1的时间为t2、设备V3的时间为t1。因此,设备V1接收的基站发送的TA为2ms。若基站为设备V1分配的传输资源为设备V1在t1向设备V3发送2ms的数据,设备V1通过0.5TA(即1ms)对t2的误差进行修正,得到的时间为“t2加1ms”。若“t2加1ms”与t1相同,则设备V1从此时开始向设备V3发送2ms的数据。相应地,设备V3将从t1开始接收到的2ms的数据确定为设备V1发送的数据。For example, in the system architecture shown in FIG. 1, the time of the base station is t1, the time of the device V1 is t2, and the time of the device V3 is t1. Therefore, the TA transmitted by the base station received by the device V1 is 2 ms. If the transmission resource allocated by the base station to the device V1 is that the device V1 transmits 2 ms of data to the device V3 at t1, the device V1 corrects the error of t2 by 0.5 TA (that is, 1 ms), and the obtained time is "t2 plus 1 ms". If "t2 plus 1ms" is the same as t1, the device V1 starts transmitting 2 ms of data to the device V3 from this point. Accordingly, the device V3 determines the 2 ms data received from t1 as the data transmitted by the device V1.
通过根据对第一设备的同步时间的误差进行修正后得到的时间向第二设备发送信号,可保证第一设备与第二设备之间正常地进行D2D通信。By transmitting a signal to the second device according to the time obtained by correcting the error of the synchronization time of the first device, it is ensured that the D2D communication is normally performed between the first device and the second device.
作为一种可选的实施方式,第二设备为除基站之外的设备。As an optional implementation manner, the second device is a device other than the base station.
例如,第一设备为设备V1时,第二设备可以为设备V2或设备V3。第一设备根据通过0.5TA对同步时间进行修正后的时间发送信号至第二设备。第一设备根据通过TA对同步时间进行修正后的时间发送信号至第二设备向基站。For example, when the first device is the device V1, the second device may be the device V2 or the device V3. The first device transmits a signal to the second device according to the time after the synchronization time is corrected by 0.5TA. The first device sends a signal to the second device to the base station according to the time after the synchronization time is corrected by the TA.
作为一种可选的实施方式,第一设备通过0.5TA对同步时间的误差进行修正之后,还可根据对该同步时间的误差进行修正后得到的时间接收第三设备发 送的信号。具体地,第一设备判断对该同步时间的误差进行修正后得到的时间是否为基站设定的第三设备向第一设备发送信号的时间;若该同步时间的误差进行修正后得到的时间为基站设定的第三设备向第一设备发送信号的时间,则第一设备确定接收的信号为第三设备发送的信号。As an optional implementation manner, after the first device corrects the error of the synchronization time by using 0.5TA, the third device may also receive the time according to the error obtained by correcting the error of the synchronization time. The signal sent. Specifically, the time that the first device determines whether the error of the synchronization time is corrected is the time that the third device sets the signal sent by the third device to the first device; if the error of the synchronization time is corrected, the time obtained is The time when the third device set by the base station sends a signal to the first device, the first device determines that the received signal is a signal sent by the third device.
举例来说,在图1所示的系统架构中,基站的时间为t1、设备V1的时间为t2、设备V3的时间为t1。因此,设备V1接收的基站发送的TA为2ms。若基站为设备V3分配的传输资源为设备V3在t1向设备V1发送2秒的数据,设备V1通过0.5TA(即1ms)对t2的误差进行修正,得到与基站一致的时间“t2加1ms”。若“t2加1ms”与t1相同,则设备V1确定从此时开始接收的信号为设备V3发的信号。For example, in the system architecture shown in FIG. 1, the time of the base station is t1, the time of the device V1 is t2, and the time of the device V3 is t1. Therefore, the TA transmitted by the base station received by the device V1 is 2 ms. If the transmission resource allocated by the base station to the device V3 is that the device V3 transmits data of 2 seconds to the device V1 at t1, the device V1 corrects the error of t2 by 0.5TA (that is, 1 ms), and obtains the time "t2 plus 1 ms" consistent with the base station. . If "t2 plus 1ms" is the same as t1, the device V1 determines that the signal received from this time is the signal transmitted by the device V3.
再举例来说,图1所示的系统架构中,基站的时间为t1、设备V1的时间为t2、设备V2的时间为t3。设备V1接收的基站发送的TA为2ms。设备V2接收的基站发送的TA为4ms。若基站为设备V1分配的传输资源为设备V1在t1向设备V2发送2ms的数据,则设备V1通过0.5TA(即1ms)对t2的误差进行修正,得到与基站一致的时间“t2加1ms”。相应地,设备V2通过0.5TA(即2ms)对t3的误差进行修正,得到与基站一致的时间“t3加2ms”。若“t2加1ms”与t1相同,则设备V1从此时开始向设备V2发送信号。同理,若“t3加2ms”与t1相同,则设备V2将从此时开始接收的信号确定为设备V2发送的信号。For example, in the system architecture shown in FIG. 1, the time of the base station is t1, the time of the device V1 is t2, and the time of the device V2 is t3. The TA transmitted by the base station received by the device V1 is 2 ms. The TA transmitted by the base station received by the device V2 is 4 ms. If the transmission resource allocated by the base station to the device V1 is that the device V1 transmits 2 ms of data to the device V2 at t1, the device V1 corrects the error of t2 by 0.5 TA (that is, 1 ms), and obtains the time "t2 plus 1 ms" consistent with the base station. . Correspondingly, the device V2 corrects the error of t3 by 0.5TA (ie, 2ms), and obtains the time "t3 plus 2ms" consistent with the base station. If "t2 plus 1ms" is the same as t1, the device V1 starts transmitting a signal to the device V2 from this point. Similarly, if "t3 plus 2ms" is the same as t1, the device V2 determines the signal received from this time as the signal transmitted by the device V2.
通过根据对第一设备的同步时间的误差进行修正后得到的时间接收第三设备发送的信号,可保证第一设备与第三设备之间正常地进行D2D通信。By receiving the signal transmitted by the third device according to the time obtained by correcting the error of the synchronization time of the first device, it is ensured that the D2D communication is normally performed between the first device and the third device.
通过实施图2所描述的方法,在第一设备在与基站进行时间同步的状态下,第一设备可根据0.5TA对第一设备与基站同步的同步时间进行修正,得到与基站一致时间,以便根据与基站一致时间向其他设备发送信号或接收其他设备发送的信号。可见,通过实施图2所描述的方法,第一设备可将同步时间修正为与基站一致时间,从而有利于设备之间成功进行D2D通信。By performing the method described in FIG. 2, in a state in which the first device performs time synchronization with the base station, the first device may correct the synchronization time of the first device and the base station according to the 0.5TA, and obtain a time consistent with the base station, so that Send signals to other devices or receive signals sent by other devices according to the time coincident with the base station. It can be seen that by implementing the method described in FIG. 2, the first device can correct the synchronization time to be consistent with the base station, thereby facilitating successful D2D communication between the devices.
在现有的实际应用中,车联网越来越受到人们的关注,通过车辆与车辆的D2D通信、手机与车辆的D2D通信或者车与路边单元之间的D2D通信可提高道路交通的安全性、可靠性,提升交通通行效率。传统的车联网系统具有如下 问题:当系统内车辆数目很多时,容易发生资源冲突,系统性能很差,延迟不可控,服务质量(Quality of Service,QoS)不能保证,传输距离有限。In the existing practical applications, the Internet of Vehicles has attracted more and more people's attention. It can improve the safety of road traffic through D2D communication between vehicles and vehicles, D2D communication between mobile phones and vehicles, or D2D communication between vehicles and roadside units. Reliability, improve traffic efficiency. The traditional car network system has the following Problem: When the number of vehicles in the system is large, resource conflicts are likely to occur, system performance is poor, delay is uncontrollable, quality of service (QoS) cannot be guaranteed, and transmission distance is limited.
基于蜂窝网络的D2D通信技术具有低延迟,大覆盖范围,以及支持高速移动终端等优点。在蜂窝网络中进行车车通信,可以充分利用基站来进行传输资源的动态调度,从而降低通信冲突的概率,并且解决不可控的时延问题。因此,基于蜂窝网络的D2D通信技术经常应用于车联网系统中车辆与车辆之间的通信、手机与车辆之间的通信或者车与路边单元之间的通信。The D2D communication technology based on cellular network has the advantages of low delay, large coverage, and support for high-speed mobile terminals. Car-to-vehicle communication in a cellular network can fully utilize the base station for dynamic scheduling of transmission resources, thereby reducing the probability of communication collisions and solving the problem of uncontrollable delay. Therefore, D2D communication technology based on cellular networks is often applied to communication between vehicles and vehicles in a car network system, communication between a mobile phone and a vehicle, or communication between a vehicle and a roadside unit.
在现有的实际应用中,在使用基于蜂窝网络的D2D通信技术的车联网中,全球导航卫星系统(Global Navigation Satellite System,GNSS)与基站同步,车辆(手机等移动设备)可与GNSS或基站同步。在一般情况下,车辆可优先与GNSS同步,在没有GNSS信号的时候再与基站进行同步。例如,如图1所示,设备V1、设备V2和设备V3为车联网中的设备。设备V1和设备V2处于基站的信号覆盖范围之内,且设备V1和设备V2处于GNSS信号覆盖范围之外。设备V3处于基站的信号覆盖范围之外,且处于GNSS信号覆盖范围之内。设备V1和设备V2与基站同步,设备V3与GNSS同步。在现有的实际应用中,与GNSS同步的设备的同步时间非常准确。因此,可认为基站、GNSS和设备V3的时间一致。而设备V1和设备V2由于与基站同步时,同步信号具有传输延时,因此,设备V1与设备V2和基站的时间具有误差。因此,设备V1和设备V2与设备V3之间的D2D通信会存在异常。In existing practical applications, in a vehicle network using a cellular network-based D2D communication technology, a Global Navigation Satellite System (GNSS) is synchronized with a base station, and a vehicle (a mobile device such as a mobile phone) can be associated with a GNSS or a base station. Synchronize. In general, the vehicle can be synchronized with the GNSS first, and then synchronized with the base station when there is no GNSS signal. For example, as shown in FIG. 1, device V1, device V2, and device V3 are devices in a car network. Device V1 and device V2 are within the signal coverage of the base station, and device V1 and device V2 are outside the coverage of the GNSS signal. Device V3 is outside the signal coverage of the base station and is within the coverage of the GNSS signal. Device V1 and device V2 are synchronized with the base station, and device V3 is synchronized with the GNSS. In existing practical applications, the synchronization time of devices synchronized with GNSS is very accurate. Therefore, the time of the base station, the GNSS, and the device V3 can be considered to be the same. When the device V1 and the device V2 are synchronized with the base station, the synchronization signal has a transmission delay, and therefore, the time of the device V1 and the device V2 and the base station has an error. Therefore, there is an abnormality in the D2D communication between the device V1 and the device V2 and the device V3.
因此,上述图2所描述的同步时间误差修正方法也可应用于车辆网中的设备。例如,可应用于上述的设备V1、设备V2和设备V3。因此,执行上述图2所描述的同步时间误差修正方法的第一设备除执行201~203部分之外,在执行201部分之前还可执行图3所示的304~306部分。其中,301~303部分与201~203部分相同,301~303部分的具体实现方式具体可参见201~203部分的描述,在此不赘述。其中:Therefore, the synchronization time error correction method described above in FIG. 2 can also be applied to devices in a vehicle network. For example, it can be applied to the device V1, the device V2, and the device V3 described above. Therefore, the first device that executes the synchronization time error correction method described above with reference to FIG. 2 can execute the portions 304 to 306 shown in FIG. 3 before executing the portion 201 except for the portions 201 to 203. The 301-303 part is the same as the part 201-203, and the specific implementation of the 301-303 part can be specifically described in the description of 201-203, and details are not described herein. among them:
304、第一设备在与全球卫星导航系统GNSS进行时间同步的状态下,检测搜索到的GNSS卫星数量是否小于预设数量。304. The first device detects, in a time synchronization with the global satellite navigation system GNSS, whether the number of the searched GNSS satellites is less than a preset number.
本发明实施例中,第一设备同时在GNSS和基站的信号覆盖范围之内时,可优先与GNSS进行时间同步。在第一设备检测到GNSS卫星数量小于预设数量时执行305部分。在第一设备检测到GNSS卫星数量大于或等于预设数量时, 继续与GNSS进行时间同步,并继续测搜索到的GNSS卫星数量是否小于预设数量。In the embodiment of the present invention, when the first device is within the signal coverage of the GNSS and the base station, the time synchronization may be preferentially performed with the GNSS. Section 305 is performed when the first device detects that the number of GNSS satellites is less than a preset number. When the first device detects that the number of GNSS satellites is greater than or equal to a preset number, Continue to synchronize time with GNSS and continue to measure whether the number of GNSS satellites searched is less than the preset number.
305、第一设备结束与GNSS进行的时间同步,并进入守时状态。305. The first device ends the time synchronization with the GNSS and enters a punctual state.
本发明实施例中,第一设备结束与GNSS进行的时间同步之后,进入守时状态,守时状态下可认为第一设备自身的时间与GNSS的时间是一致的。In the embodiment of the present invention, after the first device ends the time synchronization with the GNSS, it enters a punctual state, and in the punctual state, the time of the first device itself is considered to be consistent with the time of the GNSS.
306、第一设备在守时状态下,若第一设备处于基站的信号覆盖范围之内,则与基站进行时间同步,并结束守时状态。306. The first device is in a punctual state, and if the first device is within the signal coverage of the base station, time synchronization is performed with the base station, and the punctual state is ended.
本发明实施例中,第一设备在守时状态下,若检测到基站的同步信号,则第一设备与基站进行时间同步,并结束守时状态。在第一设备未检测到基站或GNSS的信号的情况下,守时状态可维持预设时间,当维持预设时间的守时状态后,第一设备就不能与其他设备进行通信。在第一设备与基站进行时间同步之后,若不结束守时状态,将导致第一设备即使与基站进行了时间同步,在预设时间之后,第一设备也不能与其他设备进行通信。In the embodiment of the present invention, if the first device is in the punctual state, if the synchronization signal of the base station is detected, the first device performs time synchronization with the base station, and ends the punctual state. In the case that the first device does not detect the signal of the base station or the GNSS, the punctual state can be maintained for a preset time, and after maintaining the punctual state of the preset time, the first device cannot communicate with other devices. After the time synchronization between the first device and the base station, if the punctual state is not ended, the first device may not communicate with other devices after a preset time even if time synchronization is performed with the base station.
在第一设备与基站进行时间同步,并进入RRC CONNECTED状态之后,可执行301部分,接收基站发送的TA。After the first device performs time synchronization with the base station and enters the RRC CONNECTED state, part 301 can be performed to receive the TA sent by the base station.
可见,通过实施图3所描述的方法,有利于处于车联网中的设备之间正常进行D2D通信。It can be seen that by implementing the method described in FIG. 3, D2D communication is normally performed between devices in the vehicle network.
本发明实施例可以根据上述方法示例对第一设备进行功能单元的划分,例如,可以对应各个功能划分各个功能单元,也可以将两个或两个以上的功能集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。需要说明的是,本发明实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。The embodiment of the present invention may divide the functional unit into the first device according to the foregoing method example. For example, each functional unit may be divided according to each function, or two or more functions may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present invention is schematic, and is only a logical function division, and the actual implementation may have another division manner.
请参见图4,图4是本发明实施提供的一种设备的结构示意图。该设备可以为上述方法实施例中的设备。该设备包括:接收模块401、获取模块402和修正模块403。其中:Please refer to FIG. 4. FIG. 4 is a schematic structural diagram of an apparatus according to an embodiment of the present invention. The device may be the device in the above method embodiment. The device includes a receiving module 401, an obtaining module 402, and a correcting module 403. among them:
接收模块401,用于在与基站进行时间同步的状态下,接收基站发送的时间提前量TA。The receiving module 401 is configured to receive a timing advance TA sent by the base station in a state of performing time synchronization with the base station.
获取模块402,用于获取设备与基站同步的同步时间。 The obtaining module 402 is configured to acquire a synchronization time of the device synchronized with the base station.
修正模块403,用于通过0.5TA对同步时间的误差进行修正。The correction module 403 is configured to correct the error of the synchronization time by 0.5TA.
请参见图5,图5是本发明实施提供的另一种设备的结构示意图。图5是对图4进行优化得到的,与图4相比,图5还包括发送模块404、检测模块405、结束模块406、同步模块407。其中:Referring to FIG. 5, FIG. 5 is a schematic structural diagram of another device according to an embodiment of the present invention. FIG. 5 is optimized by FIG. 4. Compared with FIG. 4, FIG. 5 further includes a sending module 404, a detecting module 405, an ending module 406, and a synchronization module 407. among them:
发送模块404,用于根据对同步时间的误差进行修正后得到的时间向第二设备发送信号。The sending module 404 is configured to send a signal to the second device according to the time obtained by correcting the error of the synchronization time.
作为一种可选的实施方式,第二设备为除基站之外的设备。As an optional implementation manner, the second device is a device other than the base station.
检测模块405,用于在接收模块401接收基站发送的时间提前量TA之前,在与全球卫星导航系统GNSS进行时间同步的状态下,检测搜索到的GNSS卫星数量是否小于预设数量。The detecting module 405 is configured to detect, after the receiving module 401 receives the timing advance TA sent by the base station, whether the number of the searched GNSS satellites is less than a preset number in a state synchronized with the global satellite navigation system GNSS.
结束模块406,用于当检测模块405检测到搜索到的GNSS卫星数量小于预设数量时,结束与GNSS进行的时间同步,并进入守时状态。The ending module 406 is configured to end time synchronization with the GNSS and enter a punctual state when the detecting module 405 detects that the number of GNSS satellites searched is less than a preset number.
同步模块407,用于在守时状态下,若设备处于基站的信号覆盖范围之内,则与基站进行时间同步,并结束守时状态。The synchronization module 407 is configured to perform time synchronization with the base station and end the punctual state if the device is within the signal coverage of the base station in the punctual state.
作为一种可选的实施方式,接收模块401,还用于根据对同步时间的误差进行修正后得到的时间接收第三设备发送的信号。As an optional implementation manner, the receiving module 401 is further configured to receive the signal sent by the third device according to the time obtained by correcting the error of the synchronization time.
基于同一发明构思,本发明实施例中提供的设备解决问题的原理与本发明方法实施例中的同步时间误差修正方法相似,因此该设备的实施可以参见方法的实施,为简洁描述,在这里不再赘述。Based on the same inventive concept, the principle of the device for solving the problem in the embodiment of the present invention is similar to the method for correcting the synchronization time error in the method embodiment of the present invention. Therefore, the implementation of the device can be referred to the implementation of the method. Let me repeat.
请参见图6,图6是本发明实施例公开的设备的另一种可能的结构示意图。如图6所示,该设备600包括处理器601、存储器602、总线系统603、收发器604,其中,处理器601和存储器602通过总线系统603相连,收发器604和处理器601通过总线系统603相连。Referring to FIG. 6, FIG. 6 is a schematic diagram of another possible structure of the device disclosed in the embodiment of the present invention. As shown in FIG. 6, the device 600 includes a processor 601, a memory 602, a bus system 603, and a transceiver 604. The processor 601 and the memory 602 are connected by a bus system 603, and the transceiver 604 and the processor 601 are connected to the bus system 603. Connected.
其中,处理器601可以是中央处理器(Central Processing Unit,CPU),通用处理器,协处理器,数字信号处理器(Digital Signal Processor,DSP),专用集成电路(Application-Specific Integrated Circuit,ASIC),现场可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、晶体管 逻辑器件、硬件部件或者其任意组合。该处理器601也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。The processor 601 can be a central processing unit (CPU), a general-purpose processor, a coprocessor, a digital signal processor (DSP), and an application-specific integrated circuit (ASIC). , Field Programmable Gate Array (FPGA) or other programmable logic devices, transistors Logic device, hardware component, or any combination thereof. The processor 601 can also be a combination of computing functions, such as one or more microprocessor combinations, a combination of a DSP and a microprocessor, and the like.
其中,总线系统603可以是外设部件互连标准(Peripheral Component Interconnect,简称PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,简称EISA)总线等。总线系统603可以分为地址总线、数据总线、控制总线等。为便于表示,图6中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The bus system 603 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus system 603 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 6, but it does not mean that there is only one bus or one type of bus.
其中,收发器604用于实现与其他网元(如基站)之间的通信。The transceiver 604 is configured to implement communication with other network elements, such as a base station.
其中,处理器601调用存储器602中存储的程序代码,用于执行以下操作:The processor 601 calls the program code stored in the memory 602 to perform the following operations:
在与基站进行时间同步的状态下,通过收发器604接收基站发送的时间提前量TA;Receiving a time advance TA sent by the base station through the transceiver 604 in a state of being time synchronized with the base station;
获取设备与基站同步的同步时间;Obtaining a synchronization time of the device synchronized with the base station;
通过0.5TA对同步时间的误差进行修正。The error of the synchronization time is corrected by 0.5TA.
作为一种可选的实施方式,处理器601调用存储器602中存储的程序代码,还用于在通过0.5TA对同步时间的误差进行修正之后,根据对同步时间的误差进行修正后得到的时间通过收发器604向第二设备发送信号。As an optional implementation manner, the processor 601 calls the program code stored in the memory 602, and is further configured to pass the time obtained by correcting the error of the synchronization time after correcting the error of the synchronization time by 0.5TA. Transceiver 604 sends a signal to the second device.
作为一种可选的实施方式,第二设备为除基站之外的设备。As an optional implementation manner, the second device is a device other than the base station.
作为一种可选的实施方式,处理器601调用存储器602中存储的程序代码,还用于在通过0.5TA对同步时间的误差进行修正之后,根据对同步时间的误差进行修正后得到的时间通过收发器604接收第三设备发送的信号。As an optional implementation manner, the processor 601 calls the program code stored in the memory 602, and is further configured to pass the time obtained by correcting the error of the synchronization time after correcting the error of the synchronization time by 0.5TA. The transceiver 604 receives the signal transmitted by the third device.
作为一种可选的实施方式,处理器601调用存储器602中存储的程序代码,还用于在接收基站发送的时间提前量TA之前,在与全球卫星导航系统GNSS进行时间同步的状态下,检测搜索到的GNSS卫星数量是否小于预设数量;若搜索到的GNSS卫星数量小于预设数量,则结束与GNSS进行的时间同步,并进入守时状态;在守时状态下,若设备处于基站的信号覆盖范围之内,则与基站进行时间同步,并结束守时状态。As an optional implementation manner, the processor 601 calls the program code stored in the memory 602, and is further configured to perform time synchronization with the global satellite navigation system GNSS before receiving the time advance TA sent by the base station. Whether the number of GNSS satellites searched is less than the preset number; if the number of GNSS satellites searched is less than the preset number, the time synchronization with the GNSS is ended, and the punctual state is entered; in the punctual state, if the device is at the base station Within the signal coverage, it is time synchronized with the base station and ends the punctual state.
基于同一发明构思,本发明实施例中提供的设备解决问题的原理与本发明方法实施例中的同步时间误差修正方法相似,因此该设备的实施可以参见方法的实施,为简洁描述,在这里不再赘述。 Based on the same inventive concept, the principle of the device for solving the problem in the embodiment of the present invention is similar to the method for correcting the synchronization time error in the method embodiment of the present invention. Therefore, the implementation of the device can be referred to the implementation of the method. Let me repeat.
另外,本发明实施例还提供了一种存储一个或者多个程序的非易失性计算机可读存储介质,所述非易失性计算机可读存储介质存储有至少一个程序,每个所述程序包括指令,该指令当被本发明实施例提供的设备执行时,使设备执行本发明实施例图2中的201~203部分、图3中的301~306部分或上述方法实施例中第一设备的其他执行过程,可以参考方法实施例中对图2中的201~203部分、图3中的301~306部分或上述方法实施例中第一设备的其他执行过程对应的描述,在此不再赘述。In addition, an embodiment of the present invention further provides a non-transitory computer readable storage medium storing one or more programs, the non-volatile computer readable storage medium storing at least one program, each of the programs Included in the instructions, when executed by the device provided by the embodiment of the present invention, the device is configured to perform the 201-203 part in FIG. 2, the 301-306 part in FIG. 3, or the first device in the foregoing method embodiment. For other implementations, refer to the description of the method in the embodiment of the first embodiment of the first device in the method of the embodiment 201-203 in FIG. 2, the 301-306 in FIG. 3, or the foregoing method embodiment, and no longer Narration.
还需要说明的是,在本发明实施例中,诸如第一、第二、第三以及管脚序号等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或者操作之间存在任何这种实际的关系或者顺序。It should also be noted that in the embodiments of the present invention, relational terms such as first, second, third, and pin number are used to distinguish one entity or operation from another entity or operation. It does not necessarily require or imply any such actual relationship or order between these entities or operations.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the embodiments of the present invention are merely for the description, and do not represent the advantages and disadvantages of the embodiments.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种非易失性计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those skilled in the art can understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a non-volatile computer readable storage. In the medium, the above-mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
本领域技术人员应该可以意识到,在上述一个或多个示例中,本发明所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。Those skilled in the art will appreciate that in one or more examples described above, the functions described herein can be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, the functions may be stored in a computer readable medium or transmitted as one or more instructions or code on a computer readable medium. Computer readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one location to another. A storage medium may be any available media that can be accessed by a general purpose or special purpose computer.
以上所述的具体实施方式,对本发明的目的、技术方案有益效果进行了进一步详细说明,所应理解的是,不同的实施例可以进行组合,以上所述进而本发明的具体实施方式而已,并不用于限定本发明的保护范围,凡在本发明的精神和原则之内,所做的任何组合、修改、等同替换、改进等,均应包含在本发明的保护范围之内。The specific embodiments described above further explain the beneficial effects of the present invention and the technical solutions. It should be understood that different embodiments may be combined, and the above embodiments are further described. Any combination, modification, equivalent substitution, improvement, etc., made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
以上所述的具体实施方式,对本发明的目的、技术方案和有益效果进行了 进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施方式而已,并不用于限定本发明的保护范围,凡在本发明的技术方案的基础之上,所做的任何修改、等同替换、改进等,均应包括在本发明的保护范围之内。 The specific embodiments described above have carried out the objects, technical solutions and beneficial effects of the present invention. It is to be understood that the above description is only the embodiment of the present invention and is not intended to limit the scope of the present invention. Any modification made on the basis of the technical solution of the present invention. And equivalent replacements, improvements, etc., are intended to be included within the scope of the present invention.

Claims (12)

  1. 一种同步时间误差修正方法,应用于第一设备,其特征在于,所述方法包括:A synchronization time error correction method is applied to a first device, wherein the method includes:
    在与基站进行时间同步的状态下,接收所述基站发送的时间提前量TA;Receiving a time advance amount TA sent by the base station in a state of performing time synchronization with the base station;
    获取所述第一设备与所述基站同步的同步时间;Obtaining a synchronization time of the first device synchronized with the base station;
    通过0.5TA对所述同步时间的误差进行修正。The error of the synchronization time is corrected by 0.5TA.
  2. 根据权利要求1所述的方法,其特征在于,所述通过0.5TA对所述同步时间的误差进行修正之后,所述方法还包括:The method according to claim 1, wherein after the error of the synchronization time is corrected by 0.5TA, the method further comprises:
    根据对所述同步时间的误差进行修正后得到的时间向第二设备发送信号。The signal is transmitted to the second device according to the time obtained by correcting the error of the synchronization time.
  3. 根据权利要求2所述的方法,其特征在于,所述第二设备为除所述基站之外的设备。The method of claim 2 wherein said second device is a device other than said base station.
  4. 根据权利要求1所述的方法,其特征在于,所述通过0.5TA对所述同步时间的误差进行修正之后,所述方法还包括:The method according to claim 1, wherein after the error of the synchronization time is corrected by 0.5TA, the method further comprises:
    根据对所述同步时间的误差进行修正后得到的时间接收第三设备发送的信号。The signal transmitted by the third device is received according to the time obtained by correcting the error of the synchronization time.
  5. 根据权利要求1~4任意一项所述的方法,其特征在于,所述接收所述基站发送的时间提前量TA之前,所述方法还包括:The method according to any one of claims 1 to 4, wherein before the receiving the timing advance TA sent by the base station, the method further includes:
    在与全球卫星导航系统GNSS进行时间同步的状态下,检测搜索到的所述GNSS卫星数量是否小于预设数量;In a state synchronized with the global satellite navigation system GNSS, detecting whether the number of the searched GNSS satellites is less than a preset number;
    若搜索到的所述GNSS卫星数量小于所述预设数量,则结束与所述GNSS进行的时间同步,并进入守时状态;If the number of the GNSS satellites searched is less than the preset number, end time synchronization with the GNSS and enter a punctual state;
    在所述守时状态下,若所述第一设备处于基站的信号覆盖范围之内,则与所述基站进行时间同步,并结束所述守时状态。In the punctual state, if the first device is within the signal coverage of the base station, time synchronization with the base station is performed, and the punctual state is ended.
  6. 一种设备,其特征在于,所述设备包括:A device, characterized in that the device comprises:
    接收模块,用于在与基站进行时间同步的状态下,接收所述基站发送的时 间提前量TA;a receiving module, configured to receive, when the base station performs time synchronization with the base station, The amount of advance TA;
    获取模块,用于获取所述第一设备与所述基站同步的同步时间;An acquiring module, configured to acquire a synchronization time that is synchronized between the first device and the base station;
    修正模块,用于通过0.5TA对所述同步时间的误差进行修正。A correction module for correcting the error of the synchronization time by 0.5TA.
  7. 根据权利要求6所述的设备,其特征在于,所述设备还包括:The device according to claim 6, wherein the device further comprises:
    发送模块,用于根据对所述同步时间的误差进行修正后得到的时间向第二设备发送信号。And a sending module, configured to send a signal to the second device according to a time obtained by correcting the error of the synchronization time.
  8. 根据权利要求7所述的设备,其特征在于,所述第二设备为除所述基站之外的设备。The device according to claim 7, wherein said second device is a device other than said base station.
  9. 根据权利要求6所述的设备,其特征在于,The device according to claim 6 wherein:
    所述接收模块,还用于根据对所述同步时间的误差进行修正后得到的时间接收第三设备发送的信号。The receiving module is further configured to receive the signal sent by the third device according to the time obtained by correcting the error of the synchronization time.
  10. 根据权利要求6~9任意一项所述的设备,其特征在于,所述设备还包括:The device according to any one of claims 6 to 9, wherein the device further comprises:
    检测模块,用于在所述接收模块接收所述基站发送的时间提前量TA之前,在与全球卫星导航系统GNSS进行时间同步的状态下,检测搜索到的所述GNSS卫星数量是否小于预设数量;a detecting module, configured to detect, in a state synchronized with the global satellite navigation system GNSS, whether the number of the searched GNSS satellites is less than a preset number before the receiving module receives the time advance TA sent by the base station ;
    结束模块,用于当所述检测模块检测到搜索到的所述GNSS卫星数量小于所述预设数量时,结束与所述GNSS进行的时间同步,并进入守时状态;An ending module, configured to end time synchronization with the GNSS and enter a punctual state when the detecting module detects that the number of the GNSS satellites searched is less than the preset number;
    同步模块,用于在所述守时状态下,若所述第一设备处于基站的信号覆盖范围之内,则与所述基站进行时间同步,并结束所述守时状态。And a synchronization module, configured to perform time synchronization with the base station and end the punctual state if the first device is within the signal coverage of the base station in the punctual state.
  11. 一种设备,其特征在于,所述设备包括:一个或多个处理器、存储器、收发器、总线系统以及一个或多个程序,所述处理器、所述收发器和所述存储器通过所述总线系统相连;其中,所述一个或多个程序被存储在所述存储器中,所述一个或多个程序包括指令,所述指令当被所述设备执行时使所述设备执行如权利要求1至5任一项所述的方法。 An apparatus, comprising: one or more processors, a memory, a transceiver, a bus system, and one or more programs, the processor, the transceiver, and the memory being Connected to the bus system; wherein the one or more programs are stored in the memory, the one or more programs comprising instructions that, when executed by the device, cause the device to perform as claimed in claim 1 The method of any of the five.
  12. 一种存储一个或多个程序的计算机可读存储介质,所述一个或多个程序包括指令,所述指令当被设备执行时使所述设备执行如权利要求1至5任一项所述方法。 A computer readable storage medium storing one or more programs, the one or more programs comprising instructions that, when executed by a device, cause the device to perform the method of any one of claims 1 to .
PCT/CN2016/108145 2016-11-30 2016-11-30 Synchronization time error correction method and device WO2018098746A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2016/108145 WO2018098746A1 (en) 2016-11-30 2016-11-30 Synchronization time error correction method and device
CN201680091082.2A CN109983811B (en) 2016-11-30 2016-11-30 Synchronous time error correction method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/108145 WO2018098746A1 (en) 2016-11-30 2016-11-30 Synchronization time error correction method and device

Publications (1)

Publication Number Publication Date
WO2018098746A1 true WO2018098746A1 (en) 2018-06-07

Family

ID=62241040

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/108145 WO2018098746A1 (en) 2016-11-30 2016-11-30 Synchronization time error correction method and device

Country Status (2)

Country Link
CN (1) CN109983811B (en)
WO (1) WO2018098746A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110537374A (en) * 2019-06-28 2019-12-03 北京小米移动软件有限公司 Data transmission method for uplink, data receiver method, device and equipment
CN111726771A (en) * 2019-03-22 2020-09-29 中国信息通信研究院 Internet of vehicles communication method and equipment
CN112073949A (en) * 2020-08-24 2020-12-11 浙江大华技术股份有限公司 Data transmission method, related device and equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101043254A (en) * 2006-03-24 2007-09-26 大唐移动通信设备有限公司 Method for processing terminal to transmit uplink signal
CN101540634A (en) * 2009-04-30 2009-09-23 华为技术有限公司 Uplink synchronisation method, base station, terminal and communication system
CN101674644A (en) * 2008-09-09 2010-03-17 宏达国际电子股份有限公司 Method utilized in mobile device and relative mobile device thereof
US20120218933A1 (en) * 2009-10-29 2012-08-30 Samsung Electronics Co., Ltd. Method and apparatus for compensating for timing synchronization error in a communication system
WO2012134245A2 (en) * 2011-03-31 2012-10-04 Pantech Co., Ltd. Apparatus and method for transmitting and receiving uplink synchronization information in wireless communication system

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075848B (en) * 2007-07-05 2011-07-20 华为技术有限公司 System and method for synchronizing microcellular network base station and base station
CN103269262B (en) * 2013-04-01 2016-04-13 柳州市达迪通信设备有限公司 A kind of punctual method of time synchronism apparatus
CN104581755A (en) * 2013-10-16 2015-04-29 华为技术有限公司 Time synchronization method between direct-communication UE (user equipment) and UE
EP3057363B1 (en) * 2013-10-31 2020-02-12 Huawei Technologies Co., Ltd. Timing advance adjustment method and device
CN104219758A (en) * 2014-08-08 2014-12-17 中兴通讯股份有限公司 D2D communication method and device
CN105301951B (en) * 2015-09-29 2017-08-11 国电南瑞科技股份有限公司 A kind of multi-source judgement implementation method of clock synchronization system based on analytic hierarchy process (AHP)
CN105446128A (en) * 2015-12-24 2016-03-30 张宏伟 Navigation satellite high-precision time service system with constant temperature circuit and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101043254A (en) * 2006-03-24 2007-09-26 大唐移动通信设备有限公司 Method for processing terminal to transmit uplink signal
CN101674644A (en) * 2008-09-09 2010-03-17 宏达国际电子股份有限公司 Method utilized in mobile device and relative mobile device thereof
CN101540634A (en) * 2009-04-30 2009-09-23 华为技术有限公司 Uplink synchronisation method, base station, terminal and communication system
US20120218933A1 (en) * 2009-10-29 2012-08-30 Samsung Electronics Co., Ltd. Method and apparatus for compensating for timing synchronization error in a communication system
WO2012134245A2 (en) * 2011-03-31 2012-10-04 Pantech Co., Ltd. Apparatus and method for transmitting and receiving uplink synchronization information in wireless communication system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111726771A (en) * 2019-03-22 2020-09-29 中国信息通信研究院 Internet of vehicles communication method and equipment
CN111726771B (en) * 2019-03-22 2022-09-09 中国信息通信研究院 Internet of vehicles communication method and system
CN110537374A (en) * 2019-06-28 2019-12-03 北京小米移动软件有限公司 Data transmission method for uplink, data receiver method, device and equipment
CN110537374B (en) * 2019-06-28 2022-09-30 北京小米移动软件有限公司 Data sending method, data receiving method, device and equipment
CN112073949A (en) * 2020-08-24 2020-12-11 浙江大华技术股份有限公司 Data transmission method, related device and equipment
CN112073949B (en) * 2020-08-24 2024-05-28 浙江大华技术股份有限公司 Data transmission method, related device and equipment

Also Published As

Publication number Publication date
CN109983811B (en) 2021-01-29
CN109983811A (en) 2019-07-05

Similar Documents

Publication Publication Date Title
WO2020248733A1 (en) Dual-card ue data transmission method and device, storage medium and user equipment
US10154384B2 (en) Systems and methods for back channel communication
TWI531176B (en) Method, apparatus and system for handling in-device coexistance interference in a wireless network
WO2017076195A1 (en) Clock synchronization method, and synchronization information transmission method and apparatus
WO2018098746A1 (en) Synchronization time error correction method and device
CN104620658B (en) The method and user equipment of transmission data signal
JP2021192519A (en) Method for information transmission, terminal device, and network device
US20170134999A1 (en) Method and apparatus for allocating d2d resource in a handover procedure and communication system
CN110139384B (en) Uplink information transmission method and terminal equipment
WO2018058572A1 (en) Method and apparatus for determining time-frequency resource
US11477744B2 (en) Method and device for transmitting synchronization signals, and computer storage medium
CN114424666A (en) Communication method and device
JP2021533647A (en) Information transmission methods, devices and computer storage media
WO2019084924A1 (en) Data transmission method and device
CN110958694A (en) Vehicle fleet manager configuration method, receiving method, terminal and base station based on Internet of vehicles
WO2016183747A1 (en) Method and device for enabling relay function
CN111263471B (en) RRC connection release method, device, wireless module, terminal, system and medium
WO2017054405A1 (en) Bluetooth paging method and device
JP2022535499A (en) User device and its wireless communication method
CN117395607A (en) Data transmission method, positioning method, entity, base station, and computer readable medium
US9689961B2 (en) Apparatus, system and method of communication between wireless networks having different coordinate domains
WO2019028748A1 (en) Device-to-device (d2d) communication method and terminal device
CN111867087B (en) Method and communication device for adjusting time domain resource boundary
JP7503543B2 (en) Feedback information transmission method and terminal device
CN116508361A (en) Transmission of periodic data in inactive state

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: 16922685

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: 16922685

Country of ref document: EP

Kind code of ref document: A1