# Flashen

Wilt u de dongle zelf van nieuwe firmware voorzien dan is deze gemakkelijk te flashen via de  usb poort.

Er zijn meerdere mogelijkheden, namelijk:

* andere DSMR-API versie flashen.
* ESPHome versie flashen.&#x20;
* Zelfgemaakte software flashen

De DSMR-API en ESPHome software is per hardware type te vinden op de webinstaller pagina. Zie: <https://docs.smart-stuff.nl/dsmr-api/geavanceerd/webinstaller>

{% hint style="info" %}
Flashen via usb : soms komt de dongle niet direct in download modus. Het helpt dan om het nogmaals te proberen. Of anders tijdens de powerup de fysieke knop in te drukken.
{% endhint %}

### Driver

Om de usb micro poort van de dongle te gebruiken dient uw computer de juiste driver te hebben geinstalleerd. De uitleg hierover is te vinden in: <https://docs.espressif.com/projects/esp-idf/en/latest/esp32c3/get-started/establish-serial-connection.html>

### Zo via een USB  kabeltje (JTAG)

Op de print zitten onderop ook aansluitingen om de dongle via zo genoemde JTAG methode (TTL - USB adapter) te voorzien van nieuwe software. Aangezien de usb  manier vele malen gemakkelijker is wordt deze manier niet verder uitgelegd.&#x20;

## Easy way

De meest eenvoudige manier is om de dongle aan te sluiten op de pc en dan in de browser de ESP Webtools site te openen. Dan kan je direct de laatste versie flashen. Zie deze pagina voor de juister link: <https://docs.smart-stuff.nl/dsmr-api/geavanceerd/webinstaller>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.smart-stuff.nl/esphome-p1-dongle-pro/geavanceerd/flashen.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
