Firmware updates
This page explains how a firmware update works on the drive, what to do before you start, the UDS sequence the updater runs, and what happens when an update fails or is interrupted. The updater is not released; its commands are TBD.
How an update works
| Item | Behaviour |
|---|---|
| Connection | The host connects to the CAN bus once and updates every drive on it. You do not connect to drives one by one. |
| Entering the bootloader | The updater restarts each drive into its bootloader with UDS DiagnosticSessionControl (0x10) and ECUReset (0x11). You do not power-cycle the drive. |
| Identity check | Before it flashes a drive, the updater reads the drive's serial number, hardware revision and firmware version, and checks them against the image. |
| Signature | Images are signed. Each drive verifies the signature before it installs an image. |
| Identical drives | Drives with the same hardware can receive one broadcast image. Each drive verifies its own copy. |
| Image slots | The drive has two image slots and keeps the previous image. If the new image fails its self-test, the drive goes back to the previous image by itself. |
| Load interlock | The updater refuses to flash a drive whose joint is holding load. |
| Calibration | Updates do not write to the calibration area. See Calibration. |
Before you start
Warning Do not update a device while a person wears it or while any joint carries load. A drive that is being updated does not hold its joint.
- Support the device so that no joint holds load.
- Switch torque off on every drive: CiA 402 state Switch on disabled.
- Check that the 48 V supply will stay on for the whole update.
- Check that every drive answers on the bus: boot-up or heartbeat frames, or an identity read over UDS.
- Read and save your settings. Whether settings are kept through an update is TBD.
- Get the image file. Image format and how images are distributed: TBD.
Update sequence
The updater runs these steps for each drive. Service IDs are from ISO 14229-1; drive-specific values are TBD.
| Step | Action | UDS service | Drive-specific value |
|---|---|---|---|
| 1 | Read serial number, hardware revision, firmware version | 0x22 ReadDataByIdentifier | DIDs: TBD |
| 2 | Check the image against the hardware revision | โ | Image metadata: TBD |
| 3 | Check that the joint holds no load | โ | Check method and refusal response: TBD |
| 4 | Restart into the bootloader | 0x10 DiagnosticSessionControl, 0x11 ECUReset | Exact sequence: TBD |
| 5 | Unlock, if required | 0x27 SecurityAccess | Level and algorithm: TBD |
| 6 | Download the image | 0x34 RequestDownload, 0x36 TransferData, 0x37 RequestTransferExit | Address and data format: TBD |
| 7 | Verify the signature | โ | Method: TBD |
| 8 | Restart into the new image; self-test; roll back on failure | 0x11 ECUReset | Self-test content: TBD |
| 9 | Read back the firmware version | 0x22 ReadDataByIdentifier | DID: TBD |
Download services
These frame layouts are standard ISO 14229-1:
| Message | Layout |
|---|---|
| RequestDownload | 34 <data format> <address and length format> <memory address> <memory size> |
| Positive response | 74 <length format> <max number of block length>: the largest TransferData message the drive accepts |
| TransferData | 36 <block sequence counter> <data>. The counter starts at 0x01 and wraps from 0xFF to 0x00. |
| Positive response | 76 <block sequence counter> |
| RequestTransferExit | 37 |
| Positive response | 77 |
Broadcast transfer
The mechanism for sending one image to several identical drives is TBD. ISO-TP functional addressing (ISO 15765-2) carries only single-frame messages, so a full image cannot be sent with standard functional UDS requests alone.
Run the updater
The updater is not released. Its commands and options are TBD.
Check the result
- Read the firmware version of every drive and compare it with the image.
- Read the fault codes of every drive (0x19).
- Check that every drive sends its boot-up frame and, if enabled, its heartbeat.
Failed or interrupted updates
| Situation | What the drive does | What you do |
|---|---|---|
| Signature check fails | Does not install the image. The previous image stays. | Check the image file, then run the update again. |
| New image fails its self-test | Goes back to the previous image by itself. | Read the firmware version and the fault codes. |
| Power or bus lost during the download | Keeps the previous image, or waits in the bootloader. | Restore power and the bus, then run the update again. |
| Joint holding load | The updater refuses to flash it. | Unload the joint, switch torque off, run the update again. |
You do not need to open or power-cycle a drive to recover it. How a drive that waits in the bootloader shows itself on the bus is TBD.