Problem with olinuxino wifi, android and USB 3G dongle

Started by tommi, January 11, 2013, 12:27:20 PM

Previous topic - Next topic

tommi

Hi,

does anyone have any experience using USB 3G dongle in android preinstalled with board. I have tried two different sticks with bit different results.

With Huawei 353s-2 (ports changed not to have CD/MMC):
- board recognizes the usb connection and runs modeswitch which is successfull
- Huawei has issue that ttyUSB is not created and I do it manually by
echo "12d1 1506" >/sys/bus/usb-serial/drivers/option1/new_id
also I make symbolic link to have modem in ttyUSB2 which is hardcoded in init.rc rild starting.
- then rild notices it and runs call-pppd in /etc/ppp/ which I have modified to use bit different chat parameters for my operator.
- from pppd log I can see that chat gets connect, and creation is also visible in logcat:
D/ViewRootImpl(  210): pckname = com.android.systemui
I/USB3G   (   87): event { 'add', '/devices/platform/sw-ehci.1/usb2/2-1/2-1.1', 'usb', '', 189, 140 }
I/USB3G   (   87): path : '/sys/devices/platform/sw-ehci.1/usb2/2-1/2-1.1'
I/USB3G   (   87): VID :size 5,vid_path '/sys/devices/platform/sw-ehci.1/usb2/2-1/2-1.1/idVendor',VID  '12d1
I/USB3G   (   87): '.
I/USB3G   (   87): PID :size 5,Pid_path '/sys/devices/platform/sw-ehci.1/usb2/2-1/2-1.1/idProduct',PID  '1506
I/USB3G   (   87): '.
I/USB3G   (   87): cmd=/system/etc/usb_modeswitch.sh /system/etc/usb_modeswitch.d/12d1_1506 &,
I/USB3G   (   87): excute ret : 0,err:No such file or directory
D/CAT     (  293): CatService: SIM ready. Reporting STK service running now...
D/MccTable(  293): updateMccMncConfiguration: mcc=244, mnc=5
D/MccTable(  293): locale set to null_fi
D/MccTable(  293): WIFI_COUNTRY_CODE set to fi
I/WifiService(  145): WifiService trying to set country code to fi with persist set to true
I/pppd    ( 2022): Starting pppd -tommi mod
I/pppd    ( 2023): PORT: /dev/ttyUSB2 115200
I/pppd    ( 2024): USER: (null)
I/pppd    ( 2025): PSWD: (null)
I/pppd    ( 2026): CONN: /system/bin/chat -v -s -S TIMEOUT 25 ABORT 'BUSY' ABORT 'ERROR' ABORT '+CME ERROR:' '' AT '' ATH0 ''  ATDT*99# CONNECT
I/pppd    ( 2027): DISC: /system/bin/chat -v -s -S ABORT 'BUSY' ABORT 'ERROR' ABORT '+CME ERROR:' '' +++ATH0
I/pppd    ( 2028): Serial connection established.
D/pppd    ( 2028): using channel 3
I/pppd    ( 2028): Using interface ppp0
I/pppd    ( 2028): Connect: ppp0 <--> /dev/ttyUSB2
D/pppd    ( 2028): sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x2ac99c4b> <pcomp> <accomp>]
D/pppd    ( 2028): sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x2ac99c4b> <pcomp> <accomp>]
D/pppd    ( 2028): sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x2ac99c4b> <pcomp> <accomp>]
D/pppd    ( 2028): sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x2ac99c4b> <pcomp> <accomp>]
D/pppd    ( 2028): sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x2ac99c4b> <pcomp> <accomp>]
D/pppd    ( 2028): sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x2ac99c4b> <pcomp> <accomp>]
D/pppd    ( 2028): sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x2ac99c4b> <pcomp> <accomp>]
D/pppd    ( 2028): sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x2ac99c4b> <pcomp> <accomp>]
I/pppd    ( 2028): Terminating on signal 15
D/pppd    ( 2028): sent [LCP TermReq id=0x2 "User request"]
D/pppd    ( 2028): sent [LCP TermReq id=0x3 "User request"]
D/dalvikvm(  293): GC_CONCURRENT freed 410K, 11% free 6218K/6919K, paused 2ms+4ms
I/pppd    ( 2028): Connection terminated.
W/Netd    (   78): No subsystem found in netlink event
I/pppd    ( 2028): Modem hangup
D/NetlinkEvent(   78): Unexpected netlink message. type=0x11
I/pppd    ( 2034): pppd exited with 16
I/pppd    ( 2039): Starting pppd -tommi mod
I/pppd    ( 2040): PORT: /dev/ttyUSB2 115200
I/pppd    ( 2041): USER: (null)
I/pppd    ( 2042): PSWD: (null)
I/pppd    ( 2043): CONN: /system/bin/chat -v -s -S TIMEOUT 25 ABORT 'BUSY' ABORT 'ERROR' ABORT '+CME ERROR:' '' AT '' ATH0 ''  ATDT*99# CONNECT
I/pppd    ( 2044): DISC: /system/bin/chat -v -s -S ABORT 'BUSY' ABORT 'ERROR' ABORT '+CME ERROR:' '' +++ATH0
D/dalvikvm(  145): GC_CONCURRENT freed 460K, 9% free 7934K/8711K, paused 3ms+5ms


And then connection is dropped. Does anyone has any idea what happens and what should be done? or any experiences which stick would work?



tommi

Answering my own question, but I found out following dongles working right away:

- Huawei E1552
- Huawei E230

And these ones do NOT work working:
- ZTE MF668A
- Huawei E353s-2
- Huawei E3276