---
title: "Instalar en Quectel RM520N-GL | Wantastic Docs"
description: "Instala wantasticd en un Quectel RM520N-GL u otro módulo 5G Qualcomm SDX por ADB en 2 minutos: un comando, escanea un código QR y haz clic en Claim Device."
url: "https://wantastic.app/es/docs/install-quectel-rm520n"
category: "Install wantasticd"
reading_time: "4 min"
---

# Instalar en Quectel RM520N-GL

Instala wantasticd en un Quectel RM520N-GL u otro módulo 5G Qualcomm SDX por ADB en 2 minutos: un comando, escanea un código QR y haz clic en Claim Device.

> **Outcome:** wantasticd se ejecuta en el módulo bajo systemd, guarda su configuración en la partición persistente /usrdata, informa de datos celulares y GNSS y aparece como Online en la consola.

## Before you start

- Un Quectel RM520N-GL (o un módulo Qualcomm SDX55/SDX65 similar) con ADB habilitado.
- Un ordenador con adb (Android platform-tools) conectado al módulo por USB.
- Una conexión de datos operativa en el módulo (SIM registrada).
- Un teléfono o un navegador para iniciar sesión en la consola de Wantastic.

## Instalación rápida (2 minutos)

Abre una shell en el módulo con adb y ejecuta un comando. La configuración se guarda en /usrdata, así que sobrevive a las actualizaciones de firmware. No necesitas token.

1. En tu ordenador, abre una shell en el módulo con el primer comando de abajo.
2. Pega el comando de instalación en la shell de adb. Ya eres root.
3. El dispositivo muestra una Claim URL y un código QR. Escanea el código QR con tu teléfono o abre la Claim URL en un navegador.
4. Inicia sesión en la consola de Wantastic. Se abre la ventana Claim Wantastic Device con la clave ya rellenada. Haz clic en Claim Device.
5. La terminal muestra "Device claimed". Pulsa Ctrl+C y ejecuta el comando de reinicio de abajo.
6. Abre Devices en la consola. El dispositivo aparece como Online.

En tu ordenador:

```bash
adb shell
```

Instalar y reclamar:

```sh
wget -qO- https://get.wantastic.app/install.sh | sh; wantasticd genkey
```

Tras "Device claimed": pulsa Ctrl+C y reinicia el servicio:

```sh
systemctl restart wantasticd
```

*Instalar y reclamar: genkey muestra una Claim URL y un código QR, y luego espera. Cuando haces clic en Claim Device en la consola, muestra "Device claimed". Entonces pulsa Ctrl+C y reinicia el servicio.*

```
$ / # wget -qO- https://get.wantastic.app/install.sh | sh; wantasticd genkey
…
Skipping login. Run 'wantasticd login' to authenticate.
…
Generated device claim key: /usrdata/wantastic/etc/device-claim-key.json
Public key: Vd3hK1oQ7mR2sT9uW4xY6zA8bC0dE2fG4hJ6kL8mN0P=
Server URL: https://console.wantastic.app
Claim URL: https://console.wantastic.app/#desktop?claim_public_key=Vd3hK1oQ…%3D&wantastic_server=https%3A%2F%2Fconsole.wantastic.app

█▀▀▀▀▀█ ▄▀▄ ▀█▄ █▀▀▀▀▀█
█ ███ █ ▀█▄▀▄█ █ ███ █
█ ▀▀▀ █ ▄▀█ ▀▄ █ ▀▀▀ █
▀▀▀▀▀▀▀ ▀ ▀ █ ▀ ▀▀▀▀▀▀▀
▀█▄▀▄▀▀█▀▄█▀▄▀▀▄█▀▄▀█▄
█▀▀▀▀▀█ █▄▀▄▀█ ▀▄█ ▄▀
▀▀▀▀▀▀▀ ▀▀ ▀▀▀ ▀▀▀ ▀▀▀

2026/10/29 09:14:03 Waiting for claim. Press Ctrl+C to stop.
2026/10/29 09:15:12 Device claimed. Configuration saved to /usrdata/wantastic/etc/config.conf
^C
$ / # systemctl restart wantasticd
```

*Console: Claim Wantastic Device. La Claim URL y el código QR rellenan la clave por ti. Solo tienes que hacer clic en Claim Device.*

1. Claim public key ya está rellenado
2. Deja Wantastic server como aparece
3. Haz clic en Claim Device

> **Tip:** ¿No tienes el teléfono a mano? Copia la Claim URL de la terminal y ábrela en cualquier ordenador.

> **Operational note:** Antes del código QR, el instalador puede mostrar "Skipping login" o un error del servicio. Es normal en un dispositivo nuevo. El servicio funciona tras la reclamación y el reinicio.

## Comprueba que funciona

1. Ejecuta wantasticd status. Muestra Status: Connected y una VPN IP.
2. Abre Devices en la consola. El dispositivo aparece como Online.

Comprobación:

```sh
wantasticd status
```

*wantasticd status: Status: Connected y una VPN IP indican que el túnel está activo.*

```
$ / # wantasticd status
Status:        Connected
Version:       v1.0.54+377f3c0
Mode:          TUN (wantastic0)
VPN IPs:       10.200.0.14/32
Public key:    q7ZkV3m1yH0dTn8pXo2bLwR4sE6uJ9cA1fG5hK8iN0M=
Server:        wg.wantastic.app:51820
Exit node:     false
Local access:  false
Auto update:   true
Traffic:       ↓ 18.4 KiB  ↑ 9.2 KiB
Peers:         2 (direct 1, relay 1)
Uptime:        4m12s
```

*Console: Ventana Devices: el nuevo dispositivo aparece con su nombre y pasa a Online en pocos segundos.*

1. Buscar por nombre
2. Status muestra Online
3. La IP de Overlay coincide con wantasticd status
4. Last seen se sigue actualizando

## Gestionar el servicio

- En la fila de Devices, abre WUSP Device Management para ver los datos de señal, SIM y GNSS del módulo.
- No abras tú mismo /dev/at_mdm0 ni /dev/at_usb0. Pertenecen al software del fabricante.
- wantasticd copia su identidad al entorno de U-Boot para que el módulo la conserve tras un reflasheo. Para desactivarlo, define WANTASTIC_FWENV=0 para el servicio.

systemd en el módulo:

```sh
systemctl restart wantasticd
systemctl stop wantasticd
journalctl -u wantasticd -f
```

## Otras formas de instalar

Solo lo necesitas para automatización o casos especiales. La instalación rápida de arriba es la forma más sencilla.

### Con un token (muchos dispositivos)

Usa un token cuando instales muchos dispositivos con un script o cuando nadie pueda escanear un código QR. Crea el token una vez en la consola: Account → Secrets → + New Secret → Generate. Sustituye <TOKEN> por él.

Instalación con token:

```sh
wget -qO- https://get.wantastic.app/install.sh | sh -s -- --token <TOKEN>
```

> Trata el token como una contraseña. Quien lo tenga puede añadir dispositivos a tu cuenta hasta que caduque.

### Sin Internet en la shell del módulo

Descarga la compilación ARM en tu ordenador y súbela a /usrdata con adb. Luego reclama el módulo y añade un servicio.

En tu ordenador:

```bash
TAG=$(curl -fsSL https://get.wantastic.app/latest | cut -d+ -f1)
curl -fsSLO https://get.wantastic.app/$TAG/wantasticd-linux-arm.tar.gz
tar -xzf wantasticd-linux-arm.tar.gz
adb shell mkdir -p /usrdata/wantastic/bin
adb push wantasticd /usrdata/wantastic/bin/wantasticd
adb shell chmod 755 /usrdata/wantastic/bin/wantasticd
```

> Después, en adb shell, ejecuta /usrdata/wantastic/bin/wantasticd genkey y crea el servicio con la pestaña systemd de la guía Instalación manual con tarball (usa /usrdata/wantastic/bin/wantasticd como ruta).

*Console: Account → Secrets → + New Secret. El valor del secreto es el token.*

1. Abre la pestaña Secrets
2. Haz clic en + New Secret
3. Ponle un nombre
4. Haz clic en Generate
5. Copia el nuevo secreto

## Verify the result

- /usrdata/wantastic/etc/config.conf existe y no está vacío.
- wantasticd status muestra Status: Connected.
- El módulo aparece como Online en Devices, también tras apagarlo y encenderlo.

## Common issues

### adb no muestra ningún dispositivo.

```
error: no devices/emulators found
```

- **Where:** adb
- **Likely cause:** ADB está desactivado en el módulo o el cable USB solo transmite alimentación.
- **Fix:** Activa ADB con el comando AT o la herramienta de tu fabricante, usa un cable de datos y vuelve a comprobarlo.

Comprobación:

```bash
adb devices
```

### El instalador no puede escribir en el sistema de archivos raíz.

```
Error: could not remount / read-write. Run as root or unlock the filesystem.
```

- **Where:** install.sh
- **Likely cause:** Este firmware bloquea el sistema de archivos raíz.
- **Fix:** Usa la pestaña "No internet in the module shell" (Sin Internet en la shell del módulo). Mantiene el binario en /usrdata.

### Hiciste clic en Claim Device, pero la terminal nunca muestra "Device claimed".

```
Claim polling not ready: claim config rejected (401): invalid signature or timestamp out of window
```

- **Where:** wantasticd genkey
- **Likely cause:** El reloj del dispositivo no está en hora. La reclamación solo funciona si el reloj tiene un desfase inferior a 30 segundos respecto a la hora real.
- **Fix:** Corrige el reloj. genkey sigue esperando y termina por sí solo.

Comprobar la hora:

```sh
date
# wait for network time from the cell network, then genkey continues
```

### El servicio no arranca o se reinicia una y otra vez.

```
Failed to load configuration: validate config: private key required
```

- **Where:** journalctl -u wantasticd
- **Likely cause:** wantasticd está instalado pero el dispositivo aún no se ha reclamado, así que su archivo de configuración está vacío.
- **Fix:** Reclama el dispositivo y luego reinicia el servicio.

Reclamar y reiniciar:

```sh
wantasticd genkey
# after "Device claimed": press Ctrl+C, then:
systemctl restart wantasticd
```

- **Verify:** wantasticd status muestra Status: Connected.

### Aparece una segunda interfaz (wantastic1) o el registro muestra un conflicto de puertos.

```
Port 51820 in use, using random port
```

- **Where:** registro del servicio
- **Likely cause:** genkey sigue ejecutándose en la terminal mientras el servicio también se ejecuta. Ahora compiten dos copias.
- **Fix:** Pulsa Ctrl+C en la terminal de genkey y luego reinicia el servicio.

Reiniciar:

```sh
systemctl restart wantasticd
```

### status indica Running (tunnel down), o peers muestra HANDSHAKE never para (server).

```
Device health check failed: …
```

- **Where:** registro del servicio
- **Likely cause:** La red bloquea el puerto UDP 51820 saliente hacia el hub (wg.wantastic.app), o el DNS no funciona.
- **Fix:** Permite UDP 51820 saliente en tu firewall y luego reinicia el servicio.

Probar DNS y reiniciar:

```sh
nslookup wg.wantastic.app
systemctl restart wantasticd
```

- **Verify:** wantasticd peers muestra un handshake reciente (por ejemplo "8s ago") para (server).

### Quieres mover el dispositivo a otra cuenta o empezar de cero con una nueva reclamación.

```
Config already exists at /usrdata/wantastic/etc/config.conf — skipping login.
```

- **Where:** install.sh
- **Likely cause:** El dispositivo conserva su configuración, incluso si vuelves a ejecutar el instalador. Primero debes quitar la configuración anterior.
- **Fix:** Aparta la configuración anterior y luego reclama el dispositivo de nuevo con una clave nueva.

Empezar de cero:

```sh
mv "/usrdata/wantastic/etc/config.conf" "/usrdata/wantastic/etc/config.conf.bak"
wantasticd genkey --force
# after "Device claimed": press Ctrl+C, then:
systemctl restart wantasticd
```

- **Verify:** El dispositivo aparece en la nueva cuenta y wantasticd status muestra Connected.

### Las transferencias grandes se atascan por la red celular.

- **Where:** registro del servicio
- **Likely cause:** Los enlaces celulares suelen tener una MTU menor. El agente reduce la MTU del túnel por sí solo y registra "Tunnel MTU 1420 -> <n> to fit the <m>-byte link to the hub".
- **Fix:** Normalmente no hay que hacer nada. Si siguen los atascos, pide a tu operador la MTU del APN.

## Continue with

- [Choose your install method](https://wantastic.app/es/docs/install-overview): Find your device in one table and copy one command. Most devices install in 2 minutes: install, scan a QR code, click Claim Device.
- [WUSP device management](https://wantastic.app/es/docs/wusp-device-management): See live data, change a setting, reboot and take snapshots of wantasticd devices.
- [wantasticd CLI reference and operations](https://wantastic.app/es/docs/wantasticd): The most used wantasticd commands first, then every command and flag, environment variables, config and state paths per OS, log lines, local access, exit node, and the claim flow (genkey / --wait-claim).
- [Update, roll back and uninstall](https://wantastic.app/es/docs/update-and-uninstall): Update or uninstall wantasticd with one line per OS. Also: how auto-update works, turning it off, rolling back to the previous binary, and purging all data.
- [OpenWrt and embedded device errors](https://wantastic.app/es/docs/errors-openwrt-embedded): kmod-tun, read-only flash, procd, full flash, wrong clocks and BusyBox issues on routers and modules.
- [Manual tarball install](https://wantastic.app/es/docs/install-manual): Install wantasticd by hand from the release archive on any Linux CPU (including ppc64, s390x and loong64), claim it with genkey, and add your own service.
