---
updatedAt: 2026-02-02T15:44:43.000Z
agentTools:
  projectIndex: https://docs.sixfab.com/llms.txt
---

# Getting Started with Base HAT + Quectel Modules

This section provides instructions for the hardware setup of the Base HAT with Quectel modules.

<HTMLBlock>{`
<style>

.markdown-body .callout[theme="note"] {
  --background: #fcf8e3;
  --border: #F5E79E;
  --text: #8a6d3b;
}

.markdown-body .callout[theme="success"] {
  --background: #ddf0d7;
  --border: #AEDB9F;
  --text: #1c652c;
}
 
.markdown-body .callout[theme="info"] {
  --background: #eee;
  --border: #bebebe;
  --text: #535353;
}
  
.markdown-body .callout[theme="📚"] {
  --background: #c54245;
  --border: #ffffff6b;
  --text: #f5fffa;
}

a{
color:#4A4A4A;
}
a:hover {
  color: #57A3E8;
}
 
 .pre {
-webkit-tap-highlight-color: rgba(0,0,0,0);
font-weight: 400;
box-sizing: border-box;
overflow: auto;
font-family: Menlo,Monaco,Consolas,Courier New,monospace;
display: block;
margin: 0 0 10px;
font-size: 13px;
line-height: 1.42857143;
word-break: break-all;
border-radius: 4px;
background: #343434;
color: #fff;
border: none;
padding: 0 15px;
margin-bottom: 30px;
}
.pre-code {
-webkit-tap-highlight-color: rgba(0,0,0,0);
font-weight: 400;
line-height: 1.42857143;
word-break: break-all;
box-sizing: border-box;
font-family: Menlo,Monaco,Consolas,Courier New,monospace;
font-size: inherit;
white-space: pre-wrap;
border-radius: 0;
display: block;
overflow-x: auto;
color: inherit;
background: transparent;
}
 
.ty{
color: #FCE94F;  
 }
 .ty-green{
 color: #8AE234;
  }

</style>
`}</HTMLBlock>

Before we jump into the tutorial, let us check all the items required for this is available with us and prepare our hardware.

<HTMLBlock>{`
<h1> Hardware Prerequisites </h1>
`}</HTMLBlock>

The following components are typically included with the <a href="https://sixfab.com/product/raspberry-pi-4g-lte-modem-kit/" target="_blank">Cellular Modem Kit</a> containing Quectel modules.
The goes as follows:

* Raspberry Pi (Model 4 or 5 are recommended)
* <a href="https://sixfab.com/product/raspberry-pi-base-hat-3g-4g-lte-minipcie-cards/" target="_blank"> Sixfab 3G/4G & LTE Base HAT </a>
* <a href="https://sixfab.com/product/quectel-ec25-mini-pcle-4glte-module/" target="_blank">Quectel EC25/EG25 mini PCIe Module</a> or <a href="https://sixfab.com/product/quectel-uc20-mini-pcle-3g-module/" target="_blank">Quectel UC20-G Mini PCle 3G Module</a>
* <a href="https://sixfab.com/product/lte-full-band-pcb-antenna-u-fl-plug-100mm/" target="_blank"> LTE Full Band PCB Antenna</a>
* <a href="https://sixfab.com/product/lte-gnss-dual-u-fl-antenna/" target="_blank"> LTE – GNSS Dual u.FL Antenna </a>
* 40 pin header
* <a href="https://sixfab.com/product/right-angle-micro-usb-cable-usb-2-0-a-male-to-micro-b-cable/" target="_blank">Right Angle Micro USB Cable</a>
* <a href="https://sixfab.com/product/connect-sim-card-for-iot-projects/" target="_blank">Sixfab SIM</a> or other available SIM

<HTMLBlock>{`
<blockquote class="callout callout_default" theme="success">
  <h3>🟢 Ensure that the Sixfab SIM is registered and activated via <a href="https://connect.sixfab.com/" target="_blank">Sixfab Connect</a>.</h3>
</blockquote>
`}</HTMLBlock>

<HTMLBlock>{`
<blockquote class="callout callout_default" theme="note">
  <h3>📖 Note</h3>
  <p>Optionally, a <a href="https://sixfab.com/product/lte-main-diversity-gnss-triple-port-u-fl-antenna-100mm/" target="_blank">Triple Port u.FL Antenna</a> can be used, or any other combination of <a href="https://sixfab.com/product-tag/lte/" target="_blank">LTE</a> and <a href="https://sixfab.com/product-tag/gnss/" target="_blank">GNSS</a> antennas.</p>
</blockquote>
`}</HTMLBlock>

<HTMLBlock>{`
<h1> Hardware Setup </h1>
`}</HTMLBlock>

<HTMLBlock>{`
<h3>1.  Attach the Quectel EC25/EG25 mini PCIe module to the HAT.</h3>
`}</HTMLBlock>

<Image border={false} src="https://files.readme.io/58a4e8a-Sixfab_Raspberry_Pi_4G-LTE_Cellular_Modem_Kit_1.jpg" title="Sixfab Raspberry Pi 4G-LTE Cellular Modem Kit 1.jpg" />

<HTMLBlock>{`
<h3>2.  Attach the antenna to the mini PCIe module.</h3>
`}</HTMLBlock>

Make sure the right antenna is connected to the right port. Attach LTE full band PCB antenna/LTE connector of the LTE-GNSS dual antenna to the main Antenna interface/diversity antenna interface & GPS Antenna portion goes to the GNSS antenna interface.

<Image align="center" alt={848} border={false} caption="EC25 Antenna Interface" title="EC25_Antenna_ports-848x300.jpg" src="https://files.readme.io/e4f78fd-EC25_Antenna_ports-848x300.jpg" width="100%" />

<Image border={false} src="https://files.readme.io/e3fc092-Sixfab_Raspberry_Pi_4G-LTE_Cellular_Modem_Kit_2.jpg" title="Sixfab Raspberry Pi 4G-LTE Cellular Modem Kit 2.jpg" />

<HTMLBlock>{`
<h3>3. Attach 40 pin header to the Base HAT that comes with the HAT and insert the Sixfab Connect SIM to Base HAT.</h3> 
`}</HTMLBlock>

<Image border={false} src="https://files.readme.io/0383734-Sixfab_Raspberry_Pi_4G-LTE_Cellular_Modem_Kit_3.jpg" title="Sixfab Raspberry Pi 4G-LTE Cellular Modem Kit 3.jpg" />

<HTMLBlock>{`
<h3>4. Now attach the HAT to the Raspberry Pi.</h3>
`}</HTMLBlock>

<Image border={false} src="https://files.readme.io/4952d93-Sixfab_Raspberry_Pi_4G-LTE_Cellular_Modem_Kit_4.jpg" title="Sixfab Raspberry Pi 4G-LTE Cellular Modem Kit 4.jpg" />

<HTMLBlock>{`
<h3>5. Finally connect the micro-USB cable to the HAT and Raspberry Pi.</h3>
`}</HTMLBlock>

<Image border={false} src="https://files.readme.io/14592c4-Sixfab_Raspberry_Pi_4G-LTE_Cellular_Modem_Kit_5.jpg" title="Sixfab Raspberry Pi 4G-LTE Cellular Modem Kit 5.jpg" />

<HTMLBlock>{`
<h1>Checking Driver</h1>
`}</HTMLBlock>

Then open up a terminal and run the commands below. Expected outputs are as follow:

<HTMLBlock>{`
<div class="pre">
	<div class="pre-code">
<b class="ty-green">pi@raspberrypi:~ $</b> lsusb
Bus 001 Device 009: ID 2c7c:0125 Quectel Wireless Solutions Co., Ltd. EC25 LTE modem  
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  </div>
</div>
`}</HTMLBlock>

<HTMLBlock>{`
<div class="pre">
	<div class="pre-code">
<b class="ty-green">pi@raspberrypi:~ $</b> dmesg | grep ttyUSB
[  154.014341] usb 1-1.1.2: GSM modem (1-port) converter now attached to ttyUSB0
[  154.015183] usb 1-1.1.2: GSM modem (1-port) converter now attached to ttyUSB1
[  154.015632] usb 1-1.1.2: GSM modem (1-port) converter now attached to ttyUSB2
[  154.015994] usb 1-1.1.2: GSM modem (1-port) converter now attached to ttyUSB3
  </div>
</div>
`}</HTMLBlock>

<HTMLBlock>{`
<h1>📘 Tutorials</h1>
`}</HTMLBlock>

Please visit our tutorials page to set up the cellular internet connection or explore other tutorials.

<Embed url="https://docs.sixfab.com/page/tutorials" href="https://docs.sixfab.com/page/tutorials" />

[ec25_antenna_interface]: https://sixfab.com/wp-content/uploads/2016/11/EC25_Antenna_ports-848x300.jpg