root@ZhuoTK:/# insmod GobiNet.ko qmap_mode=4
|
[ 970.380000] GobiNet: Quectel_Linux&Android_GobiNet_Driver_V1.6.2.13
|
[ 970.380000] usbcore: registered new interface driver GobiNet
|
[ 989.620000] usb 1-1.3: new high-speed USB device number 6 using ehci-platform
|
[ 989.860000] GobiNet 1-1.3:1.4 usb0: register 'GobiNet' at usb-101c0000.ehci-1.3, GobiNet Ethernet Device, 02:50:f4:00:00:00
|
[ 989.870000] creating qcqmi0
|
[ 989.880000] GobiNet::qmap_register_device usb0.1
|
[ 989.880000] GobiNet::qmap_register_device usb0.2
|
[ 989.890000] GobiNet::qmap_register_device usb0.3
|
[ 989.890000] GobiNet::qmap_register_device usb0.4
|
[ 994.820000] GobiNet::QMIWDASetDataFormat qmap settings qmap_version=5, rx_size=4096, tx_size=4096
|
[ 994.830000] GobiNet::QMIWDASetDataFormat qmap settings ul_data_aggregation_max_size=4096, ul_data_aggregation_max_datagrams=16
|
|
root@ZhuoTK:/# quectel-CM -n 1 -s cmnet &
|
[04-13_03:35:31:878] Quectel_QConnectManager_Linux_V1.6.0.25
|
[04-13_03:35:31:881] Find /sys/bus/usb/devices/1-1.3 idVendor=0x2c7c idProduct=0x125, bus=0x001, dev=0x006
|
[04-13_03:35:31:882] Auto find qmichannel = /dev/qcqmi0
|
[04-13_03:35:31:882] Auto find usbnet_adapter = usb0
|
[04-13_03:35:31:883] netcard driver = GobiNet, driver version = V1.6.2.13
|
[04-13_03:35:31:883] qmap_mode = 4, qmap_version = 5, qmap_size = 4096, muxid = 0x81, qmap_netcard = usb0.1
|
[04-13_03:35:31:883] Modem works in QMI mode
|
[04-13_03:35:31:896] Get clientWDS = 7
|
[04-13_03:35:31:927] Get clientDMS = 8
|
[04-13_03:35:31:959] Get clientNAS = 9
|
[04-13_03:35:31:992] Get clientUIM = 10
|
[04-13_03:35:32:024] requestBaseBandVersion EC25EFAR06A11M4G
|
[04-13_03:35:32:152] requestGetSIMStatus SIMStatus: SIM_READY
|
[04-13_03:35:32:152] requestSetProfile[1] cmnet///0
|
[04-13_03:35:32:216] requestGetProfile[1] cmnet///0
|
[04-13_03:35:32:248] requestRegistrationState2 MCC: 460, MNC: 0, PS: Attached, DataCap: LTE
|
[04-13_03:35:32:279] requestQueryDataCall IPv4ConnectionStatus: DISCONNECTED
|
[04-13_03:35:32:280] ifconfig usb0 down
|
[04-13_03:35:32:290] ifconfig usb0.1 0.0.0.0
|
[04-13_03:35:32:301] ifconfig usb0.1 down
|
[04-13_03:35:32:344] requestSetupDataCall WdsConnectionIPv4Handle: 0x8723eef0
|
[ 1037.570000] net usb0: link_state 0x0 -> 0x1
|
[04-13_03:35:32:477] ifconfig usb0 up
|
[04-13_03:35:32:496] ifconfig usb0.1 up
|
[04-13_03:35:32:508] you are use OpenWrt?
|
[04-13_03:35:32:509] should not calling udhcpc manually?
|
[04-13_03:35:32:509] should modify /etc/config/network as below?
|
[04-13_03:35:32:509] config interface wan
|
[04-13_03:35:32:509] option ifname usb0.1
|
[04-13_03:35:32:509] option proto dhcp
|
[04-13_03:35:32:509] should use "/sbin/ifstaus wan" to check usb0.1 's status?
|
[04-13_03:35:32:510] busybox udhcpc -f -n -q -t 5 -i usb0.1
|
[04-13_03:35:32:520] udhcpc (v1.23.2) started
|
[04-13_03:35:32:532] Sending discover...
|
[04-13_03:35:32:540] Sending select for 10.187.142.20...
|
[04-13_03:35:32:545] Lease of 10.187.142.20 obtained, lease time 7200
|
[04-13_03:35:32:550] udhcpc: ifconfig usb0.1 10.187.142.20 netmask 255.255.255.248 broadcast +
|
[04-13_03:35:32:560] udhcpc: setting default routers: 10.187.142.21
|
|
root@ZhuoTK:/# quectel-CM -n 2 -s 4gnet &
|
[04-13_03:35:38:766] Quectel_QConnectManager_Linux_V1.6.0.25
|
[04-13_03:35:38:769] Find /sys/bus/usb/devices/1-1.3 idVendor=0x2c7c idProduct=0x125, bus=0x001, dev=0x006
|
[04-13_03:35:38:770] Auto find qmichannel = /dev/qcqmi0
|
[04-13_03:35:38:770] Auto find usbnet_adapter = usb0
|
[04-13_03:35:38:771] netcard driver = GobiNet, driver version = V1.6.2.13
|
[04-13_03:35:38:771] qmap_mode = 4, qmap_version = 5, qmap_size = 4096, muxid = 0x82, qmap_netcard = usb0.2
|
[04-13_03:35:38:771] Modem works in QMI mode
|
[04-13_03:35:38:809] Get clientWDS = 7
|
[04-13_03:35:38:841] Get clientDMS = 8
|
[04-13_03:35:38:873] Get clientNAS = 9
|
[04-13_03:35:38:905] Get clientUIM = 10
|
[04-13_03:35:38:937] requestBaseBandVersion EC25EFAR06A11M4G
|
[04-13_03:35:39:065] requestGetSIMStatus SIMStatus: SIM_READY
|
[04-13_03:35:39:065] requestSetProfile[2] 4gnet///0
|
[04-13_03:35:39:129] requestGetProfile[2] 4gnet///0
|
[04-13_03:35:39:161] requestRegistrationState2 MCC: 460, MNC: 0, PS: Attached, DataCap: LTE
|
[04-13_03:35:39:193] requestQueryDataCall IPv4ConnectionStatus: DISCONNECTED
|
[04-13_03:35:39:193] ifconfig usb0.2 0.0.0.0
|
[04-13_03:35:39:206] ifconfig usb0.2 down
|
[04-13_03:35:39:417] requestSetupDataCall WdsConnectionIPv4Handle: 0x87252eb0
|
[ 1044.650000] net usb0: link_state 0x1 -> 0x3
|
[04-13_03:35:39:550] ifconfig usb0 up
|
[04-13_03:35:39:560] ifconfig usb0.2 up
|
[04-13_03:35:39:573] you are use OpenWrt?
|
[04-13_03:35:39:573] should not calling udhcpc manually?
|
[04-13_03:35:39:573] should modify /etc/config/network as below?
|
[04-13_03:35:39:573] config interface wan
|
[04-13_03:35:39:573] option ifname usb0.2
|
[04-13_03:35:39:573] option proto dhcp
|
[04-13_03:35:39:573] should use "/sbin/ifstaus wan" to check usb0.2 's status?
|
[04-13_03:35:39:574] busybox udhcpc -f -n -q -t 5 -i usb0.2
|
[04-13_03:35:39:585] udhcpc (v1.23.2) started
|
[04-13_03:35:39:597] Sending discover...
|
[04-13_03:35:39:601] Sending select for 10.197.125.183...
|
[04-13_03:35:39:606] Lease of 10.197.125.183 obtained, lease time 7200
|
[04-13_03:35:39:611] udhcpc: ifconfig usb0.2 10.197.125.183 netmask 255.255.255.240 broadcast +
|
[04-13_03:35:39:621] udhcpc: setting default routers: 10.197.125.184
|
|
root@ZhuoTK:/# ifconfig usb0.1
|
usb0.1 Link encap:Ethernet HWaddr 02:50:F4:00:00:00
|
inet addr:10.187.142.20 Mask:255.255.255.248
|
inet6 addr: fe80::50:f4ff:fe00:0/64 Scope:Link
|
UP RUNNING NOARP MTU:1500 Metric:1
|
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
|
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
|
collisions:0 txqueuelen:1000
|
RX bytes:764 (764.0 B) TX bytes:1824 (1.7 KiB)
|
|
root@ZhuoTK:/# ifconfig usb0.2
|
usb0.2 Link encap:Ethernet HWaddr 02:50:F4:00:00:00
|
inet addr:10.197.125.183 Mask:255.255.255.240
|
inet6 addr: fe80::50:f4ff:fe00:0/64 Scope:Link
|
UP RUNNING NOARP MTU:1500 Metric:1
|
RX packets:3 errors:0 dropped:0 overruns:0 frame:0
|
TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
|
collisions:0 txqueuelen:1000
|
RX bytes:688 (688.0 B) TX bytes:1224 (1.1 KiB)
|
|
root@ZhuoTK:/# ip ro add 8.8.8.8/32 dev usb0.1
|
root@ZhuoTK:/# ping 8.8.8.8
|
PING 8.8.8.8 (8.8.8.8): 56 data bytes
|
64 bytes from 8.8.8.8: seq=0 ttl=52 time=74.450 ms
|
|
root@ZhuoTK:/# ip ro del 8.8.8.8/32
|
root@ZhuoTK:/# ip ro del 8.8.8.8/32
|
RTNETLINK answers: No such process
|
|
root@ZhuoTK:/# ip ro add 8.8.8.8/32 dev usb0.2
|
root@ZhuoTK:/# ping 8.8.8.8
|
PING 8.8.8.8 (8.8.8.8): 56 data bytes
|
64 bytes from 8.8.8.8: seq=0 ttl=52 time=257.851 ms
|
|
root@ZhuoTK:/# quectel-CM -k 2
|
[04-13_03:39:16:986] Quectel_QConnectManager_Linux_V1.6.0.25
|
[04-13_03:39:16:988] /proc/2294/cmdline: quectel-CM -n 2 -s 4gnet
|
[04-13_03:39:16:988] send SIGINT to process 2294
|
[04-13_03:39:16:989] requestDeactivateDefaultPDP WdsConnectionIPv4Handle
|
[ 1262.310000] net usb0: link_state 0x3 -> 0x1
|
[04-13_03:39:17:216] ifconfig usb0.2 0.0.0.0
|
[04-13_03:39:17:228] ifconfig usb0.2 down
|
[04-13_03:39:17:370] GobiNetThread exit
|
[04-13_03:39:17:371] qmi_main exit
|
|
[2]+ Done quectel-CM -n 2 -s 4gnet
|
|
root@ZhuoTK:/# ifconfig usb0.2
|
usb0.2 Link encap:Ethernet HWaddr 02:50:F4:00:00:00
|
NOARP MTU:1500 Metric:1
|
RX packets:30 errors:0 dropped:0 overruns:0 frame:0
|
TX packets:35 errors:0 dropped:0 overruns:0 carrier:0
|
collisions:0 txqueuelen:1000
|
RX bytes:2816 (2.7 KiB) TX bytes:3408 (3.3 KiB)
|