Hours of Service

The Hours of Service feature helps manage work hours, breaks, and rest periods for entities. Each entity follows a work cycle based on its daily schedule, typically consisting of a working segment followed by a resting segment.

A cycle begins with work and automatically ends when the vehicle fulfills the required rest time. If needed, a segment can also be manually closed. When we say "close the cycle," it means completing and saving the current segment in the database and starting a new segment with the next event.

To view the current cycle of a specific entity, double-click on it after filtering. This takes you to the dashboard, where you'll find various sections or "cards" displaying information about the entity's status. The Current Cycle card provides details about the current segment.

For instance, if the vehicle's device is sending a moving signal, it means the current cycle is in a working state, indicating continuous movement without resting time.

  • State: Indicates whether the entity is "Working" or "Resting". In this example, the vehicle is in a "Working" segment and has been working for 5 hours, 26 minutes, and 33 seconds.
  • Resting Time: Shows the duration of any rest period during the working segment. In this case, it's marked as "N/A" since the vehicle is constantly moving without taking a break.
  • Min Rest Time: Specifies the minimum hours of continuous rest required for the entity to automatically transition to a resting segment. In this scenario, the vehicle needs to rest for at least 4 hours. When it stops for at least 4 hours, the working segment ends automatically, and a resting segment is created upon the next event.
  • Cycle Start: Displays the date when the cycle began for the vehicle. Since the configured signal is based on movement, the vehicle is considered to be working when its speed exceeds 3 mph.
  • Valid Cycle: Shows an icon indicating whether the cycle is valid or not. If the entity is overworked, the cycle is marked as invalid.
  • Max Work Time: Indicates the maximum hours that the entity can work within its cycle. If the entity works beyond this specified time, it will be considered overworked, resulting in an invalid cycle. For instance, if the Max Work Time is set to 8 hours, the entity becomes overworked if it works for more than 8 hours, rendering the cycle invalid.

Working Cycle with Resting Time

In this example, although the vehicle in the image below has stopped moving for 5 seconds, it is still in a working state. The Resting Time displayed on the card indicates the duration for which the vehicle has been stationary. Additionally, the icon located on the top right of the card signifies this recent stop.

Resting Cycle

When the entity remains stationary for at least the specified minimum rest time (in this case, when the signal indicates movement but the entity is not moving), the current working segment is automatically closed, and a new resting segment is created.

Manually Closing an Overworked Cycle when the Device is Online

If the vehicle exceeds the maximum work time, rendering the cycle invalid, it can be manually closed by clicking on the "CLOSE" button. It's important to note that only cycles marked as invalid can be closed manually.

Clicking on the "CLOSE" button, as depicted in the image above, triggers a confirmation dialog. This dialog informs the user that the current cycle will be closed, and a new segment will be automatically created during the next event. If the next event indicates no motion, signifying that the vehicle is stationary, a new resting segment will be generated. Conversely, if the next event received indicates motion (in this case, the signal indicates movement), a new working cycle will be created.


Manually Closing an Overworked Cycle when the Device is Offline

When the device is offline and a cycle is manually closed due to overwork, the current cycle will be indicated as being in a resting state. Once the device reconnects online, Pegasus will update all previous segments and cycles based on the received events.

Cycle Status

The cycle status is represented by an icon located in the top right corner of the Current Cycle card. Users can also filter cycles based on their status if they are searching for cycles with a specific status.

  • Working: Indicates that the entity is actively working, and the current cycle is in a working segment.
  • On break: Represents that the vehicle has initiated a break, typically occurring when it stops or turns off (depending on the configured signal). At this stage, the cycle is still considered working, and the vehicle has not yet rested for more than the minimum resting time.
  • Resting: Signifies that the current cycle has transitioned into a resting segment. At this point, the entity has completed a working segment and is presently in a resting segment.
  • Overworked: Indicates that the vehicle has been working continuously without breaks for longer than the Maximum Continuous Working Time (configured by the Admin in the setup segment) or has exceeded the maximum work time.
  • N/A: Denotes that the device does not have the segments configured.

Triggers Associated with HOS

Associated triggers with Hours of Service (HoS) allow you to set up actions triggered when certain conditions related to HoS are met. For detailed instructions on creating triggers, please refer to the Automation section.