# In Field Commissioning

It may sometimes be desirable to update a charger's provisioned settings. The various supported commissioning methods are explained below.

---

## Switch from LTE or Ethernet to Wi-Fi TLS

> Ethernet only applies for amina M

It is possible to switch the charger's network interface from LTE or Ethernet to Wi-Fi TLS.

**Notes:**
- This method can only be used if the charger is provisioned to use LTE or Ethernet
- A Wi-Fi AP must be reachable from the charger's location
- The change is only persisted if the charger is able to establish a connection to the CSMS endpoint using Wi-Fi TLS. If no connection was made and the charger reboots it will revert back to using LTE/Ethernet
- If persisted it is not possible to switch back to LTE

### Instructions

#### Switch from LTE or Ethernet to Wi-Fi TLS

- Ensure the charger is disconnected from power
- Take note of the charger's current rotary switch position (e.g. take a photo) 
- Set the charger's current rotary switch to position 0
- Connect the charger to power (you will see LED rapidly blinking white)
- Wait for 30 seconds to allow the charger finish initializing itself
- Hold any NFC card against the charger for at least 5 seconds
- Ensure the charger has switched to using Wi-Fi (the LED should be rapidly be blinking purple)
- Scan for Wi-Fi APs on your phone/computer until a Wi-Fi AP with SSID equal to the charger's serial number appears

#### Access the Wi-Fi Module's Captive Portal

- Connect your phone/computer to the Wi-Fi AP hosted by the charger
- Open a web browser and go to: `192.168.88.1/connect`
- Enter the new SSID & password for your AP
- Click the `Submit` button
- Wait for 30 seconds to allow the charger to reconfigure itself and connect to the new Wi-Fi AP

#### Finalising commissioning

- Ensure the charger has connected to the new Wi-Fi AP (the LED should rapidly be blinking white)
- Disconnected the charger from power
- Set the current rotary switch to its original position (e.g. refer to the photo you took earlier)
- Connect the charger to power

## Commissioning Wi-Fi AP Credentials Using the Wi-Fi Captive Portal

It is possible to commission the charger's Wi-Fi AP credentials (SSID and password) by utilizing the Wi-Fi module's built-in captive portal.

**Notes:**
- This method can only be used if the charger is provisioned to use Wi-Fi

### Instructions

#### Bringing up the Charger's Wi-Fi Access Point

- Ensure the charger is disconnected from power
- Take note of the charger's current rotary switch position (e.g. take a photo) 
- Set the charger's current rotary switch to position 0
- Connect the charger to power (you will see LED blinking white)
- Wait for 30 seconds to allow the charger finish initializing itself
- Hold any NFC card against the charger for at least 5 seconds
- Scan for Wi-Fi APs on your phone/computer until a Wi-Fi AP with SSID equal to the charger's serial number appears

#### Access the Wi-Fi Module's Captive Portal

- Connect your phone/computer to the Wi-Fi AP hosted by the charger
- Open a web browser and go to: `192.168.88.1/connect`
- Enter the new SSID & password for your AP
- Click the `Submit` button
- Wait for 30 seconds to allow the charger to reconfigure itself and connect to the new Wi-Fi AP

#### Finalising commissioning

- Ensure the charger has connected to the new Wi-Fi AP (the LED should rapidly be blinking white)
- Disconnected the charger from power
- Set the current rotary switch to its original position (e.g. refer to the photo you took earlier)
- Connect the charger to power


## Switching from LTE or Wifi to Ethernet
> This is only applicable to amina M

It is possible to switch the chargers network interface from LTE or WiFi TLS to Ethernet.
**Notes:** 
- It is not currently possible to switch back to LTE from Ethernet.

### Prerequisites

- The charger must be provisioned for TLS.
    - LTE and Ethernet only supports TLS
    - WiFi supports both TLS and plain websocket.
    - If the csms-url is prefixed with `wss`, the charger is provisioned for TLS
    - If the csms-url is prefixed with `ws`, the charger is provisioned for plain websocket

### Instructions

- Ensure the charger is disconnected from power
- Plug in an ethernet cable to the chargers ethernet port.
    - For a transition to take place, the cable must also be connected on the other side to a device capable of negotiating an ethernet link. (The device on the other side of the ethernet cable must be powered on)
- Take note of the charger's current rotary switch position (e.g. take a photo) 
- Set the charger's current rotary switch to position 0
- Connect the charger to power (you will see LED rapidly blinking white)
- Wait for 30 seconds to allow the charger finish initializing itself

The charger is now using ethernet.