The kit pairs a Raspberry Pi 4 with the Sixfab M.2 5G HAT, five antennas, an enclosure with a fan, heatsinks and a 5 V, 3 A USB-C power supply for the HAT; the module was optional. The 5G Development Kit v2 replaced the kit: the other pages of this section describe the 5G HAT v2, not this HAT.
Differences from 5G HAT v2
Where the two HATs differ, this page applies to the first kit:
| Feature | M.2 5G HAT (this kit) | 5G HAT v2 |
|---|---|---|
| Host | Raspberry Pi 4 | Raspberry Pi 5 or 4 |
| Module supply | 3.3 V or 3.7 V, set with the Module Voltage Select switch | 4.2 V |
| SIM | Micro SIM socket | Nano SIM socket and an onboard eSIM |
| GPIO13 | Module reset | SIM select |
| HAT power off | GPIO16 | GPIO22 |
| GPIO26 (module FCP) | HIGH on, LOW off | LOW on, HIGH off |
| Connection in the quickstart | ECM: the module appears as usb0 | QMI or MBIM through the kernel drivers or NetworkManager |
Power
The HAT is rated 5 V DC, 3.0 A and takes its power from its own USB-C adapter, in addition to the Raspberry Pi’s power supply. Fit both the heatsink and the cooling fan; the Raspberry Pi and the module need them to work properly.
Module voltage
Set module voltage
5G modules run at different voltages, so the HAT’s module supply is selectable. Check the operating voltage in the module’s datasheet and set the Module Voltage Select switch before you insert the module: 3.7 V for the Quectel modules, 3.3 V for the Telit modules.
Switching module on and off
- With the FCP (Full Card Power) switch: ON or OFF.
- From software: drive GPIO26 HIGH (on) or LOW (off).
Switch module on and off in order
- Before you power the system, set the FCP switch to OFF and keep GPIO26 LOW, its default. After the Raspberry Pi has booted, set the FCP switch to ON or drive GPIO26 HIGH.
- Before you power down, set the FCP switch to OFF and drive GPIO26 LOW. Wait at least 10 seconds after the FCP LED goes off, then unplug the HAT’s power adapter; otherwise the module can be damaged.
The FCP LED is lit while the module is on. A module takes more than 30 seconds on average to boot.
Connect to internet
These steps put the Quectel RM50xQ in ECM mode: the module then appears as a usbX network interface. The USB bridge must be connected.
Hardware
- Raspberry Pi 4With its own power supply; the HAT is powered separately by the adapter in the kit.
- M.2 5G moduleThe Quectel RM50xQ or the Telit FN980; other modules: compatible modules.
- SIM cardFor the 5G or LTE bands of the module. The Sixfab SIM does not work on 5G networks.
Software
- Raspberry Pi OSUpdated, with a current kernel: newer kernels fix known driver issues.
-
Remove ModemManager
Many Linux distributions preinstall ModemManager; remove it:
sudo apt purge modemmanager -y -
Check driver
Check that the option USB serial driver is bound to the module’s interfaces:
usb-devicesT: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 3 Spd=5000 MxCh= 0 D: Ver= 3.20 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 9 #Cfgs= 1 P: Vendor=2c7c ProdID=0800 Rev=04.14 S: Manufacturer=Quectel S: Product=RM502Q-AE S: SerialNumber=377628d2 C: #Ifs= 5 Cfg#= 1 Atr=a0 MxPwr=896mA I: If#=0x0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=30 Driver=option I: If#=0x1 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option I: If#=0x2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option I: If#=0x3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option I: If#=0x4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=qmi_wwan -
Open AT command port
Install a serial terminal such as minicom and open
/dev/ttyUSB2at 115200 baud:sudo apt install minicom -y minicom -D /dev/ttyUSB2 -b 115200Send
AT; the module answersOK. -
Switch module to ECM mode
AT+QCFG="usbnet",1The answer is
OK. The module may restart; wait until minicom is active again.AT+QCFG="usbnet"now returns 1. -
Set APN
AT+CGDCONT=1,"IPV4V6","YOUR_APN"Replace
YOUR_APNwith the APN of your SIM provider. The answer isOK. -
Restart module
AT+CFUN=1,1The module restarts in about 30 seconds and minicom is active again. Depending on the network, the connection can take a few minutes.
-
Test connection
In a new terminal, check that the
usb0interface has an IP address, then ping a server through it:ifconfig usb0usb0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.225.60 netmask 255.255.255.0 broadcast 192.168.225.255 inet6 fe80::8543:f6a0:e678:2e20 prefixlen 64 scopeid 0x20<link> ether 4a:aa:f8:62:36:bb txqueuelen 1000 (Ethernet) RX packets 73 bytes 5047 (4.9 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 100 bytes 15116 (14.7 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0ping -I usb0 sixfab.com -c 5PING sixfab.com (104.26.9.221) from 192.168.225.60 usb0: 56(84) bytes of data. 64 bytes from 104.26.9.221 (104.26.9.221): icmp_seq=1 ttl=52 time=209 ms 64 bytes from 104.26.9.221 (104.26.9.221): icmp_seq=2 ttl=52 time=202 ms 64 bytes from 104.26.9.221 (104.26.9.221): icmp_seq=3 ttl=52 time=192 ms 64 bytes from 104.26.9.221 (104.26.9.221): icmp_seq=4 ttl=52 time=193 ms 64 bytes from 104.26.9.221 (104.26.9.221): icmp_seq=5 ttl=52 time=195 ms --- sixfab.com ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 9ms rtt min/avg/max/mdev = 191.895/198.244/209.463/6.636 ms
If the usb0 interface does not appear
Restart the whole system and check the SIM, the antennas, the module and the USB bridge. Then check the module with AT commands:
| Command | Expected answer |
|---|---|
AT+QCFG="usbnet" | 1: ECM mode |
AT+CPIN? | READY: the module detects the SIM |
AT+CEREG? | 0,1 or 0,5: registered on the network |
AT+CGCONTRDP | The APN details and the IP address |
Pinout

| Pin | Name | Function |
|---|---|---|
| 11, GPIO | GPIO17 | F-PULSE: fan pulse, shows whether the fan turns |
| 13, GPIO | GPIO27 | FAN: drive HIGH to turn the fan on; LOW by default |
| 33, GPIO | GPIO13 | MODULE_RESET: drive HIGH, then LOW shortly after, to reset the module |
| 36, GPIO | GPIO16 | PWR_DSBLE_P: HAT power regulator control; HIGH powers the HAT off, except the fan |
| 37, GPIO | GPIO26 | FCP_OFF_N: Full Card Power; HIGH starts the module, LOW turns it off |
| 38, GPIO | GPIO20 | USER_BUTTON: reads HIGH (10 kΩ pull-up), LOW while the button is pressed |
| 40, GPIO | GPIO21 | USER_LED: active high, drive the pin HIGH to turn the LED on |
- GPIO
Layout and dimensions


Fan
Connect the fan to the 3-pin FAN header as shown, then drive GPIO27 HIGH to turn it on.

LEDs and button
The module supply (3.3 V or 3.7 V) is on.
A connection is up and data is moving.
No connection.
Set by your application.
The FCP LED shows the state of the FCP line: it is lit while the module is on. The USER button is on GPIO20 and is programmable: see Pinout.
Solder jumpers
Solder jumpers SJ1 to SJ7 connect HAT functions to Raspberry Pi pins and are connected by default. Cut one to free its GPIO for another use; the HAT function then stops working. HAT v1.0:

| Jumper | GPIO | Function | When cut |
|---|---|---|---|
| SJ1 | GPIO20 | USER_BUTTON | The user button no longer works. |
| SJ2 | GPIO21 | USER_LED | The user LED no longer works. |
| SJ3 | GPIO26 | FCP_OFF_N | The module can no longer be switched from software. |
| SJ4 | GPIO16 | PWR_DSBLE_P | The HAT power can no longer be controlled. |
| SJ5 | GPIO13 | MODULE_RESET | The module can no longer be reset from software. |
| SJ6 | GPIO27 | FAN | The fan no longer works. |
| SJ7 | GPIO17 | F-PULSE | The fan status can no longer be read. |
Compatible modules
| Manufacturer | Tested modules |
|---|---|
| Quectel | RM50xQ |
| Telit | FN980 |
Another M.2 module must share the pins of the HAT’s M.2 pin assignment:

Specifications
Quectel RM502Q-AE
The module that came with the kit. For another module, see its datasheet.
| Module | Quectel RM502Q-AE, M.2, 5G Sub-6 |
| Region | Global, except China |
| Supply voltage | 3.135 to 4.4 V, typical 3.7 V |
| 5G NR NSA bands | n1, n2, n3, n5, n7, n8, n12, n20, n25, n28, n38, n40, n41, n66, n71, n77, n78, n79 |
| 5G NR SA bands | n1, n2, n3, n5, n7, n8, n12, n20, n25, n28, n38, n40, n41, n66, n71, n77, n78, n79 |
| LTE-FDD bands | B1, B2, B3, B4, B5, B7, B8, B12 (B17), B13, B14, B18, B19, B20, B25, B26, B28, B29, B30, B32, B66, B71 |
| LTE-TDD bands | B34, B38, B39, B40, B41, B42, B43, B48 |
| LAA | B46, 2 × 2 MIMO only |
| UMTS bands | B1, B2, B3, B4, B5, B6, B8, B19 |
| GNSS | GPS, GLONASS, BeiDou (Compass), Galileo |
| Regulatory | GCF, CE, PTCRB, FCC, IC, JATE, TELEC, RCM |
Maximum data rates, theoretical; the real rate depends on the network:
| Technology | Downlink | Uplink |
|---|---|---|
| 5G SA Sub-6 | 4.2 Gbps | 450 Mbps |
| 5G NSA Sub-6 | 5.0 Gbps | 600 or 650 Mbps |
| LTE | 2.0 Gbps | 200 Mbps |
| WCDMA | 42 Mbps | 5.76 Mbps |
HAT
| Rated input | 5 V DC, 3.0 A |
| Operating and storage temperature | -20 to 70 °C |
| Size | 85 × 56.6 mm |
Design files and documents
- 5G HAT schematic
- LTE/5G High Performance Antenna (SMA): the antenna specifications
Module documents
- Quectel RM502Q-AE 5G Specification V1.2
- Quectel RG50xQ and RM5xxQ Series AT Commands Manual V1.2
- Quectel RG50xQ and RM5xxQ Series 5G Network Searching Scheme Introduction V1.0
- Quectel RG50xQ and RM5xxQ Series 5G Network Status Judgement Introduction V1.0
- Quectel RM50xQ Series Reference Design V1.3
- Quectel RM50xQ Series Hardware Design V1.2
- Quectel RG50xQ and RM5xxQ Series FTM Application Note V1.0
- Quectel RG50xQ and RM5xxQ Series GNSS Application Note V1.1
- Quectel RG50xQ and RM5xxQ Series DFOTA Application Note V1.0
- Quectel RG50xQ and RM5xxQ Series Software Thermal Management Guide V1.0
- Quectel RG50xQ and RM5xxQ Series Secure Boot Application Note V1.0
- Quectel RM50xQ Series Thermal Design Guide V1.0
- Quectel RM502Q-AE 3D Dimensions V1.1 (ZIP)