You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/firmware.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
6
6
Partitioning
7
-
-------------
7
+
------------
8
8
9
9
The internal eMMC storage of a chargebyte device is divided into several partitions to support two independent systems: system A and system B. This setup enables firmware updates to run in the background while the device continues normal charging operations. Once the update is complete, the system can switch to the updated version with a reboot of the device. Additionally, this approach supports a rollback mechanism in case of update failures. In other words, during a firmware update, the active root file system switches from A to B (or vice versa), leaving the other partition available for rollback if needed.
Figure: Simplified system architecture for the safety controller on the chargeSOM
108
-
109
-
The safety controller manages the Control Pilot (CP) line, acting as a critical interface for monitoring and controlling the high-voltage (HV) system in accordance with EV safety standards. Its core function is to **enforce safe operating states** based on system diagnostics and environmental conditions.
110
-
111
-
Fault Detection & Safety Response
112
-
---------------------------------
113
-
114
-
When an error is detected—such as a fault in the system, a triggered emergency input, or a thermal violation—the controller transitions to **State F**, a fail-safe state that prevents further system operation to protect both the hardware and the user.
115
-
116
-
HV Ready Enablement
117
-
-------------------
118
-
119
-
The controller verifies that **no system errors are present** and that the CP line is in **State C**. Only under these safe conditions does it enable the HV Ready signal, which may be used to energize the HV interlock or permit charging/operation.
120
-
121
-
Emergency Inputs
122
-
----------------------------------
123
-
124
-
The simplified system architecture shows only one emergency input. In the real system, there are 3 independent emergency input signals available: SAFETY_ESTOP1, SAFETY_ESTOP2 and SAFETY_ESTOP3. The inputs are active low. This means an emergency stop needs to pull the input to Gnd. The emergency inputs can be parameterized out.
125
-
126
-
127
-
Temperature Monitoring
128
-
----------------------------------
129
-
130
-
The simplified system architecture shows only one temperature input. In the real system, there are 4 independent temperature measurement circuits for PT1000 sensors. The safety software monitors the temperature circuit for hardware errors and for overtemperaure. The temperature threshold can be parameterized.
131
-
132
-
HV Connector Control
133
-
--------------------
134
-
135
-
If State C is confirmed and all safety criteria are met, the controller is also capable of closing HV connectors to complete the high-voltage path. Therefore it enables the 2 connectors SAFETY_HVSW1_HS and SAFETY_HVSW2_HS under the condition that State C is detected, the system is HV-ready and the host processor commands to close the contactors.
136
-
137
-
138
-
Reset Behaviour and Controller states
139
-
=====================================
140
-
The safety controller starts in an initialization state, to give the peripherals time to reach an defined state. It leaves the initialization state to a running state, after the reception of the first UART message from the host. Only periodic messages leaves the init state. With the reception of inquiriy messages, the safety controller stays in initialization. This gives the option to fetch version information in an init state. In running state, it monitors the peripherals and sends out UART messages. If any error occurs, the system goes into safe state. This state can only be left by a reset.
Data packets contain payload and can be sent out from host to safety controller or vice versa. Data packets from safety controller to host can be transmitted periodically or by request via an inquiry packet. Only one inquiry packet can be requested before requesting the next one.
156
-
157
-
+--------+--------+--------+-------------------+
158
-
| Symbol | Size | Code | Description |
159
-
+========+========+========+===================+
160
-
| SOF | 1 byte | 0xA5 | Start of frame |
161
-
+--------+--------+--------+-------------------+
162
-
| ID | 1 byte || Packet Identifier |
163
-
+--------+--------+--------+-------------------+
164
-
| Data | 8 byte || Payload |
165
-
+--------+--------+--------+-------------------+
166
-
| CRC | 1 byte || CRC checksum |
167
-
+--------+--------+--------+-------------------+
168
-
| EOF | 1 byte | 0x03 | End of frame |
169
-
+--------+--------+--------+-------------------+
170
-
171
-
172
-
Packet Identifier (ID)
173
-
----------------------
174
-
175
-
The values of the packet identifier (PacketId) are mapped to the messages as summarized below.
0 commit comments