1541 views|2 replies

144

Posts

0

Resources
The OP
 

How to use 4G network in Raspberry Pi in OpenWRT system? [Copy link]

ec20

Add USB identification

Add configuration to config.txt

echo -e "enable_uart=1 \notg_mode=1" >> /boot/config.txt
You can also modify the config.txt in the boot partition directly on Windows.

Install ipk package

opkg update
opkg install usb-modeswitch kmod-mii kmod-usb-net kmod-usb-wdm kmod-usb-net-qmi-wwan uqmi

Optional ipk package

ADD SUPPORT FOR MBIM DEVICES

kmod-usb-net-cdc-mbim Kernel module for MBIM Devices
umbim MBIM modem utility

opkg update
opkg install kmod-usb-net-cdc-mbim umbim

ADD SUPPORT FOR PC INTERFACE (TTYUSB0) - YOU NEED IT IF YOU WANT TO SEND AT COMMANDS, FOR EG. TO CHECK YOUR BALANCE BY USSD.

  • kmod-usb-serial-option
  • kmod-usb-serial
  • kmod-usb-serial-wwan
opkg update
opkg install kmod-usb-serial-option kmod-usb-serial kmod-usb-serial-wwan

Check if the device exists

Install the lsusb command, which is optional

opkg update
opkg install usbutils

Restart the device to apply the driver

lsusb

Bus 002 Device 001: ID 1d6b:0003 Linux 5.10.161 xhci-hcd xHCI Host Controller
Bus 001 Device 003: ID 0424:9e00
Bus 001 Device 006: ID 2c7c:0125 Quectel EC25-EUX
Bus 001 Device 002: ID 1a40:0201  USB 2.0 Hub [MTT]
Bus 001 Device 001: ID 1d6b:0002 Linux 5.10.161 xhci-hcd xHCI Host Controller

EC25 can now be viewed

Compile the dial-up software

Download Quectel_QConnectManager_Linux software dial

Quectel_QConnectManager_Linux

Because the system space is expanded, choose to directly decompress this compressed package on the openwrt device

opkg update && opkg install unzip make gcc
#解压压缩包
unzip Quectel_QConnectManager_Linux_V1.6.0.16.zip

Compile

During the compilation process, it was found that two lib libraries were missing pthread.dl

Choose to copy two libraries directly from the toolchain to the device

Download the toolchain and unzip it to the Linux system

# 文件位置
# pthread
<YourPath>/openwrt-toolchain-22.03.2-bcm27xx-bcm2711_gcc-11.2.0_musl.Linux-x86_64/toolchain-aarch64_cortex-a72_gcc-11.2.0_musl/lib/libpthread.a
# dl
<YourPath>/openwrt-toolchain-22.03.2-bcm27xx-bcm2711_gcc-11.2.0_musl.Linux-x86_64/toolchain-aarch64_cortex-a72_gcc-11.2.0_musl/lib/libdl.a

Put these two files /usr/libin the openwrt system directory, then enter the folder where you just unzipped the dial-up software and execute the make command

cd quectel-CM
make release

Wait for the execution to end and you will get quectel-CMthe binary file. You can dial after execution.

./quectel-CM

How to use 4G network in Raspberry Pi in openwrt system

Latest reply

To insert the card, you need a card slot.  Details Published on 2023-6-14 11:44
Personal signature

WX:上海晶珩电子科技

 
 

4771

Posts

12

Resources
2
 
To insert the card, you need a card slot.

Comments

Yes, 4G requires a card  Details Published on 2023-6-15 11:18
 
 
 

144

Posts

0

Resources
3
 
Azuma Simeng posted on 2023-6-14 11:44 To insert a card, you need a card slot~

Yes, 4G requires a card

Personal signature

WX:上海晶珩电子科技

 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Featured Posts
Tips: Working Principle of Infrared Thermometer (Reprinted)

Working principle of infrared thermometer (reprinted from gkong.com) Understanding the working principle, technical indi ...

AT89C series microcontroller decryption principle

The simple decryption of a microcontroller is to erase the encryption lock bit in the microcontroller. Due to the unreas ...

High-quality electronic product design solutions (classic)

Comprehensive electronic information High-quality electronic product design solutions (classic)

What is feedback? What is a feedback circuit? What does feedback do?

What is Feedback? Feedback refers to the process of returning the output of a control system to the input of the system ...

It turns out that she was the one who scolded Lei Jun for an hour as if he were a primary school student

Ma Yun’s wife Zhang Ying lectured Lei Jun like a primary school student for more than an hour…

37 "Ten Thousand Miles" Raspberry Pi Car——ROS Learning (VSCode Debugging ROS)

This post was last edited by lb8820265 on 2022-5-10 00:27 I have introduced VSCode debugging before , which is GDB deb ...

[Flower carving DIY] Interesting and fun music visualization project (11) --- WS2812 fantasy light strip

I had the urge to do a series of topics on sound visualization. This topic is a bit difficult and covers a wide range of ...

[Flower carving DIY] Interesting and fun music visualization series of small projects (15) - horizontal LED square tube lights

I had the urge to do a series of topics on sound visualization. This topic is a bit difficult and covers a wide range of ...

[Digi-Key Follow me Issue 2] + Network function usage based on CircuitPython

Task 2: Network Function Usage Rendering 742628 Note: The IP address shown at the top of the above picture is the IP a ...

[The 3rd Xuantie Cup RISC-V Application Innovation Competition] LicheePi 4A+ lightweight reasoning framework NCNN

I have posted it on Pingtouge before, and I moved it here. I tried to install the inference framework on LicheePi 4A, bu ...

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list