Firmware update

The firmware can be updated by performing a CoAP PUT operation of the image file to '/fw/image'.

1. Firmware Update over Serial Port

The firmware update operation can be done using a CoAP client running over MUP1. In the example below, the image file in /tmp/rel.fip is transferred using the MUP1 client tool.

mup1ct -d /dev/ttyACM0 coap put fw/image < /tmp/rel.fip

2. Firmware Update over Network

The firmware update operation can be done using a CoAP client running over IP. In the example below, the image file in /tmp/rel.fip is transferred using the libcoap client tool. The IP address 1.2.3.4 has been assigned to the switch prior to the operation.

coap-client -m put coap://1.2.3.4/fw/image -f /tmp/rel.fip

3. Firmware Activation

After loading the firmware, it can be activated by restarting the system as shown below.

POST request message:

- ? "/ietf-system:system-restart"
  :

4. Firmware Version

The firmware version is retrieved as shown below.

FETCH request message:

- "/ietf-system:system-state/platform/os-version"

FETCH response message:

- ? "/ietf-system:system-state/platform/os-version"
  : VelocitySP-v2024.12