JP2023106840A - On-vehicle device and program - Google Patents

On-vehicle device and program Download PDF

Info

Publication number
JP2023106840A
JP2023106840A JP2022007810A JP2022007810A JP2023106840A JP 2023106840 A JP2023106840 A JP 2023106840A JP 2022007810 A JP2022007810 A JP 2022007810A JP 2022007810 A JP2022007810 A JP 2022007810A JP 2023106840 A JP2023106840 A JP 2023106840A
Authority
JP
Japan
Prior art keywords
date
conversion
gps
time
cycle information
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
JP2022007810A
Other languages
Japanese (ja)
Inventor
大希 内山
Daiki Uchiyama
卓巳 鈴木
Takumi Suzuki
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yazaki Energy System Corp
Original Assignee
Yazaki Energy System Corp
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 Yazaki Energy System Corp filed Critical Yazaki Energy System Corp
Priority to JP2022007810A priority Critical patent/JP2023106840A/en
Publication of JP2023106840A publication Critical patent/JP2023106840A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Electric Clocks (AREA)

Abstract

To provide an on-vehicle device and a program capable of preventing erroneous conversion of a date when converting GPS time into a date and time and accurately setting a date of a built-in clock of the on-vehicle device.SOLUTION: An on-vehicle device 1 includes a GPS communication module 3 and a main CPU 10. The main CPU 10 includes a memory 11 that stores cycle information 112 indicating the current cycle of accumulation of GPS weeks, determines whether or not a date output from the GPS communication module 3 is included in a date range corresponding to the cycle information 112 stored in the memory 11, corrects a date and time of a built-in clock 111 to a date and time output from the GPS communication module 3 in the case of affirmative determination, and re-sets first conversion information 321 stored in a memory 32 of the GPS communication module 3 based on the cycle information 112 stored in the memory 11 in the case of negative determination.SELECTED DRAWING: Figure 1

Description

本発明は、車載器、及びプログラムに関する。 The present invention relates to an onboard device and a program.

GPS(Global Positioning System)から取得するGPS時刻(GPS週数及びGPS週内秒)に基づいて、CPUの内蔵時計の時刻を補正するドライブレコーダが知られている(例えば、特許文献1参照)。 A drive recorder that corrects the time of the built-in clock of a CPU based on GPS time (GPS week number and GPS week second) obtained from a GPS (Global Positioning System) is known (see, for example, Patent Document 1).

特許第5781795号公報Japanese Patent No. 5781795

車載器のGPS通信モジュールのメモリには、GPS週数及びGPS週内秒を日付及び時刻に変換するための変換情報が記憶されており、GPS通信モジュールは、この変換情報に基づいて日付及び時刻を算出している。ここで、GPS週数の積算は、1024週で1巡するところ、GPS週数の積算が何巡目であるかを示す巡目情報(2021年時点では3巡目)が、メモリに記憶された変換情報に含まれている。この巡目情報に狂いが生じた場合には、GPS通信モジュールは、1024週分、2048週分、又は3072週分ずれた日付を算出することになる。この場合、上記特許文献1に記載のドライブレコーダでは、内蔵時計の日付が誤って補正される。 The memory of the GPS communication module of the vehicle-mounted device stores conversion information for converting the GPS week number and GPS week seconds into date and time. is calculated. Here, since the accumulation of the GPS week number is performed once every 1024 weeks, the cycle information indicating the number of the accumulation of the GPS week number (3rd round as of 2021) is stored in the memory. included in the conversion information. If there is an error in this cycle information, the GPS communication module will calculate the date shifted by 1024 weeks, 2048 weeks, or 3072 weeks. In this case, the date of the built-in clock is erroneously corrected in the drive recorder described in Patent Document 1 above.

本発明は、上記事情に鑑み、GPS時刻を日付及び時刻に変換する際の日付の誤変換を防止して車載器の内蔵時計の日付を正確に設定することができる車載器、及びプログラムを提供することを目的とする。 In view of the above circumstances, the present invention provides an on-vehicle device and a program that prevent erroneous date conversion when converting GPS time into date and time and can set the date of the on-board device's built-in clock accurately. intended to

本発明の車載器は、GPSアンテナが受信したGPS週数及びGPS週内秒を含むGPS時刻を日付及び時刻に変換するための変換情報を記憶した変換情報記憶部と、前記GPSアンテナが受信した前記GPS時刻を、前記変換情報記憶部に記憶された前記変換情報に基づいて前記日付及び時刻に変換して出力する変換部と、前記GPS週数の積算が現在何巡目であるかを示す巡目情報を記憶した巡目情報記憶部と、前記変換部から出力された前記日付が、前記巡目情報記憶部に記憶された前記巡目情報に対応する日付の範囲に含まれるか否かを判定する判定部と、内蔵時計と、前記判定部により、前記変換部から出力された前記日付が前記巡目情報に対応する日付の範囲に含まれると判定された場合に、前記内蔵時計の日付及び時刻を、前記変換部から出力された前記日付及び時刻に補正する補正部と、前記判定部により、前記変換部から出力された前記日付が前記巡目情報に対応する日付の範囲に含まれないと判定された場合に、前記変換情報記憶部に記憶された前記変換情報を、前記巡目情報記憶部に記憶された前記巡目情報に基づいて再設定する変換情報設定部とを備える。 The vehicle-mounted device of the present invention includes a conversion information storage unit that stores conversion information for converting GPS time, including the GPS week number and GPS week seconds received by the GPS antenna, into date and time; A conversion unit that converts the GPS time into the date and time based on the conversion information stored in the conversion information storage unit and outputs the date and time, and indicates the current cycle of the accumulation of the GPS week number. whether or not the cycle information storage unit storing the cycle information and the date output from the conversion unit are included in the range of dates corresponding to the cycle information stored in the cycle information storage unit; a determination unit that determines the internal clock, and if the determination unit determines that the date output from the conversion unit is included in the range of dates corresponding to the cycle information, A correction unit that corrects the date and time to the date and time output from the conversion unit; a conversion information setting unit for resetting the conversion information stored in the conversion information storage unit based on the cycle information stored in the cycle information storage unit when it is determined that the conversion information is not available. .

本発明のプログラムは、GPSアンテナが受信したGPS週数及びGPS週内秒を含むGPS時刻を日付及び時刻に変換するための変換情報を記憶した変換情報記憶部と、前記GPSアンテナが受信した前記GPS時刻を、前記変換情報記憶部に記憶された前記変換情報に基づいて前記日付及び時刻に変換して出力する変換部と、内蔵時計と、前記GPS週数の積算が現在何巡目であるかを示す巡目情報を記憶した巡目情報記憶部とを備える車載器を制御するためのプログラムであって、前記変換部から出力された前記日付が、前記巡目情報記憶部に記憶された前記巡目情報に対応する日付の範囲に含まれるか否かを判定する判定処理と、前記判定処理により、前記変換部から出力された前記日付が前記巡目情報に対応する日付の範囲に含まれると判定された場合に、前記内蔵時計の日付及び時刻を、前記変換部から出力された前記日付及び時刻に補正する補正処理と、前記判定処理により、前記変換部から出力された前記日付が前記巡目情報に対応する日付の範囲に含まれないと判定された場合に、前記変換情報記憶部に記憶された前記変換情報を、前記巡目情報記憶部に記憶された前記巡目情報に基づいて再設定する変換情報設定処理とを前記車載器に実行させる。 The program of the present invention comprises a conversion information storage unit storing conversion information for converting GPS time, including the GPS week number and GPS week seconds received by the GPS antenna, into date and time; a conversion unit for converting GPS time into the date and time based on the conversion information stored in the conversion information storage unit and outputting the date and time; an internal clock; A program for controlling a vehicle-mounted device comprising a cycle information storage unit storing cycle information indicating whether the date output from the conversion unit is stored in the cycle information storage unit a determination process for determining whether or not the date output from the conversion unit is included in the date range corresponding to the cycle information by the determination process; correction processing for correcting the date and time of the built-in clock to the date and time output from the conversion unit when it is determined that the date output from the conversion unit is correct by the determination processing; when it is determined that the dates are not included in the range of dates corresponding to the cycle information, the conversion information stored in the conversion information storage unit is changed to the cycle information stored in the cycle information storage unit. The vehicle-mounted device is caused to execute a conversion information setting process for resetting based on the conversion information.

本発明によれば、GPS通信モジュール側でGPS時刻を日付及び時刻に変換するための変換情報に狂いが生じた場合でも、GPS時刻を日付及び時刻に変換する際の日付の誤変換を防止して車載器の内蔵時計の日付を正確に設定することができる。 According to the present invention, even if the conversion information for converting the GPS time into the date and time on the GPS communication module side is not correct, it is possible to prevent incorrect conversion of the date when converting the GPS time into the date and time. can be used to accurately set the date of the onboard device's built-in clock.

図1は、本発明の一実施形態に係る車載器の機能を示すブロック図である。FIG. 1 is a block diagram showing functions of a vehicle-mounted device according to one embodiment of the present invention. 図2は、図1に示す車載器における内蔵時計の時刻の補正処理を示すフローチャートである。FIG. 2 is a flow chart showing correction processing of the time of the built-in clock in the vehicle-mounted device shown in FIG.

以下、本発明を好適な実施形態に沿って説明する。なお、本発明は以下に示す実施形態に限られるものではなく、本発明の趣旨を逸脱しない範囲において適宜変更可能である。また、以下に示す実施形態においては、一部構成の図示や説明を省略している箇所があるが、省略された技術の詳細については、以下に説明する内容と矛盾点が発生しない範囲内において、適宜公知又は周知の技術が適用される。 BEST MODE FOR CARRYING OUT THE INVENTION The present invention will be described below along with preferred embodiments. It should be noted that the present invention is not limited to the embodiments described below, and can be modified as appropriate without departing from the gist of the present invention. In addition, in the embodiments shown below, there are places where illustrations and explanations of some configurations are omitted, but the details of the omitted technologies are provided within the scope that does not cause contradiction with the contents explained below. , Appropriately known or well-known techniques are applied.

図1は、本発明の一実施形態に係る車載器1の機能を示すブロック図である。この図に示す車載器1は、ドライブレコーダであり、特に本実施形態ではフォークリフトに搭載されるドライブレコーダである。 FIG. 1 is a block diagram showing functions of a vehicle-mounted device 1 according to one embodiment of the present invention. The vehicle-mounted device 1 shown in this figure is a drive recorder, and particularly in this embodiment, it is a drive recorder mounted on a forklift.

車載器1は、GPSアンテナ2と、GPS通信モジュール3と、メインCPU(Central Processing Unit)10とを備える。GPSアンテナ2は、GPS衛星から発信されたGPS信号を受信する。このGPS信号は、GPS時刻を含む。このGPS時刻は、GPS週数(週番号)及びGPS週内秒を含む。GPS週内秒は、GPSの原子時計が刻む正確な時刻であり、各GPS週の始点の0から各GPS週の終点の67499まで1ずつ増え、GPS週が変わると再び0に戻る。 The vehicle-mounted device 1 includes a GPS antenna 2 , a GPS communication module 3 , and a main CPU (Central Processing Unit) 10 . The GPS antenna 2 receives GPS signals transmitted from GPS satellites. This GPS signal contains GPS time. This GPS time includes the GPS week number (week number) and GPS seconds within the week. The GPS second-in-week is the exact time ticked by the GPS atomic clock, incrementing by 1 from 0 at the beginning of each GPS week to 67499 at the end of each GPS week, and back to 0 when the GPS week changes.

GPS週数は、10ビットの情報である。GPS週数は、10ビットの情報であるが故に、210=1024週で一巡する。即ち、GPS週数は、0から1023まで1ずつ増え、次は再び0に戻る。GPS週数の1巡目は、1980年1月6日(日本時間)から1999年8月22日(日本時間)までである。また、GPS週数の2巡目は、1999年8月22日(日本時間)から2019年4月7日(日本時間)までである。さらに、GPS週数の3巡目は、2019年4月7日(日本時間)から2038年11月21日(日本時間)までである。 The GPS week number is 10-bit information. Since the GPS week number is 10-bit information, it takes 2 10 =1024 weeks. That is, the GPS week number increases by 1 from 0 to 1023, and then returns to 0 again. The first round of GPS weeks is from January 6, 1980 (Japan time) to August 22, 1999 (Japan time). The second round of GPS weeks is from August 22, 1999 (Japan time) to April 7, 2019 (Japan time). Furthermore, the third round of GPS weeks is from April 7, 2019 (Japan time) to November 21, 2038 (Japan time).

UTC(Coordinated Universal Time;協定世界時)に同期して開始された時からの積算週数は、GPS週数の1巡目で0~1023、GPS週数の2巡目で1024~2047、GPS週数の3巡目で2048~3071である。2021年時点は、GPS週数の3巡目に含まれる。 The number of accumulated weeks from the time when it started synchronizing with UTC (Coordinated Universal Time) is 0 to 1023 in the first round of GPS weeks, 1024 to 2047 in the second round of GPS weeks, and It is 2048-3071 in the third round of the number of weeks. 2021 is included in the third round of GPS weeks.

GPS通信モジュール3は、GPS時刻変換機能31と、メモリ32とを備える。メモリ32には、GPS時刻変換機能31を実行させるためのプログラムと、GPS週数及びGPS週内秒を日付及び時刻に変換するための第1及び第2変換情報321,322とが記憶されている。第1変換情報321は、GPS週数(0~1023)を、UTC開始日(1980年1月6日)から現在までの積算週数(2048~3071)に変換するための情報である。第2変換情報322は、当該積算週数及びGPS週内秒(0~67499)を、日付及び時刻に変換するための情報である。 The GPS communication module 3 has a GPS time conversion function 31 and a memory 32 . The memory 32 stores a program for executing the GPS time conversion function 31, and first and second conversion information 321 and 322 for converting the GPS week number and GPS week seconds into date and time. there is The first conversion information 321 is information for converting the GPS week number (0 to 1023) into the accumulated number of weeks (2048 to 3071) from the UTC start date (January 6, 1980) to the present. The second conversion information 322 is information for converting the cumulative number of weeks and the GPS seconds within a week (0 to 67499) into a date and time.

GPS時刻変換機能31は、GPSアンテナ2が受信したGPS週数(0~1023)をメモリ32に記憶された第1変換情報321に基づいて、現在の積算週数(2048~3071)に変換する。また、GPS時刻変換機能31は、GPS週数から変換した現在の積算週数及びGPSアンテナ2が受信したGPS週内秒(0~67499)を、メモリ32に記憶された第2変換情報322に基づいて、現在の日付(2019年4月7日~2038年11月21日)及び時刻(0時0分0秒~23時59分59秒)に変換してメインCPU10に出力する。 The GPS time conversion function 31 converts the GPS week number (0 to 1023) received by the GPS antenna 2 into the current cumulative week number (2048 to 3071) based on the first conversion information 321 stored in the memory 32. . In addition, the GPS time conversion function 31 converts the current cumulative week number converted from the GPS week number and the GPS week seconds (0 to 67499) received by the GPS antenna 2 into the second conversion information 322 stored in the memory 32. Based on this, the current date (April 7, 2019 to November 21, 2038) and time (00:00:00 to 23:59:59) are converted and output to the main CPU 10.

ここで、第1変換情報321は、現在の積算週数(2048~3071)が、GPS週数の積算が何巡目に該当するかを示す情報である。即ち、メモリ32には、第1変換情報321として「3巡目」という情報が記憶されている。 Here, the first conversion information 321 is information indicating to which round the current accumulated week number (2048 to 3071) corresponds to the accumulated GPS week number. That is, the memory 32 stores the information “3rd round” as the first conversion information 321 .

第2変換情報322は、積算週数及びGPS週内秒と日付及び時間との関係を示す数式やテーブル等の情報である。GPS時刻変換機能31は、現在の積算週数及びGPS週内秒を、当該数式やテーブル等に基づいて、現在の日付及び時刻に変換する。 The second conversion information 322 is information such as mathematical formulas and tables indicating the relationship between the accumulated number of weeks and seconds in the GPS week, and the date and time. The GPS time conversion function 31 converts the current integrated week number and GPS week seconds into the current date and time based on the formula, table, or the like.

メインCPU10は、メモリ11と、時刻正誤判定機能12と、時刻補正機能13と、変換情報設定機能14と、通信機能15と、巡目情報設定機能16とを備える。メモリ11には、メインCPU10の各機能を実行させるためのプログラムと、内蔵時計111の時刻(RTC(Real Time Clock)時刻)と、巡目情報112とが記憶されている。巡目情報112は、第1変換情報321と同様、GPS週数の積算が何巡目に該当するかを示す情報である。2021年12月時点では、巡目情報112は、3巡目に該当する。即ち、メモリ11には、巡目情報112として「3巡目」という情報が記憶されている。 The main CPU 10 includes a memory 11 , a time correctness determination function 12 , a time correction function 13 , a conversion information setting function 14 , a communication function 15 and a cycle information setting function 16 . The memory 11 stores a program for executing each function of the main CPU 10 , the time of an internal clock 111 (RTC (Real Time Clock) time), and cycle information 112 . The cycle information 112, like the first conversion information 321, is information indicating which cycle the accumulation of the GPS week number corresponds to. As of December 2021, the round information 112 corresponds to the third round. That is, in the memory 11, the information "3rd round" is stored as the round information 112. FIG.

時刻正誤判定機能12は、メモリ11に記憶された巡目情報112に対応する日付の範囲(2019年4月7日~2038年11月21日)を算出する。そして、時刻正誤判定機能12は、GPS通信モジュール3のGPS時刻変換機能31から出力された現在の日付が、巡目情報112に対応する日付の範囲(2019年4月7日~2038年11月21日)に含まれるか否かを判定し、判定結果を時刻補正機能13及び変換情報設定機能14に出力する。 The time correctness determination function 12 calculates the date range (April 7, 2019 to November 21, 2038) corresponding to the cycle information 112 stored in the memory 11 . Then, the time correctness determination function 12 determines that the current date output from the GPS time conversion function 31 of the GPS communication module 3 corresponds to the date range (April 7, 2019 to November 2038) corresponding to the cycle information 112. 21st), and outputs the determination result to the time correction function 13 and the conversion information setting function 14 .

時刻補正機能13は、GPS時刻変換機能31から出力された日付が巡目情報112に対応する日付の範囲に含まれるという判定結果(肯定判定)が入力された場合に、メモリ11に記憶されている内蔵時計111の日付及び時刻を、GPS時刻変換機能31から出力された日付及び時刻に補正する。 The time correction function 13 is stored in the memory 11 when a determination result (positive determination) that the date output from the GPS time conversion function 31 is included in the date range corresponding to the cycle information 112 is input. The date and time of the built-in clock 111 are corrected to the date and time output from the GPS time conversion function 31 .

他方で、変換情報設定機能14は、GPS時刻変換機能31から出力された日付が巡目情報112に対応する日付の範囲に含まれないという判定結果(否定判定)が入力された場合に、GPS通信モジュール3のメモリ32に記憶された第1変換情報321を、メモリ11に記憶されている巡目情報112により再設定する。 On the other hand, the conversion information setting function 14 receives a determination result (negative determination) that the date output from the GPS time conversion function 31 is not included in the range of dates corresponding to the cycle information 112. The first conversion information 321 stored in the memory 32 of the communication module 3 is reset by the cycle information 112 stored in the memory 11 .

通信機能15は、Bluetooth(登録商標)等の無線通信技術により携帯端末やPC(Personal Computer)等の外部端末4と通信する。外部端末4は、通信機能41と、メモリ42とを備える。通信機能41は、Bluetooth等の無線通信技術により車載器1やその他の機器と通信する。 The communication function 15 communicates with an external terminal 4 such as a mobile terminal or a PC (Personal Computer) using wireless communication technology such as Bluetooth (registered trademark). The external terminal 4 has a communication function 41 and a memory 42 . The communication function 41 communicates with the vehicle-mounted device 1 and other devices by wireless communication technology such as Bluetooth.

メモリ42は、巡目情報112を記憶している。外部端末4は、ユーザによる操作に従って、メモリ42に記憶された巡目情報112を車載器1に出力する。外部端末4から出力された巡目情報112は、通信機能15を介して巡目情報設定機能16に入力される。巡目情報設定機能16は、巡目情報112が入力された場合、入力された巡目情報112によりメモリ11に記憶されている巡目情報112を再設定する。 The memory 42 stores cycle information 112 . The external terminal 4 outputs the cycle information 112 stored in the memory 42 to the vehicle-mounted device 1 according to the user's operation. The cycle information 112 output from the external terminal 4 is input to the cycle information setting function 16 via the communication function 15 . When the cycle information 112 is input, the cycle information setting function 16 resets the cycle information 112 stored in the memory 11 based on the input cycle information 112 .

図2は、図1に示す車載器1における内蔵時計111の時刻の補正処理を示すフローチャートである。このフローチャートに示す補正処理は、車載器1が起動されると開始されてステップS1に移行する。車載器1は、フォークリフト等の車両のイグニッションがONになると自動的に起動される。 FIG. 2 is a flow chart showing a process of correcting the time of the built-in clock 111 in the vehicle-mounted device 1 shown in FIG. The correction process shown in this flowchart is started when the vehicle-mounted device 1 is activated, and proceeds to step S1. The vehicle-mounted device 1 is automatically activated when the ignition of a vehicle such as a forklift is turned on.

ステップS1~S3において、車載器1のメインCPU10は、通常処理ループを実施する。この通常処理ループを抜ける条件は、車両のイグニッションのOFFであり、メインCPU10は、車両のイグニッションがOFFになるまでの間、GPSアンテナ2の受信処理を継続する(ステップS2)。 In steps S1 to S3, the main CPU 10 of the vehicle-mounted device 1 executes a normal processing loop. The condition for exiting this normal processing loop is that the ignition of the vehicle is turned off, and the main CPU 10 continues the reception processing of the GPS antenna 2 until the ignition of the vehicle is turned off (step S2).

通常処理ループを抜けた後のステップS4において、メインCPU10の時刻正誤判定機能12は、メモリ11に記憶された巡目情報112に対応する日付の範囲(2019年4月7日~2038年11月21日)を算出する。次に、ステップS5において、時刻正誤判定機能12は、GPS通信モジュール3のGPS時刻変換機能31から出力された日付が、巡目情報112に対応する日付の範囲(2019年4月7日~2038年11月21日)に含まれるか否かを判定し、判定結果を時刻補正機能13及び変換情報設定機能14に出力する。ステップS5において肯定判定がされた場合にはステップS6に移行し、ステップS5において否定判定がされた場合にはステップS7に移行する。 In step S4 after exiting the normal processing loop, the time correctness determination function 12 of the main CPU 10 determines the date range (April 7, 2019 to November 2038) corresponding to the cycle information 112 stored in the memory 11. 21 days) is calculated. Next, in step S5, the time correctness determination function 12 determines that the date output from the GPS time conversion function 31 of the GPS communication module 3 corresponds to the date range (April 7, 2019 to 2038) corresponding to the cycle information 112. November 21, 2012), and outputs the determination result to the time correction function 13 and the conversion information setting function 14 . If an affirmative determination is made in step S5, the process proceeds to step S6, and if a negative determination is made in step S5, the process proceeds to step S7.

ステップS6において、メインCPU10の時刻補正機能13は、メモリ11に記憶されている内蔵時計111の日付及び時刻を、GPS時刻変換機能31から出力された日付及び時刻に補正する。以上で内蔵時計111の時刻の補正処理を終了し、車載器1が停止する。 In step S<b>6 , the time correction function 13 of the main CPU 10 corrects the date and time of the built-in clock 111 stored in the memory 11 to the date and time output from the GPS time conversion function 31 . Thus, the process of correcting the time of the built-in clock 111 is finished, and the vehicle-mounted device 1 stops.

他方で、ステップS7において、メインCPU10の変換情報設定機能14は、GPS通信モジュール3のメモリ32に記憶された第1変換情報321を、メモリ11に記憶されている巡目情報112により再設定する。以上で内蔵時計111の時刻の補正処理を終了し、車載器1が停止する。 On the other hand, in step S7, the conversion information setting function 14 of the main CPU 10 resets the first conversion information 321 stored in the memory 32 of the GPS communication module 3 with the cycle information 112 stored in the memory 11. . Thus, the process of correcting the time of the built-in clock 111 is finished, and the vehicle-mounted device 1 stops.

即ち、本実施形態の車載器1では、車両のイグニッションがONになってからOFFになるまでの間に1回、内蔵時計111の時刻の補正処理が実行される。この内蔵時計111の時刻の補正処理において、GPS通信モジュール3側で実行されるGPS週数及びGPS週内秒から日付への変換の正誤が、メインCPU10側で判定される。具体的には、メインCPU10の時刻正誤判定機能12が、GPS通信モジュール3から出力された日付の正誤を、当該日付が正確な巡目(現在は3巡目)に対応する日付の範囲に含まれるか否かにより判定する。そして、メインCPU10の変換情報設定機能14が、変換が正しければ変換された日付に従って内蔵時計111の日付を補正する。他方で、変換情報設定機能14は、変換が誤っていればGPS通信モジュール3のメモリ32に記憶された巡目に関する第1変換情報321をメインCPU10側で記憶した巡目情報112により再設定する。これによって、GPS通信モジュール3側で第1変換情報321に狂いが生じた場合でも、GPSアンテナ2が受信したGPS週数及びGPS週内秒を正確な日付に変換して車載器1の内蔵時計111の日付を正確に設定することができる。 That is, in the vehicle-mounted device 1 of the present embodiment, the correction processing of the time of the built-in clock 111 is executed once after the ignition of the vehicle is turned on until it is turned off. In the process of correcting the time of the built-in clock 111, the main CPU 10 determines whether the conversion from the GPS week number and the seconds within the GPS week to the date executed by the GPS communication module 3 is correct. Specifically, the time correctness determination function 12 of the main CPU 10 determines whether the date output from the GPS communication module 3 is correct or incorrect within the date range corresponding to the correct cycle (currently the third cycle). It is determined by whether or not Then, if the conversion is correct, the conversion information setting function 14 of the main CPU 10 corrects the date of the built-in clock 111 according to the converted date. On the other hand, if the conversion is erroneous, the conversion information setting function 14 resets the first conversion information 321 relating to the cycle stored in the memory 32 of the GPS communication module 3 with the cycle information 112 stored on the main CPU 10 side. . As a result, even if the first conversion information 321 is incorrect on the GPS communication module 3 side, the GPS week number and the GPS week seconds received by the GPS antenna 2 are converted into accurate dates, and the built-in clock of the vehicle-mounted device 1 is corrected. 111 dates can be set accurately.

また、本実施形態の車載器1では、巡目情報としての第1変換情報321に狂いが生じた場合に、当該第1変換情報321をメインCPU10側で記憶した巡目情報112により再設定する。これにより、GPS通信モジュール3のGPS時刻変換機能31が、1024週分、2048週分、又は3072週分ずれた積算週数を算出することを防止できる。従って、GPS時刻変換機能31による正確な積算週数に基づいた日付の算出が可能になり、車載器1の内蔵時計111の日付を正確に補正することができる。 Further, in the vehicle-mounted device 1 of the present embodiment, when the first conversion information 321 as the cycle information is incorrect, the first conversion information 321 is reset by the cycle information 112 stored on the main CPU 10 side. . As a result, the GPS time conversion function 31 of the GPS communication module 3 can be prevented from calculating the accumulated number of weeks shifted by 1024 weeks, 2048 weeks, or 3072 weeks. Therefore, the date can be calculated based on the accurate accumulated number of weeks by the GPS time conversion function 31, and the date of the built-in clock 111 of the vehicle-mounted device 1 can be corrected accurately.

また、本実施形態の車載器1では、外部端末4のメモリ42に記憶された巡目情報112をメインCPU10に入力し、入力された巡目情報112によりメモリ11に記憶された巡目情報112を再設定することができる。これにより、メインCPU10のメモリ11に記憶された巡目情報112に狂いや消失等が生じた場合でも、本実施形態の内蔵時計111の時刻の補正処理を継続することができる。 In addition, in the vehicle-mounted device 1 of the present embodiment, the cycle information 112 stored in the memory 42 of the external terminal 4 is input to the main CPU 10, and the cycle information 112 stored in the memory 11 is input based on the input cycle information 112. can be reset. As a result, even if the cycle information 112 stored in the memory 11 of the main CPU 10 is out of order or lost, the correction processing of the time of the built-in clock 111 of this embodiment can be continued.

以上、実施形態に基づき本発明を説明したが、本発明は上述の実施形態に限られるものではなく、本発明の趣旨を逸脱しない範囲で、変更を加えてもよいし、適宜公知や周知の技術を組み合わせてもよい。例えば、上記実施形態では、車載器1をドライブレコーダとしたが、デジタルタコグラフやカーナビゲーションシステムや運転支援システム等の他の車載器にも本発明を適用できる。 Although the present invention has been described above based on the embodiments, the present invention is not limited to the above-described embodiments, and may be modified without departing from the scope of the present invention. You can combine techniques. For example, in the above embodiment, the vehicle-mounted device 1 is a drive recorder, but the present invention can also be applied to other vehicle-mounted devices such as a digital tachograph, a car navigation system, and a driving support system.

また、上記実施形態の車載器1は、GPSアンテナ2が内蔵されているが、GPSアンテナ2は、車載器1とは別体で設けられ、有線又は無線で接続されていてもよい。また、外部端末4との無線通信により巡目情報112をメインCPU10に入力するのに代えて、巡目情報112が記録された記録媒体をメインCPU10に接続して巡目情報112をメインCPU10に入力するようにしてもよい。 Moreover, although the vehicle-mounted device 1 of the above embodiment has the GPS antenna 2 built therein, the GPS antenna 2 may be provided separately from the vehicle-mounted device 1 and may be connected by wire or wirelessly. Alternatively, instead of inputting the round information 112 to the main CPU 10 through wireless communication with the external terminal 4, a recording medium on which the round information 112 is recorded may be connected to the main CPU 10 to transmit the round information 112 to the main CPU 10. You may make it input.

さらに、上記実施形態の車載器1では、車両のイグニッションがOFFになってから内蔵時計111の時刻の補正処理を実行したが、車両のイグニッションがONになった直後に内蔵時計111の時刻の補正処理を実行してもよい。 Furthermore, in the vehicle-mounted device 1 of the above-described embodiment, the time correction process of the built-in clock 111 is performed after the ignition of the vehicle is turned off. processing may be performed.

1 :車載器
2 :GPSアンテナ
11 :メモリ(巡目情報記憶部)
12 :時刻正誤判定機能(判定部)
13 :時刻補正機能(補正部)
14 :変換情報設定機能(変換情報設定部)
15 :通信機能(入力部)
16 :巡目情報設定機能(巡目情報設定部)
31 :GPS時刻変換機能(変換部)
32 :メモリ(変換情報記憶部)
42 :メモリ(外部記録媒体)
111 :内蔵時計
112 :巡目情報
321 :第1変換情報(変換情報、巡目情報)
322 :第2変換情報(変換情報、関係情報)
1: On-vehicle device 2: GPS antenna 11: Memory (cycle information storage unit)
12: Time correctness judgment function (judgment unit)
13: Time correction function (correction unit)
14: Conversion information setting function (conversion information setting part)
15: Communication function (input unit)
16: Cycle information setting function (cycle information setting unit)
31: GPS time conversion function (conversion unit)
32: memory (conversion information storage unit)
42: Memory (external recording medium)
111: built-in clock 112: cycle information 321: first conversion information (conversion information, cycle information)
322: Second conversion information (conversion information, relationship information)

Claims (4)

GPSアンテナが受信したGPS週数及びGPS週内秒を含むGPS時刻を日付及び時刻に変換するための変換情報を記憶した変換情報記憶部と、
前記GPSアンテナが受信した前記GPS時刻を、前記変換情報記憶部に記憶された前記変換情報に基づいて前記日付及び時刻に変換して出力する変換部と、
前記GPS週数の積算が現在何巡目であるかを示す巡目情報を記憶した巡目情報記憶部と、
前記変換部から出力された前記日付が、前記巡目情報記憶部に記憶された前記巡目情報に対応する日付の範囲に含まれるか否かを判定する判定部と、
内蔵時計と、
前記判定部により、前記変換部から出力された前記日付が前記巡目情報に対応する日付の範囲に含まれると判定された場合に、前記内蔵時計の日付及び時刻を、前記変換部から出力された前記日付及び時刻に補正する補正部と、
前記判定部により、前記変換部から出力された前記日付が前記巡目情報に対応する日付の範囲に含まれないと判定された場合に、前記変換情報記憶部に記憶された前記変換情報を、前記巡目情報記憶部に記憶された前記巡目情報に基づいて再設定する変換情報設定部と
を備える車載器。
a conversion information storage unit storing conversion information for converting the GPS time received by the GPS antenna, including the GPS week number and the GPS time within the GPS week, into a date and time;
a conversion unit that converts the GPS time received by the GPS antenna into the date and time based on the conversion information stored in the conversion information storage unit and outputs the date and time;
a cycle information storage unit storing cycle information indicating the current cycle of the accumulation of the GPS week number;
a determination unit that determines whether the date output from the conversion unit is included in a range of dates corresponding to the cycle information stored in the cycle information storage unit;
built-in clock and
When the determination unit determines that the date output from the conversion unit is included in the date range corresponding to the cycle information, the date and time of the built-in clock are output from the conversion unit. a correction unit for correcting the date and time;
When the determination unit determines that the date output from the conversion unit is not included in the range of dates corresponding to the cycle information, the conversion information stored in the conversion information storage unit is and a conversion information setting unit configured to reset based on the cycle information stored in the cycle information storage unit.
前記変換情報は、前記巡目情報と、当該巡目情報に対応する積算週数及び前記GPS週内秒と前記日付及び時刻との関係を示す関係情報とを含み、
前記変換部は、前記GPSアンテナが受信した前記GPS週数を前記変換情報記憶部に記憶された前記巡目情報に対応する前記積算週数に変換し、当該積算週数及び前記GPSアンテナが受信した前記GPS週内秒を、前記変換情報記憶部に記憶された前記関係情報に基づいて前記日付及び時刻に変換して出力し、
前記変換情報設定部は、前記判定部により、前記変換部から出力された前記日付が前記巡目情報に対応する日付の範囲に含まれないと判定された場合に、前記巡目情報記憶部に記憶された前記巡目情報により前記変換情報記憶部に記憶された前記巡目情報を再設定する請求項1に記載の車載器。
The conversion information includes the cycle information and relationship information indicating the relationship between the accumulated number of weeks and the GPS seconds in the week corresponding to the cycle information and the date and time,
The conversion unit converts the GPS week number received by the GPS antenna into the accumulated week number corresponding to the cycle information stored in the conversion information storage unit, and the accumulated week number and the GPS antenna receive converting the GPS second within a week to the date and time based on the relational information stored in the conversion information storage unit and outputting the date and time;
When the determination unit determines that the date output from the conversion unit is not included in the range of dates corresponding to the cycle information, the conversion information setting unit stores 2. The vehicle-mounted device according to claim 1, wherein the cycle information stored in the conversion information storage unit is reset based on the stored cycle information.
外部記録媒体に記憶された前記巡目情報を入力する入力部と、
前記入力部により入力された前記巡目情報により前記巡目情報記憶部に記憶された前記巡目情報を再設定する巡目情報設定部と
を備える請求項1又は2に記載の車載器。
an input unit for inputting the cycle information stored in an external recording medium;
3. The vehicle-mounted device according to claim 1, further comprising a cycle information setting unit that resets the cycle information stored in the cycle information storage unit according to the cycle information input by the input unit.
GPSアンテナが受信したGPS週数及びGPS週内秒を含むGPS時刻を日付及び時刻に変換するための変換情報を記憶した変換情報記憶部と、
前記GPSアンテナが受信した前記GPS時刻を、前記変換情報記憶部に記憶された前記変換情報に基づいて前記日付及び時刻に変換して出力する変換部と、
内蔵時計と、
前記GPS週数の積算が現在何巡目であるかを示す巡目情報を記憶した巡目情報記憶部と
を備える車載器を制御するためのプログラムであって、
前記変換部から出力された前記日付が、前記巡目情報記憶部に記憶された前記巡目情報に対応する日付の範囲に含まれるか否かを判定する判定処理と、
前記判定処理により、前記変換部から出力された前記日付が前記巡目情報に対応する日付の範囲に含まれると判定された場合に、前記内蔵時計の日付及び時刻を、前記変換部から出力された前記日付及び時刻に補正する補正処理と、
前記判定処理により、前記変換部から出力された前記日付が前記巡目情報に対応する日付の範囲に含まれないと判定された場合に、前記変換情報記憶部に記憶された前記変換情報を、前記巡目情報記憶部に記憶された前記巡目情報に基づいて再設定する変換情報設定処理と
を前記車載器に実行させるプログラム。
a conversion information storage unit storing conversion information for converting the GPS time received by the GPS antenna, including the GPS week number and the GPS time within the GPS week, into a date and time;
a conversion unit that converts the GPS time received by the GPS antenna into the date and time based on the conversion information stored in the conversion information storage unit and outputs the date and time;
built-in clock and
A program for controlling a vehicle-mounted device comprising a cycle information storage unit storing cycle information indicating the current cycle of the GPS week number integration,
a determination process for determining whether or not the date output from the conversion unit is included in a range of dates corresponding to the cycle information stored in the cycle information storage unit;
When it is determined by the determination process that the date output from the conversion unit is included in the range of dates corresponding to the cycle information, the date and time of the built-in clock are output from the conversion unit. a correction process for correcting the date and time;
When it is determined by the determination process that the date output from the conversion unit is not included in the range of dates corresponding to the cycle information, the conversion information stored in the conversion information storage unit is A program for causing the vehicle-mounted device to execute conversion information setting processing for resetting based on the cycle information stored in the cycle information storage unit.
JP2022007810A 2022-01-21 2022-01-21 On-vehicle device and program Pending JP2023106840A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2022007810A JP2023106840A (en) 2022-01-21 2022-01-21 On-vehicle device and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2022007810A JP2023106840A (en) 2022-01-21 2022-01-21 On-vehicle device and program

Publications (1)

Publication Number Publication Date
JP2023106840A true JP2023106840A (en) 2023-08-02

Family

ID=87473655

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2022007810A Pending JP2023106840A (en) 2022-01-21 2022-01-21 On-vehicle device and program

Country Status (1)

Country Link
JP (1) JP2023106840A (en)

Similar Documents

Publication Publication Date Title
US7529157B2 (en) Time correction control apparatus and method of time correction control
US7711481B2 (en) Navigation system
US8103404B2 (en) System and method for odometer calibration
CN105843034B (en) Electronic timepiece, electronic device, update information transmission device, and update information transmission method
JP2011237314A (en) Electronic apparatus
JP2009036748A (en) Time correction device, clocking device with time correction device, and time correction method
US10727817B2 (en) Real-time clock device, electronic device, and vehicle
US10317850B2 (en) Positioning apparatus, electronic timepiece, positioning control method and recording medium
US7751796B2 (en) In-vehicle emergency report device
JP2023106840A (en) On-vehicle device and program
US10663598B2 (en) Electronic device, date-and-time acquisition control method, and recording medium
JP2000199792A (en) Time piece and time correction method
JP2011520110A (en) Method and apparatus for obtaining GNSS time in GNSS receiver
JP2011257300A (en) In-vehicle recording apparatus and time correction method for in-vehicle recording apparatus
JP2002090441A (en) Gps receiving device
JP2000352583A (en) Date-specifying method
JP2006145340A (en) Personal digital assistant and altitude measuring system
JP2010032222A (en) Gps clocking device and time detection method
JP2014215147A (en) Electronic device
JP6350911B2 (en) In-vehicle devices connected to the in-vehicle network
JP2012211840A (en) Position information correction system
JP2008298548A (en) Mobile electronic device
JP5308728B2 (en) Mobile device
US20140097983A1 (en) Execution method of position calculating circuit, position calculating circuit, operation control method of position calculating circuit, host device, and electronic apparatus
US20210274335A1 (en) Communication device, communication system, and communication method