> ## Documentation Index
> Fetch the complete documentation index at: https://docs.adsumnetworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Run the LEW840x on cellular from the signed images

> The cellular LEW840x (LTE-M and NB-IoT on the nRF9160 card) running from Adsum's signed images: what to fit, what to flash, what you will see, and how to get the source. No build, no source, no SDK needed.

The [base build](/supported-hardware/fanstel/lew840x) starts from a prompt and ends with firmware you built. This page is the other door: the same gateway with its cellular card fitted, running from **signed images you flash**, so you can judge LTE-M and NB-IoT on your own SIM in an afternoon. Nothing to build, nothing to read from source, no SDK on the machine.

<Note>
  Three signed images, free to flash with a [free account](/account): the **BLE scanner** for the nRF52840 on the M2 card, the **uplink** for the ESP32 base, and the **cellular bearer** for the nRF9160 on the LN card. Wi-Fi and Ethernet run without limit; **cellular runs in 60-minute sessions** in this build, for evaluation. Licensed source is on request. Row by row: [gateway firmware](/gateway-firmware).
</Note>

## The gateway, with the cellular card

The LEW840x carries its radios on two M.2 slots. For cellular the **LN slot** takes an nRF9160-based card (Fanstel's LN-series, LTE-M, NB-IoT and GNSS) and the **M2 slot** keeps the BLE card. The ESP32 on the base owns the network and the dashboard; the nRF52840 scans; the nRF9160 is the cellular bearer.

|              |                                                                                                   |
| :----------- | :------------------------------------------------------------------------------------------------ |
| **Base**     | ESP32M16 with 16 MB flash, LAN8720A Ethernet PHY, PoE                                             |
| **LN slot**  | An nRF9160 cellular card (LTE-M, NB-IoT, GNSS). The ESP32 reaches it over its own UART.           |
| **M2 slot**  | A BLE card (nRF52840), as in the base build                                                       |
| **SIM**      | Any LTE-M or NB-IoT SIM with data. The bearer attaches on it; your APN if your operator needs one |
| **Antennas** | Cellular on the LN card's connector, BLE on the M2 card's                                         |

<Tabs>
  <Tab title="Closed">
    <Frame caption="The LEW840X, closed. The cellular variant is the same enclosure with the second antenna fitted.">
      <img src="https://mintcdn.com/adsumnetworks/baJOEElNaxg88aCO/images/demos/lew840x-product.jpg?fit=max&auto=format&n=baJOEElNaxg88aCO&q=85&s=78f89d65897481a3cab14ae36b6ccc37" alt="A Fanstel LEW840X gateway with two antennas" width="652" height="1200" data-path="images/demos/lew840x-product.jpg" />
    </Frame>
  </Tab>

  <Tab title="Board in view">
    <Frame caption="Opened. The LN slot for cellular and the M2 slot for BLE, side by side.">
      <img src="https://mintcdn.com/adsumnetworks/rt10XJFA7rodKIm9/images/demos/lew840x-inside.jpg?fit=max&auto=format&n=rt10XJFA7rodKIm9&q=85&s=7cbb5c342470eb4ffa8b9c4cee15ca3a" alt="The opened LEW840X with both M.2 slots visible and annotated" width="1600" height="1200" data-path="images/demos/lew840x-inside.jpg" />
    </Frame>
  </Tab>
</Tabs>

## What you need

* A **Fanstel LEW840x** with a cellular card in the **LN slot** and a BLE card in the **M2 slot**, a SIM, and the antennas fitted.
* **Fanstel's UART bridge** for the base (flashing the ESP32) and an **nRF52840 DK** or another J-Link probe on the gateway's debug header (flashing the nRF chips over SWD). The agent tells you which header reaches which chip.
* **VS Code** with **Adsum IoT Coder**, `nrfutil` and `esptool` on this machine. No SDK, no toolchain: the images are prebuilt and signed.
* A **free account**: register from the card when it asks, GitHub or email, no card.

<Info>
  No SDK is needed for this page. If you later want to change the firmware, the [base build](/supported-hardware/fanstel/lew840x) shows the toolchains, and [licensed source](/gateway-firmware) gives you the modules to extend.
</Info>

## Flash the signed images

<Frame caption="The card a registered user sees on the home. The limits are stated before the button.">
  <img src="https://mintcdn.com/adsumnetworks/mm67yRDAE11UGc70/images/states/13-registered-settled-demo-card.png?fit=max&auto=format&n=mm67yRDAE11UGc70&q=85&s=44bff9a283090fa437dbea9b7141a324" alt="Flash the LEW840x demo: three signed hexes, BLE scanner, ESP32 uplink, nRF9160 bearer; Wi-Fi and Ethernet unlimited, cellular in 60-minute sessions; needs nrfutil and esptool; about 3 minutes" width="1646" height="1300" data-path="images/states/13-registered-settled-demo-card.png" />
</Frame>

<Steps>
  <Step title="Register, once">
    Open the Adsum panel with the gateway on the desk. The **Flash the LEW840x demo** card asks you to register the first time: your browser opens, GitHub or email, and you come straight back.
  </Step>

  <Step title="Press Flash demo">
    The agent loads the signed images and their hashes from the registry and verifies them before anything is written. It checks that `nrfutil` and `esptool` are on this machine and says plainly if they are not.
  </Step>

  <Step title="Tell it which port is which">
    It asks which serial port is the UART bridge and which probe reaches the nRF chips, then flashes in order: the BLE scanner, the ESP32 uplink, the nRF9160 bearer. About three minutes.
  </Step>

  <Step title="Bring it up">
    On first power-up the gateway is its own Wi-Fi access point, serving its dashboard from its own flash. Join it, enter your broker and, if you use them, your Wi-Fi credentials, choose the uplink priority, save. It reboots into running mode. Holding reset for more than 10 seconds returns it to configuration mode.
  </Step>
</Steps>

## What you will see

<Tabs>
  <Tab title="Overview">
    <Frame caption="Overview: uplink and MQTT status, IP address, uptime, and how many BLE devices are being seen.">
      <img src="https://mintcdn.com/adsumnetworks/0J8aMB3uXN6264UW/images/demos/lew840x-overview.png?fit=max&auto=format&n=0J8aMB3uXN6264UW&q=85&s=9e2b99ec6906ded5447fb40435a98e02" alt="The gateway dashboard's Overview tab with the uplink and MQTT up and BLE devices counted" width="1366" height="768" data-path="images/demos/lew840x-overview.png" />
    </Frame>
  </Tab>

  <Tab title="BLE devices">
    <Frame caption="Every device passing the filter: MAC, RSSI, last seen, the raw advertisement bytes.">
      <img src="https://mintcdn.com/adsumnetworks/0J8aMB3uXN6264UW/images/demos/lew840x-ble-devices.jpg?fit=max&auto=format&n=0J8aMB3uXN6264UW&q=85&s=8b5b21992bc3246b11a3c496352dbdb8" alt="The BLE Devices tab listing nearby tags" width="1366" height="768" data-path="images/demos/lew840x-ble-devices.jpg" />
    </Frame>
  </Tab>

  <Tab title="Live data">
    <Frame caption="Tags in the air, rows on the dashboard, messages at the broker.">
      <img src="https://mintcdn.com/adsumnetworks/0J8aMB3uXN6264UW/images/demos/lew840x-live-mqtt.png?fit=max&auto=format&n=0J8aMB3uXN6264UW&q=85&s=0d9753a332668201e7d181fda4cc6667" alt="The dashboard listing live BLE devices beside an MQTT client receiving the same data" width="1366" height="768" data-path="images/demos/lew840x-live-mqtt.png" />
    </Frame>
  </Tab>
</Tabs>

With the cellular card fitted and the bearer flashed, the gateway can uplink over LTE-M or NB-IoT as well as Ethernet and Wi-Fi, in the priority you set. The cellular session stops after 60 minutes in this build and starts again on the next attach; Ethernet and Wi-Fi keep flowing.

## From evaluation to your product

The images are for judging the hardware and the firmware on your own network. When it does what you need, the same firmware is available as **licensed source, per module** (the scanner, the uplink, the bearer), so your team can extend it with the agent: ask from *Settings › Account › Request template source*, or write to [support@adsumnetworks.com](mailto:support@adsumnetworks.com). The licence covers production use and your modifications stay yours; the details depend on what you are building.

<CardGroup cols={2}>
  <Card title="Gateway firmware, row by row" icon="microchip" href="/gateway-firmware">
    What exists for the LEW gateway today, as signed images and as licensed source, and what is next.
  </Card>

  <Card title="Cellular IoT on nRF91" icon="tower-cell" href="/cellular">
    NB-IoT, LTE-M and GNSS bring-up, the board shell and the modem trace, when you go past the images.
  </Card>
</CardGroup>

## Verified with

|                      |                                                                                     |
| :------------------- | :---------------------------------------------------------------------------------- |
| Extension            | 0.4.0                                                                               |
| Images               | The 0.4.0 signed builds, delivered from the registry, hash-verified before flashing |
| Base                 | Fanstel LEW840x                                                                     |
| Cards                | An nRF9160 cellular card in the LN slot, an nRF52840 BLE card in the M2 slot        |
| Tools on the machine | `nrfutil`, `esptool`                                                                |
