# Waveshare SIM7070G

The Waveshare [SIM7070G](https://www.simcom.com/product/SIM7070G.html) HAT for Raspberry Pi has global support for LTE Cat-M1, NB-IoT, GPRS and EDGE, as well as GNSS positioning. It can be easily attached to the 40 GPIO pins of the Raspberry Pi as well as to microcontrollers such as the Arduino or STM32.

![Waveshare SIM7070G HAT for Raspberry Pi. Img source: waveshare.com](/files/PNyxMgDiL7HcmoKfGJOA)

### Quick Navigation

* [Getting Started with the Waveshare SIM7070G](#getting-started-with-the-waveshare-sim7070g)
* [Connect the SIM7070G to Monogoto](/getting-started/general-device-configurations/iot-devices/simcom-sim7070g.md)
* [Test the connection by sending a PING](#test-the-connection-by-sending-a-ping)
* [Useful Links](#useful-links)

### Prerequisites

* Monogoto SIM
* [Waveshare SIM7070G HAT](https://www.waveshare.com/sim7070g-cat-m-nb-iot-gprs-hat.htm)
* Raspberry Pi 2, 3, 4 or Zero

## Getting Started with the Waveshare SIM7070G

Insert the **Monogoto SIM card** at the bottom of the Waveshare HAT.

![Bottom of the Waveshare SIM7070G HAT, showing the SIM card slot and 40 female pins. Img source: waveshare.com](/files/ZK50smvOlbv8vabtYBjU)

{% hint style="info" %}
This guide explains how to connect the Waveshare HAT to the Raspberry Pit. It is also possible to **connect your Windows, MaxOS or Linux machine to the Waveshare HAT directly** allowing you to configure the SIM7070G modem without the need for a Raspberry Pi.&#x20;

To do so, connect your computer to the micro USB port of the Waveshsare HAT and connect to the modem using PuTTY (Windows), minicom, screen or miniterm (Linux/MacOS). When using Windows, [**this driver**](https://www.waveshare.com/w/upload/2/2f/SIM7070_SIM7080_WIN7_WIN10_USB_Driver_V1.00.rar) is required.&#x20;
{% endhint %}

Connect the **LTE** and **GNSS antennas** and add the Waveshare HAT to a Raspberry Pi using the 40 GPIO pins.

![Waveshare SIM7070G with connected LTE and GNSS antennas, attached to the Raspberry Pi. Img source: waveshare.com](/files/TazRpGMlFuKMrezrw3eR)

Power the Raspberry Pi and connect to it using SSH, or by connecting a keyboard and mouse.

Click and hold the **PWRKEY** for about 1 second, until the **NET** LED starts blinking <mark style="color:red;">**red**</mark>.

Enable the **hardware serial**, allowing the Raspberry Pi to communicate with the Waveshare HAT. To do so, open the **Raspberry Pi Software Configuration Tool** by entering the following command in your terminal:

```bash
sudo raspi-config
```

Select: **3 Interface Options** > **P6 Serial Port**

![](/files/Nu2KdOdcTGSOK9qmFlpC) ![](/files/UuIYk4qrdMfQx7o3XDye)

Answer **\<No>** to “Would you like a login shell to be accessible over serial?”

Answer **\<YES>** to “Would you like the serial port hardware to be enabled?”

![](/files/4hAPM3x3q3F9A4gOxk27) ![](/files/32ZjygZpUeZdCw6F59SR)

Install **minicom** to be used as the tool to interface with the SIM7070G modem:

```bash
sudo apt-get install minicom 
```

{% hint style="info" %}
Alternatives to **minicom** for Linux or MacOS are **miniterm** or **screen**, feel free to use your application of choice. When using Windows to connect to the Raspberry Pi, you can use **PuTTY**
{% endhint %}

**Connect with the modem** via port `ttyS0` using minicom:

```
minicom -D /dev/ttyS0
```

Enter `AT`, if the modem responds with `OK` you successfully connected to the SIM7070G modem.

![](/files/Tm1qQ58dG6m7jRuYMvKe)

{% hint style="warning" %}
In case you don’t manage to open the ttyS0 connection or don't receive an `OK`:

* Try rebooting the Raspberry Pi and try again
* Double check if the **NET** LED is blinking <mark style="color:red;">**red**</mark>. If not, click and hold the **PWRKEY** button for 1 second
* Be patient, it may take some time before the modem responds
  {% endhint %}

## Connect the SIM7070G to Monogoto

Visit the [SIMCom SIM7070G](/getting-started/general-device-configurations/iot-devices/simcom-sim7070g.md) documentation for a detailed guide on connecting the modem to Monogoto.

{% content-ref url="/pages/vrg84t8BS5TsbElXW5fA" %}
[SIMCom SIM7070G](/getting-started/general-device-configurations/iot-devices/simcom-sim7070g.md)
{% endcontent-ref %}

## Test the connection by sending a PING

A PING test can be performed to test if the modem has an active data connection with a mobile network.

**Activate a data connection** for PDP index `0`**:**

```
AT+CNACT=0,1
```

Expected response: `+APP PDP: 0,ACTIVE`

**Select the PDP index** `0` for the PING test:

```
AT+SNPDPID=0
```

Expected response: `OK`

**Send 5 PINGs** to IP address `8.8.8.8`  with a timeout of 20 seconds.

```
AT+SNPING4="8.8.8.8",5,1,20000
```

If the connection is active, you will see 5 PINGs with a number representing the response time in milliseconds. Example response:

```
+SNPING4: 1,8.8.8.8,104
+SNPING4: 2,8.8.8.8,93
+SNPING4: 3,8.8.8.8,145
+SNPING4: 4,8.8.8.8,75
+SNPING4: 5,8.8.8.8,157
```

**Deactivate the PDP index** after completing the PING test.

```
AT+CNACT=0,0
```

Expected response: `+APP PDP: 0,DEACTIVE`

{% hint style="success" %}
**Great work on connecting the SIM7070G to Monogoto!** Have a look at the **Things** logs in the [**Monogoto Console**](https://console.monogoto.io/) to find more details about the established connection.
{% endhint %}

## Useful Links

* [Waveshare SIM7070G shop](https://www.waveshare.com/sim7070g-cat-m-nb-iot-gprs-hat.htm)
* [Waveshare wiki](https://www.waveshare.com/wiki/SIM7070G_Cat-M/NB-IoT/GPRS_HAT)
* [SIMCom SIM7070G product page](https://www.simcom.com/product/SIM7070G.html)
* [SIMCom AT Commands](<https://www.simcom.com/product/SIM7070G.html >)\
  \&#xNAN;*Scroll down to the section **File Download** to find the latest version*


---

# 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.monogoto.io/getting-started/general-device-configurations/iot-devices/simcom-sim7070g/waveshare-sim7070g.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.
