Embodiments described herein relate generally to a clocking device, an image forming apparatus, and a time point correction method.
A facsimile, a printer, or a multifunction peripheral (MPF) has a function of printing a time point. A device such as an MPF having such a function is therein provided with a real time clock (RTC) circuit that clocks a time point. In clocking using the RTC circuit, clocking based on clocks output by a quartz oscillator is performed. As a result, an error between the clocked time point and a standard time point increases over time.
In the related art, correction of a time point has been performed using a time point acquired from a network time protocol (NTP) server. By using such a technique, correct time can be clocked even though the accuracy of the RTC circuit is low to a certain extent. Thus, inexpensive components can be used in the RTC circuit.
However, when the device such as the MPF cannot be connected to the NTP server or the like, or is provided under an environment where the connection is not easy, it is difficult to sufficiently perform the time point correction based on the standard time point. In such a case, in order to clock the correct time point, it is necessary to enhance the accuracy of the RTC circuit, which leads to an increase in the manufacturing cost of the device.
An image forming apparatus 1 according to embodiments described herein includes a clocking device 100 that clocks a correct time point by correcting a time point based on time point information received from a plurality of mobile terminals 200. Hereinafter, the image forming apparatus 1 according to the embodiments described herein will be described with reference to the accompanying drawings.
The printer 2 prints a time point indicated by time point information supplied from the clocking device 100 in printing on a header, a footer, or the like of a sheet which is a printing target. As the printer 2, a printing unit such as a laser printer or an ink jet printer may be used.
The clocking device 100 is a device for clocking a time point. If the clocking device 100 is connected to an NTP server 300 through a network 500, the clocking device 100 corrects a time point of the device based on a time point indicated by time point information acquired from the NTP server 300 at a predetermined timing. Further, the clocking device 100 has a communication function. Thus, if the clocking device 100 is able to communicate with a global positioning system (GPS) 400, the clocking device 100 corrects a time point of the device based on a time point indicated by time point information acquired from the GPS at a predetermined timing.
If the clocking device 100 is not able to acquire the time point information from the NTP server 300 and the GPS 400, the clocking device 100 corrects a time point of the device based on a time point indicated by time point information acquired from the mobile terminal 200. Hereinafter, the clocking device 100 will be described in detail.
The clocking device 100 physically includes a communication unit 10, a storage unit 20, a control unit 30, and an output unit 40, as shown in
The communication unit 10 includes a wired communication unit 11 and a wireless communication unit 12, as shown in
The wireless communication unit 12 is configured by a wireless communication module, a modem, and the like. The wireless communication module includes a mobile phone wireless module, a GPS module, a wireless local area network (LAN) module, a Bluetooth (registered trademark) wireless module, or the like. The wireless communication unit 12 communicates with the mobile terminal 200 and the GPS 400 to acquire time point information.
The mobile terminal 200 which is a communication target of the wireless communication unit 12 is a terminal in which an application for communicating with the image forming apparatus 1 is installed in advance and the application is executed. As the application is executed, the mobile terminal 200 is able to transmit and receive information between the wireless communication unit 12 and the mobile terminal 200. The information transmitted from the mobile terminal 200 includes, for example, time point information indicating a time point clocked by the mobile terminal 200 or identification information for identifying the terminal. A smartphone, a tablet, or the like may be considered as the mobile terminal 200.
The communication unit 10 communicates with the NTP server 300, the GPS 400, and the mobile terminal 200 at a predetermined timing, performs a transmission request of time point information indicating the standard time point, and receives the transmitted time point information. The predetermined timing refers to a timing which is set in advance in a program, for example, a timing when power is supplied, every minute, every hour, every day, or every 1 month.
Returning to
The control unit 30 is physically configured by a central processing unit (CPU), or the like, and realizes the following functions by executing the program of the clocking device 100 stored in the storage unit 20.
The control unit 30 functionally includes a clocking unit 31, an acquisition unit 32, a statistical processing unit 33, and a correction unit 34, as shown in
The clocking unit 31 includes an RTC circuit configured by a crystal oscillation circuit, a counter circuit, and the like. The RTC circuit counts the number of clocks of a signal output from the crystal oscillation circuit using the counter circuit, to thereby measure elapsed time. Accordingly, an error between a time point indicated by the RTC circuit and the standard time point becomes larger over time due to an accuracy error of the crystal oscillation circuit which is provided therein. If a high accuracy RTC circuit is used, the device cost increases. Thus, the RTC circuit is configured by relatively inexpensive components on the premise that it is periodically corrected on the basis of the standard time point.
The acquisition unit 32 acquires time point information from the communication unit 10, and calculates time difference data indicating the error between a time point clocked by the clocking unit 31 and the standard time point. When calculating time difference data based on time point information acquired from the NTP server 300 or the GPS 400, the acquisition unit 32 supplies the time difference data to the correction unit 34. Further, when calculating time difference data based on time point information acquired from each of the mobile terminals 200, the acquisition unit 32 supplies the time difference data and an identification (ID) number which is identification information for specifying each of the mobile terminals 200 to the statistical processing unit 33.
The statistical processing unit 33 statistically processes the time difference data acquired from the mobile terminal 200 to calculate a correction time for correcting the time point of the clocking unit 31. The statistical processing unit 33 includes a unique data elimination unit 332 and a correction time calculation unit 333, as shown in
Generally, the mobile terminal 200 periodically receives time point information from the NTP server 300 or the like through a telephone communication network or the Internet. Further, the mobile terminal 200 corrects a time point of a timepiece which is provided therein. For this reason, it is considered that the time point of the mobile terminal 200 is approximately the same as the standard time point. However, there is a case where time point information indicating a time point that is distant from the standard time point is mixed in time point information received from the plurality of mobile terminals 200. If a statistical process is performed in consideration of such time point information with low reliability, the reliability of the correction time to be calculated is also lowered. In order to prevent such a problem, the clocking device 100 includes the unique data elimination unit 332.
The unique data elimination unit 332 calculates an average value and a standard deviation of the time difference data supplied from the acquisition unit 32. Further, the unique data elimination unit 332 eliminates time difference data which is distant from the average value by a value of the standard deviation or larger as unique data, for example.
The correction time calculation unit 333 calculates an average value of the time difference data after the unique data is eliminated, and sets the average value as the correction time. The unique data elimination unit 332 stores ID numbers associated with the eliminated time difference data in the storage unit 20.
A specific example will be described with reference to
The correction time calculation unit 333 calculates an average value of the remaining time difference data obtained by eliminating the unique data from the N pieces of time difference data. In the example shown in
Returning to
The output unit 40 supplies the time point clocked by the clocking unit 31 to the printer 2.
Next, a clocking process of the clocking device 100 having the above-described configuration will be described with reference to
If the clocking process starts, the control unit 30 determines whether it is possible to communicate with the NTP server 300 through the communication unit 10 (Act 11). If it is possible to communicate with the NTP server 300 (Act 11: Yes), the acquisition unit 32 calculates time difference data indicating a difference between a time point indicated by the time point information acquired from the NTP server 300 and the time point clocked by the clocking unit 31. In addition, the acquisition unit 32 supplies the calculated time difference data to the correction unit 34. The correction unit 34 sets time obtained by adding the processing time to the time difference data based on the time point information acquired from the NTP server 300 as a correction time, and corrects the time point of the clocking unit 31 (Act 12).
If it is not possible to communicate with the NTP server 300 (Act 11: No), the control unit 30 determines whether it is possible to communicate with the GPS 400 through the communication unit 10 (Act 13). If it is possible to communicate with the GPS (Act 13: Yes), the acquisition unit 32 calculates time difference data indicating a difference between a time point indicated by the time point information acquired from the GPS 400 and the time point clocked by the clocking unit 31. Then, the acquisition unit 32 supplies the time difference data to the correction unit 34. The correction unit 34 sets time obtained by adding the processing time to the time difference data based on the time point information acquired from the GPS 400 as a correction time, and corrects the time point of the clocking unit 31 (Act 14).
If it is not possible to communicate with the GPS 400 (Act 13: No), the control unit 30 performs the clocking process based on the time point information acquired from the mobile terminal 200 (Act 15). The clocking process based on the time point information acquired from the mobile terminal 200 will be described with reference to
If the clocking process based on the time point information acquired from the mobile terminal 200 starts, the control unit 30 requests transmission of the time point information of the mobile terminal 200 through the communication unit 10 (Act 31). The mobile terminal 200 that receives the transmission request of the time point information transmits the time point information indicating the time point clocked by the mobile terminal 200 and an ID number for specifying the mobile terminal 200 to the clocking device 100. Then, the acquisition unit 32 acquires the time point information and the ID number for specifying the mobile terminal 200 from the mobile terminal 200 (Act 32). The acquisition unit calculates time difference data between the time point information acquired from the mobile terminal 200 and the time point information clocked by the clocking unit 31. Furthermore, the acquisition unit 32 stores the time difference data in the storage unit 20 in association with the ID number.
The control unit 30 determines whether the predetermined waiting time Tw has elapsed (Act 33). If the waiting time Tw has not elapsed (Act 33: No), the control unit 30 returns to Act 31 and continues the processes from Act 31 to Act 33. If the waiting time Tw has elapsed (Act 33: Yes), the statistical processing unit 33 reads out the time difference data from the storage unit 20, and statistically processes the time difference data to calculate a correction time for correcting the time point clocked by the clocking unit 31 (Act 34). The statistical process will be described with reference to
If the statistical process starts, the unique data elimination unit 332 reads out time difference data associated with an ID number which is registered in advance from the storage unit 20 (Act 51).
Then, the unique data elimination unit 332 calculates an average value and a standard deviation σ of the time difference data read out from the storage unit 20 (Act 52). Further, the unique data elimination unit 332 eliminates time difference data which is distant from the average value by the standard deviation σ or larger as unique data (Act 53). The correction time calculation unit 333 calculates an average value of the time difference data after the unique data is eliminated as a correction time (Act 54). If the process of Act 54 is terminated, the process based on the control unit 30 transitions to Act 35 in
The correction unit 34 sets time obtained by adding the processing time to the correction time calculated by the statistical processing unit 33 as a correction time, and corrects the time point of the clocking unit 31 (Act 35). If the process of Act 35 is terminated, the process of Act 15 shown in
As described above, the clocking device 100 includes the communication unit 10 that receives time point information from a plurality of terminals, the statistical processing unit 33 that statistically processes time difference data between time point information received by the communication unit 10 and time point clocked by the clocking unit 31 and calculates a correction time of the clocking unit 31, and the correction unit 34 that corrects the time point of the clocking unit 31 based on the correction time. With this configuration, the clocking device 100 can correctly correct the time point of the clocking device 100, even when the clocking device 100 is provided under an environment where time point information indicating the standard time point cannot be acquired through a network or the like.
The statistical processing unit 33 sets an average value of time difference data between the time point information and the time point clocked by the clocking unit 31 as a correction time, and the correction unit 34 corrects the time point of the clocking unit 31 based on the correction time. With this configuration, the clocking device 100 can correctly correct the time point of the clocking device 100, even when the clocking device 100 is provided under an environment where time point information indicating the standard time point cannot be acquired through a network or the like.
The statistical processing unit 33 extracts unique data from the time difference data between the time point information and the time point clocked by the clocking unit 31, and eliminates the unique data from the time difference data to calculate an average value. Thus, the clocking device 100 can more correctly correct the time point of the device.
Next, Embodiment 2 will be described. An image forming apparatus 1 according to Embodiment 2 is different from the image forming apparatus according to Embodiment 1 in that a remote control using the mobile terminal 200 is possible. Hereinafter, the image forming apparatus 1 according to Embodiment 2 will be described. The same reference numerals are used for the same or equivalent configurations as in Embodiment 1, and description thereof will be omitted or simplified.
If the remote control from the mobile terminal 200 is made, the image forming apparatus 1 acquires time point information from the mobile terminal 200, and calculates a correction time of the clocking unit 31. Hereinafter, a clocking process will be described with reference to
If a user supplies power to the image forming apparatus 1 and a CPU starts up a program stored in a ROM, a clocking process based on the mobile terminal shown in
If the remote control of the image forming apparatus 1 using the mobile terminal 200 is made by the user, the mobile terminal 200 transmits information including an ID number for specifying the mobile terminal 200, operation content of the remote control, and a transmission time point to the image forming apparatus 1.
The control unit 30 continuously monitors whether the remote control from the mobile terminal 200 is present (Act 71: No). If the remote control from the mobile terminal 200 is present (Act 71: Yes), the acquisition unit 32 acquires time point information and an ID number for specifying the mobile terminal 200 through the communication unit 10 (Act 72). Further, the acquisition unit 32 calculates time difference data between a time point indicated by the time point information acquired from the mobile terminal 200 and a time point clocked by the clocking unit 31 (Act 73). The acquisition unit 32 stores the time difference data and the ID number in the storage unit 20 in association. The time difference data shown in
The control unit 30 determines the presence or absence of a correction instruction based on a timing set in a program in advance (Act 74). If the correction instruction is not present (Act 74: No), the procedure returns to Act 71, and the control unit 30 continues the processes from Act 71 to Act 74.
If the predetermined timing arrives and the correction instruction is present (Act 74: Yes), the statistical processing unit 33 performs a statistical process to calculate a correction time (Act 75). Then, the correction unit 34 sets a time obtained by adding the processing time to the correction time calculated by the statistical processing unit 33 as a correction time, and corrects the time point clocked by the clocking unit 31 (Act 76). The process of Act 75 is the same as the process of Act 34 in Embodiment 1. Further, the process of Act 76 is the same as the process of Act 35 in Embodiment 1.
As described above, if the remote control based on the mobile terminal 200 is performed, the clocking device 100 corrects the time point clocked by the clocking unit 31 based on the time point information received from the mobile terminal 200. With this configuration, the clocking device 100 can correctly correct the time point of the clocking device 100, even when the clocking device 100 is provided under an environment where time point information indicating the standard time point cannot be acquired through a network or the like.
Hereinbefore, the embodiments of the present disclosure have been described, but the present disclosure is not limited to the embodiments. For example, in the above-described embodiments, a configuration in which the communication unit 10 is provided in the clocking device 100 is shown. The present disclosure is not limited thereto, and the communication unit 10 may be an external device that is provided separately from the clocking device 100. For example, the communication unit 10 may be provided as a communication device which is separately mounted in the image forming apparatus 1, and the acquisition unit 32 of the clocking device 100 may acquire data through the communication device.
In the above-described embodiments, a configuration in which the clocking device 100 has a function of acquiring time point information from the NTP server 300 and the GPS 400 is shown. The present disclosure is not limited thereto, and the clocking device 100 may not have a function of communicating with the NTP server 300 or the GPS 400.
In the above-described embodiments, a configuration in which the clocking device 100 includes the unique data elimination unit 332 is shown. However, the present disclosure is not limited thereto, and the clocking device 100 may not include the unique data elimination unit 332.
The mobile terminal 200 may include a smartphone, a tablet terminal, a mobile phone set, or the like.
In the description of Embodiment 1, referring to
In the description of Embodiment 1, a configuration in which the statistical processing unit 33 calculates time difference data between a time point indicated by time point information acquired from the mobile terminal 200 and a time point clocked by the clocking unit 31 and calculates an average value of the time difference data as a correction time is shown. However, a method for calculating the correction time is not limited thereto.
For example, the correction time may be calculated on the basis of a frequency distribution of the time difference data, instead of the average value of the time difference data. Hereinafter, a clocking device 100 according to Modification example 2 will be described.
The statistical processing unit 33 of the clocking device 100 divides time difference data acquired from the acquisition unit 32 into groups specified according to the size of a time difference, and adds up time difference data in each group.
Among the mobile terminals 200, there are a model which is temporally synchronized with the NTP server 300 or the GPS 400 and a model which is not temporally synchronized therewith. Time point information acquired from the mobile terminal 200 which is not temporally synchronized with the NTP server 300 or the GPS 400 is based on the accuracy of a crystal oscillator mounted in each mobile terminal 200. Accordingly, it is expected that the time difference data is randomly distributed in the respective groups. On the other hand, the entirety of time point information acquired from the mobile terminal 200 which is temporally synchronized with the NTP server 300 or the GPS 400 is based on a time point of the NTP server 300. Accordingly, it is expected that the time difference data also have the same value and is distributed in a specific group. As a result, as shown in FIG. 11, only the frequency of acquisition of time difference data that belongs to a certain time difference group has a large value.
In the case shown in
The statistical processing unit 33 calculates a time difference data frequency for each group indicating a predetermined time difference, and sets a time indicated by a group of a time difference having the highest frequency as a correction time. Thus, the clocking device 100 can be temporally synchronized with the NTP server 300 or the GPS 400 in an indirect manner, and can correctly correct a time point of the clocking device 100.
While certain embodiments have been described, these embodiments have been presented by way of example only, and are not intended to limit the scope of the inventions. Indeed, the novel embodiments described herein may be embodied in a variety of other forms; furthermore, various omissions, substitutions and changes in the form of the embodiments described herein may be made without departing from the spirit of the inventions. The accompanying claims and their equivalents are intended to cover such forms or modifications as would fall within the scope and spirit of the inventions.