pub enum BootState {
Idle,
Pending,
Accepted,
Rejected,
}Expand description
The boot state machine (OCPP 2.x block B; 1.6 §4.2).
Variants§
Idle
No BootNotification has been answered yet. Only BootNotification and messages the
CSMS explicitly asked for may be sent (B02.FR.02).
Pending
The CSMS answered Pending: it is still configuring the station. The connection
stays open (B02.FR.06) and the station may only answer what it is asked.
Accepted
The CSMS answered Accepted. Normal operation.
Rejected
The CSMS answered Rejected. The station must wait for the interval before trying
again (B02.FR.08).
Implementations§
Source§impl BootState
impl BootState
Sourcepub const fn allows_traffic(self) -> bool
pub const fn allows_traffic(self) -> bool
Whether ordinary, unsolicited calls may be sent.
Only Accepted does: B01.FR.08 keeps a freshly powered station quiet until the CSMS
answers, and B02.FR.02 keeps it quiet while the answer is Pending.
Sourcepub const fn blocks_unsolicited_traffic(self) -> bool
pub const fn blocks_unsolicited_traffic(self) -> bool
Whether a CSMS must answer an unsolicited call with SecurityError.
B01.FR.10 and B02.FR.09 both have the same precondition: the Charging Station has
received a BootNotificationResponse whose status is not Accepted. A station that
has not been answered at all — the normal state of a reconnected station, which
Part 4 §5.4 tells not to repeat its BootNotification — is therefore not covered,
and blocking it would break every reconnect.