WO2019140638A1 - Positioning system and time synchronization control and apparatus therefor - Google Patents

Positioning system and time synchronization control and apparatus therefor Download PDF

Info

Publication number
WO2019140638A1
WO2019140638A1 PCT/CN2018/073429 CN2018073429W WO2019140638A1 WO 2019140638 A1 WO2019140638 A1 WO 2019140638A1 CN 2018073429 W CN2018073429 W CN 2018073429W WO 2019140638 A1 WO2019140638 A1 WO 2019140638A1
Authority
WO
WIPO (PCT)
Prior art keywords
base station
time
base stations
slave
message
Prior art date
Application number
PCT/CN2018/073429
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/CN2018/073429 priority Critical patent/WO2019140638A1/en
Priority to CN201880011080.7A priority patent/CN110291821A/en
Publication of WO2019140638A1 publication Critical patent/WO2019140638A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management

Definitions

  • the present invention relates to the field of positioning, and in particular, to a time synchronization control method and apparatus for a positioning system and a positioning system.
  • a base station is a reference device for positioning or ranging, and is usually fixed at a certain location.
  • the tag is a device that is mounted on a moving object to be positioned.
  • it is necessary to cancel the clock deviation (referred to as two-way ranging) by multiple communication to calculate the coordinates of the moving object to be positioned.
  • the specific process is as follows: the tag sends a query message, and records the sending time of the sending query message. After receiving the query message, the base station records the receiving time of the received query message, and replies with a response message to the identifier, and the base station saves the sending time of the response message.
  • the tag After receiving the response message, the tag records the receiving time of receiving the response message, and sends an end message carrying the receiving time of the response message and the ending time of the sending message to the base station.
  • the base station offsets the time offset between the tag and the base station by using all of the above time information, and calculates the distance between the tag and the base station. Obtaining a distance value between the tag at the same time and at least three base stations, and calculating a coordinate of the tag at the time according to a distance value between the tag and the at least three base stations at the same time. Tags need to send messages multiple times to accurately locate them, and the positioning efficiency is low.
  • the invention provides a time synchronization control method and device for a positioning system and a positioning system.
  • a time synchronization control method for a positioning system includes a plurality of base stations and a positioning server communicatively coupled to the plurality of base stations, and the plurality of the base stations are in communication with each other.
  • One of the plurality of base stations is a primary base station, and the other base stations are slave base stations; the method includes: receiving a transmission time of the primary base station transmitting a time calibration message sent by the primary base station; and receiving the secondary base station sent by the base station Receiving a receiving time of the time calibration message; calculating a time offset of the slave base station relative to the primary base station according to a distance between the slave base station and the primary base station, the sending time, and the receiving time; And transmitting the time offset to the slave base station.
  • a computer readable storage medium having stored thereon a computer program, the program being executed by a first processor to: receive a transmission of a time synchronization message sent by a primary base station by a primary base station Receiving a receiving time of receiving the time calibration message from the base station sent by the base station; calculating the distance according to a distance between the slave base station and the primary base station, the sending time, and the receiving time a time offset from the base station relative to the primary base station; and transmitting the time offset to the secondary base station.
  • a time synchronization control method for a positioning system includes a plurality of base stations and a positioning server communicatively coupled to the plurality of base stations, and the plurality of the base stations are in communication with each other.
  • One of the plurality of base stations is a primary base station, and the other base stations are slave base stations; the method includes: receiving a time calibration message sent by the primary base station; transmitting a receiving time of the current time alignment message to the positioning server; receiving a time deviation of the slave base station relative to the master base station returned by the positioning server for the time of receiving the time calibration message; correcting the real time time of the slave base station according to the time offset to make the slave
  • the base station is synchronized with the time of the primary base station.
  • the device includes one or more, working separately or in common; the second processor is configured to: receive a time calibration message sent by the primary base station; send a receiving time that the current time alignment message is currently received to the positioning server; a time deviation of the second processor relative to the primary base station returned by the positioning server for the time of receiving the time calibration message; correcting the real time of the second processor according to the time deviation, so as to The time synchronization of the second processor with the primary base station.
  • a computer readable storage medium having stored thereon a computer program, the program being executed by a second processor to: receive a time calibration message sent by a primary base station; and transmit the current received Receiving a time calibration message to a positioning server; receiving a time offset of the second processor relative to the primary base station returned by the positioning server for the time of receiving the time calibration message; according to the time deviation, The real time of the second processor is modified to synchronize the time of the second processor with the primary base station.
  • a time synchronization control method for a positioning system includes a plurality of base stations and a positioning server communicably connected to the plurality of base stations, and the plurality of the base stations are in communication with each other.
  • One of the plurality of base stations is a primary base station, and the other base stations are slave base stations; the method includes: the primary base station sends a time calibration message to the plurality of secondary base stations, and sends a sending time of the current time calibration message to the positioning server; After receiving the time calibration message, the slave base station separately sends the time of receiving the time calibration message to the positioning server; the positioning server according to the distance between each slave base station and the master base station, the primary base station Transmitting a transmission time of the time calibration message and receiving time of the time calibration message received by each base station, calculating a time deviation of each slave base station relative to the master base station; the positioning server transmitting the time offset to the corresponding slave base station; Correcting, by the base station, the real-time time of the slave base station according to the currently received time offset, so as to Synchronized with the main base station from the base station time.
  • a positioning system includes a plurality of base stations and a positioning server communicatively coupled to a plurality of the base stations, wherein the plurality of base stations are in communication with each other, and among the plurality of base stations One of the primary base stations, the other base stations are slave base stations, wherein the primary base station sends time calibration messages to the plurality of secondary base stations, and sends the transmission time of the current time calibration message to the positioning server; the plurality of the secondary base stations receive the time calibration After the message, the receiving time of the time calibration message is separately sent to the positioning server; the positioning server sends the time of the time calibration message according to the distance between each slave base station and the primary base station, and each Receiving, by the base station, the time of receiving the time calibration message, calculating a time offset of each slave base station relative to the master base station; the positioning server sends the time offset to the corresponding slave base station; each slave base station according to the currently received time offset Correcting from the real-time time of the base station to time
  • the present invention sends a time calibration message by the primary base station to correct the time offset between each secondary base station and the primary base station, and finally synchronizes the time of each base station in the positioning system.
  • Aspects ensure time uniformity when positioning a moving object to be positioned.
  • the moving object to be located only needs to send a message once to realize positioning, and shortens the positioning time of positioning the moving object to be positioned.
  • FIG. 1 is a block diagram showing the structure of a positioning system in an embodiment of the present invention
  • FIG. 2 is an application scenario diagram of time synchronization control to which an embodiment of the present invention is applied;
  • FIG. 3 is a flow chart showing the operation of the positioning system in an embodiment of the present invention.
  • FIG. 4 is a flow chart showing the operation of the time synchronization control method of the positioning system on the positioning server side according to an embodiment of the present invention
  • FIG. 5 is a flow chart showing the operation of the time synchronization control method of the positioning system in the slave base station side according to an embodiment of the present invention
  • FIG. 6 is a structural block diagram of a time synchronization control device of a positioning system on a positioning server side according to an embodiment of the present invention
  • Fig. 7 is a block diagram showing the structure of a time synchronization control apparatus of a positioning system in a slave station side according to an embodiment of the present invention.
  • the positioning system may include a plurality of base stations and a positioning server.
  • the positioning server is communicably connected to the plurality of base stations.
  • the plurality of the base stations and the positioning server are all connected according to a wired communication manner, for example, using a CAN bus, or Other wired communication connections.
  • a plurality of the base stations and the positioning server are both connected according to a wireless communication connection manner, for example, using wifi, Bluetooth, zigbee or other wireless communication connection manner.
  • a part of the plurality of base stations are communicably connected to the positioning server based on a wired communication manner, and another part is communicably connected to the positioning server based on a wireless communication manner.
  • a plurality of the base stations and the positioning server are both connected according to the same communication mode.
  • a plurality of the base stations and the positioning server are connected by using a wifi wireless communication.
  • a plurality of the base stations are in communication connection with each other.
  • a plurality of the base stations are communicatively connected according to a wired communication manner, for example, using a CAN bus, and other wired communication connections may also be adopted.
  • a plurality of the base stations are connected according to a wireless communication connection manner, for example, using wifi, Bluetooth, zigbee or other wireless communication connection manner.
  • some of the plurality of base stations are in communication connection according to a wired communication connection manner, and another part of the base stations are communicatively connected according to a wireless communication connection manner.
  • a plurality of the base stations are connected by the same communication mode, for example, a plurality of the base stations are connected by a wifi wireless communication.
  • a plurality of the base stations, the positioning server, and the plurality of base stations are all connected by the same communication method.
  • the positioning system of this embodiment can be applied to a robot game system, and of course, can also be applied to other scenes that need to be positioned. This embodiment is further described by taking a positioning system applied to a robot game system as an example.
  • each base station needs to be fixed at a specific location in the robot playing field.
  • one of the plurality of base stations is a primary base station, and the other base stations are slave base stations.
  • the primary base station and the secondary base station can be set according to the communication connection sequence of each base station and the positioning server.
  • the first base station that implements the communication connection with the positioning server is set as the primary base station, and the other base stations are used as the secondary base stations.
  • the user designates one of the base stations as the primary base station, and the other base stations serve as the secondary base stations.
  • the method for controlling time synchronization between base stations may include the following steps:
  • Step S301 The primary base station sends a time calibration message to the multiple secondary base stations, and sends the sending time of the current time calibration message to the positioning server.
  • the sending time refers to a time corresponding to the primary base station when the primary base station sends a current time calibration message.
  • the timing at which the primary base station transmits the time alignment message may be set according to actual requirements.
  • the primary base station periodically sends the time calibration message, so as to continuously correct the time of multiple base stations in the positioning system, and ensure time synchronization of each base station.
  • the period in which the primary base station sends the time calibration message may be set as needed, for example, the period may be selected as 1 minute, 2 minutes, and the like.
  • Step S302 After receiving the time calibration message, the plurality of slave base stations respectively send the time of receiving the time calibration message to the positioning server;
  • the receiving time refers to a time corresponding to the slave base station when each time base station receives the time calibration message.
  • Step S303 The positioning server calculates each slave base station according to the distance between each slave base station and the master base station, the sending time of the time base station to send the time calibration message, and the receiving time of each time base station receiving the time calibration message. Time deviation from the primary base station;
  • Step S304 The positioning server sends the time offset to the corresponding slave base station
  • Step S305 Each slave base station corrects the real-time time of the slave base station according to the currently received time offset, so that the slave base station and the master base station are time-synchronized.
  • the time synchronization message is sent by the primary base station to correct the time offset between each of the secondary base stations and the primary base station, and finally, the time synchronization of each base station in the positioning system is performed, and on the one hand, the moving object to be located is ensured. Time uniformity when positioning. On the other hand, after time synchronization of each base station, the moving object to be located only needs to send a message once to realize positioning, and shortens the positioning time of positioning the moving object to be positioned.
  • FIG. 4 it is a flowchart of an embodiment of a time synchronization control method of a positioning system according to the present invention.
  • the embodiment is described from a positioning server.
  • the time synchronization control method may include:
  • Step S401 Receive a sending time of the primary base station sending a time calibration message sent by the primary base station;
  • the method may further include: receiving a user instruction, where the user instruction carries a primary base station identifier; and according to the primary base station identifier, sending a primary base station setting message to the corresponding base station, to receive the current received
  • the base station in which the primary base station setting message is described is set as the primary base station.
  • the user specifies the primary base station and the secondary base station, and the flexibility is strong.
  • the primary base station periodically sends a time alignment message to each of the secondary base stations.
  • Step S402 Receive a receiving time of receiving the time calibration message from the base station sent by the base station;
  • each of the secondary base stations receives the time calibration message sent by the primary base station, and sends the time when each time calibration time is received to the positioning server.
  • Step S403 Calculate a time offset of the slave base station relative to the primary base station according to a distance between the slave base station and the primary base station, the sending time, and the receiving time.
  • the step S403 may specifically include: calculating, according to a distance between the slave base station and the primary base station, a signal transmission time between the slave base station and the master base station; according to the signal transmission time, the sending time, and The receiving time calculates a time offset of the slave base station relative to the primary base station.
  • the signal transmission time between the base station and the primary base station is calculated according to the distance between the secondary base station and the primary base station and the current signal transmission speed.
  • the calculation method of the current time deviation between the base station and the primary base station is not limited to the above calculation manner.
  • the time deviation can be corrected according to the empirical value.
  • the manner of obtaining the distance between the slave base station and the primary base station may include the following two types:
  • the distance between the slave base station and the master base station is preset.
  • the placement position of each base station is fixed, and the distance between the base stations can be pre-stored on the positioning server.
  • the calculation method of the current distance between the base station and the primary base station is not limited to the above calculation manner. For example, the distance between the current base station and the primary base station can be corrected according to the empirical value.
  • Step S404 Send the time offset to the slave base station.
  • the method triggers the slave base station to modify the real-time time of the slave base station according to the time offset in step S404, so that the slave base station and the master base station are time-synchronized. On the one hand, it ensures the time uniformity of the positioning of the moving object to be positioned. On the other hand, after the time synchronization of each base station, the moving object to be located (which can be set on the moving object to be positioned) can be positioned only by sending a message once, and the positioning of the moving object to be positioned is shortened. time.
  • the method may further include: receiving the to-be-targeted mobile object (which may be located on the mobile object to be located) based on the same identity as the at least three base stations a signal transmission time of the positioning message, wherein the positioning message is sent by the mobile object to at least three of the base stations; determining the moving object according to a signal transmission time of the mobile object and the at least three base stations based on the same positioning message Position information (ie coordinates) to achieve positioning of moving objects.
  • Position information ie coordinates
  • the distance between the mobile object and each of the at least three base stations may be calculated according to the signal transmission time and the current signal transmission speed of the same positioning message of the mobile object and each of the at least three base stations, according to the mobile
  • the position information (x, y, z) of the moving object is calculated from the distance between the object and each of the at least three base stations.
  • the time synchronization control method may include:
  • Step S501 Receive a time calibration message sent by the primary base station.
  • the primary base station periodically sends a time alignment message to each of the secondary base stations.
  • Step S502 Sending the receiving time of the time calibration message currently received to the positioning server;
  • each of the secondary base stations receives the time calibration message sent by the primary base station, and sends the time when each time calibration time is received to the positioning server.
  • Step S503 Receive a time offset of the slave base station relative to the primary base station returned by the positioning server for the time of receiving the time calibration message.
  • step S403 For the process of calculating the time deviation by the positioning server, refer to the description of step S403 in the foregoing embodiment, and details are not described herein again.
  • Step S504 Correct the real-time time of the slave base station according to the time offset to synchronize the time of the slave base station with the master base station.
  • the time synchronization between the current base station and the primary base station is implemented, and on the one hand, the time uniformity when positioning the moving object to be located is ensured.
  • the moving object to be located only needs to send a message once to realize positioning, and shortens the positioning time of positioning the moving object to be positioned.
  • Step S504 specifically includes: obtaining a correction time of the slave base station based on a difference between the real-time time of the slave base station and the time offset; and correcting the real-time time of the slave base station to the correction time.
  • the current time deviation received from the base station indicates that the real time from the base station is 1 s faster than the time of the primary base station, and the current slave base station will subtract the current real time from the base station by 1 s to obtain the correction time, and set the correction time. Determined as the current real time from the base station.
  • the current time deviation received from the base station indicates that the real time from the base station is 1 s slower than the time of the primary base station, and the current slave base station adds the current real time from the base station to the real time for 1 s to obtain the correction time, and sets the correction time to Current real time from the base station.
  • the positioning system is applied to the robot game system, and base stations are respectively disposed at four corners of the square playing field, and are marked as base station 0, base station 1, base station 2, base station 3, and base station 4.
  • the wifi communication connection is adopted between the four base stations, and the wifi communication connection is also adopted between the four base stations and the positioning server.
  • the positioning system is set up.
  • the distance between the base station 0 and the base station 1 is S 01
  • the distance between the base station 0 and the base station 2 is S 02
  • the distance between the base station 0 and the base station 3 is S 03
  • the distance between the base station 0 and the base station 3 is S.
  • the user can pre-store S 01 , S 02 , S 03 on the positioning server. Further, the user can set the base station 0 located in the lower left corner as the primary base station by the positioning server, and the other base stations (including the base station 1, the base station 2, and the base station 3) as the secondary base station.
  • the primary base station sends a time alignment message to each of the secondary base stations every one minute, and the primary base station sends the time t 0 at which the current time alignment message is sent to the positioning server, and the base station 1 acquires the time when it receives the current time calibration message as t. 1 .
  • the base station 2 obtains the time when it receives the current time calibration message is t 2 , and the time when the base station 3 acquires the current time calibration message is t 3 , and the positioning server obtains t 0 , t 1 , t 2 , After t 3 , first, according to S 01 , S 02 , S 03 and the current signal transmission speed v, the signal transmission time between the base station 1 and the base station 0, the base station 2 and the base station 0, and the base station 3 and the base station 0 in an ideal state is calculated. They are S 01 /v, S 02 /v, S 03 /v.
  • the signal transmission times between the base station 1 and the base station 0, the base station 2 and the base station 0, and the base station 3 and the base station 0 are (t 1 - t 0 ), (t 2 - t 0 ), (t 3 , respectively). -t 0 ). Then, according to (t 1 -t 0 ) and S 01 /v, (t 2 -t 0 ) and S 02 /v, (t 3 -t 0 ) and S 03 /v, the base station 1 can be respectively calculated relative to the base station 0.
  • the time synchronization between the base stations in the positioning system may also be implemented in a hardware manner, for example, using the same clock generator, connecting to all base stations through equal length cables, thereby achieving Time synchronization.
  • this implementation is more cumbersome to maintain and costly.
  • the present invention also provides an embodiment of a time synchronization control device of the positioning system.
  • the time synchronization control device of the positioning system of the present invention is applied to the positioning system server and the slave base station, respectively.
  • the device embodiment may be implemented by software, or may be implemented by means of hardware or software and hardware. Taking software implementation as an example, as a logical device, the processor in the device corresponds to the non-volatile memory. The computer program instructions are read into memory to form a run. From the hardware level, the device where the device is located, in addition to the processor, the network interface, the memory, and the non-volatile memory, the device in which the device is located in the embodiment may also include other hardware, such as a forwarding chip responsible for processing signals. Etc.; The device may also be a distributed device in terms of hardware structure, and may include multiple interface cards for signal processing extension at the hardware level.
  • the apparatus is applied to a positioning server, and the apparatus may include a first processor.
  • the first processor is in communication connection with a plurality of base stations.
  • One of the plurality of base stations is a primary base station, and the other base stations are secondary base stations.
  • the first processor may be a central processing unit (CPU).
  • the first processor may further include a hardware chip.
  • the hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof.
  • the PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a general array logic (GAL), or any combination thereof.
  • the first processor includes one or more, working individually or collectively.
  • the first processor is configured to receive a sending time of the primary base station sending a time calibration message sent by the primary base station, and receive a receiving time of the time calibration message received by the secondary base station sent by the base station; Calculating a time offset of the slave base station with respect to the master base station, and transmitting the time offset to the slave base station, a distance from the primary base station, the transmission time, and the receiving time.
  • the time synchronization control device of the positioning system may further include a first storage device.
  • the first storage device may include a volatile memory, such as a random-access memory (RAM); the first storage device may also include a non-volatile memory. For example, a flash memory, a hard disk drive (HDD), or a solid-state drive (SSD); the first storage device may further include a combination of the above types of memories.
  • the first storage device is configured to store program instructions.
  • the first processor may invoke the program instructions to implement a time synchronization control method of the positioning system applied to the positioning server as in the above embodiment.
  • time synchronization control device of the positioning system provided by the embodiment of the present invention are similar to the embodiment shown in FIG. 4, and details are not described herein again.
  • FIG. 7 a block diagram of an embodiment of a time synchronization control apparatus of a positioning system according to the present invention is applied to a slave base station, and the apparatus may include a second processor.
  • the second processor is in communication with the positioning server and is in communication with a primary base station.
  • the second processor may be a central processing unit (CPU).
  • the second processor may further include a hardware chip.
  • the hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof.
  • the PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a general array logic (GAL), or any combination thereof.
  • the second processor includes one or more, working individually or collectively.
  • the second processor is configured to receive a time calibration message sent by the primary base station, send a receiving time that the current time alignment message is currently received to the positioning server, and receive the return that the positioning server returns for the receiving time of the time calibration message. a time offset of the second processor relative to the primary base station; correcting the real-time time of the second processor according to the time offset to synchronize the time of the second processor with the primary base station.
  • the time synchronization control device of the positioning system may further include a second storage device.
  • the second storage device may include a volatile memory, such as a random-access memory (RAM); the second storage device may also include a non-volatile memory.
  • RAM random-access memory
  • the second storage device may also include a non-volatile memory.
  • the second storage device is configured to store program instructions.
  • the second processor may invoke the program instructions to implement a time synchronization control method applied to the positioning system on the slave base station as in the above embodiment.
  • the embodiment of the present invention further provides a computer readable storage medium having stored thereon a computer program, the program being executed by the first processor to perform the step of the time synchronization control method of the positioning system shown in FIG.
  • the specific principles and implementation manners are similar to the embodiment shown in FIG. 4, and details are not described herein again.
  • the program is executed by the second processor as a step of the time synchronization control method of the positioning system shown in FIG.
  • the specific principles and implementation manners are similar to the embodiment shown in FIG. 5, and details are not described herein again.
  • the device embodiment since it basically corresponds to the method embodiment, reference may be made to the partial description of the method embodiment.
  • the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without any creative effort.
  • a "computer-readable medium” can be any apparatus that can contain, store, communicate, propagate, or transport a program for use in an instruction execution system, apparatus, or device, or in conjunction with the instruction execution system, apparatus, or device.
  • computer readable media include the following: electrical connections (electronic devices) having one or more wires, portable computer disk cartridges (magnetic devices), random access memory (RAM), Read only memory (ROM), erasable editable read only memory (EPROM or flash memory), fiber optic devices, and portable compact disk read only memory (CDROM).
  • the computer readable medium may even be a paper or other suitable medium on which the program can be printed, as it may be optically scanned, for example by paper or other medium, followed by editing, interpretation or, if appropriate, other suitable The method is processed to obtain the program electronically and then stored in computer memory.
  • portions of the invention may be implemented in hardware, software, firmware or a combination thereof.
  • multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system.
  • a suitable instruction execution system For example, if implemented in hardware, as in another embodiment, it can be implemented with any one or combination of the following techniques well known in the art: having logic gates for implementing logic functions on data signals. Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
  • each functional unit in each embodiment of the present invention may be integrated into one processing module, or each unit may exist physically separately, or two or more units may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the integrated modules, if implemented in the form of software functional modules and sold or used as stand-alone products, may also be stored in a computer readable storage medium.
  • the above mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like.

Abstract

The present invention provides a positioning system and a time synchronization control and apparatus therefor. The positioning system comprises multiple base stations and a positioning server communicationally connected to all the multiple base stations; the multiple base stations are communicationally connected to each other; one of the multiple base stations is a master base station, and other base stations are slave base stations. The method comprises: receiving transmission time, at which a master base station transmits a time calibration message, transmitted by the master base station; receiving reception time, at which slave base stations receive the time calibration message, transmitted by the slave base stations; calculating time deviations of the slave base stations with respect to the master base station according to the distances from the slave base stations to the master base station, the transmission time, and the reception time; and transmitting the time deviations to the slave base stations. By transmitting a time calibration message by a master base station, correcting the time deviation between each slave base station and the master base station, and finally achieving time synchronization of the base stations in a positioning system, a moving object to be positioned can be positioned by transmitting a message only once, and therefore, the positioning time is reduced.

Description

定位系统和定位系统的时间同步控制方法、装置Time synchronization control method and device for positioning system and positioning system 技术领域Technical field
本发明涉及定位领域,尤其涉及一种定位系统和定位系统的时间同步控制方法、装置。The present invention relates to the field of positioning, and in particular, to a time synchronization control method and apparatus for a positioning system and a positioning system.
背景技术Background technique
在定位系统中,基站为用于定位或者测距的基准设备,通常固定在某个位置。标签为安装在待定位移动物体上的设备。目前未进行时间同步的定位系统中,需要通过多次通信来抵消时钟偏差(称作双向测距)才能计算出待定位移动物体的坐标。具体过程如下:标签发送查询消息,并记录其发送查询消息的发送时间。基站在接收到查询消息后,记录其接收到查询消息的接收时间,并回复一个应答消息至标识,同时基站会保存该应答消息的发送时间。标签接收到应答消息后,会记录其接收到应答消息的接收时间,并发送携带有应答消息的接收时间和结束消息发送时间的结束消息至基站。基站通过以上所有的时间信息,抵消标签和该基站之间的时间偏差,计算获得标签和该基站之间的距离。获得同一时刻标签与至少3个基站之间的距离值,根据同一时刻标签与至少3个基站之间的距离值,计算标签在该时刻的坐标。标签需要多次发送消息才能准确进行定位,定位效率低。In a positioning system, a base station is a reference device for positioning or ranging, and is usually fixed at a certain location. The tag is a device that is mounted on a moving object to be positioned. In a positioning system in which time synchronization is not currently performed, it is necessary to cancel the clock deviation (referred to as two-way ranging) by multiple communication to calculate the coordinates of the moving object to be positioned. The specific process is as follows: the tag sends a query message, and records the sending time of the sending query message. After receiving the query message, the base station records the receiving time of the received query message, and replies with a response message to the identifier, and the base station saves the sending time of the response message. After receiving the response message, the tag records the receiving time of receiving the response message, and sends an end message carrying the receiving time of the response message and the ending time of the sending message to the base station. The base station offsets the time offset between the tag and the base station by using all of the above time information, and calculates the distance between the tag and the base station. Obtaining a distance value between the tag at the same time and at least three base stations, and calculating a coordinate of the tag at the time according to a distance value between the tag and the at least three base stations at the same time. Tags need to send messages multiple times to accurately locate them, and the positioning efficiency is low.
发明内容Summary of the invention
本发明提供一种定位系统和定位系统的时间同步控制方法、装置。The invention provides a time synchronization control method and device for a positioning system and a positioning system.
根据本发明的第一方面,提供一种定位系统的时间同步控制方法,其中定位系统包括多个基站和与多个所述基站均通信连接的定位服务器,多个所述基站之间相互通信连接,多个所述基站中的一个为主基站,其他基站为从基站;所述方法包括:接收主基站发送的所述主基站发送时间校准消息的发送时间;接收从基站发送的所述从基站接收到所述时间校准消息的接收时间;根据所述从基站与所述主基站之间的距离、所述发送时间和所述接收时间,计算所述从基站相对所述主基站的时间偏差;以及发送所述时间偏差至所述从基站。According to a first aspect of the present invention, a time synchronization control method for a positioning system is provided, wherein a positioning system includes a plurality of base stations and a positioning server communicatively coupled to the plurality of base stations, and the plurality of the base stations are in communication with each other. One of the plurality of base stations is a primary base station, and the other base stations are slave base stations; the method includes: receiving a transmission time of the primary base station transmitting a time calibration message sent by the primary base station; and receiving the secondary base station sent by the base station Receiving a receiving time of the time calibration message; calculating a time offset of the slave base station relative to the primary base station according to a distance between the slave base station and the primary base station, the sending time, and the receiving time; And transmitting the time offset to the slave base station.
根据本发明的第二方面,提供一种定位系统的时间同步控制装置,包括第一处理器,所述第一处理器与多个基站分别通信连接,多个所述基站中的一个为主基站,其他基站为从基站;所述第一处理器包括一个或多个,单独地或共同地工作;所述第一处理器用于:接收主基站发送的所述主基站发送时间校准消息的发送时间;接收从基站发送的所述从基站接收到所述时间校准消息的接收时间;根据所述从基站与所述主基站之间的距离、所述发送时间和所述接收时间,计算所述从基站相对所述主基站的时间偏差;以及发送所述时间偏差至所述从基站。According to a second aspect of the present invention, a time synchronization control apparatus for a positioning system is provided, comprising: a first processor, wherein the first processor is in communication connection with a plurality of base stations, and one of the plurality of base stations is a primary base station The other base station is a secondary base station; the first processor includes one or more, working separately or in common; the first processor is configured to: receive a sending time of the primary base station sending a time calibration message sent by the primary base station Receiving a reception time of the time alignment message received by the slave base station sent from the base station; calculating the slave according to a distance between the slave base station and the master base station, the sending time, and the receiving time a time offset of the base station relative to the primary base station; and transmitting the time offset to the secondary base station.
根据本发明的第三方面,提供一种计算机可读存储介质,其上存储有计算机程序,该程序被第一处理器执行如下步骤:接收主基站发送的所述主基站发送时间校准消息的发送时间;接收从基站发送的所述从基站接收到所述时间校准消息的接收时间;根据所述从基站与所述主基站之间的距离、所述发送时间和所述接收时间,计算所述从基站相对所述主基站的时间偏差;以及发送所述时间偏差至所述从基站。According to a third aspect of the present invention, there is provided a computer readable storage medium having stored thereon a computer program, the program being executed by a first processor to: receive a transmission of a time synchronization message sent by a primary base station by a primary base station Receiving a receiving time of receiving the time calibration message from the base station sent by the base station; calculating the distance according to a distance between the slave base station and the primary base station, the sending time, and the receiving time a time offset from the base station relative to the primary base station; and transmitting the time offset to the secondary base station.
根据本发明的第四方面,提供一种定位系统的时间同步控制方法,其中定位系统包括多个基站和与多个所述基站均通信连接的定位服务器,多个所述基站之间相互通信连接,多个所述基站中的一个为主基站,其他基站为从基站;所述方法包括:接收主基站发送的时间校准消息;发送当前接收到所述时间校准消息的接收时间至定位服务器;接收所述定位服务器针对所述时间校准消息的接收时间返回的所述从基站相对所述主基站的时间偏差;根据所述时间偏差,对所述从基站的实时时间进行修正,以使所述从基站与所述主基站的时间同步。According to a fourth aspect of the present invention, a time synchronization control method for a positioning system is provided, wherein a positioning system includes a plurality of base stations and a positioning server communicatively coupled to the plurality of base stations, and the plurality of the base stations are in communication with each other. One of the plurality of base stations is a primary base station, and the other base stations are slave base stations; the method includes: receiving a time calibration message sent by the primary base station; transmitting a receiving time of the current time alignment message to the positioning server; receiving a time deviation of the slave base station relative to the master base station returned by the positioning server for the time of receiving the time calibration message; correcting the real time time of the slave base station according to the time offset to make the slave The base station is synchronized with the time of the primary base station.
根据本发明的第五方面,提供一种定位系统的时间同步控制装置,包括第二处理器,所述第二处理器与定位服务器通信连接,并与一主基站通信连接;所述第二处理器包括一个或多个,单独地或共同地工作;所述第二处理器用于:接收主基站发送的时间校准消息;发送当前接收到所述时间校准消息的接收时间至定位服务器;接收所述定位服务器针对所述时间校准消息的接收时间返回的所述第二处理器相对所述主基站的时间偏差;根据所述时间偏差,对所述第二处理器的实时时间进行修正,以使所述第二处理器与所述主基站的时间同步。According to a fifth aspect of the present invention, a time synchronization control apparatus for a positioning system is provided, comprising: a second processor, wherein the second processor is in communication connection with a positioning server and is in communication connection with a primary base station; The device includes one or more, working separately or in common; the second processor is configured to: receive a time calibration message sent by the primary base station; send a receiving time that the current time alignment message is currently received to the positioning server; a time deviation of the second processor relative to the primary base station returned by the positioning server for the time of receiving the time calibration message; correcting the real time of the second processor according to the time deviation, so as to The time synchronization of the second processor with the primary base station.
根据本发明的第六方面,提供一种计算机可读存储介质,其上存储有计算机程序,该程序被第二处理器执行如下步骤:接收主基站发送的时间校准消息;发送当前接收到所述时间校准消息的接收时间至定位服务器;接收所述定位服务器针对所述时间校准消息的接收时间返回的所述第二处理器相对所述主基站的时间偏差;根据所述时间偏差,对所述第二处理器的实时时间进行修正,以使所述第二处理器与所述主基站的时间同步。According to a sixth aspect of the present invention, there is provided a computer readable storage medium having stored thereon a computer program, the program being executed by a second processor to: receive a time calibration message sent by a primary base station; and transmit the current received Receiving a time calibration message to a positioning server; receiving a time offset of the second processor relative to the primary base station returned by the positioning server for the time of receiving the time calibration message; according to the time deviation, The real time of the second processor is modified to synchronize the time of the second processor with the primary base station.
根据本发明的第七方面,提供一种定位系统的时间同步控制方法,其中定位系统包括多个基站和与多个所述基站均通信连接的定位服务器,多个所述基站之间相互通信连接,多个所述基站中的一个为主基站,其他基站为从基站;所述方法包括:主基站发送时间校准消息至多个从基站,并发送当前时间校准消息的发送时间至定位服务器;多个所述从基站在接收到所述时间校准消息后,分别发送所述时间校准消息的接收时间至所述定位服务器;定位服务器根据各从基站与所述主基站之间的距离、所述主基站发送所述时间校准消息的发送时间和各基站接收到所述时间校准消息的接收时间,计算各从基站相对所述主基站的时间偏差;定位服务器发送所述时间偏差至对应的从基站;各从基站根据当前接收到的时间偏差对该从基站的实时时间进行修正,以使所述从基站与所述主基站时间同步。According to a seventh aspect of the present invention, a time synchronization control method for a positioning system is provided, wherein a positioning system includes a plurality of base stations and a positioning server communicably connected to the plurality of base stations, and the plurality of the base stations are in communication with each other. One of the plurality of base stations is a primary base station, and the other base stations are slave base stations; the method includes: the primary base station sends a time calibration message to the plurality of secondary base stations, and sends a sending time of the current time calibration message to the positioning server; After receiving the time calibration message, the slave base station separately sends the time of receiving the time calibration message to the positioning server; the positioning server according to the distance between each slave base station and the master base station, the primary base station Transmitting a transmission time of the time calibration message and receiving time of the time calibration message received by each base station, calculating a time deviation of each slave base station relative to the master base station; the positioning server transmitting the time offset to the corresponding slave base station; Correcting, by the base station, the real-time time of the slave base station according to the currently received time offset, so as to Synchronized with the main base station from the base station time.
根据本发明的第八方面,提供一种定位系统,包括多个基站和与多个所述基站均通信连接的定位服务器,多个所述基站之间相互通信连接,多个所述基站中的一个为主基站,其他基站为从基站,其中,主基站发送时间校准消息至多个从基站,并发送当前时间校准消息的发送时间至定位服务器;多个所述从基站在接收到所述时间校准消息后,分别发送所述时间校准消息的接收时间至所述定位服务器;定位服务器根据各从基站与所述主基站之间的距离、所述主基站发送所述时间校准消息的发送时间和各基站接收到所述时间校准消息的接收时间,计算各从基站相对所述主基站的时间偏差;定位服务器发送所述时间偏差至对应的从基站;各从基站根据当前接收到的时间偏差对该从基站的实时时间进行修正,以使所述从基站与所述主基站时间同步。According to an eighth aspect of the present invention, a positioning system includes a plurality of base stations and a positioning server communicatively coupled to a plurality of the base stations, wherein the plurality of base stations are in communication with each other, and among the plurality of base stations One of the primary base stations, the other base stations are slave base stations, wherein the primary base station sends time calibration messages to the plurality of secondary base stations, and sends the transmission time of the current time calibration message to the positioning server; the plurality of the secondary base stations receive the time calibration After the message, the receiving time of the time calibration message is separately sent to the positioning server; the positioning server sends the time of the time calibration message according to the distance between each slave base station and the primary base station, and each Receiving, by the base station, the time of receiving the time calibration message, calculating a time offset of each slave base station relative to the master base station; the positioning server sends the time offset to the corresponding slave base station; each slave base station according to the currently received time offset Correcting from the real-time time of the base station to time synchronize the slave base station with the master base station.
由以上本发明实施例提供的技术方案可见,本发明通过主基站发送时间校准消息,对各从基站与主基站之间的时间偏差进行矫正,最终使得定位系统中的各基站的时间同步,一方面能够确保对待定位的移动物体进行定位时的时间统一性。另一方面,在各基站时间同步后,待定位的移动物体只需发送一次消息即可实现定位,缩短了对待定位的移动物体进行定位的定位时间。As can be seen from the technical solutions provided by the foregoing embodiments of the present invention, the present invention sends a time calibration message by the primary base station to correct the time offset between each secondary base station and the primary base station, and finally synchronizes the time of each base station in the positioning system. Aspects ensure time uniformity when positioning a moving object to be positioned. On the other hand, after time synchronization of each base station, the moving object to be located only needs to send a message once to realize positioning, and shortens the positioning time of positioning the moving object to be positioned.
附图说明DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of 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. Other drawings may also be obtained from those of ordinary skill in the art in view of the drawings.
图1是本发明一实施例中的定位系统的结构框图;1 is a block diagram showing the structure of a positioning system in an embodiment of the present invention;
图2是应用本发明实施例的时间同步控制的应用场景图;2 is an application scenario diagram of time synchronization control to which an embodiment of the present invention is applied;
图3是本发明一实施例中的定位系统的工作流程图;3 is a flow chart showing the operation of the positioning system in an embodiment of the present invention;
图4是本发明一实施例中的定位系统的时间同步控制方法在定位服务器侧的工作流程图;4 is a flow chart showing the operation of the time synchronization control method of the positioning system on the positioning server side according to an embodiment of the present invention;
图5是本发明一实施例中的定位系统的时间同步控制方法在从基站侧的工作流程图;FIG. 5 is a flow chart showing the operation of the time synchronization control method of the positioning system in the slave base station side according to an embodiment of the present invention; FIG.
图6是本发明一实施例中的定位系统的时间同步控制装置在定位服务器侧的结构框图;6 is a structural block diagram of a time synchronization control device of a positioning system on a positioning server side according to an embodiment of the present invention;
图7是本发明一实施例中的定位系统的时间同步控制装置在从基站侧的结构框图。Fig. 7 is a block diagram showing the structure of a time synchronization control apparatus of a positioning system in a slave station side according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、 完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
下面结合附图,对本发明的定位系统和定位系统的时间同步控制方法、装置。进行详细说明。在不冲突的情况下,下述的实施例及实施方式中的特征可以相互组合。The time synchronization control method and apparatus of the positioning system and the positioning system of the present invention will be described below with reference to the accompanying drawings. Detailed instructions are given. The features of the embodiments and embodiments described below may be combined with each other without conflict.
参见图1,本发明实施例提供的定位系统。其中,所述定位系统可包括多个基站和与定位服务器。本实施例中,所述定位服务器与多个所述基站均通信连接,可选地,多个所述基站与所述定位服务器均基于有线通信方式通信连接,例如,采用CAN总线,也可采用其它有线通信连接方式。可选地,多个所述基站与所述定位服务器均基于无线通信连接方式通信连接,例如,采用wifi、蓝牙、zigbee或者其它无线通信连接方式。可选地,多个所述基站中的一部分与所述定位服务器基于有线通信方式通信连接,另一部分与所述定位服务器基于无线通信方式通信连接。优选地,多个所述基站与所述定位服务器均基于同一通信方式通信连接,例如,多个所述基站与所述定位服务器均采用wifi无线通信连接。Referring to FIG. 1, a positioning system according to an embodiment of the present invention is provided. The positioning system may include a plurality of base stations and a positioning server. In this embodiment, the positioning server is communicably connected to the plurality of base stations. Optionally, the plurality of the base stations and the positioning server are all connected according to a wired communication manner, for example, using a CAN bus, or Other wired communication connections. Optionally, a plurality of the base stations and the positioning server are both connected according to a wireless communication connection manner, for example, using wifi, Bluetooth, zigbee or other wireless communication connection manner. Optionally, a part of the plurality of base stations are communicably connected to the positioning server based on a wired communication manner, and another part is communicably connected to the positioning server based on a wireless communication manner. Preferably, a plurality of the base stations and the positioning server are both connected according to the same communication mode. For example, a plurality of the base stations and the positioning server are connected by using a wifi wireless communication.
进一步地,本实施例中,多个所述基站之间相互通信连接。可选地,多个所述基站之间均基于有线通信方式通信连接,例如,采用CAN总线,也可采用其它有线通信连接方式。可选地,多个所述基站之间均基于无线通信连接方式通信连接,例如,采用wifi、蓝牙、zigbee或者其它无线通信连接方式。可选地,多个所述基站之间中的一部分基站之间基于有线通信连接方式通信连接,另一部分基站之间基于无线通信连接方式通信连接。优选地,多个所述基站之间均采用同一通信方式通信连接,例如,多个所述基站之间均采用wifi无线通信连接。Further, in this embodiment, a plurality of the base stations are in communication connection with each other. Optionally, a plurality of the base stations are communicatively connected according to a wired communication manner, for example, using a CAN bus, and other wired communication connections may also be adopted. Optionally, a plurality of the base stations are connected according to a wireless communication connection manner, for example, using wifi, Bluetooth, zigbee or other wireless communication connection manner. Optionally, some of the plurality of base stations are in communication connection according to a wired communication connection manner, and another part of the base stations are communicatively connected according to a wireless communication connection manner. Preferably, a plurality of the base stations are connected by the same communication mode, for example, a plurality of the base stations are connected by a wifi wireless communication.
本实施例中,多个所述基站和所述定位服务器、多个所述基站之间均采用同一通信方式通信连接。In this embodiment, a plurality of the base stations, the positioning server, and the plurality of base stations are all connected by the same communication method.
本实施例的定位系统可应用于机器人比赛系统中,当然,也可应用于其他需要定位的场景中。本实施例以定位系统应用于机器人比赛系统为例进一步说明。The positioning system of this embodiment can be applied to a robot game system, and of course, can also be applied to other scenes that need to be positioned. This embodiment is further described by taking a positioning system applied to a robot game system as an example.
在定位系统搭建完成后,各基站需要固定在机器人比赛场地中的特定位置。本实施例中,参见图2,多个所述基站中的一个为主基站,其他基站为从基站。可根据各基站与定位服务器的通信连接顺序来设定主基站和从基站,例如,将第一个与定位服务器实现通信连接的基站设定为主基站,其他基站则作为从基站。当然,可在各基站与定位服务器均进行通信连接后,由用户指定其中一个基站作为主基站,其他基站则作为从基站。After the positioning system is built, each base station needs to be fixed at a specific location in the robot playing field. In this embodiment, referring to FIG. 2, one of the plurality of base stations is a primary base station, and the other base stations are slave base stations. The primary base station and the secondary base station can be set according to the communication connection sequence of each base station and the positioning server. For example, the first base station that implements the communication connection with the positioning server is set as the primary base station, and the other base stations are used as the secondary base stations. Of course, after each base station and the positioning server are in communication connection, the user designates one of the base stations as the primary base station, and the other base stations serve as the secondary base stations.
参见图3,本发明控制各基站之间实现时间同步的方法可包括如下步骤:Referring to FIG. 3, the method for controlling time synchronization between base stations according to the present invention may include the following steps:
步骤S301:主基站发送时间校准消息至多个从基站,并发送当前时间校准消息的发送时间至定位服务器;Step S301: The primary base station sends a time calibration message to the multiple secondary base stations, and sends the sending time of the current time calibration message to the positioning server.
本实施例中,所述发送时间是指所述主基站发送当前时间校准消息时所述主基站所对应的时刻。In this embodiment, the sending time refers to a time corresponding to the primary base station when the primary base station sends a current time calibration message.
在步骤S301中,可根据实际需求设定主基站发送时间校准消息的时机。优选地,所述主基站周期性发送所述时间校准消息,从而对定位系统中多个基站的时间不断修正,确保各基站的时间同步性。其中,所述主基站发送所述时间校准消息的周期可跟需要设定,例如,所述周期可选择为1分钟、2分钟等等。In step S301, the timing at which the primary base station transmits the time alignment message may be set according to actual requirements. Preferably, the primary base station periodically sends the time calibration message, so as to continuously correct the time of multiple base stations in the positioning system, and ensure time synchronization of each base station. The period in which the primary base station sends the time calibration message may be set as needed, for example, the period may be selected as 1 minute, 2 minutes, and the like.
步骤S302:多个所述从基站在接收到所述时间校准消息后,分别发送所述时间校准消息的接收时间至所述定位服务器;Step S302: After receiving the time calibration message, the plurality of slave base stations respectively send the time of receiving the time calibration message to the positioning server;
本实施例中,所述接收时间是指各从基站接收到时间校准消息时所述从基站所对应的时刻。In this embodiment, the receiving time refers to a time corresponding to the slave base station when each time base station receives the time calibration message.
步骤S303:定位服务器根据各从基站与所述主基站之间的距离、所述主基站发送所述时间校准消息的发送时间和各基站接收到所述时间校准消息的接收时间,计算各从基站相对所述主基站的时间偏差;Step S303: The positioning server calculates each slave base station according to the distance between each slave base station and the master base station, the sending time of the time base station to send the time calibration message, and the receiving time of each time base station receiving the time calibration message. Time deviation from the primary base station;
步骤S304:定位服务器发送所述时间偏差至对应的从基站;Step S304: The positioning server sends the time offset to the corresponding slave base station;
步骤S305:各从基站根据当前接收到的时间偏差对该从基站的实时时间进行修正,以使所述从基站与所述主基站时间同步。Step S305: Each slave base station corrects the real-time time of the slave base station according to the currently received time offset, so that the slave base station and the master base station are time-synchronized.
本实施例中,通过主基站发送时间校准消息,对各从基站与主基站之间的时间偏差进行矫正,最终使得定位系统中的各基站的时间同步,一方面能够确保对待定位的移动物体进行定位时的时间统一性。另一方面,在各基站时间同步后,待定位的移动物体只需发送一次消息即可实现定位,缩短了对待定位的移动物体进行定位的定位时间。In this embodiment, the time synchronization message is sent by the primary base station to correct the time offset between each of the secondary base stations and the primary base station, and finally, the time synchronization of each base station in the positioning system is performed, and on the one hand, the moving object to be located is ensured. Time uniformity when positioning. On the other hand, after time synchronization of each base station, the moving object to be located only needs to send a message once to realize positioning, and shortens the positioning time of positioning the moving object to be positioned.
参见图4,为本发明定位系统的时间同步控制方法的一个实施例流程图,该实施例从定位服务器进行描述。所述时间同步控制方法可包括:Referring to FIG. 4, it is a flowchart of an embodiment of a time synchronization control method of a positioning system according to the present invention. The embodiment is described from a positioning server. The time synchronization control method may include:
步骤S401:接收主基站发送的所述主基站发送时间校准消息的发送时间;Step S401: Receive a sending time of the primary base station sending a time calibration message sent by the primary base station;
在步骤S401之前,所述方法还可包括:接收用户指令,所述用户指令携带有主基站标识;根据所述主基站标识,发送主基站设定消息至对应的基站,以将当前接收到所述主基站设定消息的基站设定为主基站。本实施例通过用户指定主基站和从基站,灵活性强。Before the step S401, the method may further include: receiving a user instruction, where the user instruction carries a primary base station identifier; and according to the primary base station identifier, sending a primary base station setting message to the corresponding base station, to receive the current received The base station in which the primary base station setting message is described is set as the primary base station. In this embodiment, the user specifies the primary base station and the secondary base station, and the flexibility is strong.
该步骤中,主基站周期性发送时间校准消息至各从基站的,具体可参见上述实施例中步骤S301的描述,此处不再赘述。In this step, the primary base station periodically sends a time alignment message to each of the secondary base stations. For details, refer to the description of step S301 in the foregoing embodiment, and details are not described herein again.
步骤S402:接收从基站发送的所述从基站接收到所述时间校准消息的接收时间;Step S402: Receive a receiving time of receiving the time calibration message from the base station sent by the base station;
主基站在发送时间校准消息后,各从基站均会接收到主基站发送的时间校准消息,并将各自接收到时间校准时间的时间发送至定位服务器。After the primary base station sends the time calibration message, each of the secondary base stations receives the time calibration message sent by the primary base station, and sends the time when each time calibration time is received to the positioning server.
步骤S403:根据所述从基站与所述主基站之间的距离、所述发送时间和所述接收时间,计算所述从基站相对所述主基站的时间偏差;Step S403: Calculate a time offset of the slave base station relative to the primary base station according to a distance between the slave base station and the primary base station, the sending time, and the receiving time.
步骤S403具体可包括:根据所述从基站与所述主基站之间的距离,计算所述从基站与所述主基站之间的信号传输时间;根据所述信号传输时间、所述发送时间和所述接收时间,计算所述从基站相对所述主基站的时间偏差。其中,从基站与主基站之间的信号传输时间是根据该从基站与主基站之间的距离以及当前信号传输速度来计算的。可选地,当前从基站与主基站之间的时间偏差的计算公式如下:时间偏差=(接收时间-发送时间)-当前从基站与主基站之间的距离/当前信号传输速度。当然,当前从基站与主基站之间的时间偏差的计算方式并不限于上述计算方式,例如,可根据经验值对时间偏差进行修正。The step S403 may specifically include: calculating, according to a distance between the slave base station and the primary base station, a signal transmission time between the slave base station and the master base station; according to the signal transmission time, the sending time, and The receiving time calculates a time offset of the slave base station relative to the primary base station. The signal transmission time between the base station and the primary base station is calculated according to the distance between the secondary base station and the primary base station and the current signal transmission speed. Optionally, the time deviation of the current slave base station and the primary base station is calculated as follows: time deviation = (reception time - transmission time) - distance between the current slave base station and the primary base station / current signal transmission speed. Of course, the calculation method of the current time deviation between the base station and the primary base station is not limited to the above calculation manner. For example, the time deviation can be corrected according to the empirical value.
所述从基站与所述主基站之间的距离的获取方式可包括以下两种:The manner of obtaining the distance between the slave base station and the primary base station may include the following two types:
第一种,所述从基站与所述主基站之间的距离预先设定。在定位系统搭建过程中,每个基站的放置位置都是固定的,可在定位服务器上预先保存各基站之间的距离。First, the distance between the slave base station and the master base station is preset. During the construction of the positioning system, the placement position of each base station is fixed, and the distance between the base stations can be pre-stored on the positioning server.
第二种,定位服务器根据所述发送时间和所述接收时间计算获得所述从基站与所述主基站之间的距离。具体地,在获得主基站发送当前时间校准消息的发送时间和当前从基站接收到所述当前时间校准消息的接收时间后,当前从基站和主基站之间的距离的计算公式如下:当前从基站和主基站之间的距离=(接收时间-发送时间)×当前信号传输速度。当然,当前从基站和主基站之间的距离的计算方式并不限于上述计算方式,例如,可根据经验值对当前从基站和主基站之间的距离进行修正。Second, the positioning server calculates the distance between the slave base station and the primary base station according to the sending time and the receiving time. Specifically, after obtaining the sending time of the current base station transmitting the current time calibration message and the receiving time of receiving the current time calibration message from the base station, the calculation formula of the distance between the current slave base station and the master base station is as follows: the current slave base station Distance to the primary base station = (reception time - transmission time) × current signal transmission speed. Of course, the calculation method of the current distance between the base station and the primary base station is not limited to the above calculation manner. For example, the distance between the current base station and the primary base station can be corrected according to the empirical value.
步骤S404:发送所述时间偏差至所述从基站。Step S404: Send the time offset to the slave base station.
本发明通过步骤S404触发所述从基站根据所述时间偏差对所述从基站的实时时间进行修正,以使所述从基站与所述主基站时间同步。一方面能够确保对待定位的移动物体进行定位时的时间统一性。另一方面,在各基站时间同步后,待定位的移动物体(可通过设于待定位移动物体上的标签)只需发送一次消息即可实现定位,缩短了对待定位的移动物体进行定位的定位时间。The method triggers the slave base station to modify the real-time time of the slave base station according to the time offset in step S404, so that the slave base station and the master base station are time-synchronized. On the one hand, it ensures the time uniformity of the positioning of the moving object to be positioned. On the other hand, after the time synchronization of each base station, the moving object to be located (which can be set on the moving object to be positioned) can be positioned only by sending a message once, and the positioning of the moving object to be positioned is shortened. time.
进一步地,定位服务器在发送所述时间偏差至所有从基站之后,所述方法还可包括:接收到待定位移动物体(可通过设于待定位移动物体上的标签)与至少三个基站基于同一定位消息的信号传输时间,其中所述定位消息由所述移动物体发送至至少三个所述基站;根据所述移动物体与至少三个基站基于同一定位消息的信号传输时间,确定所述移动物体的位置信息(即坐标),实现对移动物体的定位。具体地,可根据移动物体与至少三个基站中每一基站的基于同一定位消息的信号传输时间和当前信号传输速度,计算移动物体与至少三个基站中每一基站之间的距离,根据移动物体与至少 三个基站中每一基站之间的距离计算所述移动物体的位置信息(x、y、z)。定位系统中各基站实现时间同步后,提高了移动物体与各基站之间的测距效率,从而缩短了定位时间。Further, after the location server sends the time offset to all the slave base stations, the method may further include: receiving the to-be-targeted mobile object (which may be located on the mobile object to be located) based on the same identity as the at least three base stations a signal transmission time of the positioning message, wherein the positioning message is sent by the mobile object to at least three of the base stations; determining the moving object according to a signal transmission time of the mobile object and the at least three base stations based on the same positioning message Position information (ie coordinates) to achieve positioning of moving objects. Specifically, the distance between the mobile object and each of the at least three base stations may be calculated according to the signal transmission time and the current signal transmission speed of the same positioning message of the mobile object and each of the at least three base stations, according to the mobile The position information (x, y, z) of the moving object is calculated from the distance between the object and each of the at least three base stations. After the time synchronization is implemented in each base station in the positioning system, the ranging efficiency between the moving object and each base station is improved, thereby shortening the positioning time.
参见图5,为本发明定位系统的时间同步控制方法的另一个实施例流程图,该实施例从从基站进行描述。所述时间同步控制方法可包括:Referring to FIG. 5, it is a flowchart of another embodiment of a time synchronization control method of a positioning system according to the present invention, which is described from a base station. The time synchronization control method may include:
步骤S501:接收主基站发送的时间校准消息;Step S501: Receive a time calibration message sent by the primary base station.
该步骤中,主基站周期性发送时间校准消息至各从基站的,具体可参见上述实施例中的步骤S301的描述,此处不再赘述。In this step, the primary base station periodically sends a time alignment message to each of the secondary base stations. For details, refer to the description of step S301 in the foregoing embodiment, and details are not described herein again.
步骤S502:发送当前接收到所述时间校准消息的接收时间至定位服务器;Step S502: Sending the receiving time of the time calibration message currently received to the positioning server;
主基站在发送时间校准消息后,各从基站均会接收到主基站发送的时间校准消息,并将各自接收到时间校准时间的时间发送至定位服务器。After the primary base station sends the time calibration message, each of the secondary base stations receives the time calibration message sent by the primary base station, and sends the time when each time calibration time is received to the positioning server.
步骤S503:接收所述定位服务器针对所述时间校准消息的接收时间返回的所述从基站相对所述主基站的时间偏差;Step S503: Receive a time offset of the slave base station relative to the primary base station returned by the positioning server for the time of receiving the time calibration message.
其中,定位服务器计算时间偏差的过程可参见上述实施例中的步骤S403的描述,此处不再赘述。For the process of calculating the time deviation by the positioning server, refer to the description of step S403 in the foregoing embodiment, and details are not described herein again.
步骤S504:根据所述时间偏差,对所述从基站的实时时间进行修正,以使所述从基站与所述主基站的时间同步。Step S504: Correct the real-time time of the slave base station according to the time offset to synchronize the time of the slave base station with the master base station.
在执行完步骤S504后,当前从基站与主基站实现时间同步,一方面能够确保对待定位的移动物体进行定位时的时间统一性。另一方面,在各基站时间同步后,待定位的移动物体只需发送一次消息即可实现定位,缩短了对待定位的移动物体进行定位的定位时间。After the step S504 is performed, the time synchronization between the current base station and the primary base station is implemented, and on the one hand, the time uniformity when positioning the moving object to be located is ensured. On the other hand, after time synchronization of each base station, the moving object to be located only needs to send a message once to realize positioning, and shortens the positioning time of positioning the moving object to be positioned.
步骤S504具体包括:基于所述从基站的实时时间与所述时间偏差的差值,获得所述从基站的修正时间;将所述从基站的实时时间修正为所述修正时间。例如,当前从基站接收到的时间偏差指示当前从基站的实时时间相比主基站的时间快1s,当前从基站会将当前从基站的实时时间减去1s,获得修正时间,并将修正时间设定为当前从基站的实时时间。当前从基站接收到的时间偏差指示当前从基站的实时时间相比主基站的时间慢1s,当前从基站会将当前从基站的实时时间加上1s,获得修正时间,并将修正时间设定为当前从基站的实时时间。Step S504 specifically includes: obtaining a correction time of the slave base station based on a difference between the real-time time of the slave base station and the time offset; and correcting the real-time time of the slave base station to the correction time. For example, the current time deviation received from the base station indicates that the real time from the base station is 1 s faster than the time of the primary base station, and the current slave base station will subtract the current real time from the base station by 1 s to obtain the correction time, and set the correction time. Determined as the current real time from the base station. The current time deviation received from the base station indicates that the real time from the base station is 1 s slower than the time of the primary base station, and the current slave base station adds the current real time from the base station to the real time for 1 s to obtain the correction time, and sets the correction time to Current real time from the base station.
在一具体实现方式中,定位系统应用于机器人比赛系统中,在方形的比赛场地的四个边角分别设置基站,标记为基站0、基站1、基站2、基站3和基站4。其中,四个基站之间采用wifi通信连接,并且四个基站与定位服务器之间也采用wifi通信连接,至此,定位系统搭建完毕。基站0与基站1之间的距离为S 01,基站0与基站2之间的距离为S 02,基站0与基站3之间的距离为S 03,基站0与基站3之间的距离为S 03, 用户可将S 01、S 02、S 03预先存储在定位服务器上。进一步地,用户可通过定位服务器设定位于左下角的基站0作为主基站,其他基站(包括基站1、基站2和基站3)作为从基站。主基站每隔1分钟发送一次时间校准消息至各从基站,并且主基站将其发送当前时间校准消息的时间t 0发送至定位服务器,基站1获取到其接收到当前时间校准消息的时间为t 1,基站2获取到其接收到当前时间校准消息的时间为t 2,基站3获取到其接收到当前时间校准消息的时间为t 3,定位服务器在获取到t 0、t 1、t 2、t 3后,首先,根据S 01、S 02、S 03以及当前信号传输速度v计算出理想状态下,基站1与基站0、基站2与基站0以及基站3与基站0之间的信号传输时间分别为S 01/v、S 02/v、S 03/v。但实际传输过程中,基站1与基站0、基站2与基站0以及基站3与基站0之间的信号传输时间分别为(t 1-t 0)、(t 2-t 0)、(t 3-t 0)。接着,根据(t 1-t 0)和S 01/v、(t 2-t 0)和S 02/v、(t 3-t 0)和S 03/v可分别计算出基站1相对基站0、基站2相对基站0以及基站3相对基站0的时间偏差(t 1-t 0)-S 01/v、(t 2-t 0)-S 02/v、(t 3-t 0)-S 03/v,基站1根据(t 1-t 0)-S 01/v对其实时时间进行修正,基站2根据(t 2-t 0)-S 02/v对其实时时间进行修正,基站3根据(t 3-t 0)-S 03/v对其实时时间进行修正,从而使得基站1、基站2以及基站3的时间与基站0同步。 In a specific implementation, the positioning system is applied to the robot game system, and base stations are respectively disposed at four corners of the square playing field, and are marked as base station 0, base station 1, base station 2, base station 3, and base station 4. Among them, the wifi communication connection is adopted between the four base stations, and the wifi communication connection is also adopted between the four base stations and the positioning server. At this point, the positioning system is set up. The distance between the base station 0 and the base station 1 is S 01 , the distance between the base station 0 and the base station 2 is S 02 , the distance between the base station 0 and the base station 3 is S 03 , and the distance between the base station 0 and the base station 3 is S. 03 , the user can pre-store S 01 , S 02 , S 03 on the positioning server. Further, the user can set the base station 0 located in the lower left corner as the primary base station by the positioning server, and the other base stations (including the base station 1, the base station 2, and the base station 3) as the secondary base station. The primary base station sends a time alignment message to each of the secondary base stations every one minute, and the primary base station sends the time t 0 at which the current time alignment message is sent to the positioning server, and the base station 1 acquires the time when it receives the current time calibration message as t. 1 . The base station 2 obtains the time when it receives the current time calibration message is t 2 , and the time when the base station 3 acquires the current time calibration message is t 3 , and the positioning server obtains t 0 , t 1 , t 2 , After t 3 , first, according to S 01 , S 02 , S 03 and the current signal transmission speed v, the signal transmission time between the base station 1 and the base station 0, the base station 2 and the base station 0, and the base station 3 and the base station 0 in an ideal state is calculated. They are S 01 /v, S 02 /v, S 03 /v. However, during actual transmission, the signal transmission times between the base station 1 and the base station 0, the base station 2 and the base station 0, and the base station 3 and the base station 0 are (t 1 - t 0 ), (t 2 - t 0 ), (t 3 , respectively). -t 0 ). Then, according to (t 1 -t 0 ) and S 01 /v, (t 2 -t 0 ) and S 02 /v, (t 3 -t 0 ) and S 03 /v, the base station 1 can be respectively calculated relative to the base station 0. Time offset (t 1 -t 0 )-S 01 /v, (t 2 -t 0 )-S 02 /v, (t 3 -t 0 )-S of base station 2 relative to base station 0 and base station 3 relative to base station 0 03 / v, the base station 1 corrects its real time according to (t 1 - t 0 ) - S 01 /v, and the base station 2 corrects its real time according to (t 2 - t 0 ) - S 02 / v, the base station 3 The real-time time is corrected according to (t 3 - t 0 ) - S 03 /v, so that the time of the base station 1, the base station 2, and the base station 3 is synchronized with the base station 0.
在其他实施例中,也可采用硬件方式实现定位系统中各基站之间的时间同步,例如,采用同一时钟发生器,通过等长的线缆连接至所有基站,从而做到各基站之间的时间同步。但这种实现方式维护较为麻烦,成本高。In other embodiments, the time synchronization between the base stations in the positioning system may also be implemented in a hardware manner, for example, using the same clock generator, connecting to all base stations through equal length cables, thereby achieving Time synchronization. However, this implementation is more cumbersome to maintain and costly.
与前述定位系统的时间同步控制方法相对应,本发明还提供了定位系统的时间同步控制装置的实施例。Corresponding to the time synchronization control method of the aforementioned positioning system, the present invention also provides an embodiment of a time synchronization control device of the positioning system.
本发明定位系统的时间同步控制装置和分别应用在定位系统服务器和从基站上。装置实施例可以通过软件实现,也可以通过硬件或者软硬件结构的方式实现,以软件实现为例,作为一个逻辑意义上的装置,是通过其所在设备的处理器将非易失性存储器中对应的计算机程序指令读取到内存中运行形成的。从硬件层面而言,所述装置所在设备除了处理器、网络接口、内存以及非易失性存储器之外,实施例中装置所在的设备通常还可包括其他硬件,如负责处理信号的转发芯片等等;从硬件结构上来讲该设备还可能是分布式的设备,可能包括多个接口卡,以便在硬件层面进行信号处理的扩展。The time synchronization control device of the positioning system of the present invention is applied to the positioning system server and the slave base station, respectively. The device embodiment may be implemented by software, or may be implemented by means of hardware or software and hardware. Taking software implementation as an example, as a logical device, the processor in the device corresponds to the non-volatile memory. The computer program instructions are read into memory to form a run. From the hardware level, the device where the device is located, in addition to the processor, the network interface, the memory, and the non-volatile memory, the device in which the device is located in the embodiment may also include other hardware, such as a forwarding chip responsible for processing signals. Etc.; The device may also be a distributed device in terms of hardware structure, and may include multiple interface cards for signal processing extension at the hardware level.
参见图6,为本发明定位系统的时间同步控制装置的一个实施例框图,所述装置应用在定位服务器上,所述装置可包括第一处理器。所述第一处理器与多个基站分别通信连接。其中,多个所述基站中的一个为主基站,其他基站为从基站。Referring to FIG. 6, which is a block diagram of an embodiment of a time synchronization control apparatus for a positioning system according to the present invention, the apparatus is applied to a positioning server, and the apparatus may include a first processor. The first processor is in communication connection with a plurality of base stations. One of the plurality of base stations is a primary base station, and the other base stations are secondary base stations.
所述第一处理器可以是中央处理器(central processing unit,CPU)。所述第一处理器还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic  device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complex programmable logic device,CPLD),现场可编程逻辑门阵列(field-programmable gate array,FPGA),通用阵列逻辑(generic array logic,GAL)或其任意组合。The first processor may be a central processing unit (CPU). The first processor may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a general array logic (GAL), or any combination thereof.
所述第一处理器包括一个或多个,单独地或共同地工作。所述第一处理器用于接收主基站发送的所述主基站发送时间校准消息的发送时间;并接收从基站发送的所述从基站接收到所述时间校准消息的接收时间;根据所述从基站与所述主基站之间的距离、所述发送时间和所述接收时间,计算所述从基站相对所述主基站的时间偏差;以及发送所述时间偏差至所述从基站。The first processor includes one or more, working individually or collectively. The first processor is configured to receive a sending time of the primary base station sending a time calibration message sent by the primary base station, and receive a receiving time of the time calibration message received by the secondary base station sent by the base station; Calculating a time offset of the slave base station with respect to the master base station, and transmitting the time offset to the slave base station, a distance from the primary base station, the transmission time, and the receiving time.
进一步地,所述定位系统的时间同步控制装置还可包括第一存储装置。所述第一存储装置可以包括易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM);第一存储装置也可以包括非易失性存储器(non-volatile memory),例如快闪存储器(flash memory),硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD);第一存储装置还可以包括上述种类的存储器的组合。可选地,所述第一存储装置用于存储程序指令。所述第一处理器可以调用所述程序指令,实现如上述实施例应用在定位服务器上的定位系统的时间同步控制方法。Further, the time synchronization control device of the positioning system may further include a first storage device. The first storage device may include a volatile memory, such as a random-access memory (RAM); the first storage device may also include a non-volatile memory. For example, a flash memory, a hard disk drive (HDD), or a solid-state drive (SSD); the first storage device may further include a combination of the above types of memories. Optionally, the first storage device is configured to store program instructions. The first processor may invoke the program instructions to implement a time synchronization control method of the positioning system applied to the positioning server as in the above embodiment.
本发明实施例提供的定位系统的时间同步控制装置的具体原理和实现方式均与图4所示实施例类似,此处不再赘述。The specific principles and implementations of the time synchronization control device of the positioning system provided by the embodiment of the present invention are similar to the embodiment shown in FIG. 4, and details are not described herein again.
参见图7,为本发明定位系统的时间同步控制装置的一个实施例框图,所述装置应用在从基站上,所述装置可包括第二处理器。其中,所述第二处理器与定位服务器通信连接,并与一主基站通信连接。Referring to FIG. 7, a block diagram of an embodiment of a time synchronization control apparatus of a positioning system according to the present invention is applied to a slave base station, and the apparatus may include a second processor. The second processor is in communication with the positioning server and is in communication with a primary base station.
所述第二处理器可以是中央处理器(central processing unit,CPU)。所述第二处理器还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complex programmable logic device,CPLD),现场可编程逻辑门阵列(field-programmable gate array,FPGA),通用阵列逻辑(generic array logic,GAL)或其任意组合。The second processor may be a central processing unit (CPU). The second processor may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a general array logic (GAL), or any combination thereof.
所述第二处理器包括一个或多个,单独地或共同地工作。所述第二处理器用于接收主基站发送的时间校准消息;发送当前接收到所述时间校准消息的接收时间至定位服务器;接收所述定位服务器针对所述时间校准消息的接收时间返回的所述第二处理器相对所述主基站的时间偏差;根据所述时间偏差,对所述第二处理器的实时时间进行修正,以使所述第二处理器与所述主基站的时间同步。The second processor includes one or more, working individually or collectively. The second processor is configured to receive a time calibration message sent by the primary base station, send a receiving time that the current time alignment message is currently received to the positioning server, and receive the return that the positioning server returns for the receiving time of the time calibration message. a time offset of the second processor relative to the primary base station; correcting the real-time time of the second processor according to the time offset to synchronize the time of the second processor with the primary base station.
进一步地,所述定位系统的时间同步控制装置还可包括第二存储装置。所述第二存储装置可以包括易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM);第二存储装置也可以包括非易失性存储器 (non-volatile memory),例如快闪存储器(flash memory),硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD);第二存储装置还可以包括上述种类的存储器的组合。可选地,所述第二存储装置用于存储程序指令。所述第二处理器可以调用所述程序指令,实现如上述实施例应用在从基站上的定位系统的时间同步控制方法。Further, the time synchronization control device of the positioning system may further include a second storage device. The second storage device may include a volatile memory, such as a random-access memory (RAM); the second storage device may also include a non-volatile memory. For example, a flash memory, a hard disk drive (HDD), or a solid-state drive (SSD); the second storage device may further include a combination of the above types of memories. Optionally, the second storage device is configured to store program instructions. The second processor may invoke the program instructions to implement a time synchronization control method applied to the positioning system on the slave base station as in the above embodiment.
本发明实施例提供的定位系统的时间同步控制装置的具体原理和实现方式均与图5所示实施例类似,此处不再赘述。The specific principles and implementation manners of the time synchronization control device of the positioning system provided by the embodiment of the present invention are similar to the embodiment shown in FIG. 5, and details are not described herein again.
本发明实施例还提供一种计算机可读存储介质,其上存储有计算机程序,该程序被第一处理器执行图4所示的定位系统的时间同步控制方法的步骤。具体原理和实现方式均与图4所示实施例类似,此处不再赘述。The embodiment of the present invention further provides a computer readable storage medium having stored thereon a computer program, the program being executed by the first processor to perform the step of the time synchronization control method of the positioning system shown in FIG. The specific principles and implementation manners are similar to the embodiment shown in FIG. 4, and details are not described herein again.
该程序被第二处理器执行图5所示的定位系统的时间同步控制方法的步骤。具体原理和实现方式均与图5所示实施例类似,此处不再赘述。The program is executed by the second processor as a step of the time synchronization control method of the positioning system shown in FIG. The specific principles and implementation manners are similar to the embodiment shown in FIG. 5, and details are not described herein again.
对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。For the device embodiment, since it basically corresponds to the method embodiment, reference may be made to the partial description of the method embodiment. The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without any creative effort.
“具体示例”、或“一些示例”等的描述意指结合所述实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。The description of the "specific examples", or "some examples" and the like are intended to be included in the particular features, structures, materials or features described in connection with the embodiments or examples. In the present specification, the schematic representation of the above terms does not necessarily mean the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in a suitable manner in any one or more embodiments or examples.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本发明的优选实施例的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本发明的实施例所属技术领域的技术人员所理解。Any process or method description in the flowcharts or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a particular logical function or process. And the scope of the preferred embodiments of the present invention includes additional implementations in which the functions may be performed in a substantially simultaneous manner or in the reverse order, depending on the order in which they are illustrated. It will be understood by those skilled in the art to which the embodiments of the present invention pertain.
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表) 包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。The logic and/or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable instructions for implementing logical functions, and may be embodied in any computer readable medium, Used in conjunction with, or in conjunction with, an instruction execution system, apparatus, or device (eg, a computer-based system, a system including a processor, or other system that can fetch instructions and execute instructions from an instruction execution system, apparatus, or device) Or use with equipment. For the purposes of this specification, a "computer-readable medium" can be any apparatus that can contain, store, communicate, propagate, or transport a program for use in an instruction execution system, apparatus, or device, or in conjunction with the instruction execution system, apparatus, or device. More specific examples (non-exhaustive list) of computer readable media include the following: electrical connections (electronic devices) having one or more wires, portable computer disk cartridges (magnetic devices), random access memory (RAM), Read only memory (ROM), erasable editable read only memory (EPROM or flash memory), fiber optic devices, and portable compact disk read only memory (CDROM). In addition, the computer readable medium may even be a paper or other suitable medium on which the program can be printed, as it may be optically scanned, for example by paper or other medium, followed by editing, interpretation or, if appropriate, other suitable The method is processed to obtain the program electronically and then stored in computer memory.
应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施例中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施例中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that portions of the invention may be implemented in hardware, software, firmware or a combination thereof. In the above embodiments, multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented with any one or combination of the following techniques well known in the art: having logic gates for implementing logic functions on data signals. Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
本技术领域的普通技术人员可以理解实现上述实施方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。A person skilled in the art can understand that all or part of the steps carried in implementing the above implementation method can be completed by a program to instruct related hardware, and the program can be stored in a computer readable storage medium, and the program is executed. Including one or a combination of the steps of the method embodiments.
此外,在本发明各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. The integrated modules, if implemented in the form of software functional modules and sold or used as stand-alone products, may also be stored in a computer readable storage medium.
上述提到的存储介质可以是只读存储器,磁盘或光盘等。尽管上面已经示出和描述了本发明的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本发明的限制,本领域的普通技术人员在本发明的范围内可以对上述实施例进行变化、修改、替换和变型。The above mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like. Although the embodiments of the present invention have been shown and described, it is understood that the above-described embodiments are illustrative and are not to be construed as limiting the scope of the invention. The embodiments are subject to variations, modifications, substitutions and variations.

Claims (46)

  1. 一种定位系统的时间同步控制方法,其中定位系统包括多个基站和与多个所述基站均通信连接的定位服务器,多个所述基站之间相互通信连接,多个所述基站中的一个为主基站,其他基站为从基站;其特征在于,所述方法包括:A time synchronization control method for a positioning system, wherein the positioning system comprises a plurality of base stations and a positioning server communicably connected to the plurality of base stations, wherein the plurality of base stations are in communication connection with each other, and one of the plurality of base stations The primary base station, the other base station is a secondary base station; and the method includes:
    接收主基站发送的所述主基站发送时间校准消息的发送时间;Receiving, by the primary base station, a sending time of the time synchronization message sent by the primary base station;
    接收从基站发送的所述从基站接收到所述时间校准消息的接收时间;Receiving, by the base station, the receiving time of receiving the time calibration message from the base station;
    根据所述从基站与所述主基站之间的距离、所述发送时间和所述接收时间,计算所述从基站相对所述主基站的时间偏差;以及Calculating a time offset of the slave base station relative to the master base station according to a distance between the slave base station and the primary base station, the sending time, and the receiving time;
    发送所述时间偏差至所述从基站。Transmitting the time offset to the slave base station.
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述从基站与所述主基站之间的距离、所述发送时间和所述接收时间,计算所述从基站相对所述主基站的时间偏差,包括:The method according to claim 1, wherein the calculating, according to the distance between the slave base station and the primary base station, the sending time, and the receiving time, the slave base station is opposite to the master base station Time deviations, including:
    根据所述从基站与所述主基站之间的距离,计算所述从基站与所述主基站之间的信号传输时间;Calculating a signal transmission time between the slave base station and the master base station according to a distance between the slave base station and the master base station;
    根据所述信号传输时间、所述发送时间和所述接收时间,计算所述从基站相对所述主基站的时间偏差。Calculating a time offset of the slave base station relative to the master base station according to the signal transmission time, the sending time, and the receiving time.
  3. 根据权利要求1或2所述的方法,其特征在于,所述从基站与所述主基站之间的距离预先设定;The method according to claim 1 or 2, wherein the distance between the slave base station and the master base station is preset;
    或者,所述从基站与所述主基站之间的距离根据所述发送时间和所述接收时间计算获得。Alternatively, the distance between the slave base station and the primary base station is calculated according to the sending time and the receiving time.
  4. 根据权利要求1所述的方法,其特征在于,所述主基站周期性发送所述时间校准消息。The method of claim 1 wherein said primary base station periodically transmits said time alignment message.
  5. 根据权利要求1所述的方法,其特征在于,多个所述基站与所述定位服务器基于有线通信方式通信连接,或者,多个所述基站与所述定位服务器基于无线通信连接方式通信连接。The method according to claim 1, wherein a plurality of the base stations are communicably connected to the positioning server based on a wired communication manner, or a plurality of the base stations are communicably connected to the positioning server based on a wireless communication connection manner.
  6. 根据权利要求1所述的方法,其特征在于,多个所述基站之间基于有线通信方式通信连接,或者,多个所述基站之间基于无线通信连接方式通信连接。The method according to claim 1, wherein a plurality of said base stations are communicably connected based on a wired communication method, or a plurality of said base stations are communicably connected based on a wireless communication connection.
  7. 根据权利要求1所述的方法,其特征在于,所述接收主基站发送的所述主基站发送时间校准消息的发送时间之前,还包括:The method according to claim 1, wherein the receiving, by the primary base station, before the sending time of the time synchronization message sent by the primary base station, further includes:
    接收用户指令,所述用户指令携带有主基站标识;Receiving a user instruction, where the user instruction carries a primary base station identifier;
    根据所述主基站标识,发送主基站设定消息至对应的基站,以将当前接收到所述主基站设定消息的基站设定为主基站。And transmitting, according to the primary base station identifier, a primary base station setup message to the corresponding base station, to set the base station that currently receives the primary base station setup message as the primary base station.
  8. 根据权利要求1所述的方法,其特征在于,发送所述时间偏差至所有从基站之后,还包括:The method according to claim 1, wherein after transmitting the time offset to all slave base stations, the method further comprises:
    接收到待定位移动物体与至少三个基站基于同一定位消息的信号传输时间,其中所述定位消息由所述移动物体发送至至少三个所述基站;Receiving a signal transmission time of the mobile object to be located and the at least three base stations based on the same positioning message, wherein the positioning message is sent by the mobile object to at least three of the base stations;
    根据所述移动物体与至少三个基站基于同一定位消息的信号传输时间,确定所述移动物体的位置信息。And determining location information of the mobile object according to a signal transmission time of the mobile object and the at least three base stations based on the same positioning message.
  9. 一种定位系统的时间同步控制装置,其特征在于,包括第一处理器,所述第一处理器与多个基站分别通信连接,多个所述基站中的一个为主基站,其他基站为从基站;A time synchronization control device for a positioning system, comprising: a first processor, wherein the first processor is in communication connection with a plurality of base stations, one of the plurality of base stations is a primary base station, and the other base stations are slaves Base station
    所述第一处理器包括一个或多个,单独地或共同地工作;所述第一处理器用于:The first processor includes one or more, operating separately or collectively; the first processor is configured to:
    接收主基站发送的所述主基站发送时间校准消息的发送时间;Receiving, by the primary base station, a sending time of the time synchronization message sent by the primary base station;
    接收从基站发送的所述从基站接收到所述时间校准消息的接收时间;Receiving, by the base station, the receiving time of receiving the time calibration message from the base station;
    根据所述从基站与所述主基站之间的距离、所述发送时间和所述接收时间,计算所述从基站相对所述主基站的时间偏差;以及Calculating a time offset of the slave base station relative to the master base station according to a distance between the slave base station and the primary base station, the sending time, and the receiving time;
    发送所述时间偏差至所述从基站。Transmitting the time offset to the slave base station.
  10. 根据权利要求9所述的装置,其特征在于,所述第一处理器用于:The apparatus according to claim 9, wherein said first processor is configured to:
    根据所述从基站与所述主基站之间的距离,计算所述从基站与所述主基站之间的信号传输时间;Calculating a signal transmission time between the slave base station and the master base station according to a distance between the slave base station and the master base station;
    根据所述信号传输时间、所述发送时间和所述接收时间,计算所述从基站相对所述主基站的时间偏差。Calculating a time offset of the slave base station relative to the master base station according to the signal transmission time, the sending time, and the receiving time.
  11. 根据权利要求9或10所述的装置,其特征在于,所述从基站与所述主基站之间的距离预先设定;The apparatus according to claim 9 or 10, wherein a distance between the slave base station and the master base station is preset;
    或者,所述从基站与所述主基站之间的距离由所述第一处理器根据所述发送时间和所述接收时间计算获得。Alternatively, the distance between the slave base station and the primary base station is calculated by the first processor according to the sending time and the receiving time.
  12. 根据权利要求9所述的装置,其特征在于,所述主基站周期性发送所述时间校准消息。The apparatus according to claim 9, wherein said primary base station periodically transmits said time alignment message.
  13. 根据权利要求9所述的装置,其特征在于,多个所述基站与所述定位服务器基于有线通信方式通信连接,或者,多个所述基站与所述定位服务器基于无线通信连接方式通信连接。The apparatus according to claim 9, wherein a plurality of said base stations are communicably connected to said location server based on a wired communication mode, or a plurality of said base stations are communicably connected to said location server based on a wireless communication connection.
  14. 根据权利要求9所述的装置,其特征在于,多个所述基站之间基于有线通信方式通信连接,或者,多个所述基站之间基于无线通信连接方式通信连接。The apparatus according to claim 9, wherein a plurality of said base stations are communicably connected by means of a wired communication method, or a plurality of said base stations are communicably connected by a wireless communication connection.
  15. 根据权利要求9所述的装置,其特征在于,所述第一处理器在接收主基站发送的所述主基站发送时间校准消息的发送时间之前,还用于:The apparatus according to claim 9, wherein the first processor is further configured to: before receiving, by the primary base station, a sending time of the time synchronization message sent by the primary base station:
    接收用户指令,所述用户指令携带有主基站标识;Receiving a user instruction, where the user instruction carries a primary base station identifier;
    根据所述主基站标识,发送主基站设定消息至对应的基站,以将当前接收到所述主基站设定消息的基站设定为主基站。And transmitting, according to the primary base station identifier, a primary base station setup message to the corresponding base station, to set the base station that currently receives the primary base station setup message as the primary base station.
  16. 根据权利要求9所述的装置,其特征在于,所述第一处理器在发送所述时间偏差至所有从基站之后,还包括:The apparatus according to claim 9, wherein the first processor, after transmitting the time offset to all the slave base stations, further comprises:
    接收到待定位移动物体与至少三个基站基于同一定位消息的信号传输时间,其中所述定位消息由所述移动物体发送至至少三个所述基站;Receiving a signal transmission time of the mobile object to be located and the at least three base stations based on the same positioning message, wherein the positioning message is sent by the mobile object to at least three of the base stations;
    根据所述移动物体与至少三个基站基于同一定位消息的信号传输时间,确定所述移动物体的位置信息。And determining location information of the mobile object according to a signal transmission time of the mobile object and the at least three base stations based on the same positioning message.
  17. 一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行上述权利要求1至8任一项所述的定位系统的时间同步控制方法的步骤。A computer readable storage medium having stored thereon a computer program, the program being executed by a processor to perform the steps of the time synchronization control method of the positioning system according to any one of claims 1 to 8.
  18. 一种定位系统的时间同步控制方法,其中定位系统包括多个基站和与多个所述基站均通信连接的定位服务器,多个所述基站之间相互通信连接,多个所述基站中的一个为主基站,其他基站为从基站;其特征在于,所述方法包括:A time synchronization control method for a positioning system, wherein the positioning system comprises a plurality of base stations and a positioning server communicably connected to the plurality of base stations, wherein the plurality of base stations are in communication connection with each other, and one of the plurality of base stations The primary base station, the other base station is a secondary base station; and the method includes:
    接收主基站发送的时间校准消息;Receiving a time calibration message sent by the primary base station;
    发送当前接收到所述时间校准消息的接收时间至定位服务器;Sending the receiving time of the time calibration message currently received to the positioning server;
    接收所述定位服务器针对所述时间校准消息的接收时间返回的所述从基站相对所述主基站的时间偏差;Receiving, by the positioning server, a time offset of the slave base station relative to the master base station returned for a receiving time of the time calibration message;
    根据所述时间偏差,对所述从基站的实时时间进行修正,以使所述从基站与所述主基站的时间同步。Correcting the real-time time of the slave base station according to the time offset to synchronize the time of the slave base station with the master base station.
  19. 根据权利要求18所述的方法,其特征在于,所述根据所述时间偏差,对所述从基站的实时时间进行修正,包括:The method according to claim 18, wherein the correcting the real-time time of the slave base station according to the time offset comprises:
    基于所述从基站的实时时间与所述时间偏差的差值,获得所述从基站的修正时间;Obtaining a correction time of the slave base station based on a difference between the real-time time of the slave base station and the time offset;
    将所述从基站的实时时间修正为所述修正时间。The real time of the slave base station is corrected to the correction time.
  20. 根据权利要求18所述的方法,其特征在于,所述主基站周期性发送所述时间校准消息。The method of claim 18 wherein said primary base station periodically transmits said time alignment message.
  21. 根据权利要求18所述的方法,其特征在于,多个所述基站与所述定位服务器基于有线通信方式通信连接,或者,多个所述基站与所述定位服务器基于无线通信连接方式通信连接。The method according to claim 18, wherein a plurality of said base stations are communicably connected to said location server based on a wired communication mode, or a plurality of said base stations are communicably connected to said location server based on a wireless communication connection.
  22. 根据权利要求18所述的方法,其特征在于,多个所述基站之间基于有线通信方式通信连接,或者,多个所述基站之间基于无线通信连接方式通信连接。The method according to claim 18, wherein a plurality of said base stations are communicably connected based on a wired communication method, or a plurality of said base stations are communicably connected based on a wireless communication connection.
  23. 一种定位系统的时间同步控制装置,其特征在于,包括第二处理器,所述第二处理器与定位服务器通信连接,并与一主基站通信连接;A time synchronization control device for a positioning system, comprising: a second processor, wherein the second processor is in communication connection with a positioning server and is in communication connection with a primary base station;
    所述第二处理器包括一个或多个,单独地或共同地工作;所述第二处理器用于:The second processor includes one or more, operating separately or in common; the second processor is configured to:
    接收主基站发送的时间校准消息;Receiving a time calibration message sent by the primary base station;
    发送当前接收到所述时间校准消息的接收时间至定位服务器;Sending the receiving time of the time calibration message currently received to the positioning server;
    接收所述定位服务器针对所述时间校准消息的接收时间返回的所述第二处理器相对所述主基站的时间偏差;Receiving, by the positioning server, a time offset of the second processor relative to the primary base station returned for a receiving time of the time calibration message;
    根据所述时间偏差,对所述第二处理器的实时时间进行修正,以使所述第二处理器与所述主基站的时间同步。Correcting the real-time time of the second processor according to the time deviation to synchronize the time of the second processor with the primary base station.
  24. 根据权利要求23所述的装置,其特征在于,所述第二处理器用于:The apparatus according to claim 23, wherein said second processor is configured to:
    基于所述第二处理器的实时时间与所述时间偏差的差值,获得所述第二处理器的修正时间;Obtaining a correction time of the second processor based on a difference between the real-time time of the second processor and the time deviation;
    将所述第二处理器的实时时间修正为所述修正时间。Correcting the real time of the second processor to the correction time.
  25. 根据权利要求23所述的装置,其特征在于,所述主基站周期性发送所述时间校准消息。The apparatus according to claim 23, wherein said primary base station periodically transmits said time alignment message.
  26. 根据权利要求23所述的装置,其特征在于,多个所述基站与所述定位服务器基于有线通信方式通信连接,或者,多个所述基站与所述定位服务器基于无线通信连接方式通信连接。The apparatus according to claim 23, wherein a plurality of said base stations are communicably connected to said location server based on a wired communication method, or a plurality of said base stations are communicably connected to said location server based on a wireless communication connection.
  27. 根据权利要求23所述的装置,其特征在于,多个所述基站之间基于有线通信方式通信连接,或者,多个所述基站之间基于无线通信连接方式通信连接。The apparatus according to claim 23, wherein a plurality of said base stations are communicably connected by means of a wired communication method, or a plurality of said base stations are communicably connected by means of a wireless communication connection.
  28. 一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行上述权利要求18至22任一项所述的定位系统的时间同步控制方法的步骤。A computer readable storage medium having stored thereon a computer program, the program being executed by a processor to perform the steps of the time synchronization control method of the positioning system according to any one of claims 18 to 22.
  29. 一种定位系统的时间同步控制方法,其中定位系统包括多个基站和与多个所述基站均通信连接的定位服务器,多个所述基站之间相互通信连接,多个所述基站中的一个为主基站,其他基站为从基站;其特征在于,所述方法包括:A time synchronization control method for a positioning system, wherein the positioning system comprises a plurality of base stations and a positioning server communicably connected to the plurality of base stations, wherein the plurality of base stations are in communication connection with each other, and one of the plurality of base stations The primary base station, the other base station is a secondary base station; and the method includes:
    主基站发送时间校准消息至多个从基站,并发送当前时间校准消息的发送时间至定位服务器;The primary base station sends a time calibration message to the plurality of secondary base stations, and sends the sending time of the current time calibration message to the positioning server;
    多个所述从基站在接收到所述时间校准消息后,分别发送所述时间校准消息的接收时间至所述定位服务器;After receiving the time calibration message, the plurality of slave base stations respectively send the time of receiving the time calibration message to the positioning server;
    定位服务器根据各从基站与所述主基站之间的距离、所述主基站发送所述时间校准消息的发送时间和各基站接收到所述时间校准消息的接收时间,计算各从基站相对所述主基站的时间偏差;The positioning server calculates, according to the distance between each slave base station and the primary base station, the sending time of the time base station that the time base station sends the time calibration message, and the receiving time of the time calibration message received by each base station, Time offset of the primary base station;
    定位服务器发送所述时间偏差至对应的从基站;The positioning server sends the time offset to the corresponding slave base station;
    各从基站根据当前接收到的时间偏差对该从基站的实时时间进行修正,以使所述从基站与所述主基站时间同步。Each slave base station corrects the real-time time of the slave base station according to the currently received time offset to time synchronize the slave base station with the master base station.
  30. 根据权利要求29所述的方法,其特征在于,所述定位服务器根据各从基站与所述主基站之间的距离、所述主基站发送所述时间校准消息的发送时间和各基站接收到所述时间校准消息的接收时间,计算各从基站相对所述主基站的时间偏差,包括:The method according to claim 29, wherein the positioning server receives, according to the distance between each slave base station and the master base station, the transmission time of the time base station, and the base station receives the time Calculating the time deviation of the time calibration message, and calculating the time deviation of each slave base station relative to the master base station, including:
    根据各从基站与所述主基站之间的距离,计算各从基站与所述主基站之间的信号传输时间;Calculating a signal transmission time between each slave base station and the master base station according to a distance between each slave base station and the master base station;
    根据各从基站与所述主基站之间的信号传输时间、所述主基站发送所述时间校准消息的发送时间和各基站接收到所述时间校准消息的接收时间,计算各从基站相对所述主基站的时间偏差。Calculating, according to the signal transmission time between each slave base station and the primary base station, the transmission time of the time base station transmitting the time calibration message, and the receiving time of each time base station receiving the time calibration message, Time offset of the primary base station.
  31. 根据权利要求29或30所述的方法,其特征在于,所述从基站与所述主基站之间的距离预先设定;The method according to claim 29 or 30, wherein the distance between the slave base station and the master base station is preset;
    或者,所述从基站与所述主基站之间的距离由所述定位服务器根据所述发送时间和所述接收时间计算获得。Alternatively, the distance between the slave base station and the primary base station is calculated by the positioning server according to the sending time and the receiving time.
  32. 根据权利要求29所述的方法,其特征在于,所述主基站周期性发送所述时间 校准消息至多个所述从基站。The method of claim 29 wherein said primary base station periodically transmits said time alignment message to a plurality of said secondary base stations.
  33. 根据权利要求29所述的方法,其特征在于,多个所述基站与所述定位服务器基于有线通信方式通信连接,或者,多个所述基站与所述定位服务器基于无线通信连接方式通信连接。The method according to claim 29, wherein a plurality of said base stations are communicably connected to said location server based on a wired communication mode, or a plurality of said base stations are communicably connected to said location server based on a wireless communication connection.
  34. 根据权利要求29所述的方法,其特征在于,多个所述基站之间基于有线通信方式通信连接,或者,多个所述基站之间基于无线通信连接方式通信连接。The method according to claim 29, wherein a plurality of said base stations are communicably connected by means of a wired communication method, or a plurality of said base stations are communicably connected based on a wireless communication connection.
  35. 根据权利要求29所述的方法,其特征在于,各从基站根据当前接收到的时间偏差对该从基站的实时时间进行修正,包括:The method according to claim 29, wherein each of the slave base stations corrects the real-time time of the slave base station according to the currently received time offset, including:
    基于当前从基站的实时时间与当前接收到时间偏差的差值,获得当前从基站的修正时间;Obtaining a current correction time from the base station based on a difference between the current real time from the base station and the currently received time offset;
    将当前从基站的实时时间修正为所述修正时间。The real time from the base station is corrected to the correction time.
  36. 根据权利要求29所述的方法,其特征在于,所述主基站发送时间校准消息至多个从基站之前,还包括:The method according to claim 29, wherein the sending, by the primary base station, the time calibration message to the plurality of secondary base stations further comprises:
    所述定位服务器接收用户指令,所述用户指令携带有主基站标识;The positioning server receives a user instruction, where the user instruction carries a primary base station identifier;
    所述定位服务器根据所述主基站标识,发送主基站设定消息至对应的基站,以将当前接收到所述主基站设定消息的基站设定为主基站。The positioning server sends a primary base station setting message to the corresponding base station according to the primary base station identifier, so that the base station that currently receives the primary base station setting message is configured as the primary base station.
  37. 根据权利要求29所述的方法,其特征在于,定位服务器发送所述时间偏差至所有从基站之后,还包括:The method according to claim 29, wherein after the location server sends the time offset to all the slave base stations, the method further includes:
    获取待定位移动物体与至少三个基站基于同一定位消息的信号传输时间,其中所述定位消息由所述移动物体发送至至少三个所述基站;Acquiring a signal transmission time of the to-be-located mobile object and the at least three base stations based on the same positioning message, wherein the positioning message is sent by the mobile object to at least three of the base stations;
    根据所述移动物体与至少三个基站基于同一定位消息的信号传输时间,确定所述移动物体的位置信息。And determining location information of the mobile object according to a signal transmission time of the mobile object and the at least three base stations based on the same positioning message.
  38. 一种定位系统,其特征在于,包括多个基站和与多个所述基站均通信连接的定位服务器,多个所述基站之间相互通信连接,多个所述基站中的一个为主基站,其他基站为从基站,A positioning system, comprising: a plurality of base stations and a positioning server communicably connected to the plurality of base stations, wherein the plurality of base stations are in communication connection with each other, and one of the plurality of base stations is a primary base station, Other base stations are slave base stations,
    其中,主基站发送时间校准消息至多个从基站,并发送当前时间校准消息的发送时间至定位服务器;The primary base station sends a time calibration message to the multiple secondary base stations, and sends the sending time of the current time calibration message to the positioning server;
    多个所述从基站在接收到所述时间校准消息后,分别发送所述时间校准消息的接收时间至所述定位服务器;After receiving the time calibration message, the plurality of slave base stations respectively send the time of receiving the time calibration message to the positioning server;
    定位服务器根据各从基站与所述主基站之间的距离、所述主基站发送所述时间校准消息的发送时间和各基站接收到所述时间校准消息的接收时间,计算各从基站相对所述主基站的时间偏差;The positioning server calculates, according to the distance between each slave base station and the primary base station, the sending time of the time base station that the time base station sends the time calibration message, and the receiving time of the time calibration message received by each base station, Time offset of the primary base station;
    定位服务器发送所述时间偏差至对应的从基站;The positioning server sends the time offset to the corresponding slave base station;
    各从基站根据当前接收到的时间偏差对该从基站的实时时间进行修正,以使所述从基站与所述主基站时间同步。Each slave base station corrects the real-time time of the slave base station according to the currently received time offset to time synchronize the slave base station with the master base station.
  39. 根据权利要求38所述的系统,其特征在于,所述定位服务器根据各从基站与 所述主基站之间的距离,计算各从基站与所述主基站之间的信号传输时间;并根据各从基站与所述主基站之间的信号传输时间、所述主基站发送所述时间校准消息的发送时间和各基站接收到所述时间校准消息的接收时间,计算各从基站相对所述主基站的时间偏差。The system according to claim 38, wherein the positioning server calculates a signal transmission time between each slave base station and the master base station according to a distance between each slave base station and the master base station; Calculating, by a signal transmission time between the base station and the primary base station, a transmission time of the time synchronization message sent by the primary base station, and a receiving time of the time calibration message received by each base station, calculating, by each base station, the primary base station Time deviation.
  40. 根据权利要求38或39所述的系统,其特征在于,所述从基站与所述主基站之间的距离预先设定;The system according to claim 38 or 39, wherein the distance between the slave base station and the master base station is preset;
    或者,所述从基站与所述主基站之间的距离由所述定位服务器根据所述发送时间和所述接收时间计算获得。Alternatively, the distance between the slave base station and the primary base station is calculated by the positioning server according to the sending time and the receiving time.
  41. 根据权利要求38所述的系统,其特征在于,所述主基站周期性发送所述时间校准消息至多个所述从基站。The system according to claim 38, wherein said primary base station periodically transmits said time alignment message to a plurality of said secondary base stations.
  42. 根据权利要求38所述的系统,其特征在于,多个所述基站与所述定位服务器基于有线通信方式通信连接,或者,多个所述基站与所述定位服务器基于无线通信连接方式通信连接。The system according to claim 38, wherein a plurality of said base stations are communicably connected to said location server based on a wired communication mode, or a plurality of said base stations are communicably connected to said location server based on a wireless communication connection.
  43. 根据权利要求38所述的系统,其特征在于,多个所述基站之间基于有线通信方式通信连接,或者,多个所述基站之间基于无线通信连接方式通信连接。The system according to claim 38, wherein a plurality of said base stations are communicably connected by means of a wired communication method, or a plurality of said base stations are communicably connected based on a wireless communication connection.
  44. 根据权利要求38所述的系统,其特征在于,各从基站基于当前从基站的实时时间与当前接收到时间偏差的差值,获得当前从基站的修正时间;并将当前从基站的实时时间修正为所述修正时间。The system according to claim 38, wherein each slave base station obtains a correction time of the current slave base station based on a difference between a real time time of the current base station and the current received time offset; and corrects the current real time time of the slave base station. For the correction time.
  45. 根据权利要求38所述的系统,其特征在于,所述主基站发送时间校准消息至多个从基站之前,若所述定位服务器接收用户指令,所述用户指令携带有主基站标识;所述定位服务器根据所述主基站标识,发送主基站设定消息至对应的基站,以将当前接收到所述主基站设定消息的基站设定为主基站。The system according to claim 38, wherein the primary base station sends a time alignment message to a plurality of secondary base stations, and if the positioning server receives a user instruction, the user instruction carries a primary base station identifier; the positioning server And transmitting, according to the primary base station identifier, a primary base station setup message to the corresponding base station, to set the base station that currently receives the primary base station setup message as the primary base station.
  46. 根据权利要求38所述的系统,其特征在于,所述定位服务器发送所述时间偏差至所有从基站之后,若所述定位服务器接收到待定位移动物体与至少三个基站基于同一定位消息的信号传输时间,根据所述移动物体与至少三个基站基于同一定位消息的信号传输时间,确定所述移动物体的位置信息,其中所述定位消息由所述移动物体发送至至少三个所述基站。The system according to claim 38, wherein the positioning server sends the time offset to all slave base stations, if the positioning server receives a signal that the mobile object to be located is based on the same positioning message as the at least three base stations Transmitting time, determining location information of the mobile object according to a signal transmission time of the mobile object and the at least three base stations based on the same positioning message, wherein the positioning message is sent by the mobile object to at least three of the base stations.
PCT/CN2018/073429 2018-01-19 2018-01-19 Positioning system and time synchronization control and apparatus therefor WO2019140638A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2018/073429 WO2019140638A1 (en) 2018-01-19 2018-01-19 Positioning system and time synchronization control and apparatus therefor
CN201880011080.7A CN110291821A (en) 2018-01-19 2018-01-19 The time synchronization control method of positioning system and positioning system, device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/073429 WO2019140638A1 (en) 2018-01-19 2018-01-19 Positioning system and time synchronization control and apparatus therefor

Publications (1)

Publication Number Publication Date
WO2019140638A1 true WO2019140638A1 (en) 2019-07-25

Family

ID=67301916

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/073429 WO2019140638A1 (en) 2018-01-19 2018-01-19 Positioning system and time synchronization control and apparatus therefor

Country Status (2)

Country Link
CN (1) CN110291821A (en)
WO (1) WO2019140638A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111511014A (en) * 2020-04-23 2020-08-07 四川星网云联科技有限公司 Self-adaptive wireless synchronization method based on ultra-wideband technology
TWI764300B (en) * 2019-11-25 2022-05-11 日商富士電機股份有限公司 Programmable Controller Systems and Modules

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112654082B (en) * 2019-10-11 2023-02-24 广东博智林机器人有限公司 Timing device, base station, positioning system, calibration method and positioning method
CN114364011A (en) * 2021-12-27 2022-04-15 浪潮通信技术有限公司 Wireless synchronization method and device of ultra-wideband base station

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120188997A1 (en) * 2010-04-16 2012-07-26 Radoslaw Romuald Zakrzewski Reduced power synchronization of wireless devices
CN103974313A (en) * 2013-01-29 2014-08-06 华为终端有限公司 Positioning measurement method, device and station and AP devices
CN104202812A (en) * 2014-08-14 2014-12-10 杭州绿宇通信技术有限公司 High precision time synchronization method suitable for precise positioning system
US20150195674A1 (en) * 2014-01-07 2015-07-09 Qualcomm Incorporated Method for estimating delay difference between receive processing chains of a device using crowd sourcing

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100322001B1 (en) * 1998-09-16 2002-06-22 윤종용 Device and method for measuring position of mobile station in mobile communication system
JP2001186559A (en) * 1999-12-22 2001-07-06 Nec Corp Mobile communication system and simple synchronization method between base stations used therefor
US7995694B2 (en) * 2007-03-19 2011-08-09 Sharp Laboratories Of America, Inc. Systems and methods for detecting a specific timing from a synchronization channel
CN101232325B (en) * 2008-01-31 2013-01-09 华为技术有限公司 Radio communication system, midair interface synchronism control method, base station and control device thereof
WO2015135581A1 (en) * 2014-03-12 2015-09-17 Telefonaktiebolaget L M Ericsson (Publ) Location of terminals in a communications network
WO2016000142A1 (en) * 2014-06-30 2016-01-07 华为技术有限公司 Clock synchronization method, system and related device
CN104270814B (en) * 2014-09-30 2017-12-12 南京沃旭通讯科技有限公司 A kind of localization method mixed based on TDOA and ToF and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120188997A1 (en) * 2010-04-16 2012-07-26 Radoslaw Romuald Zakrzewski Reduced power synchronization of wireless devices
CN103974313A (en) * 2013-01-29 2014-08-06 华为终端有限公司 Positioning measurement method, device and station and AP devices
US20150195674A1 (en) * 2014-01-07 2015-07-09 Qualcomm Incorporated Method for estimating delay difference between receive processing chains of a device using crowd sourcing
CN104202812A (en) * 2014-08-14 2014-12-10 杭州绿宇通信技术有限公司 High precision time synchronization method suitable for precise positioning system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI764300B (en) * 2019-11-25 2022-05-11 日商富士電機股份有限公司 Programmable Controller Systems and Modules
CN111511014A (en) * 2020-04-23 2020-08-07 四川星网云联科技有限公司 Self-adaptive wireless synchronization method based on ultra-wideband technology

Also Published As

Publication number Publication date
CN110291821A (en) 2019-09-27

Similar Documents

Publication Publication Date Title
WO2019140638A1 (en) Positioning system and time synchronization control and apparatus therefor
US11917571B2 (en) Locating method for uplink time difference of arrival, and apparatus thereof
JP5834580B2 (en) Wireless communication system, slave station apparatus, and wireless communication system control method
JP6636542B2 (en) Positioning method, positioning server and positioning system
US11133885B2 (en) Methods and devices for synchronization in communication networks
CN109714700B (en) Synchronization method, positioning method, main base station and positioning system
US11231497B2 (en) Positioning method and positioning apparatus
KR101484871B1 (en) Master device and slave device and time synchronization method
CN104429137A (en) Method for performing measurements and positioning in network based wlan positioning system
EP3737958B1 (en) Media access control (mac) frame structure and data communication method in a real-time localization system
US10191135B2 (en) Wireless network-based positioning method and positioning apparatus
US11877253B2 (en) Aircraft time synchronization system and method
US20160327628A1 (en) Method And Apparatus For Determining Non-Line Of Sight Bias Estimation
US20180302461A1 (en) Method and system for synchronizing robot with server
CN107272017A (en) Multilasered optical radar system and its control method
US20170117980A1 (en) Time synchronization for network device
CN107070577A (en) The synchronous method and its equipment of a kind of equipment clock
CN109781165A (en) The detection and its householder method, apparatus and system of probe deviations
US20220286267A1 (en) Control system, information processing device, and non-transitory computer readable medium
US10554319B2 (en) Wireless communications with time synchronization processing
JP6583438B2 (en) Time difference measuring apparatus, system, and method
KR20170135384A (en) Apparatus for distributed clock synchronization based on EtherCAT, method thereof and computer recordable medium storing the method
JP6749531B1 (en) Time synchronization system, master station, and time synchronization method
CN115088318B (en) Reference time information using method and device
WO2023151555A1 (en) Positioning methods and apparatuses, user equipment and storage medium

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

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

Country of ref document: EP

Kind code of ref document: A1