5G Development Kit (v1)

The first 5G Development Kit: the Sixfab M.2 5G HAT for the Raspberry Pi 4 with a Quectel RM50xQ or Telit FN980 module. Its power rules, ECM connection, pinout, solder jumpers, specifications and documents, kept for the kits in use.

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:

FeatureM.2 5G HAT (this kit)5G HAT v2
HostRaspberry Pi 4Raspberry Pi 5 or 4
Module supply3.3 V or 3.7 V, set with the Module Voltage Select switch4.2 V
SIMMicro SIM socketNano SIM socket and an onboard eSIM
GPIO13Module resetSIM select
HAT power offGPIO16GPIO22
GPIO26 (module FCP)HIGH on, LOW offLOW on, HIGH off
Connection in the quickstartECM: the module appears as usb0QMI 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.

Required

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.
  1. Remove ModemManager

    Many Linux distributions preinstall ModemManager; remove it:

    sudo apt purge modemmanager -y
  2. Check driver

    Check that the option USB serial driver is bound to the module’s interfaces:

    usb-devices
    T:  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
  3. Open AT command port

    Install a serial terminal such as minicom and open /dev/ttyUSB2 at 115200 baud:

    sudo apt install minicom -y
    minicom -D /dev/ttyUSB2 -b 115200

    Send AT; the module answers OK.

  4. Switch module to ECM mode

    AT+QCFG="usbnet",1

    The answer is OK. The module may restart; wait until minicom is active again. AT+QCFG="usbnet" now returns 1.

  5. Set APN

    AT+CGDCONT=1,"IPV4V6","YOUR_APN"

    Replace YOUR_APN with the APN of your SIM provider. The answer is OK.

  6. Restart module

    AT+CFUN=1,1

    The module restarts in about 30 seconds and minicom is active again. Depending on the network, the connection can take a few minutes.

  7. Test connection

    In a new terminal, check that the usb0 interface has an IP address, then ping a server through it:

    ifconfig usb0
    usb0: 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 0
    ping -I usb0 sixfab.com -c 5
    PING 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:

CommandExpected 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+CGCONTRDPThe APN details and the IP address

Pinout

PinNameFunction
11, GPIOGPIO17F-PULSE: fan pulse, shows whether the fan turns
13, GPIOGPIO27FAN: drive HIGH to turn the fan on; LOW by default
33, GPIOGPIO13MODULE_RESET: drive HIGH, then LOW shortly after, to reset the module
36, GPIOGPIO16PWR_DSBLE_P: HAT power regulator control; HIGH powers the HAT off, except the fan
37, GPIOGPIO26FCP_OFF_N: Full Card Power; HIGH starts the module, LOW turns it off
38, GPIOGPIO20USER_BUTTON: reads HIGH (10 kΩ pull-up), LOW while the button is pressed
40, GPIOGPIO21USER_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

PWRPower
Red: On

The module supply (3.3 V or 3.7 V) is on.

STATSignal, driven by the module
Blue: Blinking

A connection is up and data is moving.

Off

No connection.

USERGPIO21, active high
Green: Programmable

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:

JumperGPIOFunctionWhen cut
SJ1GPIO20USER_BUTTONThe user button no longer works.
SJ2GPIO21USER_LEDThe user LED no longer works.
SJ3GPIO26FCP_OFF_NThe module can no longer be switched from software.
SJ4GPIO16PWR_DSBLE_PThe HAT power can no longer be controlled.
SJ5GPIO13MODULE_RESETThe module can no longer be reset from software.
SJ6GPIO27FANThe fan no longer works.
SJ7GPIO17F-PULSEThe fan status can no longer be read.

Compatible modules

ManufacturerTested modules
QuectelRM50xQ
TelitFN980

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.

ModuleQuectel RM502Q-AE, M.2, 5G Sub-6
RegionGlobal, except China
Supply voltage3.135 to 4.4 V, typical 3.7 V
5G NR NSA bandsn1, n2, n3, n5, n7, n8, n12, n20, n25, n28, n38, n40, n41, n66, n71, n77, n78, n79
5G NR SA bandsn1, n2, n3, n5, n7, n8, n12, n20, n25, n28, n38, n40, n41, n66, n71, n77, n78, n79
LTE-FDD bandsB1, B2, B3, B4, B5, B7, B8, B12 (B17), B13, B14, B18, B19, B20, B25, B26, B28, B29, B30, B32, B66, B71
LTE-TDD bandsB34, B38, B39, B40, B41, B42, B43, B48
LAAB46, 2 × 2 MIMO only
UMTS bandsB1, B2, B3, B4, B5, B6, B8, B19
GNSSGPS, GLONASS, BeiDou (Compass), Galileo
RegulatoryGCF, CE, PTCRB, FCC, IC, JATE, TELEC, RCM

Maximum data rates, theoretical; the real rate depends on the network:

TechnologyDownlinkUplink
5G SA Sub-64.2 Gbps450 Mbps
5G NSA Sub-65.0 Gbps600 or 650 Mbps
LTE2.0 Gbps200 Mbps
WCDMA42 Mbps5.76 Mbps

HAT

Rated input5 V DC, 3.0 A
Operating and storage temperature-20 to 70 °C
Size85 × 56.6 mm

Design files and documents

Module documents