TWI840194B - Driving recording file management method and system - Google Patents
Driving recording file management method and system Download PDFInfo
- Publication number
- TWI840194B TWI840194B TW112114529A TW112114529A TWI840194B TW I840194 B TWI840194 B TW I840194B TW 112114529 A TW112114529 A TW 112114529A TW 112114529 A TW112114529 A TW 112114529A TW I840194 B TWI840194 B TW I840194B
- Authority
- TW
- Taiwan
- Prior art keywords
- file
- block
- area
- parking
- driving
- Prior art date
Links
- 238000007726 management method Methods 0.000 title claims abstract description 27
- 230000014759 maintenance of location Effects 0.000 claims description 14
- 238000013467 fragmentation Methods 0.000 description 5
- 238000006062 fragmentation reaction Methods 0.000 description 5
- 230000000717 retained effect Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 238000000034 method Methods 0.000 description 4
- 238000001514 detection method Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000007774 longterm Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Landscapes
- Time Recorders, Dirve Recorders, Access Control (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Description
本發明是有關於行車紀錄檔案的存放,特別是指一種行車紀錄檔案管理方法及系統。The present invention relates to the storage of driving record files, and in particular to a driving record file management method and system.
目前車輛行車紀錄器所獲得的紀錄檔案(包含錄影檔案、行車軌跡檔案)通常依照如FAT(File Allocation Table)32的檔案系統的資料格式儲存於如SD(Secure Digital)卡的儲存媒體。然而,FAT有一個嚴重的缺點,亦即當SD卡中(已儲存的)舊檔案要被刪除以寫入新資料時,FAT並不會將要被寫入的新檔案整理成完整片段再寫入SD卡,於是在長期使用後會使存入SD卡的檔案資料變得逐漸分散,也就是所謂的破碎化(fragmentation)情況,因而造成SD卡讀寫效率的降低。At present, the recorded files (including video files and driving track files) obtained by vehicle dash cams are usually stored in storage media such as SD (Secure Digital) cards according to the data format of the file system such as FAT (File Allocation Table) 32. However, FAT has a serious disadvantage, that is, when the old files (stored) in the SD card are to be deleted to write new data, FAT will not organize the new files to be written into complete segments before writing them to the SD card. Therefore, after long-term use, the file data stored in the SD card will gradually become scattered, which is the so-called fragmentation, thereby reducing the reading and writing efficiency of the SD card.
為了解決SD卡的破碎化問題,必須經常對SD卡進行格式化以維持原有的讀寫效率並且由於將SD卡格式化處理相對地耗時(約20秒/檔案),因而造成使用上的不便。In order to solve the problem of SD card fragmentation, the SD card must be formatted frequently to maintain the original reading and writing efficiency. And since the SD card formatting process is relatively time-consuming (about 20 seconds/file), it causes inconvenience in use.
因此,如何能發明出一種能避免儲存媒體的檔案破碎化(Fragmentation)問題且能確保儲存媒體的讀寫效率的行車紀錄檔案管理方式已成為相關技術領域所欲解決的議題之一。Therefore, how to invent a driving record file management method that can avoid the file fragmentation problem of the storage medium and ensure the reading and writing efficiency of the storage medium has become one of the issues that the relevant technical fields want to solve.
因此,本發明的目的,即在提供一種行車紀錄檔案管理方法及系統,其能克服現有技術至少一個缺點。Therefore, the purpose of the present invention is to provide a driving record file management method and system, which can overcome at least one shortcoming of the prior art.
於是,本發明所提供的一種行車紀錄檔案管理方法係用於管理安裝於一設有多個不同紀錄模組的車輛的一儲存媒體,利用一處理器來執行,並包含以下步驟:將該儲存媒體的一儲存空間至少分割有分別對應於正常用途、事件用途和停車用途的一正常大區塊、一事件大區塊及一停車大區塊,並將該正常大區塊、該事件大區塊及該停車大區塊劃其中每一者分成多個分別對應於該等紀錄模組的區域,其每一者更被分割成具有相同儲存容量的多個檔案區塊;利用優先順序原則,對該儲存媒體的該儲存空間的每個區域中的所有檔案區塊指派有對應的區塊取用順序;當獲得該等紀錄模組於該車輛的行駛期間的每個第一單位時間所獲取的多筆行車紀錄資料時,依照指派給該正常大區塊的該等區域各自的區塊取用順序,將每筆行車紀錄資料作為對應的當前正常檔案儲存於該正常大區塊的該等區域其中一個對應區域中的一個取用的檔案區塊;當獲得該等紀錄模組在一從早於該輛發生一事件時的事件時間點的第一時間點到晚於該事件時間點的第二時間點的時段所獲取的多筆行車紀錄資料時,依照指派給該事件大區塊的該等區域各自的多個區塊取用順序,將每筆行車紀錄資料作為對應的當前事件檔案儲存於該事件大區塊的該等區域其中一個對應區域中的一個取用的檔案區塊;及當獲得該等紀錄模組於該車輛的停車期間的每個第二單位時間所獲取的多筆停車紀錄資料時,依照指派給該停車大區塊的該等區域各自的區塊取用順序,將每筆停車紀錄資料作為對應的當前停車檔案儲存於該停車大區塊的該等區域其中一個對應區域中的一個取用的檔案區塊。Therefore, the present invention provides a driving record file management method for managing a storage medium installed in a vehicle with multiple different recording modules, and is executed by a processor, and includes the following steps: dividing a storage space of the storage medium into at least a normal large block, an event large block, and a parking large block corresponding to normal use, event use, and parking use, respectively, and dividing each of the normal large block, the event large block, and the parking large block into multiple The areas corresponding to the recording modules are each divided into a plurality of file blocks having the same storage capacity; a corresponding block access sequence is assigned to all the file blocks in each area of the storage space of the storage medium according to a priority principle; when a plurality of driving record data acquired by the recording modules in each first unit time during the driving of the vehicle is acquired, each driving record is assigned to the normal large block according to the respective block access sequence of the areas. The recorded data is stored as a corresponding current normal file in a retrieved file block in one of the corresponding areas of the areas of the normal large block; when a plurality of driving record data acquired by the recording modules in a time period from a first time point earlier than an event time point when an event occurs to a second time point later than the event time point is acquired, each driving record data is used as a corresponding current normal file in accordance with the access sequence of the respective plurality of blocks of the areas of the event large block. The event file is stored in an accessed file block in one of the corresponding areas of the areas of the event large block; and when a plurality of parking record data acquired by the recording modules in each second unit time during the parking period of the vehicle are acquired, each parking record data is stored as a corresponding current parking file in an accessed file block in one of the corresponding areas of the areas of the parking large block according to the respective block access sequence of the areas assigned to the parking large block.
在一些實施例中,該優先順序原則包含(i)在該區域中未曾寫入過任何檔案的檔案區塊依序具有第一優先等級、(ii)在該區域中儲存有不完整或損毀的歷史紀錄檔案的檔案區塊具有第二優先等級、及(iii)在該區域中儲存有相對最早的歷史紀錄檔案的檔案區塊具有第三優先等級。該處理器依照對應的區塊取用順序來決定出該正常大區塊的該對應區域中的該取用檔案區塊,以使該正常大區塊的該對應區域所儲存的歷史正常檔案被存留的期間能被延至最長。該處理器依照對應的區塊取用順序來決定出該事件大區塊的該對應區域中的該取用的檔案區塊,以使該事件大區塊的該對應區域所儲存的歷史事件檔案被存留的期間能被延至最長。該處理器依照對應的區塊取用順序來決定出該停車大區塊的該對應區域中的該取用的檔案區塊,以使該停車大區塊的該對應區域所儲存的歷史停車檔案被存留的期間能被延至最長。In some embodiments, the priority policy includes (i) a file block in the area that has never been written with any file has a first priority, (ii) a file block in the area that stores an incomplete or damaged historical record file has a second priority, and (iii) a file block in the area that stores a relatively earliest historical record file has a third priority. The processor determines the access file block in the corresponding area of the normal large block according to the corresponding block access sequence, so that the historical normal file stored in the corresponding area of the normal large block can be retained for the longest period of time. The processor determines the file block to be used in the corresponding area of the event block according to the corresponding block access sequence, so that the retention period of the historical event file stored in the corresponding area of the event block can be extended to the longest. The processor determines the file block to be used in the corresponding area of the parking block according to the corresponding block access sequence, so that the retention period of the historical parking file stored in the corresponding area of the parking block can be extended to the longest.
在一些實施例中,該等紀錄模組包含多個影像拍攝模組、及一地理定位模組。對應於該第一單位時間的該等筆行車紀錄資料包含該等影像拍攝模組在該第一單位時間內所獲取該車輛的多筆行車視頻資料以及該地理定位模組在該第一單位時間內所獲取該車輛的行駛軌跡資料。對應於該時段的該等筆行車紀錄資料包含該等影像拍攝模組在該時段內所獲取該車輛的多筆行車視頻資料以及該地理定位模組在該時段內所獲取該車輛的行駛軌跡資料。對應於該第二單位時間的該等筆行車紀錄資料包含該等影像拍攝模組在該第二單位時間內所獲取該車輛的多筆停車視頻資料。In some embodiments, the recording modules include multiple image capture modules and a geolocation module. The driving record data corresponding to the first unit time include multiple driving video data of the vehicle obtained by the image capture modules in the first unit time and the driving track data of the vehicle obtained by the geolocation module in the first unit time. The driving record data corresponding to the time period include multiple driving video data of the vehicle obtained by the image capture modules in the time period and the driving track data of the vehicle obtained by the geolocation module in the time period. The driving record data corresponding to the second unit time include multiple parking video data of the vehicle obtained by the image capturing modules within the second unit time.
在一些實施例中,該正常大區塊中的該等區域包含多個對應於該等影像拍攝模組的視頻檔案區域、及一對應於該地理定位模組的軌跡檔案區域,其中每個視頻檔案區域中的每個檔案區塊的儲存容量與該等影像拍攝模組其中一對應者的幀率、每幀影像的像素和該第一單位時間相關聯且略大於該對應影像拍攝模組在該第一單位時間內所獲取的行車視頻資料的大小,並且該軌跡檔案區域的每個檔案區塊的儲存容量大於在該第一單位時間內所獲取的該行駛軌跡資料的大小。該事件大區塊中的該等區域包含多個對應於該等影像拍攝模組的視頻檔案區域、及一對應於該地理定位模組的軌跡檔案區域,其中每個視頻檔案區域中的每個檔案區塊的儲存容量與該等影像拍攝模組其中一對應者的幀率、每幀影像的像素和該時段相關聯且略大於該對應影像拍攝模組在該時段內所獲取的行車視頻資料的大小,並且該軌跡檔案區域的每個檔案區塊的儲存容量大於在該時段內所獲取的該行駛軌跡資料的大小。該停車大區塊中的該等區域包含多個對應於該等影像拍攝模組的視頻檔案區域,其每一者中的每個檔案區塊的儲存容量與該等影像拍攝模組其中一對應者的幀率、每幀影像的像素和該第二單位時間相關聯且略大於該對應影像拍攝模組在該第二單位時間內所獲取的停車視頻資料的大小。In some embodiments, the areas in the normal large block include multiple video file areas corresponding to the image capture modules, and a track file area corresponding to the geolocation module, wherein the storage capacity of each file block in each video file area is related to the frame rate, the pixels per frame and the first unit time of a corresponding one of the image capture modules and is slightly larger than the size of the driving video data obtained by the corresponding image capture module within the first unit time, and the storage capacity of each file block in the track file area is larger than the size of the driving track data obtained within the first unit time. The areas in the event large block include multiple video file areas corresponding to the image capture modules and a track file area corresponding to the geolocation module, wherein the storage capacity of each file block in each video file area is related to the frame rate of a corresponding one of the image capture modules, the pixels of each frame image and the time period and is slightly larger than the size of the driving video data obtained by the corresponding image capture module during the time period, and the storage capacity of each file block in the track file area is larger than the size of the driving track data obtained during the time period. The areas in the large parking area include a plurality of video file areas corresponding to the image capturing modules, and the storage capacity of each file block in each of them is related to the frame rate, the pixels per frame and the second unit time of one of the corresponding image capturing modules and is slightly larger than the size of the parking video data obtained by the corresponding image capturing module in the second unit time.
在一些實施例中,該行車紀錄檔案管理方法還包含以下步驟:週期性地確認該儲存媒體所儲存的每個檔案是否毀損,並在確認出一毀損檔案時,更新該毀損檔案所屬區域對應的區塊取用順序。In some embodiments, the driving record file management method further includes the following steps: periodically confirming whether each file stored in the storage medium is damaged, and when a damaged file is confirmed, updating the block access sequence corresponding to the area to which the damaged file belongs.
於是,本發明所提供的一種行車紀錄檔案管理系統,適於設置於一安裝有多個不同紀錄模組的車輛,並包含一儲存媒體、及一處理器。Therefore, the present invention provides a driving record file management system, which is suitable for being installed in a vehicle equipped with multiple different recording modules, and includes a storage medium and a processor.
該儲存媒體具有一儲存空間。該儲存空間至少分割有分別對應於正常用途、事件用途和停車用途的一正常大區塊、一事件大區塊及一停車大區塊。該正常大區塊、該事件大區塊及該停車大區塊其中每一者還劃分成多個分別對應於該等紀錄模組的區域,其每一者進一步劃分成具有相同儲存容量的多個檔案區塊。The storage medium has a storage space. The storage space is divided into at least a normal large block, an event large block and a parking large block corresponding to normal use, event use and parking use respectively. Each of the normal large block, the event large block and the parking large block is further divided into a plurality of areas corresponding to the recording modules respectively, and each of them is further divided into a plurality of file blocks with the same storage capacity.
該處理器適於電連接該等紀錄模組且電連接該儲存媒體和該儲存模組,並利用優先順序原則對該儲存媒體的該儲存空間的每個區域中的所有檔案區塊指派有對應的區塊取用順序。The processor is adapted to be electrically connected to the recording modules and the storage medium and the storage module, and to assign corresponding block access sequences to all file blocks in each area of the storage space of the storage medium according to a priority principle.
當該處理器接收到該等紀錄模組於該車輛的行駛期間的每個第一單位時間所獲取的多筆紀錄資料時,該處理器依照指派給該正常大區塊的該等區域各自的區塊取用順序,將每筆行車紀錄資料作為對應的當前正常檔案儲存於該正常大區塊的該等區域其中一個對應區域中的一個取用的檔案區塊。When the processor receives a plurality of record data acquired by the recording modules at each first unit time during the driving of the vehicle, the processor stores each driving record data as a corresponding current normal file in an accessed file block in one of the corresponding areas of the areas of the normal large block according to the respective block access order of the areas assigned to the normal large block.
當該處理器獲得該等紀錄模組在一從早於該輛發生一事件時的事件時間點的第一時間點到晚於該事件時間點的第二時間點的時段所獲取的多筆行車紀錄資料時,該處理器依照指派給該事件大區塊的該等區域各自的區塊取用順序,將每筆行車紀錄資料作為對應的當前事件檔案儲存於該事件大區塊的該等區域其中一個對應區域中的一個取用的檔案區塊。When the processor obtains a plurality of driving record data acquired by the recording modules in a time period from a first time point earlier than an event time point when an event occurs to a second time point later than the event time point, the processor stores each driving record data as a corresponding current event file in an accessed file block in one of the corresponding areas of the areas of the event large block according to the respective block access order of the areas assigned to the event large block.
當該處理器接收到該等紀錄模組於該車輛的停車期間的每個第二單位時間所獲取的多筆停車紀錄資料時,該處理器依照指派給該停車大區塊的該等區域各自的區塊取用順序,將每筆停車紀錄資料作為對應的當前停車檔案儲存於該停車大區塊的該等區域其中一個對應區域中的一個取用的檔案區塊。When the processor receives a plurality of parking record data acquired by the recording modules at each second unit time during the parking period of the vehicle, the processor stores each parking record data as a corresponding current parking file in an accessed file block in one of the corresponding areas of the areas of the parking block according to the respective block access order of the areas assigned to the parking block.
在一些實施例中,該優先順序原則包含(i)在該區域中未曾寫入過任何檔案的檔案區塊依序具有第一優先等級、(ii)在該區域中儲存有不完整或損毀的歷史紀錄檔案的檔案區塊具有第二優先等級、及(iii)在該區域中儲存有相對最早的歷史紀錄檔案的檔案區塊具有第三優先等級。該處理器依照對應的區塊取用順序來決定出該正常大區塊的該對應區域中的該取用的檔案區塊,以使該正常大區塊的該對應區域所儲存的歷史正常檔案被存留的期間能被延至最長。該處理器依照對應的區塊取用順序來決定出該事件大區塊的該對應區域中的該取用的檔案區塊,以使該事件大區塊的該對應區域所儲存的歷史事件檔案被存留的期間能被延至最長。該處理器依照對應的區塊取用順序來決定出該停車大區塊的該對應區域中的該取用的檔案區塊,以使該停車大區塊的該對應區域所儲存的歷史停車檔案被存留的期間能被延至最長。In some embodiments, the priority policy includes (i) a file block in the area that has never been written with any file has a first priority, (ii) a file block in the area that stores an incomplete or damaged historical record file has a second priority, and (iii) a file block in the area that stores a relatively earliest historical record file has a third priority. The processor determines the accessed file block in the corresponding area of the normal large block according to the corresponding block access sequence, so that the historical normal file stored in the corresponding area of the normal large block can be retained for the longest period of time. The processor determines the file block to be used in the corresponding area of the event block according to the corresponding block access sequence, so that the retention period of the historical event file stored in the corresponding area of the event block can be extended to the longest. The processor determines the file block to be used in the corresponding area of the parking block according to the corresponding block access sequence, so that the retention period of the historical parking file stored in the corresponding area of the parking block can be extended to the longest.
在一些實施例中,該該等紀錄模組包含多個影像拍攝模組、及一地理定位模組。對應於該第一單位時間的該等筆行車紀錄資料包含該等影像拍攝模組在該預定第一單位時間內所獲取該車輛的多筆行車視頻資料以及該地理定位模組在該預定第一單位時間內所獲取該車輛的行駛軌跡資料。對應於該預定時段的該等筆行車紀錄資料包含該等影像拍攝模組在該預定時段內所獲取該車輛的多筆行車視頻資料以及該地理定位模組在該預定時段內所獲取該車輛的行駛軌跡資料。對應於該預定第二單位時間的該等筆行車紀錄資料包含該等影像拍攝模組在該預定第二單位時間內所獲取該車輛的多筆停車視頻資料。In some embodiments, the recording modules include multiple image capture modules and a geolocation module. The driving record data corresponding to the first unit time include multiple driving video data of the vehicle obtained by the image capture modules within the predetermined first unit time and the driving track data of the vehicle obtained by the geolocation module within the predetermined first unit time. The driving record data corresponding to the predetermined time period include multiple driving video data of the vehicle obtained by the image capture modules within the predetermined time period and the driving track data of the vehicle obtained by the geolocation module within the predetermined time period. The driving record data corresponding to the predetermined second unit time include multiple parking video data of the vehicle obtained by the image capturing modules within the predetermined second unit time.
在一些實施例中,該正常大區塊中的該等區域包含多個對應於該等影像拍攝模組的視頻檔案區域、及一對應於該地理定位模組的軌跡檔案區域,其中每個視頻檔案區域中的每個檔案區塊的儲存容量與該等影像拍攝模組其中一對應者的幀率、每幀影像的像素和該預定第一單位時間相關聯且略大於該對應影像拍攝模組在該預定第一單位時間內所獲取的行車視頻資料的大小,並且該軌跡檔案區域的每個檔案區塊的儲存容量大於在該預定第一單位時間內所獲取的該行駛軌跡資料的大小。該事件大區塊中的該等區域包含多個對應於該等影像拍攝模組的視頻檔案區域、及一對應於該地理定位模組的軌跡檔案區域,其中每個視頻檔案區域中的每個檔案區塊的儲存容量與該等影像拍攝模組其中一對應者的幀率、每幀影像的像素和該預定時段相關聯且略大於該對應影像拍攝模組在該預定時段內所獲取的行車視頻資料的大小,並且該軌跡檔案區域的每個檔案區塊的儲存容量大於在該預定時段內所獲取的該行駛軌跡資料的大小。該停車大區塊中的該等區域包含多個對應於該等影像拍攝模組的視頻檔案區域,其每一者中的每個檔案區塊的儲存容量與該等影像拍攝模組其中一對應者的幀率、每幀影像的像素和該預定第二單位時間相關聯且略大於該對應影像拍攝模組在該預定第二單位時間內所獲取的停車視頻資料的大小。In some embodiments, the areas in the normal large block include multiple video file areas corresponding to the image capturing modules, and a track file area corresponding to the geolocation module, wherein the storage capacity of each file block in each video file area is related to the frame rate, the pixels per frame and the predetermined first unit time of a corresponding one of the image capturing modules and is slightly larger than the size of the driving video data obtained by the corresponding image capturing module within the predetermined first unit time, and the storage capacity of each file block in the track file area is larger than the size of the driving track data obtained within the predetermined first unit time. The areas in the event large block include multiple video file areas corresponding to the image capture modules and a track file area corresponding to the geolocation module, wherein the storage capacity of each file block in each video file area is related to the frame rate, the pixels of each frame image and the predetermined time period of a corresponding one of the image capture modules and is slightly larger than the size of the driving video data obtained by the corresponding image capture module within the predetermined time period, and the storage capacity of each file block in the track file area is larger than the size of the driving track data obtained within the predetermined time period. The areas in the large parking area include a plurality of video file areas corresponding to the image capturing modules, and the storage capacity of each file block in each of them is associated with the frame rate, the pixels per frame and the predetermined second unit time of a corresponding one of the image capturing modules and is slightly larger than the size of the parking video data obtained by the corresponding image capturing module within the predetermined second unit time.
在一些實施例中,該處理器還週期性地確認該儲存媒體所儲存的每個檔案是否毀損,並在確認出一毀損檔案時,更新該毀損檔案所屬區域對應的區塊取用順序。In some embodiments, the processor also periodically confirms whether each file stored in the storage medium is damaged, and when a damaged file is confirmed, updates the block access sequence corresponding to the area to which the damaged file belongs.
本發明的功效在於:由於該儲存媒體的儲存空間已先規劃成對應多個不同用途的多個大區塊,且每個大區塊亦規劃有對應該等紀錄模組的多個區域並且每個區域更根據對應紀錄模組的紀錄規格、紀錄時段劃分有多個具有相同儲存容量的檔案區塊,因此在同一區域中該處理器可依照對應的區塊取用順序將具有大致上相似的檔案大小的紀錄檔案儲存於取用的檔案區塊,如此不儘能確保每個區域中儲存的歷史紀錄檔案被存留的期間能被延至最長,還能有效避免現有技術所遭遇的檔案破碎化問題,同時能確保儲存媒體的讀寫效率。The effect of the present invention is that: since the storage space of the storage medium has been planned into a plurality of large blocks corresponding to a plurality of different purposes, and each large block is also planned to have a plurality of areas corresponding to the recording modules, and each area is further divided into a plurality of file blocks with the same storage capacity according to the recording specifications and recording time periods of the corresponding recording modules, The processor can store record files with substantially similar file sizes in the accessed file blocks according to the corresponding block access order. This can not only ensure that the historical record files stored in each area are retained for the longest period of time, but also effectively avoid the file fragmentation problem encountered by the existing technology, while ensuring the reading and writing efficiency of the storage medium.
在本發明被詳細描述之前,應當注意在以下的說明內容中,類似的元件是以相同的編號來表示。Before the present invention is described in detail, it should be noted that similar components are represented by the same reference numerals in the following description.
參閱圖1,示例性地繪示出本發明實施例的一種行車紀錄檔案管理系統100,以及設置於一車輛(圖未示)的多個紀錄模組,例如第一至第三影像拍攝模組201~203和一地理定位模組204,但不在此限。該第一至第三影像拍攝模組201~203可以分別是一拍攝車前影像的前鏡頭模組(例如但不限於CMOS鏡頭模組)、一拍攝車內影像的車內鏡頭模組(例如但不限於CMOS鏡頭模組)和一拍攝車後影像的後鏡頭模組(例如但不限於CMOS鏡頭模組)。該行車紀錄檔案管理系統100係適於設置於該車輛,並包含一儲存媒體2、及一處理器1。Referring to FIG. 1 , a driving record
在本實施例中,該儲存媒體2例如是但不限於一SD卡,並電連接該處理器1。該儲存媒體2具有一用於儲存資料或紀錄檔案的儲存空間。In this embodiment, the
在該行車紀錄檔案管理系統100使用之前,該處理器1將該儲存媒體2的該儲存空間分割有例如分別對應於正常用途、事件用途、停車用途和保留用途的一正常大區塊、一事件大區塊、一停車大區塊和一保留大區塊。舉例來說,如圖2所示,該儲存空間具有例如119GB的儲存容量,其中該正常大區塊具有例如60GB的儲存容量且用來儲存有關在該車輛在行駛期間由該第一至第三影像拍攝模組201~203所獲取的影像資料(即行車視頻資料)以及由該地理定位模組204所獲取的地理位置資料(即行駛軌跡資料);該事件大區塊具有例如40GB的儲存容量且用來儲存當該車輛每次發生事件時在一從早於該事件發生時的事件時間點的第一時間點(例如,事件時間點之前的15秒)到晚於該事件時間點的第二時間點(例如事件時間點之後的15秒)的時段(例如,30秒)內由該第一至第三影像拍攝模組201~203所獲取的影像資料(即行車視頻資料)以及由該地理定位模組204所獲取的地理位置資料(即行駛軌跡資料);該停車大區塊具有例如10GB的儲存容量且用來儲存有關在該車輛在停車期間(即,完全靜止期間)由該第一至第三影像拍攝模組201~203所獲取的影像資料(即停車視頻資料);及該保留大區塊具有例如9GB的儲存容量且用來儲存須被保留的檔案或資料。Before the driving record
此外,該處理器1還進一步將該正常大區塊、該事件大區塊和該停車大區塊其中每一者劃分成例如分別對應於第一至第三影像拍攝模組201~203和該地理定位模組204的一第一視頻檔案區域、一第二視頻檔案區域、一第三視頻檔案區域、及一軌跡檔案區域,如圖3所示。再者,對於該正常大區塊,該處理器1更進一步將該第一至第三視頻檔案區域其中每一者分割成具有相同儲存容量(例如,330MB)的多個檔案區塊,並且亦將該軌跡檔案區域進一步分割成具有相同儲存容量(例如,512KB)的多個檔案區塊。於是,若在該正常大區塊具有60GB的情況下,該第一至第三視頻檔案區域其中每一者可被分割成例如60個具有330MB的檔案區塊,而該軌跡檔案區域可被分割成具有例如60個具有512KB的檔案區塊(見圖4)。對於該事件大區塊,該處理器1更進一步將該第一至第三視頻檔案區域其中每一者分割成具有相同儲存容量(例如,55MB)的多個檔案區塊,並且亦將該軌跡檔案區域進一步分割成具有相同儲存容量(例如,512KB)的多個檔案區塊。於是,若在該事件大區塊具有40GB的情況下,該第一至第三視頻檔案區其中每一者可被分割成例如240個具有330MB的檔案區塊,而該軌跡檔案區域可被分割成具有240個具有512KB的檔案區塊(見圖4)。對於該停車大區塊,該處理器1更進一步將該第一至第三視頻檔案區域其中每一者分割成具有相同儲存容量(例如,270MB)的多個檔案區塊。於是,若在該停車大區塊具有10GB的情況下,該第一至第三視頻檔案區域其中每一者可被分割成例如12個具有270MB的檔案區塊(見圖4)。In addition, the processor 1 further divides each of the normal large block, the event large block, and the parking large block into, for example, a first video file area, a second video file area, a third video file area, and a track file area, which correspond to the first to third image capturing modules 201-203 and the
值得注意的是,該正常大區塊中的每個視頻檔案區域中的每個檔案區塊的儲存容量係與該第一至第三影像拍攝模組201~203其中一對應者的幀率、每幀影像的像素和一第一單位時間相關聯且略大於該對應影像拍攝模組201/202/203在一第一單位時間內所獲取的行車視頻資料的大小;該事件大區塊中的每個視頻檔案區域中的每個檔案區塊的儲存容量係與該第一至第三影像拍攝模組201~203其中一對應者的幀率、每幀影像的像素和該時段相關聯且略大於該對應影像拍攝模組201/202/203在該時段內所獲取的行車視頻資料的大小;該停車大區塊中的每個視頻檔案區域中的每個檔案區塊的儲存容量係與該第一至第三影像拍攝模組201~203其中一對應者的幀率、每幀影像的像素和一第二單位時間相關聯且略大於該對應影像拍攝模組201/202/203在該第二單位時間內所獲取的停車視頻資料的大小。在本實施例中,在該車輛的行車期間,該第一至第三影像拍攝模組201~203其中每一者的幀率和每幀影像的像素例如分別為30幀/秒和1080像素,並且該第一單位時間例如為3分鐘且該時段例如為30秒;而在該車輛的停車期間,相較於在該車輛的行車期間,該第一至第三影像拍攝模組201~203其中每一者能以較小的幀率和較低的解析度獲取在如3分鐘的該第二單位時間內的每筆停車視頻資料。It is worth noting that the storage capacity of each file block in each video file area in the normal large block is related to the frame rate, the pixels per frame and a first unit time of one of the corresponding first to third image capturing modules 201-203 and is slightly larger than the size of the driving video data acquired by the corresponding
最後,該處理器1根據該正常大區塊、該事件大區塊和該停車大區塊的所有檔案區塊,以及其記憶體位址和使用狀態之間的對應關係資料獲得一檔案系統並儲存該檔案系統。之後,在使用時,該處理器1將根據該檔案系統來獲取該儲存媒體2的該儲存空間中要被取用來紀錄檔案之檔案區塊的記憶體位址。Finally, the processor 1 obtains a file system according to all the file blocks of the normal block, the event block and the parking block, as well as the corresponding relationship data between the memory addresses and the usage status, and stores the file system. Thereafter, when in use, the processor 1 will obtain the memory address of the file block to be used to record the file in the storage space of the
請注意,在該行車紀錄檔案管理系統100初始使用時,該處理器1將會依照每個大區塊(即,該正常大區塊、該事件大區塊或該停車大區塊)的每個區域(即,該第一視頻檔案區域、該第二視頻檔案區域、該第三視頻檔案區域或該軌跡檔案區域)的檔案區塊的排列順序,將要被紀錄的檔案寫入到被取用的檔案區塊。於是,在初始使用時,每個區域中的檔案區塊會依序取用來儲存要被記錄的檔案。此外,在該行車紀錄檔案管理系統100開始使用後,該處理器1會週期性地確認該儲存媒體2所儲存的每個檔案是否毀損,並在確認出一毀損檔案時,在該檔案系統對該毀損檔案所在之檔案區塊的使用狀態加以標註並更新該毀損檔案所屬區域對應的區塊取用順序。Please note that when the driving record
之後,該處理器1會根據該檔案系統且利用優先順序原則對該儲存媒體2的該儲存空間的每個區域中的所有檔案區塊指派有對應的區塊取用順序。在本實施例中,該優先順序原則例如包含(i)在該區域中未曾寫入過任何檔案的檔案區塊依序具有第一優先等級、(ii)在該區域中儲存有不完整或損毀的歷史紀錄檔案的檔案區塊具有第二優先等級、及(iii)在該區域中儲存有相對最早的歷史紀錄檔案的檔案區塊具有第三優先等級,其目的在於使儲存於該區域的歷史紀錄檔案被存留的時間能被延至最長。Afterwards, the processor 1 assigns corresponding block access orders to all file blocks in each area of the storage space of the
更具體地,在本實施例中,在該車輛的行駛期間,當該處理器1於該行駛期間的每個第一單位時間(例如,3分鐘)獲得分別由該第一至第三影像拍攝模組201~203在該第一單位時間所獲取該車輛的三筆行車視頻資料(作為行車紀錄資料)以及由該地理定位模組204在該第一單位時間內所獲取該車輛的行駛軌跡資料(作為行車紀錄資料)時,該處理器1依照指派給該正常大區塊的該第一至第三視頻檔案區域和該軌跡檔案區域各自的區塊取用順序,決定出該第一至第三視頻檔案區域和該軌跡檔案區域其中每一者對應於該第一單位時間的一取用的檔案區塊,並將該三筆行車視頻資料作為當前正常檔案分別儲存於該正常大區塊的該第一至第三視頻檔案區域中決定出的取用的檔案區塊,以使該正常大區塊的該第一至第三視頻檔案區域和該軌跡檔案區域其中每一者所儲存的歷史正常檔案被存留的期間能被延至最長。More specifically, in this embodiment, during the driving of the vehicle, when the processor 1 obtains three driving video data of the vehicle obtained by the first to third image capturing modules 201-203 in each first unit time (for example, 3 minutes) during the driving period (as driving record data) and the driving track data of the vehicle obtained by the
另一方面,在該車輛的行駛期間,若該車輛的車載系統(圖未示),例如事件偵測系統在該行駛期間內的一時間點(以下稱作事件時間點)偵測到一事件(例如,碰撞事件)發生時,該事件偵測系統將該事件時間點通知給該處理器1。於是,該處理器1可從該第一至第三影像拍攝模組201~203和該地理定位模組204在包含該事件時間點的單位時間內獲取的三筆行車視頻資料和行駛軌跡資料擷取出從例如早於該事件時間點例如15秒的第一時間點至晚於該事件時間點例如15秒的第二時間點的30秒的時段的在該當獲得該等紀錄模組在一從早於該輛發生一事件時的事件時間點的三筆行車視頻資料和行駛軌跡資料(作為對應於該時段的多筆事件紀錄資料)。之後,該處理器1依照指派給該事件大區塊的第一至第三視頻檔案區域和軌跡檔案區域各自的區塊取用順序,將擷取出的該三筆行車視頻資料作為當前事件檔案分別儲存於該事件大區塊的該第一至第三視頻檔案區域中各自取用的檔案區塊並將擷取出的該行駛軌跡資料作為當前事件檔案儲存於該事件大區塊的該軌跡檔案區域中取用的檔案區塊,以使該事件大區塊的該第一至第三視頻檔案區域和該軌跡檔案區域其中每一者所儲存的歷史事件檔案被存留的期間能被延至最長。On the other hand, during the driving of the vehicle, if the vehicle-mounted system (not shown), such as an event detection system, detects an event (e.g., a collision event) at a time point (hereinafter referred to as the event time point) during the driving period, the event detection system notifies the processor 1 of the event time point. Therefore, the processor 1 can extract the three driving video data and driving trajectory data from the first to third
再者,在該車輛的停車期間,當該處理器1於該停車期間的每個第二單位時間(例如,3分鐘)獲得分別由該第一至第三影像拍攝模組201~203在該第二單位時間所獲取該車輛的三筆停車視頻資料(作為停車紀錄資料)以及由該地理定位模組204在該第二單位時間內所獲取該車輛的行駛軌跡資料(作為停車紀錄資料)時,該處理器1依照指派給該停車大區塊的該第一至第三視頻檔案區域和該軌跡檔案區域各自的區塊取用順序,決定出該第一至第三視頻檔案區域和該軌跡檔案區域其中每一者對應於該第二單位時間的一取用的檔案區塊,並將該三筆停車視頻資料作為當前停車檔案分別儲存於該停車大區塊的該第一至第三視頻檔案區域中決定出的取用的檔案區塊,以使該停車大區塊的該第一至第三視頻檔案區域和該軌跡檔案區域其中每一者所儲存的歷史正常檔案被存留的期間能被延至最長。Furthermore, during the parking period of the vehicle, when the processor 1 obtains three parking video data of the vehicle obtained by the first to third image capturing modules 201-203 in each second unit time (for example, 3 minutes) during the parking period (as parking record data) and the driving track data of the vehicle obtained by the
綜上所述,由於該儲存媒體2的儲存空間已先規劃成對應多個不同用途的多個大區塊,且每個大區塊亦規劃有對應該等紀錄模組(如該第一至第三影像拍攝模組201~203、及該地理定位模組204)的多個區域(如該第一至第三視頻檔案區域、及該軌跡檔案區域)並且每個區域更根據對應紀錄模組的紀錄規格、紀錄時段劃分有多個具有相同儲存容量的檔案區塊,因此在同一區域中該處理器1可依照對應的區塊取用順序將具有大致上相似的檔案大小的紀錄檔案儲存於取用的檔案區塊,如此不儘能確保每個區域中儲存的每個歷史紀錄檔案被存留的期間能被延至最長,還能有效避免現有技術所遭遇的檔案破碎化問題,同時能確保儲存媒體的讀寫效率。因此,本發明的行車紀錄檔案管理系統100確實能達成本發明的目的。In summary, since the storage space of the
惟以上所述者,僅為本發明的實施例而已,當不能以此限定本發明實施的範圍,凡是依本發明申請專利範圍及專利說明書內容所作的簡單的等效變化與修飾,皆仍屬本發明專利涵蓋的範圍內。However, the above is only an embodiment of the present invention and should not be used to limit the scope of implementation of the present invention. All simple equivalent changes and modifications made according to the scope of the patent application of the present invention and the content of the patent specification are still within the scope of the present patent.
100:行車紀錄檔案管理系統 1:處理器 2:儲存媒體 201:第一影像拍攝模組 202:第二影像拍攝模組 203:第三影像拍攝模組 204:地理定位模組100: Driving record file management system 1: Processor 2: Storage medium 201: First image shooting module 202: Second image shooting module 203: Third image shooting module 204: Geographic positioning module
本發明的其他特徵及功效,將於參照附圖的實施方式中清楚地呈現,其中: 圖1是一方塊圖,示例性地繪示出本發明實施例的一種行車紀錄檔案管理系統、及設置於一車輛的多個影像拍攝模組和一的理定位模組; 圖2是一示意圖,示例性地說明該實施例的一儲存媒體的儲存空間的劃分情況; 圖3是一示意圖,示例性地說明該實施例的正常大區塊、事件大區塊和停車大區其中每一者被劃分多個不同區域的情況;及 圖4是一示意圖,示例性地說明該實施例的該正常大區塊、該事件大區塊和該停車大區其中每一者的每個區域被分割成多個檔案區塊的情況。 Other features and effects of the present invention will be clearly presented in the implementation method with reference to the attached drawings, in which: FIG. 1 is a block diagram, exemplarily illustrating a driving record file management system of an embodiment of the present invention, and multiple image shooting modules and a positioning module arranged on a vehicle; FIG. 2 is a schematic diagram, exemplarily illustrating the division of storage space of a storage medium of the embodiment; FIG. 3 is a schematic diagram, exemplarily illustrating the situation that each of the normal large block, the event large block and the parking large area of the embodiment is divided into multiple different areas; and FIG. 4 is a schematic diagram, exemplarily illustrating the situation that each area of each of the normal large block, the event large block and the parking large area of the embodiment is divided into multiple file blocks.
100:行車紀錄檔案管理系統 100: Driving record file management system
1:處理器 1: Processor
2:儲存媒體 2: Storage media
201:第一影像拍攝模組 201: First image shooting module
202:第二影像拍攝模組 202: Second image shooting module
203:第三影像拍攝模組 203: Third image shooting module
204:地理定位模組 204: Geolocation module
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW112114529A TWI840194B (en) | 2023-04-19 | 2023-04-19 | Driving recording file management method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW112114529A TWI840194B (en) | 2023-04-19 | 2023-04-19 | Driving recording file management method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
TWI840194B true TWI840194B (en) | 2024-04-21 |
Family
ID=91618796
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW112114529A TWI840194B (en) | 2023-04-19 | 2023-04-19 | Driving recording file management method and system |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI840194B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102486876A (en) * | 2010-12-06 | 2012-06-06 | 群丰科技股份有限公司 | Driving recording device and image recording method |
US20180359445A1 (en) * | 2017-06-12 | 2018-12-13 | Sanjet Technology Corp. | Method for Recording Vehicle Driving Information and Creating Vehicle Record by Utilizing Digital Video Shooting |
CN110956715A (en) * | 2018-09-27 | 2020-04-03 | 上海博泰悦臻网络技术服务有限公司 | Driving recording method, driving recording system, cloud server and vehicle |
US20200207306A1 (en) * | 2018-12-27 | 2020-07-02 | Blackberry Limited | Controlling vehicle operations based on driver information |
-
2023
- 2023-04-19 TW TW112114529A patent/TWI840194B/en active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102486876A (en) * | 2010-12-06 | 2012-06-06 | 群丰科技股份有限公司 | Driving recording device and image recording method |
US20180359445A1 (en) * | 2017-06-12 | 2018-12-13 | Sanjet Technology Corp. | Method for Recording Vehicle Driving Information and Creating Vehicle Record by Utilizing Digital Video Shooting |
CN110956715A (en) * | 2018-09-27 | 2020-04-03 | 上海博泰悦臻网络技术服务有限公司 | Driving recording method, driving recording system, cloud server and vehicle |
US20200207306A1 (en) * | 2018-12-27 | 2020-07-02 | Blackberry Limited | Controlling vehicle operations based on driver information |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP1895418B1 (en) | Nonvolatile memory device, method of writing data, and method of reading out data | |
CN104462563B (en) | A kind of file memory method and system | |
US7984231B2 (en) | Information recording medium access device, and data recording method | |
US20110131365A1 (en) | Data Storage System and Method | |
KR101570179B1 (en) | - Cache synchronization method and system for fast power-off | |
TWI381272B (en) | Flash memory apparatus and access method to flash memory | |
CN106547641B (en) | CDP backup method based on volume | |
CA2469402A1 (en) | Disk driver cluster management of time shift buffer with file allocation table structure | |
US20120191647A1 (en) | Endless memory | |
JP2002123421A (en) | Remapping control method for flash memory and structure for flash memory therefor | |
CN103226965B (en) | Based on the audio/video data access method of time bitmap | |
CN104991747A (en) | Method and system for data management | |
EP2353074A1 (en) | Flash based memory comprising a flash translation layer and method for storing a file therein | |
CN103164528B (en) | A kind of index establishing method of audio, video data | |
CN104166601A (en) | Storage data backup method and device | |
CN1711606A (en) | Record carrier having a main file system area and a virtual file system area | |
CN103092849A (en) | File system cluster management method | |
JP4347707B2 (en) | Information recording medium formatting method and information recording medium | |
CN110134551B (en) | Continuous data protection method and device | |
TWI840194B (en) | Driving recording file management method and system | |
CN110321081A (en) | A kind of method and its system of flash memory read buffer | |
US20130183025A1 (en) | Video data processing system, video server, gateway server, and video data management method | |
KR101604222B1 (en) | Recording apparatus and method | |
CN111078159A (en) | Writing method for avoiding writing damage of DVR storage card | |
CN105653385A (en) | Vehicle-loaded videorecording method |