XpressReal T3 + Quectel 4G LTE
燧炻创新 XpressReal T3和移远4G LTE模块,拨联通卡入网成功。
虽然用的是minipcie槽,但明白人都清楚,wwan模块走的一般都是usb引脚,所以这种模块用到的pins其实并不多。
连接成功无鸭梨,拿到联通NAT地址:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
╭─root at xpressreal-t3 in ~ 25-10-14 - 13:46:26 ╰─○ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 10.123.190.166 0.0.0.0 UG 80 0 0 wwu1i4 0.0.0.0 192.168.1.1 0.0.0.0 UG 600 0 0 wlan0 10.123.190.164 0.0.0.0 255.255.255.252 U 80 0 0 wwu1i4 192.168.1.0 0.0.0.0 255.255.255.0 U 600 0 0 wlan0 ╭─root at xpressreal-t3 in ~ 25-10-14 - 13:47:39 ╰─○ ping -I wwu1i4 mirrors.tuna.tsinghua.edu.cn PING bfdmirrors.s.tuna.tsinghua.edu.cn (101.6.15.130) from 10.123.190.165 wwu1i4: 56(84) bytes of data. 64 bytes from 101.6.15.130: icmp_seq=1 ttl=37 time=361 ms 64 bytes from 101.6.15.130: icmp_seq=2 ttl=37 time=57.0 ms 64 bytes from 101.6.15.130: icmp_seq=3 ttl=37 time=56.0 ms 64 bytes from 101.6.15.130: icmp_seq=4 ttl=37 time=56.1 ms 64 bytes from 101.6.15.130: icmp_seq=5 ttl=37 time=64.9 ms ^C --- bfdmirrors.s.tuna.tsinghua.edu.cn ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4003ms |
看起来差不多有50Mbps左右的下行,考虑到身处环境结构复杂的写字楼内,这个水平还ok是吧。
1 2 3 4 5 6 7 |
╭─root at xpressreal-t3 in ~ 25-10-14 - 14:03:00 ╰─○ wget -c https://somewhere.cn/armbian-releases/uefi-x86/archive/Armbian_25.8.1_Uefi-x86_bookworm_current_6.12.41_minimal.img.xz. HTTP request sent, awaiting response... 200 OK Length: 902607824 (861M) [application/octet-stream] Saving to: ‘Armbian_25.8.1_Uefi-x86_bookworm_current_6.12.41_minimal.img.xz’ Armb 13%[=> ] 112.11M 6.77MB/s eta 1m 59s |
过程就不多写了,有 ModemManager 和 NetworkManager 两个服务就ok,不像多年前的拨号还要切换模块状态啥的。
移远模块的信息(usb协议):
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
╭─root at xpressreal-t3 in ~ 25-10-14 - 13:30:01 ╰─○ lsusb Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 002: ID 2c7c:0125 Quectel Wireless Solutions Co., Ltd. EC25 LTE modem Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub ╭─root at xpressreal-t3 in ~ 25-10-14 - 13:30:12 ╰─○ lsusb -D /dev/bus/usb/002/002 Device: ID 2c7c:0125 Quectel Wireless Solutions Co., Ltd. EC25 LTE modem Negotiated speed: High Speed (480Mbps) Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 239 Miscellaneous Device bDeviceSubClass 2 [unknown] bDeviceProtocol 1 Interface Association bMaxPacketSize0 64 idVendor 0x2c7c Quectel Wireless Solutions Co., Ltd. idProduct 0x0125 EC25 LTE modem bcdDevice 3.18 iManufacturer 1 Quectel iProduct 2 EC20CN-HDLG iSerial 0 bNumConfigurations 1 ... |
nmcli 列出设备,再建个连接就行:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
╭─root at xpressreal-t3 in ~ 25-10-14 - 13:53:20 ╰─○ nmcli d status DEVICE TYPE STATE CONNECTION cdc-wdm0 gsm connected 4g-wwan wlan0 wifi connected netplan-wlan0-AQUI-5G_EXT lo loopback connected (externally) lo p2p-dev-wlan0 wifi-p2p disconnected -- end0 ethernet unavailable -- sit0 iptunnel unmanaged -- ╭─root at xpressreal-t3 in ~ 25-10-14 - 13:43:01 ╰─○ cat /etc/NetworkManager/system-connections/4g-wwan.nmconnection [connection] id=4g-wwan uuid=b65834eb-5b36-4988-bdd2-15f4221b21be type=gsm interface-name=cdc-wdm0 [gsm] apn=internet number=*99# [ipv4] dns-search= method=auto route-metric=80 [ipv6] addr-gen-mode=default method=auto [proxy] |
mmcli 可以查看sim卡信息:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
╭─root at xpressreal-t3 in ~ 25-10-14 - 13:46:04 ╰─○ mmcli -i any -------------------------------- General | path: /org/freedesktop/ModemManager1/SIM/0 -------------------------------- Properties | active: yes | imsi: 4600xxxx717xxxx | iccid: 8986062017xxxx00xxxx | operator id: 46006 | preferred networks: 46xxx (lte) | 46yyy (lte) | 46xxx (umts) | 46yyy (umts) | gid1: FF | gid2: FF |
还记得我之前写的使用RPi 4b加工一个双wan冗余路由对吧?换用这块尺寸更具优势的XpressReal T3,也会是一个好玩的解决方案。
哦对了,它armbian还没提供kvm support,如果想做路由可以先手打iptables/nftables顶着,一定要玩openwrt的话,也可以搞incus container版本先跑起。
文章的脚注信息由WordPress的wp-posturl插件自动生成