<!-- Canonical: https://www.ezdis.net/en/free-ocpp-server/afax-dc-g1 | Language: en -->

# How to set up AFAX POWER DC-G1 with EzDIS

## Before configuring the charger

The AFAX POWER DC-G1 (a DC charger with two guns, A and B) is configured on its own screen: user icon (top right) → System parameter settings 1/2. If it has the Host, Path, Port, WS and WSS fields: WS ON, WSS OFF, Host devices.ezdis.net (no ws://), Port 9000 and Path empty or “/”; for the secure connection, WSS ON, WS OFF, Host charger.ezdis.net and Port 443 (never WSS with port 9000). If it has a single URL field: ws://devices.ezdis.net:9000/ with User and Pass empty. Do not put the ev… identifier in Path: the charger appends its own charger number to the address and connects with it. Save, then cut its power at the breaker for about 30 seconds. When the charger page in EzDIS shows that a charger is trying to connect with that number, tap “It is …” (open the app from the charger’s network).

## 1. Create the charger in EzDIS

1. Sign in to EzDIS, open **EV Chargers** and tap **Add charger**.
2. Enter a **Name** (for example “Bay 1”) and the **Max power (kW)**, then save.
3. **Connect “Bay 1”** opens with the data you will enter in the AFAX POWER DC-G1:
   - **Server address (OCPP URL)**: `ws://devices.ezdis.net:9000/ev4k2p9x7q1m`.
   - **Secure address (wss://)**: `wss://charger.ezdis.net/ev4k2p9x7q1m`. Use it if the charger supports a secure connection.
   - **Charger identifier**: `ev4k2p9x7q1m`. On the charger it may be called ChargeBox ID, Charge Point ID or Identity.
   - **Password**, if the charger has that field. It is shown only once.

If the charger has a separate field for the identifier, fill it in and still paste the full address: EzDIS recognizes the charger even if it adds its identifier or serial number to the end.

The data above is an example: use your charger's own. Each charger has its own identifier.

## 2. Configure the AFAX POWER DC-G1

The AFAX POWER DC-G1 is a DC charger with two guns, A and B, and it is configured from its own touchscreen. It connects with its own charger number (the **Charger number** shown on the screen): on the unit you only enter the server address, without the `ev…` identifier from the charger page.

1. On the charger screen, tap the user icon (top right) and open **System parameter settings**. The server connection is on page **1/2**. Page **2/2** has the charger functions (billing, cards, etc.) and **Debug** is the electrical diagnostics, not OCPP.
2. Check the network: in the tested installations, **Ethernet** on (Wi-Fi and 4G off) and **DHCP** on.
3. Enter the server. Depending on the firmware, the screen comes in one of these two forms:

   **Host, Path, Port, WS and WSS fields** (firmware V105.1.24.x):
   - **WS**: ON and **WSS**: OFF.
   - **Host**: `devices.ezdis.net` (just the name, no `ws://`).
   - **Port**: `9000`.
   - **Path**: empty or just `/`.

   For the secure connection: **WSS** ON, **WS** OFF, **Host** `charger.ezdis.net`, **Port** `443` and **Path** empty or `/`. Never combine WSS with port 9000: it will not connect.

   **A single URL field** (firmware V105.1.25.x): enter `ws://devices.ezdis.net:9000/`, ending in `/` with nothing after it, and leave **User** and **Pass** empty.

4. Do not type the full address in Host or Path, and do not put your `ev…` identifier in Path: the charger appends its own number to the end of the address and the two would end up joined.
5. Save and restart the charger by cutting its power at the breaker for about 30 seconds. Restarting it from the screen may not be enough for it to register with the new address.

From the factory, the AFAX POWER DC-G1 points to the AFAX cloud (`ws://iot.afaxcharge.com/ocpp16/`). A charger talks to one server at a time: once it points to EzDIS, it stops using the AFAX cloud and app.

## 3. Check the connection

After the restart, the charger calls EzDIS with its own identifier: its charger number, sometimes with one more digit at the end. Open **EV chargers** in EzDIS from a phone or computer on the same network as the charger: the page of the charger you added shows “A charger is trying to connect from your network as…”. Tap **It is “Bay 1”** and the charger is connected, with its two guns as two connectors. If it does not show up, contact us and we will link it for you.

## If it does not connect

- Check that the charger has internet access and that the address is complete, with no spaces.
- If the charger page shows “A charger is trying to connect from your network as…”, tap **It is “Bay 1”**: your charger uses its serial number as identifier and connects on its next attempt.
- If it says the server rejected it, the password does not match or the charger is not using the secure address (wss://).

Once connected you can start and stop sessions from EzDIS, register RFID cards, charge per kWh and see each person's usage: it is all in the [EV chargers manual](https://www.ezdis.net/en/manual/1.0/guides/ev-chargers).

## Manuals and documentation

[Download the PDF tutorial](https://www.ezdis.net/en/free-ocpp-server/afax-dc-g1/tutorial.pdf)
