Driving timeout judgment method and device

By recording and judging the preset driving start and end time of the vehicle, the problems of complex calculations and large amounts of data in the prior art are solved, and the effect of simplifying calculations and reducing storage requirements is achieved.

CN119408550APending Publication Date: 2025-02-11DONGFENG AUTOMOBILE ELECTRONICS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411544667.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-31
Publication Date
2025-02-11

AI Technical Summary

Technical Problem

The existing driving timeout judgment methods are complex in calculations, excessive recording data, and large data storage.

Method used

By recording the preset driving start time and end time when the vehicle speed changes, determine whether these times are valid based on the vehicle speed change within the preset time, only the effective time is used to calculate the driver's rest time and driving time, and determine whether the driving time is over.

Benefits of technology

The calculation process is simplified, the amount of data records is reduced, the storage requirement is reduced, and the accuracy and efficiency of calculations are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119408550A_ABST
    Figure CN119408550A_ABST
Patent Text Reader

Abstract

The invention discloses a driving timeout judgment method and device, and relates to the technical field of automobiles, and the method comprises the following steps: recording the preset driving start time and the preset driving end time of a vehicle according to the vehicle speed change; according to the vehicle speed change of the vehicle in the preset time, whether the preset driving starting time and the preset driving ending time of the vehicle are effective or not is judged; according to the effective preset driving starting time and the effective preset driving ending time, the rest duration and the driving duration of the driver are calculated; and judging whether driving is overtime or not according to the rest duration and the driving duration of the driver. The time and longitude and latitude in the driving process do not need to be circularly recorded, the time is recorded only when the vehicle speed changes, the time does not need to be inquired back for 10 seconds, the recorded data size is greatly reduced, only the effective driving starting time and the effective driving ending time are used for calculation, and calculation is simple.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automobile technology, and in particular to a method and device for determining a driving overtime. Background Art

[0002] Overtime driving is an important functional module in the GB 19056 standard, which is used to monitor the driver's driving time and remind the driver to take a rest to prevent fatigue driving. In addition, after a traffic accident, the driving data saved in the driving recorder can provide key evidence for liability determination.

[0003] Existing methods for determining driving overtime are usually computationally complex, require excessive amounts of recorded data, and require large amounts of data storage. Summary of the invention

[0004] The present application provides a driving overtime judgment method and device to solve the problems of the existing driving overtime judgment method, such as complex calculation, excessive recorded data, and large data storage volume.

[0005] In a first aspect, the present application provides a method for determining a driving overtime, comprising the following steps:

[0006] Recording the vehicle's preset driving start time and preset driving end time according to vehicle speed changes;

[0007] Determining whether a preset driving start time and a preset driving end time of the vehicle are valid according to a change in the vehicle speed within a preset time;

[0008] Calculate the driver's rest time and driving time based on the valid preset driving start time and the valid preset driving end time;

[0009] Whether the driving time has exceeded the limit is determined based on the driver's rest time and driving time.

[0010] Existing methods for determining driving overtime usually use a cache to store longitude, latitude and time in a loop. The longitude, latitude and time are continuously recorded and stored throughout the driving range. After determining that driving has started or ended, the longitude and latitude 10 seconds ago are queried for recording. The process is cumbersome and takes up a lot of storage space. During driving, the driving time and parking time are calculated by the cumulative method. When the vehicle is powered off, the timing cannot be normal, which will lead to serious errors.

[0011] In this application, the preset driving start time and preset driving end time of the vehicle are recorded only when the vehicle speed changes. According to the vehicle speed change within the preset time, it is determined whether the preset driving start time and the preset driving end time of the vehicle are valid. That is, when the vehicle speed within the preset time is satisfied that the vehicle is in the starting state, the pre-recorded driving start time is marked as valid, and when the vehicle speed within the preset time is satisfied that the vehicle is in the stopping state, the pre-recorded driving end time is marked as valid. According to the valid preset driving start time and the valid preset driving end time, the driver's rest time and driving time are calculated. There is no need to cyclically record the time and longitude and latitude in the driving process, and only record the time when the vehicle speed changes. There is no need to go back 10 seconds for query. The amount of recorded data is greatly reduced, and only the valid driving start time and driving end time are used for calculation, which is simple.

[0012] It should be noted that if the vehicle speed within the preset time is both in a stopped state and in a started state, for example, if the vehicle starts but does not reach the preset time and then stops, the preset driving start time is marked as invalid. For example, if the vehicle stops but does not reach the preset time and then starts, the preset driving end time is marked as invalid.

[0013] In some embodiments, before recording the preset driving start time and the preset driving end time of the vehicle according to the vehicle speed change, the step further includes:

[0014] Obtain and record driver information;

[0015] Determine whether the driver information has changed;

[0016] If the driver information changes, record the time when the driver information changes;

[0017] The preset driving start time and the preset driving end time after the driver is changed are recorded according to the time when the driver information changes, and it is determined whether the driving time has exceeded the limit after the driver information changes.

[0018] During long-distance driving, there are usually multiple drivers who take turns driving. When the driver is changed, the time when the driver information changes is recorded. In addition, when the driver is changed, the speed usually changes. At this time, the preset driving end time record is associated with the driver before the change. The preset driving start time recorded after the driver change is completed is associated with the driver after the change. The driving time and rest time of different drivers can be recorded to avoid confusion.

[0019] In some embodiments, recording the preset driving start time and the preset driving end time of the vehicle according to the vehicle speed change includes:

[0020] Obtain the vehicle speed and speed change;

[0021] If the vehicle speed changes from the existing speed to the non-existing speed, it will be recorded as the preset driving end time;

[0022] If the vehicle speed changes from no speed to speed, it is recorded as the preset driving start time;

[0023] Among them, the vehicle speed is greater than the vehicle speed threshold, and the vehicle speed is less than or equal to the vehicle speed threshold.

[0024] Usually, the change of vehicle speed is from vehicle speed to no vehicle speed, that is, the vehicle changes from driving state to stopped state; or from no vehicle speed to vehicle speed, that is, the vehicle changes from stopped state to driving state. Usually, the vehicle speed threshold is 0km / h. That is, the preset driving start time and driving end time are recorded only when the vehicle starts and stops.

[0025] In some embodiments, judging whether the preset driving start time and the preset driving end time of the vehicle are valid according to the change of the vehicle speed within the preset time includes:

[0026] Obtain the vehicle speed change within a preset time;

[0027] If the vehicle speed within the first preset time is all the vehicle speed, then it is determined that the preset driving start time of the vehicle is valid;

[0028] If the vehicle speed within the second preset time is all zero speed, then it is determined that the preset driving end time of the vehicle is valid;

[0029] Among them, the vehicle speed is greater than the vehicle speed threshold, and the vehicle speed is less than or equal to the vehicle speed threshold.

[0030] When the vehicle speed changes, the preset driving start time and the preset driving end time are recorded. However, the change in vehicle speed does not mean that the vehicle actually starts or stops. For example, if the vehicle starts and then stops immediately for some reason, or if the vehicle stops and then starts immediately, although the preset driving start time and the preset driving end time are recorded, such driving start time and the preset driving end time cannot represent the real driving start and driving end. Therefore, judging whether the recorded preset driving start time and the preset driving end time are valid by the vehicle speed change within the preset time can eliminate interference and make the calculation more accurate. When the duration of the vehicle speed exceeds the first preset time, it means that the current vehicle start is a valid start, and the recorded preset driving start time is the real driving start time. It is only necessary to mark the preset driving start time as valid. On the contrary, when the duration of the vehicle without speed exceeds the second preset time, it means that the current vehicle stop is a valid stop, and the recorded preset driving end time is the real driving end time. It is only necessary to mark the preset driving end time as valid. When the vehicle is falsely started or falsely stopped, that is, when the duration of the vehicle's speed is less than the first preset time or when the duration of the vehicle's no speed is less than the second preset time, the recorded preset driving start time and preset driving end time can be marked as invalid and not included in the calculation of driving time and rest time. Reduce interference.

[0031] Usually, the first preset time is 10 to 15 seconds, and the second preset time is 10 to 15 seconds. The first preset time and the second preset time may be the same or different.

[0032] In some embodiments, the rest time and driving time are calculated using the time in UNIX timestamp format according to the effective preset driving start time and the effective preset driving end time. Usually, the use of the accumulation method to calculate the driving time and the parking rest time will result in failure to accumulate normally when the vehicle is powered off for rest, thereby causing errors in the judgment of the driving time and the rest time. By recording the time in UNIX timestamp format and calculating the driving time and the rest time by the difference between the two timestamps, the driving time and the rest time can be normally counted when the vehicle is powered off for rest.

[0033] In some embodiments, in calculating the driver's rest time and driving time according to the valid preset driving start time and the valid preset driving end time,

[0034] The driver's rest time = effective driving start time - the last effective driving end time;

[0035] The driver's driving time = effective driving end time - effective driving start time.

[0036] When calculating the driver's rest time, the last valid driving start time of the current driver is subtracted from the last valid driving end time of the current driver. Therefore, when the driver is replaced, the rest time of the previous driver is accumulated until the previous driver takes over again, and the cumulative calculation of multiple drivers can be realized separately. When calculating the driver's driving time, the last valid driving end time of the previous driver is subtracted from the last valid driving start time of the current driver.

[0037] In some embodiments, judging whether the driving time has exceeded the limit according to the driver's rest time and driving time includes:

[0038] comparing the driver's driving time with a driving time threshold;

[0039] If the driving time is greater than the driving time threshold, it is determined that the driver has exceeded the driving time.

[0040] The regulations stipulate that the continuous driving time, or driving time threshold, is 4 hours. If the continuous driving time exceeds 4 hours, the current driver is judged to have exceeded the driving time, and a warning or reminder is issued to the driver. When the driving time is greater than the driving time threshold of 4 hours and the rest time is less than the rest time threshold of 20 minutes, the driving information will continue to be recorded.

[0041] In some embodiments, judging whether the driving time has exceeded the limit according to the driver's rest time and driving time includes:

[0042] comparing the driver's driving time with a driving time threshold;

[0043] If the driving time is less than or equal to the driving time threshold, compare the driver's rest time with the driving rest time threshold;

[0044] If the driver's rest time is less than the driving rest time threshold, the driving time is added to the rest time to obtain a new driving time, and whether the driving time has exceeded the limit is re-determined.

[0045] The regulations stipulate that the continuous driving time, or driving time threshold, is 4 hours, and the driving rest time threshold is 20 minutes. If the driving time is less than 4 hours and the rest time is less than 20 minutes, the rest time is considered invalid, and the rest time should be included in the continuous driving time. After the driving time is updated, it is determined again whether the updated driving time is overtime.

[0046] In some embodiments, judging whether the driving time has exceeded the limit according to the driver's rest time and driving time includes:

[0047] comparing the driver's driving time with a driving time threshold;

[0048] If the driving time is greater than the driving time threshold, compare the driver's rest time with the driving rest time threshold;

[0049] If the driver's rest time is greater than or equal to the driving rest time threshold, the driver is judged to have exceeded the driving time limit, and the driving start time is marked as invalid.

[0050] When the driving time is longer than the driving time threshold of 4 hours and the rest time is longer than the rest time threshold of 20 minutes, the driving timeout information is saved in the disaster recovery storage, and the driving start time is marked as invalid.

[0051] In some embodiments, judging whether the driving time has exceeded the limit according to the driver's rest time and driving time includes:

[0052] comparing the driver's driving time with a driving time threshold;

[0053] If the driving time is less than or equal to the driving time threshold, compare the driver's rest time with the driving rest time threshold;

[0054] If the driver's rest time is greater than or equal to the driving rest time threshold, it is determined that the driver's driving has not exceeded the time limit, and the previous valid driving start time is marked as invalid.

[0055] If the driving time is less than 4 hours and the rest time is greater than or equal to 20 minutes, the rest time is considered to be a valid rest time, indicating that the previous driving period of the current driver is qualified and has ended. Therefore, marking the previous valid driving start time as invalid can reduce data interference, so that only the effective driving start time and effective driving end time in progress need to be paid attention to, and the completed process will not interfere with subsequent calculations. For a single driver, since the latest valid driving time is required when calculating the driver's rest time, the valid driving start time before the latest valid driving start time is marked as invalid. Similarly, when re-accumulating driving time, the driving start and end time of the second rest time before the driving state can also be marked as invalid, and only the most recent driving end time is retained as valid. For multiple drivers, the driving start time and driving end time corresponding to each driver are also only the driving start time and driving end time closest to the current driving environment are retained as valid, and the previous driving start time and driving end time are marked as invalid, so that each driver's driving time and rest time can be calculated separately, reducing the amount of data processing.

[0056] In a second aspect, the present application provides a driving overtime judgment device, comprising:

[0057] A recording unit, used for recording a preset driving start time and a preset driving end time of the vehicle according to a change in vehicle speed;

[0058] A first judgment unit, used to judge whether a preset driving start time and a preset driving end time of the vehicle are valid according to a change in the vehicle speed within a preset time;

[0059] A calculation unit, used for calculating the rest time and driving time of the driver according to the valid preset driving start time and the valid preset driving end time;

[0060] The second judgment unit is used to judge whether the driving time has exceeded the limit according to the driver's rest time and driving time.

[0061] Only when the vehicle speed changes, the preset driving start time and the preset driving end time of the vehicle are recorded. According to the vehicle speed change within the preset time, it is judged whether the preset driving start time and the preset driving end time of the vehicle are valid. That is, when the vehicle speed within the preset time satisfies the vehicle in the starting state, the pre-recorded driving start time is marked as valid, and when the vehicle speed within the preset time satisfies the vehicle in the stopping state, the pre-recorded driving end time is marked as valid. According to the valid preset driving start time and the valid preset driving end time, the driver's rest time and driving time are calculated. There is no need to cyclically record the time and longitude and latitude in the driving process. The time is only recorded when the vehicle speed changes, and there is no need to go back 10 seconds for query. The amount of recorded data is greatly reduced. Only the valid driving start time and driving end time are used for calculation, which is simple.

[0062] It should be noted that in some embodiments of the present application, the recording unit, the first judgment unit, the calculation unit and the second judgment unit can work independently, that is, the recording unit only records the preset driving start time and the preset driving end time of the vehicle. The first judgment unit only judges whether the preset driving start time and the preset driving end time of the vehicle are valid, and marks the corresponding valid preset driving start time and the preset driving end time as valid, and marks the invalid preset driving start time and the preset driving end time as invalid. The calculation unit only calculates the driver's rest time and driving time. The second judgment unit only judges whether the driving is overtime, which can reduce the amount of data storage, simplify the calculation process, and improve accuracy and efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0064] Figure 1This is a flow chart of a method for determining driving overtime according to a first embodiment of the present application.

[0065] Figure 2 This is a flow chart of a method for determining driving overtime according to a second embodiment of the present application.

[0066] Figure 3 This is a flow chart of a method for determining driving overtime according to a third embodiment of the present application.

[0067] Figure 4 Flow chart of a method for determining driving overtime according to a fourth embodiment of the present application.

[0068] Figure 5 This is a flow chart of a method for determining driving overtime according to a fifth embodiment of the present application.

[0069] Figure 6 This is a flow chart of a method for determining driving overtime according to a sixth embodiment of the present application.

[0070] Figure 7 Flow chart of the driving overtime determination method according to the seventh embodiment of the present application.

[0071] Figure 8 This is a flow chart of a method for determining driving overtime according to an eighth embodiment of the present application.

[0072] Fig. 9 Schematic diagram of a driving overtime determination device according to an embodiment of the present application. DETAILED DESCRIPTION

[0073] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0074] Overtime driving is an important functional module in the GB 19056 standard, which is used to monitor the driver's driving time and remind the driver to take a rest to prevent fatigue driving. In addition, after a traffic accident, the driving data saved in the driving recorder can provide key evidence for liability determination.

[0075] Existing methods for determining driving timeouts usually use a cache loop to store longitude, latitude, and time, and continuously record and store longitude, latitude, and time throughout the entire driving range. After determining that driving has started or ended, the longitude and latitude 10 seconds ago are queried for recording. The process is cumbersome and takes up a lot of storage space. During driving, the driving time and parking rest time are calculated using an accumulation method. When the vehicle loses power, the timing will not be normal, which will lead to serious errors. In addition, existing methods for determining driving timeouts are usually complex in calculation, record too much data, and require large amounts of data storage.

[0076] In view of this, the present application provides a driving overtime judgment method and device to solve the problems of complex calculation, excessive recorded data and large data storage volume in the existing driving overtime judgment method.

[0077] First, as Figure 1 As shown, the present application provides a first embodiment of a method for determining a driving overtime, comprising the following steps:

[0078] S100, recording a preset driving start time and a preset driving end time of the vehicle according to a change in vehicle speed;

[0079] S200, judging whether a preset driving start time and a preset driving end time of the vehicle are valid according to a change in the vehicle speed within a preset time;

[0080] S300, calculating the driver's rest time and driving time according to the valid preset driving start time and the valid preset driving end time;

[0081] S400: Determine whether the driving time has exceeded the time limit according to the rest time and driving time of the driver.

[0082] In this application, the preset driving start time and preset driving end time of the vehicle are recorded only when the vehicle speed changes. According to the vehicle speed change within the preset time, it is determined whether the preset driving start time and the preset driving end time of the vehicle are valid. That is, when the vehicle speed within the preset time is satisfied that the vehicle is in the starting state, the pre-recorded driving start time is marked as valid, and when the vehicle speed within the preset time is satisfied that the vehicle is in the stopping state, the pre-recorded driving end time is marked as valid. According to the valid preset driving start time and the valid preset driving end time, the driver's rest time and driving time are calculated. There is no need to cyclically record the time and longitude and latitude in the driving process, and only record the time when the vehicle speed changes. There is no need to go back 10 seconds for query. The amount of recorded data is greatly reduced, and only the valid driving start time and driving end time are used for calculation, which is simple.

[0083] It should be noted that if the vehicle speed within the preset time is both in a stopped state and in a started state, for example, if the vehicle starts but does not reach the preset time and then stops, the preset driving start time is marked as invalid. For example, if the vehicle stops but does not reach the preset time and then starts, the preset driving end time is marked as invalid.

[0084] Combined with the first aspect, Figure 2 As shown, in the second embodiment provided by the present application, before recording the preset driving start time and the preset driving end time of the vehicle according to the vehicle speed change, the method further includes:

[0085] S001. Obtain and record driver information;

[0086] S002, determining whether the driver information has changed;

[0087] S003. If the driver information changes, record the time when the driver information changes;

[0088] S004. Record the preset driving start time and the preset driving end time after the driver is changed according to the time when the driver information changes, and determine whether the driving time has exceeded the limit after the driver information changes.

[0089] During long-distance driving, there are usually multiple drivers who take turns driving. When the driver is changed, the time when the driver information changes is recorded. In addition, when the driver is changed, the speed usually changes. At this time, the preset driving end time record is associated with the driver before the change. The preset driving start time recorded after the driver change is completed is associated with the driver after the change. The driving time and rest time of different drivers can be recorded to avoid confusion.

[0090] Combined with the first aspect, Figure 3 As shown, in the third embodiment provided in the present application, recording the preset driving start time and the preset driving end time of the vehicle according to the vehicle speed change includes:

[0091] S101, obtaining the vehicle speed and the change of the vehicle speed;

[0092] S102, if the vehicle speed changes from the existing vehicle speed to the non-existing vehicle speed, it is recorded as the preset driving end time;

[0093] S103, if the vehicle speed changes from no speed to a speed, it is recorded as the preset driving start time;

[0094] Among them, the vehicle speed is greater than the vehicle speed threshold, and the vehicle speed is less than or equal to the vehicle speed threshold.

[0095] Usually, the change of vehicle speed is from vehicle speed to no vehicle speed, that is, the vehicle changes from driving state to stopped state; or from no vehicle speed to vehicle speed, that is, the vehicle changes from stopped state to driving state. Usually, the vehicle speed threshold is 0km / h. That is, the preset driving start time and driving end time are recorded only when the vehicle starts and stops.

[0096] Combined with the first aspect, Figure 4 As shown, in the fourth embodiment provided by the present application, judging whether the preset driving start time and the preset driving end time of the vehicle are valid according to the change of the vehicle speed within the preset time includes:

[0097] S201, obtaining a speed change of a vehicle within a preset time;

[0098] S202: If the vehicle speed within the first preset time is the valid speed, then it is determined that the preset driving start time of the vehicle is valid;

[0099] S203: If the vehicle speed within the second preset time is all zero speed, then it is determined that the preset driving end time of the vehicle is valid;

[0100] Among them, the vehicle speed is greater than the vehicle speed threshold, and the vehicle speed is less than or equal to the vehicle speed threshold.

[0101] When the vehicle speed changes, the preset driving start time and the preset driving end time are recorded. However, the change in vehicle speed does not mean that the vehicle actually starts or stops. For example, if the vehicle starts and then stops immediately for some reason, or if the vehicle stops and then starts immediately, although the preset driving start time and the preset driving end time are recorded, such driving start time and the preset driving end time cannot represent the real driving start and driving end. Therefore, judging whether the recorded preset driving start time and the preset driving end time are valid by the vehicle speed change within the preset time can eliminate interference and make the calculation more accurate. When the duration of the vehicle speed exceeds the first preset time, it means that the current vehicle start is a valid start, and the recorded preset driving start time is the real driving start time. It is only necessary to mark the preset driving start time as valid. On the contrary, when the duration of the vehicle without speed exceeds the second preset time, it means that the current vehicle stop is a valid stop, and the recorded preset driving end time is the real driving end time. It is only necessary to mark the preset driving end time as valid. When the vehicle is falsely started or falsely stopped, that is, when the duration of the vehicle's speed is less than the first preset time or when the duration of the vehicle's no speed is less than the second preset time, the recorded preset driving start time and preset driving end time can be marked as invalid and not included in the calculation of driving time and rest time. Reduce interference.

[0102] Usually, the first preset time is 10 to 15 seconds, and the second preset time is 10 to 15 seconds. The first preset time and the second preset time may be the same or different.

[0103] In combination with the first aspect, in some embodiments provided by the present application, the rest time and driving time are calculated using the time in UNIX timestamp format according to the effective preset driving start time and the effective preset driving end time. Usually, the use of the accumulation method to calculate the driving time and the parking rest time will result in failure to accumulate normally when the vehicle is powered off for rest, thereby causing errors in the judgment of the driving time and the rest time. By recording the time in UNIX timestamp format and calculating the driving time and the rest time by the difference between the two timestamps, the driving time and the rest time can be normally counted when the vehicle is powered off for rest.

[0104] In combination with the first aspect, in some embodiments provided in the present application, in calculating the driver's rest time and driving time according to the valid preset driving start time and the valid preset driving end time,

[0105] The driver's rest time = effective driving start time - the last effective driving end time;

[0106] The driver's driving time = effective driving end time - effective driving start time.

[0107] When calculating the driver's rest time, the last valid driving start time of the current driver is subtracted from the last valid driving end time of the current driver. Therefore, when the driver is replaced, the rest time of the previous driver is accumulated until the previous driver takes over again, and the cumulative calculation of multiple drivers can be realized separately. When calculating the driver's driving time, the last valid driving end time of the previous driver is subtracted from the last valid driving start time of the current driver.

[0108] Combined with the first aspect, Figure 5 As shown, in the fifth embodiment provided in the present application, judging whether the driving time is exceeded according to the driver's rest time and driving time includes:

[0109] S401, comparing the driving time of the driver with a driving time threshold;

[0110] S402: If the driving time is greater than the driving time threshold, it is determined that the driver has exceeded the driving time.

[0111] The regulations stipulate that the continuous driving time, or driving time threshold, is 4 hours. If the continuous driving time exceeds 4 hours, the current driver is judged to have exceeded the driving time, and a warning or reminder is issued to the driver. When the driving time is greater than the driving time threshold of 4 hours and the rest time is less than the rest time threshold of 20 minutes, the driving information will continue to be recorded.

[0112] Combined with the first aspect, Figure 6 As shown, in the sixth embodiment provided by the present application, judging whether the driving time is exceeded according to the driver's rest time and driving time includes:

[0113] S403, comparing the driving time of the driver with a driving time threshold;

[0114] S404: If the driving time is less than or equal to the driving time threshold, compare the driver's rest time with the driving rest time threshold;

[0115] S405: If the driver's rest time is less than the driving rest time threshold, the driving time is added to the rest time to obtain a new driving time, and whether the driving time has exceeded the limit is re-determined.

[0116] The regulations stipulate that the continuous driving time, or driving time threshold, is 4 hours, and the driving rest time threshold is 20 minutes. If the driving time is less than 4 hours and the rest time is less than 20 minutes, the rest time is considered invalid, and the rest time should be included in the continuous driving time. After the driving time is updated, it is determined again whether the updated driving time is overtime.

[0117] Combined with the first aspect, Figure 7 As shown, in the seventh embodiment provided by the present application, judging whether the driving time is exceeded according to the driver's rest time and driving time includes:

[0118] S406, comparing the driving time of the driver with a driving time threshold;

[0119] S407: If the driving time is greater than the driving time threshold, compare the driver's rest time with the driving rest time threshold;

[0120] S408: If the driver's rest time is greater than or equal to the driving rest time threshold, it is determined that the driver has exceeded the driving time limit, and the driving start time is marked as invalid.

[0121] When the driving time is longer than the driving time threshold of 4 hours and the rest time is longer than the rest time threshold of 20 minutes, the driving timeout information is saved in the disaster recovery storage, and the driving start time is marked as invalid.

[0122] Combined with the first aspect, Figure 8As shown, in the eighth embodiment provided by the present application, judging whether the driving time is exceeded according to the driver's rest time and driving time includes:

[0123] S409, comparing the driving time of the driver with a driving time threshold;

[0124] S410: If the driving time is less than or equal to the driving time threshold, compare the driver's rest time with the driving rest time threshold;

[0125] S411. If the driver's rest time is greater than or equal to the driving rest time threshold, it is determined that the driver's driving has not exceeded the time limit, and the previous valid driving start time is marked as invalid.

[0126] If the driving time is less than 4 hours and the rest time is greater than or equal to 20 minutes, the rest time is considered to be a valid rest time, indicating that the previous driving period of the current driver is qualified and has ended. Therefore, marking the previous valid driving start time as invalid can reduce data interference, so that only the effective driving start time and effective driving end time in progress need to be paid attention to, and the completed process will not interfere with subsequent calculations. For a single driver, since the latest valid driving time is required when calculating the driver's rest time, the valid driving start time before the latest valid driving start time is marked as invalid. Similarly, when re-accumulating driving time, the driving start and end time of the second rest time before the driving state can also be marked as invalid, and only the most recent driving end time is retained as valid. For multiple drivers, the driving start time and driving end time corresponding to each driver are also only the driving start time and driving end time closest to the current driving environment are retained as valid, and the previous driving start time and driving end time are marked as invalid, so that each driver's driving time and rest time can be calculated separately, reducing the amount of data processing.

[0127] Second, as Fig. 9 As shown, the present application provides a driving overtime judgment device, comprising:

[0128] A recording unit, used for recording a preset driving start time and a preset driving end time of the vehicle according to a change in vehicle speed;

[0129] A first judgment unit, used to judge whether a preset driving start time and a preset driving end time of the vehicle are valid according to a change in the vehicle speed within a preset time;

[0130] A calculation unit, used for calculating the rest time and driving time of the driver according to the valid preset driving start time and the valid preset driving end time;

[0131] The second judgment unit is used to judge whether the driving time has exceeded the limit according to the driver's rest time and driving time.

[0132] Only when the vehicle speed changes, the preset driving start time and the preset driving end time of the vehicle are recorded. According to the vehicle speed change within the preset time, it is judged whether the preset driving start time and the preset driving end time of the vehicle are valid. That is, when the vehicle speed within the preset time satisfies the vehicle in the starting state, the pre-recorded driving start time is marked as valid, and when the vehicle speed within the preset time satisfies the vehicle in the stopping state, the pre-recorded driving end time is marked as valid. According to the valid preset driving start time and the valid preset driving end time, the driver's rest time and driving time are calculated. There is no need to cyclically record the time and longitude and latitude in the driving process. The time is only recorded when the vehicle speed changes, and there is no need to go back 10 seconds for query. The amount of recorded data is greatly reduced. Only the valid driving start time and driving end time are used for calculation, which is simple.

[0133] It should be noted that in some embodiments of the present application, the recording unit, the first judgment unit, the calculation unit and the second judgment unit can work independently, that is, the recording unit only records the preset driving start time and the preset driving end time of the vehicle. The first judgment unit only judges whether the preset driving start time and the preset driving end time of the vehicle are valid, and marks the corresponding valid preset driving start time and the preset driving end time as valid, and marks the invalid preset driving start time and the preset driving end time as invalid. The calculation unit only calculates the driver's rest time and driving time. The second judgment unit only judges whether the driving is overtime, which can reduce the amount of data storage, simplify the calculation process, and improve accuracy and efficiency.

[0134] In summary, by recording the preset driving start time and preset driving end time of the vehicle only when the vehicle speed changes, it is determined whether the preset driving start time and preset driving end time of the vehicle are valid according to the vehicle speed change within the preset time, that is, when the vehicle speed within the preset time satisfies the vehicle in the starting state, the pre-recorded driving start time is marked as valid, and when the vehicle speed within the preset time satisfies the vehicle in the stopping state, the pre-recorded driving end time is marked as valid. According to the valid preset driving start time and the valid preset driving end time, the driver's rest time and driving time are calculated. There is no need to cyclically record the time and longitude and latitude in the driving process, and only record the time when the vehicle speed changes, and there is no need to go back 10 seconds for query. The amount of recorded data is greatly reduced, and only the valid driving start time and driving end time are used for calculation, which is simple.

[0135] The terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, device, product or equipment that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or equipment. The terms "first", "second" and "third" are used to distinguish different objects, etc., and do not represent a sequence, nor do they limit "first", "second" and "third" to be different types.

[0136] In the description of the embodiments of the present application, "exemplary", "for example" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary", "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary", "for example" or "for example" is intended to present related concepts in a specific way.

[0137] In the description of the embodiments of the present application, unless otherwise specified, “ / ” means or, for example, A / B can mean A or B; the “and / or” in the text is merely a description of the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, “multiple” refers to two or more than two.

[0138] In some processes described in the embodiments of the present application, multiple operations or steps that appear in a specific order are included, but it should be understood that these operations or steps may not be executed in the order in which they appear in the embodiments of the present application or in parallel, and the sequence number of the operation is only used to distinguish the different operations, and the sequence number itself does not represent any execution order. In addition, these processes may include more or fewer operations, and these operations or steps may be executed in sequence or in parallel, and these operations or steps may be combined.

[0139] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD) as described above, and includes a number of instructions for a terminal device to execute the methods described in each embodiment of the present application.

[0140] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A method for determining driving overtime, characterized in that: The following steps are involved: Recording the vehicle's preset driving start time and preset driving end time according to vehicle speed changes; Determining whether a preset driving start time and a preset driving end time of the vehicle are valid according to a change in the vehicle speed within a preset time; Calculate the driver's rest time and driving time based on the valid preset driving start time and the valid preset driving end time; Whether the driving time has exceeded the limit is determined based on the driver's rest time and driving time.

2. The method for determining driving overtime according to claim 1, characterized in that: The method further includes recording the preset driving start time and the preset driving end time of the vehicle according to the vehicle speed change: Obtain and record driver information; Determine whether the driver information has changed; If the driver information changes, record the time when the driver information changes; The preset driving start time and the preset driving end time after the driver is changed are recorded according to the time when the driver information changes, and it is determined whether the driving time has exceeded the limit after the driver information changes.

3. The method for determining driving overtime according to claim 1, characterized in that: The recording of the preset driving start time and the preset driving end time of the vehicle according to the vehicle speed change includes: Obtain the vehicle speed and speed change; If the vehicle speed changes from the existing speed to the non-existing speed, it will be recorded as the preset driving end time; If the vehicle speed changes from no speed to speed, it is recorded as the preset driving start time; Among them, the vehicle speed is greater than the vehicle speed threshold, and the vehicle speed is less than or equal to the vehicle speed threshold.

4. The method for determining driving overtime according to claim 1, characterized in that: The determining whether the preset driving start time and the preset driving end time of the vehicle are valid according to the vehicle speed change within the preset time includes: Obtain the vehicle speed change within a preset time; If the vehicle speed within the first preset time is all the vehicle speed, then it is determined that the preset driving start time of the vehicle is valid; If the vehicle speed within the second preset time is all zero speed, then it is determined that the preset driving end time of the vehicle is valid; Among them, the vehicle speed is greater than the vehicle speed threshold, and the vehicle speed is less than or equal to the vehicle speed threshold.

5. The method for determining driving overtime according to claim 1, characterized in that: In calculating the rest time and driving time of the driver according to the valid preset driving start time and the valid preset driving end time, the rest time and driving time are calculated using the time in UNIX timestamp format, wherein: The driver's rest time = effective driving start time - the last effective driving end time; The driver's driving time = effective driving end time - effective driving start time.

6. The method for determining driving overtime according to claim 1, characterized in that: The determining whether the driving time is exceeded according to the driver's rest time and driving time includes: comparing the driver's driving time with a driving time threshold; If the driving time is greater than the driving time threshold, it is determined that the driver has exceeded the driving time.

7. The method for determining excessive driving time as claimed in claim 1, characterized in that: The determining whether the driving time is exceeded according to the driver's rest time and driving time includes: comparing the driver's driving time with a driving time threshold; If the driving time is less than or equal to the driving time threshold, compare the driver's rest time with the driving rest time threshold; If the driver's rest time is less than the driving rest time threshold, the driving time is added to the rest time to obtain a new driving time, and whether the driving time has exceeded the limit is re-determined.

8. The method for determining excessive driving time as claimed in claim 1, characterized in that: The determining whether the driving time is exceeded according to the driver's rest time and driving time includes: comparing the driver's driving time with a driving time threshold; If the driving time is greater than the driving time threshold, compare the driver's rest time with the driving rest time threshold; If the driver's rest time is greater than or equal to the driving rest time threshold, the driver is judged to have exceeded the driving time limit, and the driving start time is marked as invalid.

9. The method for determining excessive driving time as claimed in claim 1, characterized in that: The determining whether the driving time is exceeded according to the driver's rest time and driving time includes: comparing the driver's driving time with a driving time threshold; If the driving time is less than or equal to the driving time threshold, compare the driver's rest time with the driving rest time threshold; If the driver's rest time is greater than or equal to the driving rest time threshold, it is judged that the driver's driving has not exceeded the time limit, and the driving start time is marked as invalid.

10. A driving overtime judgment device, characterized in that: include: A recording unit, used for recording a preset driving start time and a preset driving end time of the vehicle according to a change in vehicle speed; A first judgment unit, used to judge whether a preset driving start time and a preset driving end time of the vehicle are valid according to a change in the vehicle speed within a preset time; A calculation unit, used for calculating the rest time and driving time of the driver according to the valid preset driving start time and the valid preset driving end time; The second judgment unit is used to judge whether the driving time has exceeded the limit according to the driver's rest time and driving time.