root@ZhuoTK:/# insmod GobiNet.ko qmap_mode=4
[   42.120000] GobiNet: Quectel_Linux&Android_GobiNet_Driver_V1.6.2.13
[   42.130000] GobiNet 1-1.3:1.4 usb0: register 'GobiNet' at usb-101c0000.ehci-1.3, GobiNet Ethernet Device, 02:50:f4:00:00:00
[   42.140000] creating qcqmi0
[   42.150000] GobiNet::qmap_register_device usb0.1
[   42.150000] GobiNet::qmap_register_device usb0.2
[   42.160000] GobiNet::qmap_register_device usb0.3
[   42.160000] GobiNet::qmap_register_device usb0.4
[   42.170000] usbcore: registered new interface driver GobiNet
[   43.270000] GobiNet::QMIWDASetDataFormat qmap settings qmap_version=5, rx_size=4096, tx_size=4096
[   43.280000] GobiNet::QMIWDASetDataFormat qmap settings ul_data_aggregation_max_size=4096, ul_data_aggregation_max_datagrams=16

root@ZhuoTK:/# brctl addbr br0
root@ZhuoTK:/# brctl addif br0 eth0.1
root@ZhuoTK:/# brctl addif br0 usb0.1
root@ZhuoTK:/# brctl show
bridge name	bridge id		STP enabled	interfaces
br0		8000.00ca019197b9	no		eth0.1
							                usb0.1
							                
root@ZhuoTK:/# quectel-CM -n 1 -s cmnet -b &
[04-13_05:12:42:155] Quectel_QConnectManager_Linux_V1.6.0.25
[04-13_05:12:42:158] Find /sys/bus/usb/devices/1-1.3 idVendor=0x2c7c idProduct=0x125, bus=0x001, dev=0x003
[   86.130000] net usb0.1: bridge_mode change to 0x1
[04-13_05:12:42:159] Auto find qmichannel = /dev/qcqmi0
[04-13_05:12:42:160] Auto find usbnet_adapter = usb0
[04-13_05:12:42:160] netcard driver = GobiNet, driver version = V1.6.2.13
[04-13_05:12:42:160] qmap_mode = 4, qmap_version = 5, qmap_size = 4096, muxid = 0x81, qmap_netcard = usb0.1
[04-13_05:12:42:166] Modem works in QMI mode
[04-13_05:12:42:181] Get clientWDS = 7
[04-13_05:12:42:213] Get clientDMS = 8
[04-13_05:12:42:246] Get clientNAS = 9
[04-13_05:12:42:278] Get clientUIM = 10
[04-13_05:12:42:310] requestBaseBandVersion EC25EFAR06A11M4G
[04-13_05:12:42:438] requestGetSIMStatus SIMStatus: SIM_READY
[04-13_05:12:42:439] requestSetProfile[1] cmnet///0
[04-13_05:12:42:502] requestGetProfile[1] cmnet///0
[04-13_05:12:42:534] requestRegistrationState2 MCC: 460, MNC: 0, PS: Attached, DataCap: LTE
[04-13_05:12:42:565] requestQueryDataCall IPv4ConnectionStatus: DISCONNECTED
[04-13_05:12:42:566] ifconfig usb0 down
[04-13_05:12:42:576] ifconfig usb0.1 0.0.0.0
[04-13_05:12:42:587] ifconfig usb0.1 down
[04-13_05:12:42:629] requestSetupDataCall WdsConnectionIPv4Handle: 0x8724d740
[   86.730000] net usb0: link_state 0x0 -> 0x1
[04-13_05:12:42:762] ifconfig usb0 up
[04-13_05:12:42:782] ifconfig usb0.1 up
[04-13_05:12:42:794] echo '0xa16b769' > /sys/class/net/usb0.1/bridge_ipv4

root@ZhuoTK:/# ifconfig br0 up
[   98.270000] usb0.1 PC Mac Address: 00:0e:c6:a6:6c:f1
[   98.360000] usb0.1 sip = 0.0.0.0, tip=10.22.183.105, ipv4=10.22.183.105
[   98.370000] usb0.1 sip = 10.22.183.105, tip=10.22.183.106, ipv4=10.22.183.105
[   99.360000] usb0.1 sip = 0.0.0.0, tip=10.22.183.105, ipv4=10.22.183.105
[  100.360000] usb0.1 sip = 0.0.0.0, tip=10.22.183.105, ipv4=10.22.183.105
[  100.500000] usb0.1 sip = 10.22.183.105, tip=10.22.183.106, ipv4=10.22.183.105

root@ZhuoTK:/# quectel-CM -n 2 -s 4gnet &
[04-13_05:13:05:715] Quectel_QConnectManager_Linux_V1.6.0.25
[04-13_05:13:05:717] Find /sys/bus/usb/devices/1-1.3 idVendor=0x2c7c idProduct=0x125, bus=0x001, dev=0x003
[04-13_05:13:05:719] Auto find qmichannel = /dev/qcqmi0
[04-13_05:13:05:719] Auto find usbnet_adapter = usb0
[04-13_05:13:05:719] netcard driver = GobiNet, driver version = V1.6.2.13
[04-13_05:13:05:719] qmap_mode = 4, qmap_version = 5, qmap_size = 4096, muxid = 0x82, qmap_netcard = usb0.2
[04-13_05:13:05:720] Modem works in QMI mode
[04-13_05:13:05:734] Get clientWDS = 7
[04-13_05:13:05:766] Get clientDMS = 8
[04-13_05:13:05:798] Get clientNAS = 9
[04-13_05:13:05:830] Get clientUIM = 10
[04-13_05:13:05:861] requestBaseBandVersion EC25EFAR06A11M4G
[04-13_05:13:05:990] requestGetSIMStatus SIMStatus: SIM_READY
[04-13_05:13:05:991] requestSetProfile[2] 4gnet///0
[04-13_05:13:06:054] requestGetProfile[2] 4gnet///0
[04-13_05:13:06:086] requestRegistrationState2 MCC: 460, MNC: 0, PS: Attached, DataCap: LTE
[04-13_05:13:06:118] requestQueryDataCall IPv4ConnectionStatus: DISCONNECTED
[04-13_05:13:06:119] ifconfig usb0.2 0.0.0.0
[04-13_05:13:06:131] ifconfig usb0.2 down
[04-13_05:13:06:375] requestSetupDataCall WdsConnectionIPv4Handle: 0x872b8c50
[  110.470000] net usb0: link_state 0x1 -> 0x3
[04-13_05:13:06:507] ifconfig usb0 up
[04-13_05:13:06:518] ifconfig usb0.2 up
[04-13_05:13:06:539] you are use OpenWrt?
[04-13_05:13:06:540] should not calling udhcpc manually?
[04-13_05:13:06:540] should modify /etc/config/network as below?
[04-13_05:13:06:540] config interface wan
[04-13_05:13:06:540] 	option ifname	usb0.2
[04-13_05:13:06:540] 	option proto	dhcp
[04-13_05:13:06:540] should use "/sbin/ifstaus wan" to check usb0.2 's status?
[04-13_05:13:06:540] busybox udhcpc -f -n -q -t 5 -i usb0.2
[04-13_05:13:06:554] udhcpc (v1.23.2) started
[04-13_05:13:06:614] Sending discover...
[04-13_05:13:06:619] Sending select for 10.22.58.141...
[04-13_05:13:06:623] Lease of 10.22.58.141 obtained, lease time 7200
[04-13_05:13:06:629] udhcpc: ifconfig usb0.2 10.22.58.141 netmask 255.255.255.252 broadcast +
[04-13_05:13:06:638] udhcpc: setting default routers: 10.22.58.142

root@ZhuoTK:/# ifconfig usb0.2
usb0.2    Link encap:Ethernet  HWaddr 02:50:F4:00:00:00  
          inet addr:10.22.58.141  Mask:255.255.255.252
          inet6 addr: fe80::50:f4ff:fe00:0/64 Scope:Link
          UP RUNNING NOARP  MTU:1500  Metric:1
          RX packets:2 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:612 (612.0 B)  TX bytes:1064 (1.0 KiB)

root@ZhuoTK:/# ip ro show
default via 10.22.58.142 dev usb0.2 
10.22.58.140/30 dev usb0.2  proto kernel  scope link  src 10.22.58.141 
192.168.1.0/24 dev br-lan  proto kernel  scope link  src 192.168.1.251 

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=69.822 ms

