Google Chat: zj734465502@gmail.com
+86-0755-88291180
sales01@spotpear.com
dragon_manager@163.com
services01@spotpear.com
manager01@spotpear.com
WhatsApp:13246739196
PCIe to 5G M.2 adapter board is designed specifically for Raspberry Pi 5, compatible with 3042/3052 size 5G modules, supporting Gen2 mode and high-speed communication.
The on-board module switch and restart function dip switch are connected to GPIO5 and GPIO6 of Raspberry Pi. By opening the dip switch, you can control the module's reset and power functions via the Raspberry Pi.
In the default setting, please open the RST of the dip switch and close the PWR switch. You can use a script to restart the module when the Raspberry Pi restarts to ensure proper loading of the module's PCIe interface.
Control GPIO pins with python gpiozero, and the high/low level switch should be adjusted according to the actual status (power on/off, rebooting time sequence) of the module.
import subprocess from gpiozero import LED import time # led = LED(5) #Ctl On/off led = LED(6) # Ctl Restart led.on() time.sleep(0.5) led.off()
1. Copy the following commands for one-key upgrade (5~10 minutes required), and the command has settled module reset issue. Then, you can turn on the SIP and turn off the PWR of the dip switch.
wget -O - https://files.waveshare.com/wiki/PCIe-TO-5G-HAT%2B/install.sh | sudo bash
2. After the Raspberry Pi auto reset, you can view the kernel information.
uname --all
AT+CPCIEMODE=EP at+cusbcfg=usbid,1e0e,9001
AT+QCFG="data_interface",1,0 AT+QCFG="pcie/mode",0 AT+QCFG="usbnet",2
Modify the Raspberry Pi kernel and the module PCIe mode, then reboot the Raspberry Pi or reboot with power off.
Input lspci to view PCIe device loading status.
sudo waveshare-CM
Demo:
wget https://files.waveshare.com/wiki/PCIe-TO-5G-HAT%2B/PCIe_TO_M.2_HAT%2B.zip unzip -o PCIe_TO_M.2_HAT+.zip -d ./PCIe_TO_M.2_HAT+ cd PCIe_TO_M.2_HAT+ sudo python INA219.py
Currently running the OpenWrt operating system on Raspberry Pi 5 is experimental to some extent.
Use the following dial-up tools to access the network:
waveshare-CM
To use this product to access Windows and the Internet, you need to set the module to USB mode and use the Type-C port on the board to access windows
Connect it with serial port tool, and switch the module mode as auto dial-up.
at+cusbcfg=usbid,1e0e,9011
Modify the data channel of the module as USB:
AT+QCFG="data_interface",0,0 AT+QCFG="usbnet",2
Please use the Linux drivers we provided below to compile by yourself:
This situation might occur due to a Raspberry Pi DNS server error. In this case, manual DNS settings are required.
First of all, it is important to understand the lab data and the actual data, in reality, due to the lack of base stations, signal coverage is not good, 5G coverage bugs are also more, the network speed may not always reach the peak. Under normal circumstances, 4G upload speed stabilized at 20-40Mbps, 5G upload speed stabilized at 100Mbps (fewer people or nearer to the base station, the faster the speed).
AT+SMSIMCFG=1,1
To switch to SIM2, use the following command: (some HATs have SIM2):
AT+SMSIMCFG=1,2
AT+CFUN=1
Monday-Friday (9:30-6:30) Saturday (9:30-5:30) -China time
Email: services01@spotpear.com