Communication device, control method for communication device, and program
By detecting the PTP support of the base station in the communication equipment and using the IEEE 1588 standard for time synchronization, the problem of unable to synchronize indoors and the base station not supporting PTP is solved, achieving stable and high-precision time synchronization.
Patent Information
- Application Number
- CN202280090352.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-01-31
- Filing Date
- 2022-11-28
- Publication Date
- 2024-09-06
AI Technical Summary
Existing technology cannot use GPS for time synchronization indoors, and access to 5G base stations that do not support PTP cannot achieve high-precision time synchronization, resulting in uncertainty in the accuracy of time synchronization.
Design a communication device that detects whether the base station supports time synchronization with a predetermined accuracy, and synchronizes time with the base station if it supports it. The control device serves as a time synchronization source in the network to ensure the accuracy of time synchronization. The device includes a unit for detecting PTP supported by the base station, a time synchronization processing unit and a control unit, utilizing the IEEE 1588 standard for time synchronization.
It achieves stable time synchronization with predetermined precision, ensuring that users can synchronize time with high precision indoors, and avoids the problem of being unable to achieve high-precision synchronization because the base station does not support PTP.
Smart Images

Figure CN118614032A
Abstract
Description
Technical Field
[0001] The present invention relates to a communication device, a control method and a program for the communication device. Background Art
[0002] When time synchronization is performed in a network formed between devices, devices included in the network may obtain time information from devices outside the network, and may perform time synchronization in the network using the obtained time information.
[0003] For example, a network is formed between a plurality of cameras, and the cameras included in the network obtain time information from outside the network. If the time is synchronized between the cameras included in the network, the efficiency of editing work can be improved, for example, a plurality of images taken by a plurality of users can be arranged in chronological order. Specific examples of devices outside the network include GPS, radio clocks, and high-precision clocks that transmit synchronization signals via cables (Patent Document 1).
[0004] In addition, research is currently underway to achieve high-precision time synchronization in 5G base stations using PTP (Precision Time Protocol) according to the IEEE (Institute of Electrical and Electronics Engineers) (registered trademark) 1588 standard.
[0005] Citation List
[0006] Patent Literature
[0007] Patent Document 1: Japanese Patent Application Publication No. 2009-111654 Summary of the invention
[0008] Technical issues
[0009] In Patent Document 1, a synchronization signal is received from a GPS or a radio clock or from a high-precision clock via a cable. However, since positioning cannot be performed indoors, time synchronization cannot be performed indoors using GPS. In addition, it is unclear whether the accuracy of the received time is high enough for the user to accept.
[0010] In addition, high-precision time synchronization can be achieved by accessing a 5G base station that supports the above-mentioned PTP, but if the accessed base station does not support PTP, although high-precision time synchronization is expected to be performed to access the base station, high-precision time synchronization cannot be achieved.
[0011] The present invention has been made in view of the above-mentioned problems, and provides a technology for stably achieving time synchronization with a predetermined accuracy.
[0012] Problem Solution
[0013] According to one aspect of the present invention, a communication device for achieving the above-mentioned purpose is a communication device that forms a network with other communication devices, and the communication device includes:
[0014] A determination unit, configured to determine whether the base station outside the network supports time synchronization with a predetermined accuracy;
[0015] a time synchronization processing unit, configured to synchronize the time in the communication device with the time in the base station when the base station supports the time synchronization with the predetermined accuracy;
[0016] a control unit, which is used to control the communication device,
[0017] Here, when the time in the communication device is synchronized with the time in the base station, the control section causes the communication device to operate as a time synchronization source for the other communication devices included in the network.
[0018] Beneficial Effects of the Invention
[0019] According to the present invention, time synchronization with a predetermined accuracy can be stably achieved.
[0020] Other features and advantages of the present invention will become apparent from the following description in conjunction with the accompanying drawings. Note that in all drawings, the same reference numerals represent the same or similar components. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the present invention and, together with the description, serve to explain the principles of the present invention.
[0022] Figure 1 is a block diagram showing an example of a hardware configuration of a communication device according to the embodiment.
[0023] Figure 2 is a block diagram showing an example of a software configuration of a communication device according to the embodiment.
[0024] Figure 3 is a diagram showing a configuration example of a communication system according to an embodiment.
[0025] Figure 4 is a flowchart showing the procedure of processing performed by the communication device according to the embodiment when a ground master is established in a local network.
[0026] Figure 5 : is a flowchart showing the procedure of processing performed by the communication device according to the embodiment after establishing a ground master in the local network. DETAILED DESCRIPTION
[0027] Hereinafter, the embodiments will be described in detail with reference to the accompanying drawings. Please note that the following embodiments are not intended to limit the scope of the claimed invention. A plurality of features are described in the embodiments, but are not limited to the invention requiring all of these features, and a plurality of such features may be appropriately combined. In addition, in the accompanying drawings, the same reference numerals are assigned to the same or similar configurations, and redundant descriptions thereof are omitted.
[0028] Hardware construction
[0029] Figure 1 1 is a block diagram showing an example of a hardware configuration of a communication device according to an embodiment. The communication device 100 includes a control unit 101 , a storage unit 102 , an operation unit 103 , a display unit 104 , a wireless communication unit 105 , and a speaker 106 .
[0030] The control unit 101 is, for example, one or more CPUs (central processing units), and controls the operation of the elements of the communication device 100 according to an input signal or program (to be described later). Instead of a configuration in which the control unit 101 controls the entire device, a configuration in which a plurality of hardware shares the processing for controlling the entire device is also possible. In the storage unit 102 are stored: one or more control programs executed by the control unit 101, and various types of information such as communication parameters and captured image data. As a result of the control unit 101 executing one or more control programs stored in the storage unit 102, various operations described below are performed.
[0031] The operation unit 103 is used to accept instructions from the user to the communication device 100. For example, the operation unit is a physical operation unit such as a keyboard or a physical button. Alternatively, if the display unit 104 is used as a touch panel that accepts touch operations, the display unit 104 can also be used as an operation unit.
[0032] The operation unit 103 accepts a selection operation for causing the communication device 100 to operate as a master device operating as an access point in a wireless LAN or a slave device operating as a station in the wireless LAN. In addition, the operation unit 103 can accept a setting of a first mode (power saving mode) in which the communication device 100 operates in a power saving state or a second mode (normal operation mode) in which the communication device 100 does not operate in a power saving state.
[0033] The display unit 104 performs various types of displays, and has a function of outputting visually recognizable information like an LCD (Liquid Crystal Display) and an LED (Light Emitting Diode).
[0034] The wireless communication unit 105 performs wireless LAN communication according to the 3GPP (3rd Generation Partnership Project) (registered trademark) standard or the IEEE (Institute of Electrical and Electronics Engineers) (registered trademark) 802.11a / b / g / n / ac / ax (registered trademark) standard. The speaker 106 is a notification unit capable of outputting audio information.
[0035] Software Construction
[0036] Figure 2 1 is a block diagram showing an example of a software configuration of the communication device 100 according to the embodiment. The communication device 100 includes a signal receiving unit 201, a signal transmitting unit 202, a data storage unit 203, and a display control unit 204. The communication device 100 also includes a master / slave determination unit 205, a BMCA processing unit 206, a PTP support determination unit 208, a time synchronization processing unit 209, an operation mode check unit 210, and a time error calculation unit 211. The BMCA processing unit 206 includes a Priority1 value setting unit 207.
[0037] The signal receiving unit 201 receives a wireless LAN signal from a device and the signal transmitting unit 202 transmits a wireless LAN signal to the device according to the 3GPP (registered trademark) standard or the IEEE 802.11a / b / g / n / ac / ax (registered trademark) standard. The signal receiving unit 201 and the signal transmitting unit 202 correspond to the wireless communication unit 105. The data storage unit 203 corresponds to the storage unit 102, and stores therein the software itself and information such as authentication information.
[0038] The display control unit 204 performs processing for controlling the screen displayed on the display unit 104. The master / slave determination unit 205 determines whether the communication device operates as a master device or a slave device in the network. Note that the master device operates as an access point in the wireless LAN, and the slave device operates as a station in the wireless LAN.
[0039] The BMCA processing unit 206 operates based on BMCA (Best Master Clock Algorithm) which automatically determines the best ground master from multiple candidates of the ground master. The BMCA processing unit 206 includes a Priority1 value setting unit 207. The Priority1 value is information that is compared between multiple candidates of the ground master in priority to any other information when determining the ground master based on the BMCA. The Priority1 value is a value in the range from 0 to 255, and the device with the smallest Priority1 value is determined as the ground master.
[0040] The PTP support determination unit 208 determines whether the base station 500 to be described later supports IEEE (registered trademark) 1588. The time synchronization processing unit 209 performs time synchronization processing to synchronize time with the base station 500 (to be described later) and the communication devices 300 and 301. Specifically, the time synchronization processing unit performs time synchronization processing according to the IEEE (registered trademark) 1588 standard or RFC (Request for Comments) (registered trademark) 1305.
[0041] The operation mode checking unit 210 checks the operation mode of the communication device. The operation mode is any one of a plurality of operation modes including a power saving mode that suppresses power consumption and a normal mode that does not suppress power consumption. The time error calculating unit 211 calculates the time error between the communication device and the base station 500, which will be described later.
[0042] System Configuration
[0043] Figure 3 : is a diagram showing a configuration example of a communication system according to an embodiment. The communication system according to the present embodiment includes a communication device 100, a communication device 300, a communication device 301, a public network 400, and a base station 500. The communication device 100 communicates with the public network 400 according to the 3GPP (registered trademark) standard, and communicates with the communication devices 300 and 301 according to Wi-Fi (registered trademark). Note that the communication devices 300 and 301 have the same configuration as that of the communication device 100, and therefore, description thereof is omitted.
[0044] deal with
[0045] Figure 4 1 is a flowchart showing the process performed when the communication device 100 is established as a ground master in a network formed between communication devices in this embodiment. When the operation unit 103 of the communication device 100 accepts an operation for setting the communication device as a master or a slave, a notification is given to the control unit 101.
[0046] The control unit 101 determines whether the communication device 100 is selected as the master device by using the master / slave determination unit 205 (S401). If the communication device 100 is selected as the master device, the communication device 100 operates as an access point of the wireless LAN. The control unit 101 starts the wireless communication unit 105, sets the Priority 1 value to 255 by using the Priority 1 value setting unit 207, and then causes the wireless communication unit 105 to start communication with the base station 500 according to the 3GPP standard (registered trademark) (S402).
[0047] Here, the Priority1 value is set to a maximum value of 255 to prevent the communication device 100 from becoming a ground master in a network formed by the base station 500 based on BMCA, which is outside the network, when the communication device 100 accesses the base station 500. The wireless communication unit 105 gives a notification to the control unit 101 when receiving the system information transmitted from the base station 500 as a notification signal or when receiving the RRC (Radio Resource Control) message transmitted between the communication device and the base station 500.
[0048] The control unit 101 checks whether a parameter called "TimeInfo" (to be described later) is included in SIB (System Information Block) 9, which is a block included in the received system information, by using the PTP support determination unit 208. In addition, the control unit 101 checks whether "AbsoluteTimeInfo" to be described later is included in the received RRC message (S403).
[0049] TimeInfo includes the following four items: "TimeInfoUTC" (required), "DayLightSavingTime" (optional), "LeapSeconds" (optional), and "LocalTimeOffset" (optional). If only the required items are included, UTC (Coordinated Universal Time) time information can be obtained. If optional items are also included, time with the same accuracy as the time obtained from GPS can be obtained. However, the time included in TimeInfo does not include communication delays that occur in the communication between the base station 500 and the communication device 100. AbsoluteTimeInfo indicates an absolute time consisting of year, month, day, hour, minute, and second.
[0050] The control unit 101, when confirming that TimeInfo or AbsoluteTimeInfo is included, determines that time synchronization can be performed with a base station 500 outside the network with a predetermined accuracy, and starts time synchronization (S404). In this case, the control unit 101 performs time synchronization processing according to the IEEE (registered trademark) 1588 standard with the base station 500 via the wireless communication unit 105 by using the time synchronization processing unit 209. The control unit 101 stores information indicating that the communication device 100 is a master device and a ground master in the network formed between the communication devices in the storage unit 102 (S405). Thereafter, the communication device 100 operates as a master device and a ground master in the network formed between the communication devices. That is, when the time in the communication device 100 is synchronized with the time in the base station 500, the control unit 101 causes the communication device 100 to operate as a time synchronization source for other communication devices 300 and 301 included in the network.
[0051] The control unit 101 waits for access to the communication device 100 from the communication devices 300 and 301 via the wireless communication unit 105 (S406). When the communication devices 300 and 301 access the communication device 100, the control unit 101 performs time synchronization processing with the communication devices 300 and 301 via the wireless communication unit 105 by using the time synchronization processing unit 209 (S407). Thus, time synchronization between the communication devices is completed.
[0052] On the other hand, if the existence of both TimeInfo and AbsoluteTimeInfo cannot be confirmed in step S403, the process proceeds to step S408. Then, the control unit 101 determines that the time synchronization process according to the IEEE (registered trademark) 1588 standard cannot be performed with the base station 500, and gives a notification indicating the determination result via the display unit 104 (S408). The display control unit 204 controls the display unit 104 to display: information indicating that the time synchronization process according to the IEEE (registered trademark) 1588 standard cannot be performed, and information for letting the user select whether to perform time synchronization with the base station 500 even though the time synchronization process according to the IEEE 1588 standard cannot be performed. Alternatively or in addition, an audio notification may be given through the speaker 106.
[0053] Then, the control unit 101 determines whether to perform time synchronization based on the user's selection (S409). If the user wants to perform time synchronization with the base station 500, the user selects to perform time synchronization by using the operation unit 103, and notifies the control unit 101 of the selection result. The control unit 101 performs time synchronization processing with the base station 500 according to RFC (registered trademark) 1305 via the wireless communication unit 105 by using the time synchronization processing unit 209 (S410). Thereafter, processing similar to that performed in steps S405 to S407 is performed.
[0054] If it is determined in step S401 that the communication device 100 is selected as a slave device, the process proceeds to step S411. The communication device 100 operates as a slave device in the network formed between the communication devices (S411). In this case, the communication device 100 operates as a station in the wireless LAN. Thereafter, the control unit 101 searches for a communication device (e.g., the communication device 300 or 301) used as a master device via the wireless communication unit 105 (S412). When a communication device used as a master device is detected, the process proceeds to step S413. The control unit 101 performs time synchronization processing (S413) with the communication device used as a master device via the wireless communication unit 105 by using the time synchronization processing unit 209.
[0055] Here, if the user selects not to perform time synchronization with the base station 500 in step S409, the operation unit 103 notifies the control unit 101 of the selection. Upon receiving the notification, the control unit 101 stops the wireless communication unit 105. Figure 4 A series of processing shown.
[0056] Note that a configuration may also be possible in which time synchronization is not performed with the base station 500 in steps S404 and S410, and time information is obtained from TimeInfo or AbsoluteTimeInfo obtained in step S403, and the time information is set in the time synchronization processing unit 209. However, in this case, an error corresponding to the time taken for communication between the communication device 100 and the base station 500 may occur.
[0057] Next, Figure 5 1 is a flowchart showing a procedure of processing performed after the communication device 100 is established as a ground master in a network formed between communication devices according to the embodiment.
[0058] The operation unit 103 can accept the setting of a first mode (power saving mode) in which the communication device 100 operates in a power saving state or a second mode (normal operation mode) in which the communication device 100 does not operate in a power saving state. If the operation unit 103 sets the operation mode of the communication device 100 (for example, the power saving mode or the normal operation mode), the control unit 101 stores the operation mode in the storage unit 102. Note that the operation mode can also be set before the communication device 100 is selected as the ground master.
[0059] The control unit 101 determines whether the operation mode currently set in the communication device 100 is a power saving mode for suppressing power consumption (S501) by using the operation mode checking unit 210. If the power saving mode is set, the control unit 101 performs time synchronization with the base station 500 via the wireless communication unit 105 by using the time synchronization processing unit 209 after a predetermined period T1 has passed (S502).
[0060] Here, for example, the predetermined period T1 is a first predetermined period measured according to the previous time synchronization. The control unit 101 checks the error E between the time in the communication device 100 before the time synchronization performed in step S502 and the time in the communication device 100 after the time synchronization by using the time error calculation unit 211, and stores the error E in the storage unit 102 (S503). After checking the error, the control unit 101 stops the function of the wireless communication unit 105 for performing communication according to the 3GGP standard (S504).
[0061] The control unit 101 keeps stopping the operation of the wireless communication unit 105 until the time error relative to the base station 500 exceeds the permissible value Z (S505). That is, the control unit 101 determines whether the time error has exceeded the permissible value Z, and waits for the time error to exceed the permissible value Z. More specifically, the control unit 101 calculates the time error T1 / E=Y per unit time relative to the base station 500 based on the predetermined period T1 that has passed in step S502 and the time error E checked in step S503 by using the time error calculation unit 211. The time error increases by Y per unit time, and therefore, the control unit 101 determines whether the total value of the error that has increased over time has exceeded the permissible value Z by using the time error calculation unit 211.
[0062] As described above, the control unit 101 calculates the value of the time error occurring per unit time based on the predetermined period T1 and the time error E occurring as the predetermined period T1 elapses, and calculates the current time error based on the value and the period elapsed since the execution of time synchronization. Then, the control unit 101 determines whether the current time error is greater than the allowable value Z.
[0063] If the error is larger than the allowable value Z, time synchronization is required, so the control unit 101 activates the function of the wireless communication unit 105 for communication according to the 3GPP standard and causes the wireless communication unit 105 to resume communication with the base station 500 (S506).
[0064] The control unit 101 performs time synchronization with the base station 500 via the wireless communication unit 105 by using the time synchronization processing unit 209 (S507). Thereafter, the control unit 101 performs time synchronization with the communication devices 300 and 301 via the wireless communication unit 105 by using the time synchronization processing unit 209 in the network of the communication devices (S508). Thereafter, the control unit 101 determines whether to end the processing (S510), and when it is determined that the processing is not to end, returns to step S501 and repeats the processing. For example, in the case where the power of the communication device 10 is turned off by an operation performed by the user or an input for stopping the time synchronization processing has been accepted, the control unit 101 ends the processing.
[0065] On the other hand, when it is determined in step S501 that a mode other than the power saving mode (e.g., the normal operation mode) is set in the communication device 100, the process proceeds to step S509. After a predetermined period T2 shorter than the predetermined period T1 elapsed in step S502 has elapsed, the control unit 101 performs time synchronization with the base station 500 via the wireless communication unit 105 by using the time synchronization processing unit 209 (S509).
[0066] Here, for example, the predetermined period T2 is a second predetermined period measured according to the previous time synchronization, and satisfies T1>T2. That is, when the communication device is operating in the power saving mode, power consumption can be further suppressed by reducing the frequency of time synchronization with the base station 500. On the other hand, when a mode other than the power saving mode (for example, the normal operation mode) is set, the time information of the communication device 100 can be maintained at a more accurate value by increasing the frequency of time synchronization. Thereafter, the process proceeds to step S508. The process is performed as described above. Figure 5 A series of processing shown.
[0067] As described above, in the present embodiment, the communication device 100 performs time synchronization with the base station 500 after determining whether time synchronization can be performed with a predetermined accuracy based on the communication performed with the base station 500. Therefore, the user can confirm whether time synchronization can be performed with a desired accuracy before time synchronization and then perform time synchronization.
[0068] As described above, according to the present embodiment, time synchronization with a predetermined accuracy can be stably achieved. In addition, a situation can be avoided where time synchronization with a predetermined accuracy cannot be achieved despite the desire to access a base station with time synchronization with a predetermined accuracy.
[0069] Other embodiments
[0070] The present invention can be implemented by providing a program for implementing one or more functions of the above-mentioned embodiments to a system or device via a network or storage medium, and causing one or more processors in a computer of the system or device to read out and execute the program. The present invention can also be implemented by a circuit (e.g., ASIC) for implementing one or more functions.
[0071] The present invention is not limited to the above-described embodiments, and various changes and modifications can be made within the spirit and scope of the present invention. Therefore, in order to inform the public of the scope of the present invention, the following claims are made.
[0072] This application claims the benefit of Japanese Patent Application No. 2022-013584, filed on January 31, 2022, which is hereby incorporated by reference herein.
Claims
1. A communication device that forms a network with other communication devices, the communication device being characterized in that it comprises: A determination unit, configured to determine whether the base station outside the network supports time synchronization with a predetermined accuracy; a time synchronization processing unit, configured to synchronize the time in the communication device with the time in the base station when the base station supports the time synchronization with the predetermined accuracy; as well as a control unit, which is used to control the communication device, Here, when the time in the communication device is synchronized with the time in the base station, the control section causes the communication device to operate as a time synchronization source for the other communication devices included in the network.
2. The communication device according to claim 1, characterized in that The determination section determines whether the base station supports the time synchronization of the predetermined accuracy using a 3GPP (3rd Generation Partnership Project) standard.
3. The communication device according to claim 1, characterized in that The communication device further comprises: an operation unit for accepting an operation performed by a user, The operation unit accepts a selection operation for causing the communication device to operate as a master device or a slave device, the master device operating as an access point in a wireless LAN, and the slave device operating as a station in the wireless LAN.
4. The communication device according to claim 3, characterized in that The communication device further comprises: A communication unit is configured to communicate with the base station when the communication device is selected as the master device.
5. The communication device according to claim 4, characterized in that The communication section communicates with the base station after setting the Priority 1 value of PTP (Precision Time Protocol) to 255, which is the maximum value.
6. The communication device according to claim 4 or 5, characterized in that: When TimeInfo is included in the SIB (System Information Block) 9 received from the base station via the communication section, the determination section determines that the base station supports time synchronization with a predetermined accuracy.
7. The communication device according to any one of claims 4 to 6, characterized in that: When AbsoluteTimeInfo is included in an RRC (Radio Resource Control) message received from the base station via the communication section, the determination section determines that the base station supports time synchronization of the predetermined accuracy.
8. The communication device according to any one of claims 1 to 7, characterized in that: When the determination section determines that the base station does not support time synchronization with the predetermined accuracy, the control section causes the display section to display information indicating that the base station does not support time synchronization with the predetermined accuracy.
9. The communication device according to any one of claims 1 to 8, characterized in that: When the time in the communication device is synchronized with the time in the base station, the control section causes the communication device to operate as a master device with respect to other communication devices included in the network and as a ground master in the network.
10. The communication device according to any one of claims 3 to 7, characterized in that: The operation section can accept setting of a first mode in which the communication device operates in a power saving state or a second mode in which the communication device does not operate in the power saving state.
11. The communication device according to claim 10, characterized in that When the communication device operates as the time synchronization source in the first mode, the time synchronization processing section performs time synchronization with the base station after a first predetermined period of time has elapsed, and When the communication device operates as the time synchronization source in the second mode, the time synchronization processing section performs time synchronization with the base station after a second predetermined period of time shorter than the first predetermined period of time has elapsed.
12. The communication device according to claim 11, characterized in that The control section checks a time error occurring between the base station and the communication device after time synchronization with the base station has been performed after the first predetermined period of time has elapsed, and stops communication with the base station.
13. The communication device according to claim 12, characterized in that Control Department: calculating a value of a time error occurring per unit time based on the first predetermined period and the time error occurring as the first predetermined period elapses, calculating a current time error based on the value and a period of time that has elapsed since the time synchronization was performed, and When the current time error is greater than the allowable value, the communication with the base station is restored.
14. The communication device according to claim 13, characterized in that When the communication with the base station is restored, the time synchronization processing unit performs time synchronization with the base station.
15. A control method for a communication device, wherein the communication device forms a network with other communication devices, the control method comprising: A determination step of determining whether a base station outside the network supports time synchronization with a predetermined accuracy; A time synchronization processing step, in which, when the base station supports the time synchronization of the predetermined accuracy, the time in the communication device is synchronized with the time in the base station; a control step of controlling the communication device, Wherein, in the control step, when the time in the communication device is synchronized with the time in the base station, the communication device is caused to operate as a time synchronization source for the other communication devices included in the network.
16. A program for causing a computer to function as the communication device according to any one of claims 1 to 14.
