SDXLEMUR Install Entware Package and quectel-rgmii-toolkit

SDXLEMUR Install Entware Package and quectel-rgmii-toolkit

 

1. 将RM520N模块安装到底板上,接上 数据线、电源线、网口线 、插上 可以入网的SIM卡 、连上模块的天线 。

 

2. 电脑上安装对应模块的驱动

 

3. 使用QFlash给模块刷对应固件

 

4. 串口连接模块的AT端口,输入ADBKEY解锁模块的ADB调试功能,然后配置模块网卡为PCI模式并启用自动拨号功能。

 

5. 使用adb工具进入模块的后台命令行,并确保设备可正常Ping通外网。

 

6. 一键安装 quectel-rgmii-toolkit 

复制下面这条命令,直接回车执行即可。

cd /tmp && wget --no-check-certificate -O RMxxx_rgmii_toolkit.sh https://110.42.96.64:21891/jjx/quectel-rgmii-toolkit/raw/branch/Development/RMxxx_rgmii_toolkit.sh && chmod +x RMxxx_rgmii_toolkit.sh && ./RMxxx_rgmii_toolkit.sh && cd /

 

7. 网页浏览器访问模块的 Simpleadmin WebGUI 模块管理界面

 

8. 通过SSH的方式访问模块的命令行

 

9. 远程通过rttys访问模块的命令行

 

========================

附加内容:命令行查看模块信息

 

1. 修改默认的环境变量配置文件profile

$ ssh root@192.168.225.1

Connecting to 192.168.225.1:22...
Connection established.
To escape to local shell, press Ctrl+Alt+].

WARNING! The remote SSH server rejected X11 forwarding request.
Welcome to iamromulan's Simple Console Menu
To get back to this from the root shell, just type 'menu'
Select an option:
------------------
1. Apps
2. Settings
3. Toolkit
4. Exit (Enter Root Shell)

Select an option (1-4): 4
root@sdxlemur:~# 
root@sdxlemur:~# cat /etc/os-release 
ID=qti-distro-nogplv3-perf
NAME="QTI Linux reference nogplv3 distro targeting performance builds."
VERSION="LE.UM.6.3.6.r1-02600-SDX65.0"
VERSION_ID=le.um.6.3.6.r1-02600-sdx65.0
PRETTY_NAME="QTI Linux reference nogplv3 distro targeting performance builds. LE.UM.6.3.6.r1-02600-SDX65.0"
root@sdxlemur:~# 
root@sdxlemur:~# uname -a
Linux sdxlemur 5.4.242-perf #1 PREEMPT Sat Apr 13 09:53:23 UTC 2024 armv7l GNU/Linux
root@sdxlemur:~# 
root@sdxlemur:~# 
root@sdxlemur:~# mount -o remount,rw /
root@sdxlemur:~# 
root@sdxlemur:~# cp -iv /etc/profile /etc/profile.bak
`/etc/profile' -> `/etc/profile.bak'
root@sdxlemur:~# 
root@sdxlemur:~# vi /etc/profile
root@sdxlemur:~# 
root@sdxlemur:~# cat /etc/profile
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
[ -d /opt/usr/sbin ] && PATH=$PATH:/opt/usr/sbin
[ -d /opt/usr/bin ] && PATH=$PATH:/opt/usr/bin
[ -d /opt/sbin ] && PATH=$PATH:/opt/sbin
[ -d /opt/bin ] && PATH=$PATH:/opt/bin
[ -d /usrdata/root/bin ] && PATH=$PATH:/usrdata/root/bin
EDITOR="vi"			# needed for packages like cron, git-commit
[ "$TERM" ] || TERM="vt100"	# Basic terminal capab. For screen etc.

# Add /sbin & co to $PATH for the root user
[ "$HOME" != "/home/root" ] || PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin

# Set the prompt for bash and ash (no other shells known to be in use here)
[ -z "$PS1" ] || PS1='\u@\h:\w\$ '

if [ -d /etc/profile.d ]; then
	for i in /etc/profile.d/*.sh; do
		if [ -f $i -a -r $i ]; then
			. $i
		fi
	done
	unset i
fi

# Make sure we are on a serial console (i.e. the device used starts with
# /dev/tty[A-z]), otherwise we confuse e.g. the eclipse launcher which tries do
# use ssh
case $(tty 2>/dev/null) in
	/dev/tty[A-z]*) [ -x /usr/bin/resize ] && /usr/bin/resize >/dev/null;;
esac

# Function to remount file system as read-write
remount_rw() {
    mount -o remount,rw /
}

# Function to remount file system as read-only
remount_ro() {
    mount -o remount,ro /
}

export PATH PS1 OPIEDIR QPEDIR QTDIR EDITOR TERM

umask 022
root@sdxlemur:~# 
root@sdxlemur:~# mount -o remount,ro /
root@sdxlemur:~# 
root@sdxlemur:~# source /etc/profile
root@sdxlemur:~# 
root@sdxlemur:~# env
TERM=xterm
SHELL=/bin/bash
SSH_CLIENT=192.168.225.103 56687 22
SSH_TTY=/dev/pts/6
USER=root
MOTD_SHOWN=pam
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/usr/sbin:/opt/usr/bin:/opt/sbin:/opt/bin:/usrdata/root/bin
PWD=/usrdata/root
EDITOR=vi
PS1=\u@\h:\w\$ 
SHLVL=1
HOME=/usrdata/root
LOGNAME=root
SSH_CONNECTION=192.168.225.103 56687 192.168.225.1 22
_=/usr/bin/env
root@sdxlemur:~# 

 

2. 查看模块的 系统版本、处理器信息、内存信息、磁盘挂载信息。

root@sdxlemur:~# 
root@sdxlemur:~# cat /etc/os-release 
ID=qti-distro-nogplv3-perf
NAME="QTI Linux reference nogplv3 distro targeting performance builds."
VERSION="LE.UM.6.3.6.r1-02600-SDX65.0"
VERSION_ID=le.um.6.3.6.r1-02600-sdx65.0
PRETTY_NAME="QTI Linux reference nogplv3 distro targeting performance builds. LE.UM.6.3.6.r1-02600-SDX65.0"
root@sdxlemur:~# 
root@sdxlemur:~# uname -a
Linux sdxlemur 5.4.242-perf #1 PREEMPT Sat Apr 13 09:53:23 UTC 2024 armv7l GNU/Linux
root@sdxlemur:~# 
root@sdxlemur:~# cat /proc/cpuinfo 
processor	: 0
model name	: ARMv7 Processor rev 5 (v7l)
BogoMIPS	: 38.40
Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm 
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x0
CPU part	: 0xc07
CPU revision	: 5

Hardware	: Qualcomm Technologies, Inc. SDXLEMUR (Flattened Device Tree)
Revision	: 0000
Serial		: 0000000000000000
root@sdxlemur:~# 
root@sdxlemur:~# free  
              total        used        free      shared  buff/cache   available
Mem:         182544      118092       20112         536       44340       60204
Swap:         91268       14200       77068
root@sdxlemur:~# 
root@sdxlemur:~# cat /etc/mtab 
ubi0:rootfs / ubifs ro,relatime,bulk_read,assert=read-only,ubi=0,vol=0 0 0
devtmpfs /dev devtmpfs rw,relatime,size=78472k,nr_inodes=19618,mode=755 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /run tmpfs rw,nosuid,nodev,mode=755 0 0
tmpfs /sys/fs/cgroup tmpfs ro,nosuid,nodev,noexec,mode=755 0 0
cgroup2 /sys/fs/cgroup/unified cgroup2 rw,nosuid,nodev,noexec,relatime,nsdelegate 0 0
cgroup /sys/fs/cgroup/systemd cgroup rw,nosuid,nodev,noexec,relatime,xattr,name=systemd 0 0
cgroup /sys/fs/cgroup/cpu,cpuacct cgroup rw,nosuid,nodev,noexec,relatime,cpu,cpuacct 0 0
cgroup /sys/fs/cgroup/net_cls cgroup rw,nosuid,nodev,noexec,relatime,net_cls 0 0
cgroup /sys/fs/cgroup/freezer cgroup rw,nosuid,nodev,noexec,relatime,freezer 0 0
cgroup /sys/fs/cgroup/debug cgroup rw,nosuid,nodev,noexec,relatime,debug 0 0
tmpfs /etc/machine-id tmpfs ro,mode=755 0 0
mqueue /dev/mqueue mqueue rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /var/volatile tmpfs rw,relatime 0 0
/dev/ubi2_0 /usrdata ubifs rw,relatime,bulk_read,assert=read-only,ubi=2,vol=0 0 0
/dev/ubi2_0 /etc ubifs rw,relatime,bulk_read,assert=read-only,ubi=2,vol=0 0 0
/dev/ubi2_0 /data ubifs rw,relatime,bulk_read,assert=read-only,ubi=2,vol=0 0 0
/dev/ubi2_0 /cache ubifs rw,relatime,bulk_read,assert=read-only,ubi=2,vol=0 0 0
/dev/ubi2_0 /systemrw ubifs rw,relatime,bulk_read,assert=read-only,ubi=2,vol=0 0 0
/dev/ubi2_0 /persist ubifs rw,relatime,bulk_read,assert=read-only,ubi=2,vol=0 0 0
configfs /sys/kernel/config configfs rw,nosuid,nodev,noexec,relatime 0 0
/dev/ubi1_0 /firmware ubifs ro,nodev,noexec,relatime,bulk_read,assert=read-only,ubi=1,vol=0 0 0
debugfs /sys/kernel/debug debugfs rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /tmp tmpfs rw,nosuid,nodev 0 0
adb /dev/usb-ffs/adb functionfs rw,relatime 0 0
diag /dev/ffs-diag functionfs rw,relatime 0 0
tmpfs /var/lib tmpfs rw,relatime 0 0
/dev/ubi2_0 /opt ubifs rw,relatime,bulk_read,assert=read-only,ubi=2,vol=0 0 0
root@sdxlemur:~# 
root@sdxlemur:~# df -Th
Filesystem           Type            Size      Used Available Use% Mounted on
ubi0:rootfs          ubifs         100.2M     50.0M     50.2M  50% /
devtmpfs             devtmpfs       76.6M         0     76.6M   0% /dev
tmpfs                tmpfs          89.1M         0     89.1M   0% /dev/shm
tmpfs                tmpfs          89.1M      1.1M     88.1M   1% /run
tmpfs                tmpfs          89.1M         0     89.1M   0% /sys/fs/cgroup
tmpfs                tmpfs         123.7M     28.4M     95.2M  23% /etc/machine-id
tmpfs                tmpfs          89.1M    276.0K     88.9M   0% /var/volatile
/dev/ubi2_0          ubifs         123.7M     28.4M     95.2M  23% /usrdata
/dev/ubi2_0          ubifs         123.7M     28.4M     95.2M  23% /etc
/dev/ubi2_0          ubifs         123.7M     28.4M     95.2M  23% /data
/dev/ubi2_0          ubifs         123.7M     28.4M     95.2M  23% /cache
/dev/ubi2_0          ubifs         123.7M     28.4M     95.2M  23% /systemrw
/dev/ubi2_0          ubifs         123.7M     28.4M     95.2M  23% /persist
/dev/ubi1_0          ubifs          91.1M     64.1M     27.0M  70% /firmware
tmpfs                tmpfs          89.1M    116.0K     89.0M   0% /tmp
tmpfs                tmpfs          89.1M    276.0K     88.9M   0% /var/lib
/dev/ubi2_0          ubifs         123.7M     28.4M     95.2M  23% /opt
root@sdxlemur:~# 
root@sdxlemur:~# 

 

3. 查看安装的软件包情况

root@sdxlemur:~# 
root@sdxlemur:~# 
root@sdxlemur:~# source /etc/profile
root@sdxlemur:~# 
root@sdxlemur:~# opkg update
Downloading http://bin.entware.net/armv7sf-k3.2/Packages.gz
Updated list of available packages in /opt/var/opkg-lists/entware
root@sdxlemur:~# 
root@sdxlemur:~# remount_rw
root@sdxlemur:~# 
root@sdxlemur:~# opkg install htop tree lscpu 
Package htop (3.3.0-2) installed in root is up to date.
Installing tree (2.1.3-1) to root...
Downloading http://bin.entware.net/armv7sf-k3.2/tree_2.1.3-1_armv7-3.2.ipk
Installing lscpu (2.40.2-1) to root...
Downloading http://bin.entware.net/armv7sf-k3.2/lscpu_2.40.2-1_armv7-3.2.ipk
Installing libsmartcols (2.40.2-1) to root...
Downloading http://bin.entware.net/armv7sf-k3.2/libsmartcols_2.40.2-1_armv7-3.2.ipk
Configuring tree.
Configuring libsmartcols.
Configuring lscpu.
root@sdxlemur:~# 
root@sdxlemur:~# opkg install nano mg tmux
Installing nano (8.3-1) to root...
Downloading http://bin.entware.net/armv7sf-k3.2/nano_8.3-1_armv7-3.2.ipk
Installing liblzma (5.6.2-2) to root...
Downloading http://bin.entware.net/armv7sf-k3.2/liblzma_5.6.2-2_armv7-3.2.ipk
Installing libbz2 (1.0.8-1a) to root...
Downloading http://bin.entware.net/armv7sf-k3.2/libbz2_1.0.8-1a_armv7-3.2.ipk
Installing libmagic (5.45-1) to root...
Downloading http://bin.entware.net/armv7sf-k3.2/libmagic_5.45-1_armv7-3.2.ipk
Installing mg (7.3-3) to root...
Downloading http://bin.entware.net/armv7sf-k3.2/mg_7.3-3_armv7-3.2.ipk
Installing tmux (3.5a-1) to root...
Downloading http://bin.entware.net/armv7sf-k3.2/tmux_3.5a-1_armv7-3.2.ipk
Installing libevent2-core (2.1.12-2) to root...
Downloading http://bin.entware.net/armv7sf-k3.2/libevent2-core_2.1.12-2_armv7-3.2.ipk
Configuring liblzma.
Configuring libbz2.
Configuring libmagic.
Configuring nano.
Configuring mg.
Configuring libevent2-core.
Configuring tmux.
root@sdxlemur:~# 
root@sdxlemur:~# opkg install adb ca-bundle 
Installing adb (5.0.2~6fe92d1a-3) to root...
Downloading http://bin.entware.net/armv7sf-k3.2/adb_5.0.2~6fe92d1a-3_armv7-3.2.ipk
Installing ca-bundle (20240203-1) to root...
Downloading http://bin.entware.net/armv7sf-k3.2/ca-bundle_20240203-1_all.ipk
Configuring adb.
Configuring ca-bundle.
root@sdxlemur:~# 
root@sdxlemur:~# opkg install ldd libev 
Package ldd (2.27-11) installed in root is up to date.
Package libev (4.33-2) installed in root is up to date.
root@sdxlemur:~# 
root@sdxlemur:~# 
root@sdxlemur:~# opkg install curl wget-nossl wget-ssl 
Installing curl (8.10.1-1) to root...
Downloading http://bin.entware.net/armv7sf-k3.2/curl_8.10.1-1_armv7-3.2.ipk
Installing libcurl (8.10.1-1) to root...
Downloading http://bin.entware.net/armv7sf-k3.2/libcurl_8.10.1-1_armv7-3.2.ipk
Installing wget-nossl (1.24.5-2) to root...
Downloading http://bin.entware.net/armv7sf-k3.2/wget-nossl_1.24.5-2_armv7-3.2.ipk
Installing wget-ssl (1.24.5-2) to root...
Downloading http://bin.entware.net/armv7sf-k3.2/wget-ssl_1.24.5-2_armv7-3.2.ipk
Configuring libcurl.
Configuring curl.
Configuring wget-nossl.
Configuring wget-ssl.
root@sdxlemur:~# 
root@sdxlemur:~# 
root@sdxlemur:~# opkg install jq jshn jsonfilter 
Installing jq (1.7.1-1) to root...
Downloading http://bin.entware.net/armv7sf-k3.2/jq_1.7.1-1_armv7-3.2.ipk
Installing jshn (2024.03.29~eb9bcb64-1) to root...
Downloading http://bin.entware.net/armv7sf-k3.2/jshn_2024.03.29~eb9bcb64-1_armv7-3.2.ipk
Installing libjson-c (0.18-1) to root...
Downloading http://bin.entware.net/armv7sf-k3.2/libjson-c_0.18-1_armv7-3.2.ipk
Installing libubox (2024.03.29~eb9bcb64-1) to root...
Downloading http://bin.entware.net/armv7sf-k3.2/libubox_2024.03.29~eb9bcb64-1_armv7-3.2.ipk
Installing libblobmsg-json (2024.03.29~eb9bcb64-1) to root...
Downloading http://bin.entware.net/armv7sf-k3.2/libblobmsg-json_2024.03.29~eb9bcb64-1_armv7-3.2.ipk
Installing jsonfilter (2024.01.23~594cfa86-1) to root...
Downloading http://bin.entware.net/armv7sf-k3.2/jsonfilter_2024.01.23~594cfa86-1_armv7-3.2.ipk
Configuring jq.
Configuring libjson-c.
Configuring libubox.
Configuring libblobmsg-json.
Configuring jshn.
Configuring jsonfilter.
root@sdxlemur:~# 
root@sdxlemur:~# 
root@sdxlemur:~# opkg install tcpdump gdb gdbserver 
Installing tcpdump (4.99.5-1) to root...
Downloading http://bin.entware.net/armv7sf-k3.2/tcpdump_4.99.5-1_armv7-3.2.ipk
Installing libpcap (1.10.5-1) to root...
Downloading http://bin.entware.net/armv7sf-k3.2/libpcap_1.10.5-1_armv7-3.2.ipk
Installing gdb (15.2-2) to root...
Downloading http://bin.entware.net/armv7sf-k3.2/gdb_15.2-2_armv7-3.2.ipk
Installing libthread-db (2.27-11) to root...
Downloading http://bin.entware.net/armv7sf-k3.2/libthread-db_2.27-11_armv7-3.2.ipk
Installing libreadline (8.2-2) to root...
Downloading http://bin.entware.net/armv7sf-k3.2/libreadline_8.2-2_armv7-3.2.ipk
Installing libmpfr (4.2.1-1) to root...
Downloading http://bin.entware.net/armv7sf-k3.2/libmpfr_4.2.1-1_armv7-3.2.ipk
Installing gdbserver (15.2-2) to root...
Downloading http://bin.entware.net/armv7sf-k3.2/gdbserver_15.2-2_armv7-3.2.ipk
Configuring libthread-db.
Configuring libmpfr.
Configuring libpcap.
Configuring tcpdump.
Configuring gdbserver.
Configuring libreadline.
Configuring gdb.
root@sdxlemur:~# 
root@sdxlemur:~# 
root@sdxlemur:~# opkg install etherwake ethtool-full 
Installing etherwake (1.09-5) to root...
Downloading http://bin.entware.net/armv7sf-k3.2/etherwake_1.09-5_armv7-3.2.ipk
Installing ethtool-full (6.10-2) to root...
Downloading http://bin.entware.net/armv7sf-k3.2/ethtool-full_6.10-2_armv7-3.2.ipk
Installing libmnl (1.0.5-1) to root...
Downloading http://bin.entware.net/armv7sf-k3.2/libmnl_1.0.5-1_armv7-3.2.ipk
Configuring libmnl.
Configuring etherwake.
Configuring ethtool-full.
root@sdxlemur:~# 
root@sdxlemur:~# 
root@sdxlemur:~# opkg install gpsd gpsd-clients gpsd-utils 
Installing gpsd (3.25-1) to root...
Downloading http://bin.entware.net/armv7sf-k3.2/gpsd_3.25-1_armv7-3.2.ipk
Installing libusb-1.0 (1.0.27-1) to root...
Downloading http://bin.entware.net/armv7sf-k3.2/libusb-1.0_1.0.27-1_armv7-3.2.ipk
Installing gpsd-clients (3.25-1) to root...
Downloading http://bin.entware.net/armv7sf-k3.2/gpsd-clients_3.25-1_armv7-3.2.ipk
Installing gpsd-utils (3.25-1) to root...
Downloading http://bin.entware.net/armv7sf-k3.2/gpsd-utils_3.25-1_armv7-3.2.ipk
Configuring libusb-1.0.
Configuring gpsd-utils.
Configuring gpsd-clients.
Configuring gpsd.
root@sdxlemur:~# 
root@sdxlemur:~# 
root@sdxlemur:~# opkg install ser2net minicom picocom 
Installing ser2net (4.6.2-1) to root...
Downloading http://bin.entware.net/armv7sf-k3.2/ser2net_4.6.2-1_armv7-3.2.ipk
Installing libgensio (2.8.4-1) to root...
Downloading http://bin.entware.net/armv7sf-k3.2/libgensio_2.8.4-1_armv7-3.2.ipk
Installing libyaml (0.2.5-1) to root...
Downloading http://bin.entware.net/armv7sf-k3.2/libyaml_0.2.5-1_armv7-3.2.ipk
Installing minicom (2.9-1) to root...
Downloading http://bin.entware.net/armv7sf-k3.2/minicom_2.9-1_armv7-3.2.ipk
Installing picocom (3.1-5) to root...
Downloading http://bin.entware.net/armv7sf-k3.2/picocom_3.1-5_armv7-3.2.ipk
Configuring minicom.
Configuring libgensio.
Configuring libyaml.
Configuring ser2net.
Configuring picocom.
root@sdxlemur:~# 
root@sdxlemur:~# 
root@sdxlemur:~# 
root@sdxlemur:~# remount_ro
root@sdxlemur:~# 
root@sdxlemur:~# 
root@sdxlemur:~# df -Th
Filesystem           Type            Size      Used Available Use% Mounted on
ubi0:rootfs          ubifs         100.2M     50.0M     50.2M  50% /
devtmpfs             devtmpfs       76.6M         0     76.6M   0% /dev
tmpfs                tmpfs          89.1M         0     89.1M   0% /dev/shm
tmpfs                tmpfs          89.1M      1.1M     88.1M   1% /run
tmpfs                tmpfs          89.1M         0     89.1M   0% /sys/fs/cgroup
tmpfs                tmpfs         123.7M     42.6M     81.1M  34% /etc/machine-id
tmpfs                tmpfs          89.1M    276.0K     88.9M   0% /var/volatile
/dev/ubi2_0          ubifs         123.7M     42.6M     81.1M  34% /usrdata
/dev/ubi2_0          ubifs         123.7M     42.6M     81.1M  34% /etc
/dev/ubi2_0          ubifs         123.7M     42.6M     81.1M  34% /data
/dev/ubi2_0          ubifs         123.7M     42.6M     81.1M  34% /cache
/dev/ubi2_0          ubifs         123.7M     42.6M     81.1M  34% /systemrw
/dev/ubi2_0          ubifs         123.7M     42.6M     81.1M  34% /persist
/dev/ubi1_0          ubifs          91.1M     64.1M     27.0M  70% /firmware
tmpfs                tmpfs          89.1M    116.0K     89.0M   0% /tmp
tmpfs                tmpfs          89.1M    276.0K     88.9M   0% /var/lib
/dev/ubi2_0          ubifs         123.7M     42.6M     81.1M  34% /opt
root@sdxlemur:~# 
root@sdxlemur:~# 
root@sdxlemur:~# 
root@sdxlemur:~# opkg list-installed
adb - 5.0.2~6fe92d1a-3
ca-bundle - 20240203-1
curl - 8.10.1-1
dfc - 3.1.1-1
entware-opt - 227000-3
entware-release - 2025.01-1
entware-upgrade - 1.0-1
etherwake - 1.09-5
ethtool-full - 6.10-2
findutils - 4.10.0-1
gdb - 15.2-2
gdbserver - 15.2-2
glib2 - 2.82.0-1
gpsd - 3.25-1
gpsd-clients - 3.25-1
gpsd-utils - 3.25-1
grep - 3.11-1
htop - 3.3.0-2
iperf3 - 3.17.1-4
jq - 1.7.1-1
jshn - 2024.03.29~eb9bcb64-1
jsonfilter - 2024.01.23~594cfa86-1
ldd - 2.27-11
libapr - 1.7.5-1
libaprutil - 1.6.3-1
libatomic - 8.4.0-11
libattr - 2.5.2-3
libblkid - 2.40.2-1
libblobmsg-json - 2024.03.29~eb9bcb64-1
libbz2 - 1.0.8-1a
libc - 2.27-11
libcurl - 8.10.1-1
libe2p - 1.47.0-2
libev - 4.33-2
libevent2-core - 2.1.12-2
libexpat - 2.6.3-1
libffi - 3.4.6-1
libgcc - 8.4.0-11
libgensio - 2.8.4-1
libgmp - 6.3.0-1
libiconv-full - 1.17-1
libintl-full - 0.22.5-1
libiperf3 - 3.17.1-4
libjson-c - 0.18-1
liblzma - 5.6.2-2
libmagic - 5.45-1
libmbedtls - 3.6.2-1
libmnl - 1.0.5-1
libmount - 2.40.2-1
libmpfr - 4.2.1-1
libncurses - 6.4-3
libncursesw - 6.4-3
libnettle - 3.9.1-1
libopenssl - 3.0.15-1
libpam - 1.5.2-1a
libpcap - 1.10.5-1
libpcre2 - 10.42-1
libpthread - 2.27-11
libreadline - 8.2-2
librt - 2.27-11
libslang2 - 2.3.3-2
libsmartcols - 2.40.2-1
libssh2 - 1.11.0-1
libssp - 8.4.0-11
libstdcpp - 8.4.0-11
libthread-db - 2.27-11
libtirpc - 1.3.4-1
libubox - 2024.03.29~eb9bcb64-1
libusb-1.0 - 1.0.27-1
libuuid - 2.40.2-1
libyaml - 0.2.5-1
lighttpd - 1.4.76-2
lighttpd-mod-auth - 1.4.76-2
lighttpd-mod-authn_file - 1.4.76-2
lighttpd-mod-cgi - 1.4.76-2
lighttpd-mod-openssl - 1.4.76-2
lighttpd-mod-proxy - 1.4.76-2
locales - 2.27-9
lscpu - 2.40.2-1
lsof - 4.99.4-1
mc - 4.8.32-1
mg - 7.3-3
minicom - 2.9-1
nano - 8.3-1
openssh-client - 9.9_p1-1
openssh-client-utils - 9.9_p1-1
openssh-keygen - 9.9_p1-1
openssh-server-pam - 9.9_p1-1
openssh-sftp-client - 9.9_p1-1
openssh-sftp-server - 9.9_p1-1
opkg - 2024.10.16~38eccbb1-1
picocom - 3.1-5
ser2net - 4.6.2-1
shadow-common - 4.8.1-3b
shadow-login - 4.8.1-3b
shadow-passwd - 4.8.1-3b
shadow-useradd - 4.8.1-3b
sudo - 1.8.31-1
tcpdump - 4.99.5-1
terminfo - 6.4-3
tmux - 3.5a-1
tree - 2.1.3-1
wget-nossl - 1.24.5-2
wget-ssl - 1.24.5-2
zlib - 1.3.1-1
zoneinfo-asia - 2024b-1
zoneinfo-core - 2024b-1
zoneinfo-europe - 2024b-1
root@sdxlemur:~# 
root@sdxlemur:~# 

 


AT+QMAP="MPDN_rule" AT+QMAP="MPDN_rule" 查询/修改 QMAP 多路拨号规则 设置命令 AT+QMAP="MPDN_rule"[,<rule_num>[,,<VLAN_ID>,<IPPT_mode>,<auto_connect>[,<IPPT_info>]]] <rule_num> 整型。QMAP 多路拨号规则 ID。范围:0~3。 整型。QMAP 拨号中使用的 APN Profile ID。范围:1~16。 <VLAN_ID> 整型。QMAP 拨号中对应的 VLAN ID。范围:0,2~255。 当该值为 0 时,表示物理上的默认 LAN 接口,非 VLAN 接口。 <IPPT_mode> 整型。QMAP 拨号中是否启用 IPPT 模式(IP Passthrough 模式) 。 0 禁用 IPPT 模式 1 启用 IPPT 模式(ETH) 2 启用 IPPT 模式(Wi-Fi) 3 启用 IPPT 模式(USB-ECM/RNDIS) <auto_connect> 整型。QMAP 拨号中是否启用自动拨号。 1 启用 0 禁用 <IPPT_info> 字符串类型。 若<IPPT_mode>=1 或 2,该值为 IPPT 模式绑定的对端网卡 MAC 地址; 若<IPPT_mode>=3,该值为 IPPT 模式绑定的对端主机名; 若<IPPT_mode>=0,该值省略。 注:启用 IPPT 模式的情况下: IPPT NAT 工作模式为 WithNAT(AT+QMAP="IPPT_NAT",1) 此时必须指定<IPPT_info>,指定的 LAN 设备将获取公网地址,其他设备将获取私网地址,模块将对所有 LAN 设备数据进行网络地址转换。 另外,若<IPPT_mode>=1,且<IPPT_info>为"FF:FF:FF:FF:FF:FF",模块始终将公网地址下发至最新连接的以太网 LAN 设备中。 IPPT NAT 工作模式为 WithoutNAT(AT+QMAP="IPPT_NAT",0) 若未指定<IPPT_info>,第一个接入的 LAN 设备将获取公网地址,且模块不对该 LAN 设备的数据进行网络地址转换,其他设备获取不到任何 IP 地址。 若指定<IPPT_info>,指定的 LAN 设备将获取公网地址,且模块不对该 LAN 设备的数据进行网络地址转换,其他设备不会获取到任何 IP 地址。 1. 若仅需物理上默认 LAN 接口连接网络,且无需支持 VLAN 以及多路拨号,则配置<rule_num>=0 即可,并将<VLAN_ID>设置为 0。 2. QMAP 多路拨号的实现方式是将基于不同 APN 拨号得来的 WAN 接口绑定至 LAN/VLAN 接口,同时实现对应的 WAN 和 LAN/VLAN 之间的 NAT 配置,以此使得不同的 LAN/VLAN 接口下的设备可以通过对应的 WAN 接口访问不同的网络。 3. 配置 QMAP 拨号规则时, 如需使用 VLAN 接口 (<VLAN_ID>不为 0) , 需先通过 AT+QMAP="VLAN"建立对应的 VLAN 接口。 4. IPPT 模式,即 IP Passthrough 模式,是一种将运营商分配的 IP 地址(Public IP,公网 IP 地址)透传给 LAN 设备的一种功能。 5. 默认情况下,使用 USB(ECM/RNDIS)接口进行 QMAP 拨号时,如需启用 IPPT 模式,则需设置<IPPT_mode>为 3,并在<IPPT_info>中设置 LAN 设备的主机名。因为大多数情况下,USB 虚拟的以太网接口 (ECM/RNDIS) 的 MAC 地址并不固定。 但在实际使用中, 也可以通过设置<IPPT_mode>为 1,并在<IPPT_info>中设置 LAN USB 设备的 MAC 地址实现 IPPT 功能。 6. WLAN 接口不支持 VLAN 功能, WLAN 属于 VLAN0。 在实际使用中, 如需将公网 IP 地址分配到 WLAN下的设备,需设置<IPPT_mode>为 2,且<VLAN_ID>仅可设置为 0。 7. 默认情况下,<rule_num>=0 规则的拨号为默认 QMAP 拨号。 8. 默认 QMAP 拨号与物理 LAN 接口 (VLAN0) 默认绑定, 若修改默认 QMAP 拨号规则绑定的 LAN/VLAN接口,模块将自动重启。例如,执行 AT+QMAP="MPDN_rule",0,1,2,0,1(将默认 QMAP 拨号规则绑定至<VLAN_ID>=2) ;若此时执行 AT+QMAP="MPDN_rule",0 禁用默认 QMAP 拨号规则后,默认 QMAP 拨号规则绑定 LAN/VLAN 接口将自动从 VLAN 接口(<VLAN_ID>=2)切换至物理 LAN接口(<VLAN_ID>=0)且模块自动重启。 9. 模块内部通过默认 QMAP 拨号规则创建的网络连接访问网络。即,在默认情况下,若<rule_num>=0未进行拨号时,模块内无网络。 AT+QMAP="IPPT_NAT" AT+QMAP="IPPT_NAT" 查询/配置 QMAP 拨号 IPPT NAT 工作模式 <IPPT_NAT> 整型。QMAP 拨号 IPPT 工作模式。 0 WithoutNAT 模式;在 IPPT 模式下,不使用 NAT 1 WithNAT 模式;在 IPPT 模式下,使用 NAT

 

 

======== End

 

posted @ 2025-04-19 12:13  lsgxeva  阅读(253)  评论(0)    收藏  举报