• sales

    +86-0755-88291180

Raspberry Pi OpenWrt Tutorial 2

Overview

This chapter will introduce how to design a portable 4G mobile wireless router after Raspberry Pi 4B is equipped with the SIM7600 4G module, the Raspberry Pi UPS lithium battery expansion module, the Raspberry Pi cooling fan, and other modules. Also, we will describe the relevant steps in detail.

Working Principle

  • First, the Raspberry Pi programs the OpenWrt soft routing system, so that the Raspberry Pi itself is equivalent to a wireless WIFI router;
  • Secondly, configure the connected SIM7600X 4G expansion module, so that the Raspberry Pi router can connect to the Internet through the 4G module;
  • Finally, an external UPS mobile power module is connected, so that the whole system can work independently and can be used anytime, anywhere.

Preparation

The hardware components, from top to bottom, are:
SIM7600X 4G expansion board: full Netcom, up to 50Mbps uplink and 150Mbps downlink, support GPS, phone and SMS, etc.
UPS power supply: 5200mAh, support charging and discharging, uninterrupted power supply.
Raspberry Pi 4B: Mainstream mini PC motherboard with powerful functions.


Raspberry Pi programming OpenWrt image

  • Download the image.
  • Program the image:

Download and decompress the image, and use Win32DiskImager to program the image. Select the image and click "Write" to program.

Environment Debugging

Connect and configure Raspberry Pi OpenWrt system WIFI
After programming the OpenWrt system, the default network port IP is 192.168.1.1, and the default is a 5G WIFI router.

  • You can search through the WIFI of your mobile phone, find the WIFI open hotspot whose default name is "OpenWrt", and then connect.
  • Open the browser, enter: 192.168.1.1, the default username: root, and the default password: password.


Set WIFI password: Network -> Wireless -> Modify -> Interface Configuration -> Wireless Security, as shown below:

Configure SIM7600X 4G module

  • Before starting to configure the SIM7600X, the hardware must be connected to a 4G data card or mobile phone card, press the PWRKEY button to turn on, and the normal NET light flashes to indicate that the automatic networking has started, if you want the module to automatically turn on, you can set the jumper as shown in the figure below:


  • Add a new interface: Network -> Interfaces -> Add New Interface, as shown in the following figure:


  • Create new interface: name of new interface - SIM7600; protocol of new interface - QMI Cellular; submit:


  • Configuration Interface: Protocol - QMI Cellular; Modulator Node - /dev/cdc-wdm0; APN: 3gnet (mobile card can fill in CMNET); Authentication Type - PAP/CHAP (both); Save & Apply.


  • Firewall Settings: Check wan:SIM7600; Save & Apply.


Enable SIM7600X 4G module networking

  • After configuring the 4G module, open the network -> interface -> interface overview, find the SIM7600 WAN port, and click connect.


Connect to OpenWrt router, network speed test

  • After setting the SIM7600 4G module, if you want to surf the Internet through 4G, you can disconnect the connected network cable.
  • Use the mobile phone to search and connect to the OpenWrt hotspot. The actual speed measurement after the mobile phone is connected is shown in the following figure:


TAG: 2.15 inch e-Paper HAT+ B E-Ink Red/Black/White 296×160 Screen Display For Arduino /Raspberry Pi /Jetson Nano /STM32 Raspberry Pi Pico RP2040 1.69 inch TouchScreen Round LCD Display With QMI8658/Buzzer/RTC For Arduino Raspberry Pi UGV Rover ROS2 PT AI OpenCV Robot Car MediaPipe Thermal imaging camera pcb800099-v.9 Raspberry Pi 5 27W X1301 Raspberry Pi 5 HDMI to CSI-2 Shield 1080P@60fps & Audio & Video Also For 4B/3B Raspberry Pi 4.26 inch e-Paper link (G) RYBW 800x480 For Arduino / Jetson / STM32 /ESP32 ESP32-C3-Ornament-Trinket-LVGL-Astronaut-Clock-Watch-MINI-TV-1.69inch-Round-LCD-TouchScreen-ST7789-240x280 Raspberry-Pi-1.54inch-LCD-Display-Touchscreen-configuration-Bookworm-Lite For Pi5 Milk-V Duo S WIFI Configuration Industrial CAN FD RS232/RS485 bidirectional converter CAN2.0A/B Sipeed Lichee Tang Nano 9K FPGA MINI Development Board GW1NR-9 GOAI Gowin ESP32 C3 MINI TV Sipeed NanoCluster Mini Cluster Board mini data center For Raspberry Pi CM45 / Computer /LM3H /M4N Industrial USB TO RS232/485 (C) UART FT232RNL 2m For 3.3V / 5V For Switchable RS232/RS485 Raspberry Pi Camera OV5647 Camera (F) PC USB Monitor Screen Tutorial Raspberry Pi 3 display HAT