Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:common:add-ons:5g-module-usage

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
products:sbc:common:add-ons:5g-module-usage [2023/02/20 08:36]
nick
products:sbc:common:add-ons:5g-module-usage [2026/06/20 02:17] (current)
nick
Line 4: Line 4:
  
 This page will introduce the usage of [[https://www.khadas.com/product-page/5g-nr-module | RM500Q 5G NR module]].You will learn how to use the 5G module on Khadas SBC. This page will introduce the usage of [[https://www.khadas.com/product-page/5g-nr-module | RM500Q 5G NR module]].You will learn how to use the 5G module on Khadas SBC.
 +
 +<WRAP tip >
 +AT command node is ''/dev/ttyUSB2''.
 +</WRAP>
 +
  
 ===== Preparation ===== ===== Preparation =====
  
   * Disconnect the Khadas SBC power port cable.   * Disconnect the Khadas SBC power port cable.
-  * Insert the 5G module board into the M.2 slot on [[https://www.khadas.com/product-page/new-m2x-extension | M2X WWAN Extension]] board.+  * Insert the 5G module board into the M.2 slot on [[https://www.khadas.com/product-page/m2x-wwan-extension | M2X WWAN Extension]] board.
   * Insert the M2X WWAN Extension board into the SBC.   * Insert the M2X WWAN Extension board into the SBC.
   * Insert a valid ''Nano SIM'' card on the 5G module.   * Insert a valid ''Nano SIM'' card on the 5G module.
 +
 +=== Setup 5G Module ===
 +
 +Setting to ''pcie'' mode.
 +
 +```shell
 +echo -e "AT+qcfg=\"data_interface\",1,0\r\n" > /dev/ttyUSB2 
 +```
 +
 +5G module needs power down and restart to switch mode. Unplug your SBC and plug again. 5G module now works in ''pcie'' mode.
 +
 +<WRAP info >
 +How to restore your 5G module to usb mode?
 +
 +```
 +echo -e "AT+qcfg=\"data_interface\",0,0\r\n" > /dev/ttyUSB2 
 +```
 +
 +Unplug your SBC and plug again to switch back to usb mode.
 +</WRAP>
  
 ===== Linux ===== ===== Linux =====
Line 18: Line 43:
 You need to [[products:sbc:common:configurations:upgrade-system|]] to latest version. You need to [[products:sbc:common:configurations:upgrade-system|]] to latest version.
  
 +=== Enable PCIe Port (VIM3 Only) ===
 +
 +<WRAP important >
 +If you use the VIM3 board, you need to enable the PCIe function.
 +</WRAP>
 +
 +
 +Khadas VIM3 PCIe/USB3.0 share one data port,and the default mode is USB 3.0.So when we need to use 5G module, we need to switch it to PCIe port.
  
 +```shell
 +$ echo 1 > /sys/class/mcu/usb_pcie_switch_mode
 +$ sudo reboot
 +```
 +''Reboot'' the system to bring changes into effect.
  
 ==== Disable ModemManager ==== ==== Disable ModemManager ====
Last modified: 2023/02/20 08:36 by nick