( makgab | 2014. 11. 29., szo – 08:10 )

Ez viszont érdekes. Ugyanezt a SIM kártyát betettem egy Mobile Szélessávű USB Stickbe(!):

# apt-get install ppp wvdial usb-modeswitch

# létrejött a kapcsolódáskor /dev/ttyUSB0, /dev/ttyUSB1, /dev/ttyUSB2

./sakis3g connect --nostorage --pppd APN="internet" APN_USER="" APN_PASS="" CUSTOM_TTY="/dev/ttyAMA0" USBDRIVER="option" OTHER="USBMODEM" USBMODEM="19d2:2000" --debug

...
[10664] [20:48:46] Waiting for interface to go up (2 seconds passed).
[10664] [20:48:47] PID 13618 is still running.
[10664] [20:48:47] Interface ppp0 is up.
[10664] [20:48:47] Waiting for interface to go up (3 seconds passed).
[10664] [20:48:48] PID 13618 is still running.
Could not determine remote IP address: defaulting to 10.64.64.64
not replacing existing default route via 192.168.1.254
local IP address 100.66.23.31
remote IP address 10.64.64.64
primary DNS address 84.2.46.1
secondary DNS address 84.2.44.1
[10664] [20:48:48] Interface ppp0 is up.
[10664] [20:48:48] Default route through ppp0 is established.
[10664] [20:48:48] Really connected.
[10664] [20:48:48] PID 13618 is still running.
[10664] [20:48:48] Interface ppp0 is up.
[10664] [20:48:49] Default route through ppp0 is established.
[10664] [20:48:49] Really connected.
[10664] [20:48:49] Connection is established.
[10664] [20:48:49] Verbosing: 70% Fixing connection
[10664] [20:48:49] Running post-connection setup.
[10664] [20:48:49] Located "route" within PATH (/sbin/route).
[10664] [20:48:49] We are root already. Proceeding.
[10664] [20:48:49] Deleting default gateway 192.168.1.254.
/-------------------------------------------------------------------------------
[10664] [20:48:49] Will now run command: \'/sbin/route del default gw 192.168.1.254\'
/-------------------------------------------------------------------------------
\-------------------------------------------------------------------------------
[10664] [20:48:49] Command returned 0.
\-------------------------------------------------------------------------------
[10664] [20:48:49] Deleted all default gateways.
/-------------------------------------------------------------------------------
[10664] [20:48:49] Will now run command: \'/sbin/route add default gw 10.64.64.64\'
/-------------------------------------------------------------------------------
\-------------------------------------------------------------------------------
[10664] [20:48:49] Command returned 0.
\-------------------------------------------------------------------------------
[10664] [20:48:49] Added correct default gateway: 10.64.64.64.
/-------------------------------------------------------------------------------
[10664] [20:48:49] Will now run command: \'/bin/netstat -rn\'
/-------------------------------------------------------------------------------
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 10.64.64.64 0.0.0.0 UG 0 0 0 ppp0
10.64.64.64 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
\-------------------------------------------------------------------------------
[10664] [20:48:49] Command returned 0.
\-------------------------------------------------------------------------------
[10664] [20:48:49] Checking if required to fix DNS settings.
/-------------------------------------------------------------------------------
[10664] [20:48:49] Will now display contents of: \'/etc/resolv.conf\'
/-------------------------------------------------------------------------------
nameserver 84.2.46.1
nameserver 84.2.44.1
\-------------------------------------------------------------------------------
-rw-r--r-- 1 root root 42 nov 28 20:48 /etc/resolv.conf
\-------------------------------------------------------------------------------
[10664] [20:48:50] No need to fix DNS servers. Skipping it.
[10664] [20:48:50] Interface ppp0 is up.
[10664] [20:48:50] Default route through ppp0 is established.
[10664] [20:48:50] Really connected.
[10664] [20:48:50] Retrieved from /tmp/sakis3g.3gnet: "21630" - "T-Mobile H"
[10664] [20:48:50] Retrieved ISP ID from /tmp/sakis3g.3gnet: 21630
[10664] [20:48:50] Also retrieved ISP name: T-Mobile H
[10664] [20:48:50] Process ID 13618 is: pppd
[10664] [20:48:50] ISPID is set to: 21630
[10664] [20:48:50] It matches value retrieved from file.
[10664] [20:48:51] Loaded entries from files/operators.db:
21630:: T-Mobile HU T-Mobile Mobilinternet ff00ff internet:Internet:user:pass mms-westel:MMS:mms:pass http://www.t-mobile.at/Tico.ico
[10664] [20:48:51] ISPID: 21630 / ISPNAME: T-Mobile H / ISPTEXT: T-Mobile H
[10664] [20:48:51] Notify: MF626 connected to T-Mobile H (21630).
MF626 connected to T-Mobile H (21630).
[10664] [20:48:51] Following actors executed: connect
[10664] [20:48:52] Verbosing: 7% Cleaning
[10664] [20:48:52] Stopping operation with return status: 0
[10664] [20:48:52] Now executing traps.
[10664] [20:48:52] Executing trap "cleanscreen".
[10664] [20:48:52]
>>>>>>>>> If program is paused, you may freely press Ctrl+C. <<<<<<<<<
>>> This happens due to DEBUG being set. Connection will NOT drop. <<<

Elsőre elindult!! Csak nem értem egészen, ezzel miért megy. :)

(Ha a /boot/cmdline.txt fájlban nincs "console=ttyAMA0,115200", akkor létrejönnek a ttyUSB0,ttyUSB1,ttyUSB2 eszközök és így indítható:
./sakis3g connect --nostorage --pppd APN="internet" APN_USER="" APN_PASS="" CUSTOM_TTY="/dev/ttyUSB2" USBDRIVER="option" OTHER="USBMODEM" USBMODEM="19d2:2000" --debug)

--
G.