🛠 Antenne et pièges RF du déploiement

Arduino MKR NB 1500 · avance · Schéma : IMG-mkr-nb-1500-avance-2-mkrnb-antenne-rf.svg — Gros plan sur le connecteur d'antenne de la MKR NB 1500 avec antenne fouet et câble pigtail, emplacement SIM à côté, boîtier métallique barré en inset

Objectives

Master the radio part: antenna connector, antenna selection, SIM insertion, and RF errors that cause a perfectly wired deployment to fail. The SARA-R410M-02B module covers LTE bands 2/3/4/5/8/12/13/20/28 — the antenna must cover them (in Europe: B3 1800 MHz and B20 800 MHz for NB-IoT/LTE-M).

Hardware

Complete code

// Test terrain : qualite du lien apres choix d'emplacement
#include <MKRGSM.h>
#include "arduino_secrets.h"

const char PINNUMBER[] = SECRET_PINNUMBER;
GSM gsm;

void setup {
  Serial.begin(9600);
  while (!Serial);

  Serial.println("Attente enregistrement (max 3 min)...");
  unsigned long t0 = millis;
  while (gsm.begin(PINNUMBER) != GSM_READY) {
    if (millis - t0 > 180000UL) {
      Serial.println("ECHEC : pas de reseau -> antenne ? SIM ? couverture ?");
      for (;;);
    }
    delay(1000);
  }
  Serial.println("Enregistre.");

  // Sonde le modem : reponse AT+CSQ affiche rssi/ber
  gsm.sendModemCommand("AT+CSQ", &Serial);
}

void loop {}

Expected verification

With the correct antenna and in a covered area, registration succeeds in less than 3 minutes and AT+CSQ returns a usable RSSI (see diagnostic tutorial). Move the board by 50 cm or rotate the antenna: the RSSI should vary — this is the cheapest test for your installation.

Common errors

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials