RM500U-CN 5G HAT

From Waveshare Wiki
Jump to: navigation, search
RM500U-CN 5G HAT
RM500U-CN 5G HAT
{{{name2}}}

{{{name3}}}

{{{name4}}}

{{{name5}}}

Overview

Features

  • Supporting RM500U-CN core module, supporting 5G and LTE-A multiple network standards, supporting 5G NSA and SA networking, supporting four major domestic operators
  • Integrate rich network protocols, support multiple drivers and software functions, and support Windows / Linux / Android and other operating systems
  • Onboard USB 3.1 interface, backward compatible with USB 2.0, can be used to connect to a computer, Raspberry Pi or Jetson Nano motherboard for high-speed 4G Internet access
  • Onboard M.2 B KEY standard interface, compatible with optional RM500U-CN / RM500Q-CN / RM500Q-GL series 5G modules
  • Onboard UART, PWR and RST control pins, built-in level conversion, support DIP switch enable, compatible with master controllers such as Raspberry Pi or Arduino
  • Onboard USB Type-C interface, which can be enabled by switch, can be used for external power supply to supply power to the module separately, so as to connect more loads, the power supply is stable and flexible
  • Onboard power switch, reset button and LED indicator light, easy to control the module power on and off and check the running status
  • Onboard two SIM card slots, dual-card single-standby, can be switched and enabled by AT command
  • Onboard high-efficiency power circuit that can output up to 3A

Parameters

Frequency Band

5G

5G NR

3GPP Release 15 NSA/SA operation,Sub-6 GHz

5G NR NSA

n41, n78, n79

5G NR SA

n1, n28, n41, n77, n78, n79

Down 4 × 4 MIMO

n1, n41, n77, n78, n79

LTE

LTE Category

Down Cat 12,Up Cat 13

LTE-FDD

B34, B38, B39, B40, B41

LAA

-

Down 2 × 2 MIMO

B1, B2, B3, B5, B7, B8, B20, B28, B34, B38, B39, B40, B41

UMTS

WCDMA

B1, B2, B5, B8

Data transfer rate

5G SA Sub-6

Down 2 Gbps; Up Gbps

5G NSA Sub-6

Down 2.2 Gbps;Up 575 Mbps

LTE

Down 600 Mbps; Up 150 Mbps

UMTS

Down 42.2 Mbps; Up 11 Mbps

Other parameters

Operating temperature

-30 °C ~ +75 °C

Extended temperature

-40 °C ~ +85 °C

Module size

30.0 × 52.0 × 2.3 (mm)

Module weight

8.9(g)

Brief description of the test

Common AT commands

Command Description Return Value
AT AT test command OK
ATE ATE1 sets echo
ATE0 turns off echo
OK
AT+CGMI Query module manufacture OK
AT+CGMM Query module model OK
AT+CGSN Query product serial number OK
AT+CSUB Query module version and chip OK
AT+CGMR Query the firmware version serial number OK
AT+IPR? Set the module hardware serial port baud rate +IPREX:
OK
AT+CFUN=1,1 reset module OK
AT+QUIMSLOT? Query SIM card selection:
Return 1, select SIM card 1;
Return 2, select SIM card 2
+QUIMSLOT: 1/2
OK
AT+CPIN? Query the status of the SIM card and return READY, indicating that the SIM card can be recognized normally +CPIN: READY
AT+COPS? Query the current operator, the operator information will be returned after normal networking +COPS:
OK
AT+C5GREG? Query 5G network registration status +C5GREG:
OK
AT+QENG="servingcell" Query UE system information
AT+CNMP Network mode selection command:
"mode_pref":Automatic
"nr5g_band" : 5G NR
"lte_band":LTE only
"gw_band":WCDMA only
... ....
OK

RM500U AT LOG.png

Choose SIM card

RM500U-CN 5G HAT has two SIM card slots onboard, dual SIM card and single standby, which can be switched and enabled by AT command

  • SIM card 1 is selected by default, You can use the following command to query and confirm:
AT+QUIMSLOT?
  • To switch SIM card 2, please use the following command:
AT+QUIMSLOT=2
  • Switch back to the SIM card 1, please use the following command:
AT+QUIMSLOT=1
  • Check whether the corresponding card slot recognizes the SIM card:
AT+CPIN?

Working with windows

Install drives

  • After connecting the RM500U-CN 5G HAT to the computer through a double-ended usb3.0 data cable, there will be a series of devices without drivers installed on other devices:

RM500U-driver-manager.png

  • Download the driver to your computer and unzip the compressed package.
  • Enter the RM500U_Driver directory.
  • Click setup.exe to install the driver. After the installation is complete, the device manager will generate the following devices:

RM500U-driver-finish.png

MBIM dial-up Internet access

  • Download and install the MBIM NIC driver
  • Open the RM500U AT port and send the following commands to dial up the Internet:
AT+QENG="servingcell"
AT+QCFG="usbnet",2
AT+QNETDEVCTL=2,3,1
AT+QNETDEVSTATUS=2
AT+CFUN=1,1
  • After dialing and restarting, the mobile network network card appears on the computer network connection interface, and the dialing is successful.

RM500U-MIBM.png

Working with Raspberry pi

Load USB device descriptor

In order to identify the module, the module's VID and PID information needs to be added to the file [kernel]

  • View VID and PID of RM500U
lsusb

RM500U-RPI-VID-PID.png

  • Add VID and PID
sudo apt-get install unzip
wget https://www.waveshare.net/w/upload/d/d3/RM500U_for_RPI.zip
unzip RM500U_for_RPI.zip
sudo chmod 777 -R RM500U_for_RPI
cd RM500U_for_RPI
sudo ./install.sh
sudo reboot

Please do not delete or modify the four directory files of option directory, default.script and install.sh, otherwise it will affect the loading of device descriptors!

  • After successfully adding the PID and restarting the Raspberry Pi, enter the following command in the command line interface, and five device symbols USB0-UBS4 will appear
ls /dev

RM5000U-ttyUSB0-4.png

RNDIS dial-up internet

  • Open minicom
sudo apt-get install minicom
sudo minicom -D /dev/ttyUSB2
  • Send the following command RNDIS dial in minicom
AT+CPIN?
AT+QCFG="usbnet",3
AT+CFUN=1,1

RM500U RNDIS DIAL.png

  • After the module restarts, the NET light is on, use the following command to check the network status (optional)
AT+QENG="servingcell"
  • Get the IP and set the DNS with the following commands:
sudo dhclient -v usb0
sudo apt-get install udhcpc
sudo udhcpc -i usb0
sudo route add -net 0.0.0.0 usb0
  • After dialing, the Raspberry Pi can see that usb0 has obtained the ip through the following command:
ifconfig

RM500U-net-card.png

  • Test usb0 networking status
 ping -I usb0 www.baidu.com

RM500U-ping.png

Raspberry Pi Serial Port Debugging

Since the Raspberry Pi serial port is used for terminal debugging by default, if you need to use the serial port, you need to modify the Raspberry Pi settings. Execute the following command to enter the Raspberry Pi configuration:

sudo raspi-config

Select Interfacing Options ->Serial ->NO ->YES to disable serial debugging
Serial port.png
Open the /boot/config.txt file, find the following configuration statement to enable the serial port, if not, add it at the end of the file:

enable_uart=1

Restart to take effect

Raspberry Pi minicom Serial Port Debugging

1. Insert the module into the Raspberry Pi, and turn the S_TX and S_RX of the DIP switch to ON:
Minicom-serial.png
2. Install minicom, minicom is a serial debugging tool for linux platform:

sudo apt-get install minicom

3. Open ttyS0 through minincom——ttyS0 is the serial port of Raspberry Pi 3B/3B+/4B, the default baud rate is 115200;

sudo minicom -D /dev/ttyS0

4. For Raspberry Pi 2B/zero, the user serial device number is ttyAMA0; you can use the following command line to confirm, serial0 is the selected serial device number, as shown below:
RM500U-CN 5G HAT 9.png

User Guides of Jetson Nano

Hardware Connection

Connect the RM500U-CN with a double-ended usb3.0 data cable, and connect an external 5V power supply to the Type-C power supply port of the RM500U-CN 5G HAT, as shown in the figure:
RM500U-jetson.png

Load USB Device Descriptor

In order to identify the module, the module's VID and PID information needs to be added to the file [kernel]

  • View VID and PID of RM500U
lsusb

Usb-load.png
Added VID sum PID

sudo apt-get install unzip
wget https://www.waveshare.net/w/upload/9/93/RM500U_CN_For_Jetson_nano.zip
unzip RM500U_CN_For_Jetson_nano.zip
sudo chmod 777 -R RM500U_CN_For_Jetson_nano
cd RM500U_CN_For_Jetson_nano
sudo ./install.sh
sudo reboot

Please do not delete or modify the four directory files of option directory, default.script and install.sh, otherwise it will affect the loading of device descriptors!
After successfully adding the PID and restarting Jetson nano, enter the following command in the command line interface to display five device symbols USB0-USB4

ls /dev/ttyUSB*

Jetson-nano-vid.png

RNDIS

  • Enable minicom
sudo apt-get install minicom
sudo minicom -D /dev/ttyUSB2
  • Send the following command ECM in minicom
AT+CPIN?
AT+QCFG="usbnet",3
AT+CFUN=1,1

Rndis-dial.png
After the module restarts, the NET light is on, use the following command to check the network status (optional)

AT+QENG="servingcell"

Get the IP and set the DNS with the following commands:

sudo dhclient -v usb1
sudo apt-get install udhcpc
sudo udhcpc -i usb1
sudo route add -net 0.0.0.0 usb1

After dialing, you can see that usb1 gets the ip through the following command:

ip route

Ip-route.png
Test usb1 networking status

 ping -I usb1 www.baidu.com

Ip-route2.png

About speed

Due to many inconsistencies between actual and laboratory conditions, the 5G speed will not be ideal and stable at 100MBPS. There are the following points:

  • Base station distance, the closer to the 5G base station, the better the signal and the faster the speed;
  • Base station load, the fewer people using it, the faster the speed will be, and the rush hour will be slower;
  • Number of base stations: Due to spectrum relationships, the same amount of 4G coverage requires double the number of 5G base stations
  • Operator: You need to confirm whether your 5G card is limited in speed, you can periodically ask the operator to reset your network
  • Indoors are worse than outdoor: building penetration loss, and indoor diffraction loss

PS: The current number of base stations still does not have good coverage, and the speed measurement in different locations is not the same.


Resources

Program

Software

Datasheet

Related Application Cases


FAQ

 Answer:
RM500U-CN is based on Zhanrui platform
{{{3}}}
{{{4}}}

{{{5}}}


 Answer:
The 5G module consumes a lot of power, especially at the moment of network access; the Raspberry Pi has limited power supply capacity, and can be powered by a 5V (3A) power supply through the onboard TYPE-C interface.
{{{3}}}
{{{4}}}

{{{5}}}



Support

If you require technical support, please go to the Support page and open a tickets.