Hi James,
I got dual SIM working by using “SLQSUIMSwitchSlot” SDK function.
For multi PDN, this is what I did:
at!netnum=4
echo 0 > /sys/module/GobiNet/parameters/iIPAlias
reset modem.
dmesg:
[ 4167.033264] GobiSerial 1-1.1:1.0: GobiSerial converter detected
[ 4167.043152] usb 1-1.1: GobiSerial converter now attached to ttyUSB0
[ 4167.064373] GobiSerial 1-1.1:1.2: GobiSerial converter detected
[ 4167.072922] usb 1-1.1: GobiSerial converter now attached to ttyUSB1
[ 4167.096634] GobiSerial 1-1.1:1.3: GobiSerial converter detected
[ 4167.104184] usb 1-1.1: GobiSerial converter now attached to ttyUSB2
[ 4167.129247] GobiNet 1-1.1:1.8 eth1: register ‘GobiNet’ at usb-xhci-hcd.0.auto-1.1, GobiNet Ethernet Device, ce:c7:0e:3e:ca:28
[ 4167.141780] QMAP Enabled
[ 4167.151194] USB Speed : USB 2.0
[ 4177.268448] creating qcqmi0
[ 4177.271630] RawIP mode
And I can see 1+4 network interface for cell modem: eth1 + gobi-0-0, gobi-0-1, gobi-0-2, gobi-0-3.
ifconfig -a
eth1 Link encap:Ethernet HWaddr CE:C7:0E:3E:CA:08
BROADCAST NOARP MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
gobi-0-0 Link encap:Ethernet HWaddr AE:23:EB:EE:17:70
NOARP MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
gobi-0-1 Link encap:Ethernet HWaddr CA:57:00:66:0F:8E
NOARP MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
gobi-0-2 Link encap:Ethernet HWaddr 8A:98:3E:0B:46:33
NOARP MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
gobi-0-3 Link encap:Ethernet HWaddr C6:A2:FC:6A:F2:A6
NOARP MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
However, the example demo you gave me uses lite-sdk. We are using regular SDK. Can you give me some sample code which uses regular SDK for mPDN?
To get data session, we are using “SLQSStartStopDataSession()” SDK function. In mPDN case, the SLQSStartStopDataSession function returns no error. And it got an session ID.
However, I cannot get dhcp address on it:
ifconfig eth1 up
ifconfig gobi-0-0 up
ifconfig gobi-0-1 up
ifconfig gobi-0-2 up
ifconfig gobi-0-3 up
udhcpc -i eth1
udhcpc -i gobi-0-0
udhcpc -i gobi-0-1
udhcpc -i gobi-0-2
udhcpc -i gobi-0-3
None of the 5 interfaces is able to get an DHCP address.
One more thing I should mention is that, for this test, we are using GobiNet version 2.50, and SDK version 4.0.11.
I will try to use an newer GobiNet version 2.53, and SDK version 4.0.15 later.
Thanks,