|
Replies:
33
-
Last Post:
Nov 13, 2009 6:29 AM
by: reivajhh
|
|
|
Posts:
154
From:
Registered:
8/13/07
|
|
|
|
Huawei e220
Posted:
Aug 17, 2007 3:06 PM
To: OpenSolaris » help
Cc: Communities » device drivers » discuss
|
|
Hi all,
Does anyone have the modem Huawei E220 working in Solaris? I know that in Linux this device had to be black listed to be recognize as a modem instead of a cd-rom.
When I plug it in I got this messages:
Aug 17 21:27:05 solaris-devx usba: [ID 912658 kern.info] USB 1.10 device (usb12d1,1003) operating at full speed (USB 1.x) on USB 1.10 root hub: device@2, usb_mid2 at bus a ddress 2 Aug 17 21:27:05 solaris-devx usba: [ID 349649 kern.info] HUAWEI Technologies Mobile Aug 17 21:27:05 solaris-devx genunix: [ID 936769 kern.info] usb_mid2 is /pci@0,0/pci1179,1@1d,1/device@2 Aug 17 21:27:05 solaris-devx genunix: [ID 408114 kern.info] /pci@0,0/pci1179,1@1d,1/device@2 (usb_mid2) online Aug 17 21:27:05 solaris-devx usba: [ID 349649 kern.info] usba: no driver found for interface 0 (nodename: 'interface') of HUAWEI Technologies Mobile Aug 17 21:27:05 solaris-devx usba: [ID 349649 kern.info] usba: no driver found for interface 1 (nodename: 'interface') of HUAWEI Technologies Mobile Aug 17 21:27:05 solaris-devx usba: [ID 912658 kern.info] USB 1.10 interface (usbif12d1,1003.config1.2) operating at full speed (USB 1.x) on USB 1.10 root hub: storage@2, s csa2usb1 at bus address 2 Aug 17 21:27:05 solaris-devx usba: [ID 349649 kern.info] HUAWEI Technologies Mobile Aug 17 21:27:05 solaris-devx genunix: [ID 936769 kern.info] scsa2usb1 is /pci@0,0/pci1179,1@1d,1/device@2/storage@2 Aug 17 21:27:05 solaris-devx genunix: [ID 408114 kern.info] /pci@0,0/pci1179,1@1d,1/device@2/storage@2 (scsa2usb1) online Aug 17 21:27:11 solaris-devx scsi: [ID 193665 kern.info] sd3 at scsa2usb1: target 0 lun 0 Aug 17 21:27:11 solaris-devx genunix: [ID 936769 kern.info] sd3 is /pci@0,0/pci1179,1@1d,1/device@2/storage@2/disk@0,0 Aug 17 21:27:13 solaris-devx genunix: [ID 408114 kern.info] /pci@0,0/pci1179,1@1d,1/device@2/storage@2/disk@0,0 (sd3) online Aug 17 21:27:13 solaris-devx genunix: [ID 408114 kern.info] /pci@0,0/pci1179,1@1d,1/device@2/storage@2/disk@0,0 (sd3) offline Aug 17 21:27:13 solaris-devx last message repeated 1 time Aug 17 21:27:13 solaris-devx genunix: [ID 408114 kern.info] /pci@0,0/pci1179,1@1d,1/device@2/storage@2 (scsa2usb1) offline Aug 17 21:27:13 solaris-devx last message repeated 1 time Aug 17 21:27:13 solaris-devx genunix: [ID 408114 kern.info] /pci@0,0/pci1179,1@1d,1/device@2 (usb_mid2) offline Aug 17 21:27:29 solaris-devx usba: [ID 912658 kern.info] USB 1.10 device (usb12d1,1003) operating at full speed (USB 1.x) on USB 1.10 root hub: device@2, usb_mid2 at bus a ddress 2
Is there a way to force this device to became a modem? Or is there a driver?
Thanks in advance Alexandre Alves
|
|
|
Posts:
4
From:
GB
Registered:
10/3/07
|
|
|
|
Re: Huawei e220
Posted:
Oct 3, 2007 1:23 PM
in response to: ether.pt
To: Communities » device drivers » discuss
|
|
Looks like I have the same problem ...
Are you aware if there been any progress yet on getting the 3G usb modem to work?
I run : $ /usr/sbin/smbios | egrep -i "Man|Prod" Manufacturer: TOSHIBA Product: TECRA M5 Manufacturer: TOSHIBA Product: Portable PC Manufacturer: TOSHIBA Manufacturer: Intel Corporation Manufacturer: CE00 Manufacturer: 0000
$ cat /etc/release Solaris Nevada snv_65 X86 Copyright 2007 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms. Assembled 21 May 2007 $
When I attach the 'usb 3G modem' at this stage, I also get a 'storage' device/s configured.
Oct 2 17:19:38 iwishthiswasasunray usba: [ID 912658 kern.info] USB 1.10 device (usb12d1,1003) operating at full speed (USB 1.x) on USB 1.10 root hub: storage@1, scsa2usb3 at bus address 2 Oct 2 17:19:38 iwishthiswasasunray usba: [ID 349649 kern.info] HUAWEI Technologies Mobile Oct 2 17:19:38 iwishthiswasasunray genunix: [ID 936769 kern.info] scsa2usb3 is /pci@0,0/pci1179,1@1d/storage@1 Oct 2 17:19:38 iwishthiswasasunray genunix: [ID 408114 kern.info] /pci@0,0/pci1179,1@1d/storage@1 (scsa2usb3) online Oct 2 17:19:50 iwishthiswasasunray scsi: [ID 193665 kern.info] sd4 at scsa2usb3: target 0 lun 0 Oct 2 17:19:50 iwishthiswasasunray genunix: [ID 936769 kern.info] sd4 is /pci@0,0/pci1179,1@1d/storage@1/disk@0,0 Oct 2 17:21:44 iwishthiswasasunray genunix: [ID 408114 kern.info] /pci@0,0/pci1179,1@1d/storage@1/disk@0,0 (sd4) online Oct 2 17:45:31 iwishthiswasasunray genunix: [ID 408114 kern.info] /pci@0,0/pci1179,1@1d/storage@1/disk@0,0 (sd4) offline Oct 2 17:45:31 iwishthiswasasunray last message repeated 1 time Oct 2 17:45:31 iwishthiswasasunray genunix: [ID 408114 kern.info] /pci@0,0/pci1179,1@1d/storage@1 (scsa2usb3) offline Oct 2 17:45:56 iwishthiswasasunray usba: [ID 912658 kern.info] USB 1.10 device (usb12d1,1003) operating at full speed (USB 1.x) on USB 1.10 root hub: storage@1, scsa2usb2 at bus address 2
I suspect it is because there is actually an integrated usb filesystem with the software/drivers required for windoze.
I configured the 'ugen' driver for this device with the "usb12d1,1003" which appeared in the messages file when I attached the device, as I suspect is being suggested at http://blogs.sun.com/vita78/entry/eurotel_data_expres_cdma_v? but I can't make most of it although it looks like it works using the ugen driver for that config though?
I'm not sure where to go from here (usb unfamiliar) I guess I would expect to see a serial device I could 'tip' to? I haven't even established whether 'any' usb 3G modems work under any release of Solaris?
Anyhow this device does work under Windoze (on the same laptop) and a couple of colleagues have the same 'usb 3G modem' working on their mac laptops (BSD unix).
Unfortunately, until I get this working I will need to continue to be restricted to dial-up (and associated speeds) while on-site at our customer (not very impressive for Solaris).
Any help appreciated.
Message was edited by: robl
Message was edited by: robl
|
|
|
|
Posts:
4
From:
GB
Registered:
10/3/07
|
|
|
|
Re: Huawei e220
Posted:
Oct 22, 2007 12:01 AM
in response to: robl
To: Communities » device drivers » discuss
|
|
Okay,
I had some success with this a couple of weeks back however never got a chance to post my observations. I did noticed an RFE on SunSolve for this has been submitted for this device, however I'm not sure of the progress status.
Before making any changes, I located the 'product.vendor' strings from the /var/adm/messages file (they appear when plugging in the device) and noticed the device was associating with the 'scsa2usb' driver and created devices like /dev/usb/mass-storage0 and the /dev/usb/vendor.product/0/ files (if I remember correctly there was a 'storage' driver in the device path). I'll mention that, as was previously suggested (a workaround required to get this device to work with linux, was to blacklist the storage component then hope the serial devices will be configured?), I expect an appropriate 'exclude' directive in the /etc/system may achieve this or a fiddle with /kernel/drv/scsa2usb.conf (or whatever driver is being loaded), however I never did attempt this approach.
I then tried using the 'ugen' usb driver (which some folks appeared to have working - at a couple of forums). Using the 'vendor.product' strings from the /var/adm/messages files (usb12d1,1003), I used the 'add_drv' command to associated the 'ugen' driver in the appropriate /etc/driver_aliases, /etc/name_to_major, /etc/minor_perm, /etc/path_to_inst files. Solaris created devices under /dev/usb/vendor.product/?/ (12d1.1003 devices) ? depending which port I plugged the usb modem into. I attempted connecting anyway with the pppd 'notty' command config suggested by others that had it working, however I was never successful - not sure where I was going wrong (not much help from '/etc/ppp/connect-errors', probably the devices were incorrect - still had 'storage' in the device path).
I subsequently tried the 'usb_mid' driver and also booting 32/64 bit modes without success (although the devices looked better - ie. no 'storage' in the path for the /dev/usb/12d1.1003/0/ files however the pppd notty failed with the error 'Connect script failed' in the messages file. Out of desperation - trying to get a serial device which would behave as I expected (ie. would work with the 'tip' command or 'pppd' and no notty option), I tried using mknod with ttyACM0 and the 'usbsacm' module (as may have worked for linux but of course Solaris takes a different approach to driver/module device association).
I came across VTBcdmacz.pkg package too ... I needed to add the 'product.vendor' detail (eg. my $VODAFONEID="usb12d1,1003";) to the relative scripts (eg. /usr/sbin/cdmactl) however it turned out to be another attempt with the 'ugen' driver - it introduced a binary file /usr/lib/cdma/cdmad (I also found the ppp script strings helpful though), unfortunately I was not successful with this either.
Eventually I removed previously attempted driver associations and tried the 'usbsacm' driver (SUNWuacm was already installed on the build I have installed) by running the 'update_drv' command - This time I did have some success!! 'cfgadm -alv' showed the device as expected The 'serial' devices now appeared under the /dev/term & /dev/cua directories (three of them) I could 'tip /dev/term/0' and a 'ati' returned the "Manufacturer: huawei, Model: E220, etc.) to confirm (I could tip to all three of them although the first is the one you will need to use). At this stage AT&F, ATE1, ATD*99***16# gave me a 'CONNECT' (GPRS mode and I'm not sure whether the stings are correct to utilise the device most cost effectively and with the optimum network?). If you move the modem to a different usb port, it is likely you will need to update files accordingly.
I then configured the required files under /etc/ppp/peers/ & /etc/ppp with the required entries. I used some linux ppp connect scripts I located on the internet as a template (a fair amount of examples were documented). Soon I was able to use the 'pppd call vodafone debug' command working and had a 'sppp0' interface configured - debug only works with the 'nodetach' set in /etc/ppp/peers/vodafone. I was able to get some modem command strings from a log file on the other OS under which the vendor had provided drivers etc. for. Once the interface was up, I also found I needed to add 'dns' to the /etc/nsswitch.conf and add a link from the /etc/ppp/resolv.conf to /etc. Note. Some of the vodafone network infrastructure doesn't respond to 'ping' (probably configured this way) so use an 'ip address' of something else you know exists for testing connectivity.
NOTE: It seems you need to have the device attached when you boot AND that that boot is a reconfiguration reboot - note. 'touch /reconfigure' doesn't seem to do the trick, adding a "-r" to the unix kernel entry on the appropriate grub boot manager menu line did it for me ("-v" may also help). I wonder if this may have changed things if I new this at the beginning (perhaps the 'ugen' driver approach would have worked?)
Although the device 'led' does seem to go from green to blue/violet on occasion, I'm not sure it is configured optimally (I suspect the appropriate AT command strings will need to be configured).
I guess a few improvements can still be made to this configuration, if anyone progresses further please post progress. HSDPA HUAWEI usb modem E220 Vodafone 3G UMTS vmclite ACM CDMA AT+CGDCONT were some of the search strings which helped me locate examples (and may help others locate this).
Below is the configuration which I have working ...
/root # prtdiag System Configuration: TOSHIBA TECRA M5 BIOS Configuration: TOSHIBA Version 3.20 12/26/2006
==== Processor Sockets ====================================
Version Location Tag -------------------------------- -------------------------- uFC-PGA Socket
==== Memory Device Sockets ================================
Type Status Set Device Locator Bank Locator ------- ------ --- ------------------- -------------------- DDR2 in use - DIMM 0 CSA 0 & 1 DDR2 empty - DIMM 1 CSA 2 & 3
==== On-Board Devices ===================================== MODEM USB VIDEO ETHERNET SOUND WIRELESS LAN BLUETOOTH 1394
==== Upgradeable Slots ====================================
ID Status Type Description --- --------- ---------------- ---------------------------- 1 in use PCMCIA PCMCIA0 1 in use other SD CARD 1 in use PCI Express EXPRESS CARD /root # /usr/X11/bin/scanpci -v | grep -i usb Intel Corporation 82801G (ICH7 Family) USB UHCI #1 Intel Corporation 82801G (ICH7 Family) USB UHCI #2 Intel Corporation 82801G (ICH7 Family) USB UHCI #3 Intel Corporation 82801G (ICH7 Family) USB UHCI #4 Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller /root # dmesg | egrep -i "HUAWEI|usbsacm" Oct 21 18:47:29 iwishthiswasasunray usba: [ID 912658 kern.notice] USB 1.10 device (usb12d1,1003) operating at full speed (USB 1.x) on USB 1.10 root hub: device@1, usbsacm2 at bus address 2 Oct 21 18:47:29 iwishthiswasasunray usba: [ID 349649 kern.notice] HUAWEI Technologies Mobile Oct 21 18:47:29 iwishthiswasasunray genunix: [ID 936769 kern.notice] usbsacm2 is /pci@0,0/pci1179,1@1d/device@1 Oct 21 18:47:29 iwishthiswasasunray genunix: [ID 408114 kern.notice] /pci@0,0/pci1179,1@1d/device@1 (usbsacm2) online Oct 21 18:58:07 iwishthiswasasunray usba: [ID 912658 kern.notice] USB 1.10 device (usb12d1,1003) operating at full speed (USB 1.x) on USB 1.10 root hub: device@1, usbsacm2 at bus address 2 Oct 21 18:58:07 iwishthiswasasunray usba: [ID 349649 kern.notice] HUAWEI Technologies Mobile Oct 21 18:58:07 iwishthiswasasunray genunix: [ID 936769 kern.notice] usbsacm2 is /pci@0,0/pci1179,1@1d/device@1 /root # prtconf -D | egrep -i "hci|usb|usbsacm" scsi_vhci, instance #0 (driver name: scsi_vhci) pci1179,1, instance #0 (driver name: uhci) device, instance #2 (driver name: usbsacm) pci1179,1, instance #1 (driver name: uhci) device, instance #0 (driver name: usb_mid) pci1179,1, instance #2 (driver name: uhci) pci1179,1, instance #3 (driver name: uhci) pci1179,1, instance #0 (driver name: ehci) pci1179,1 (driver name: hci1394) /root # grep usbsacm /etc/minor_perm /etc/driver_aliases /etc/name_to_major /etc/path_to_inst /etc/minor_perm:usbsacm:* 0666 root sys /etc/driver_aliases:usbsacm "usb,class2.2.0" /etc/driver_aliases:usbsacm "usbif,class2.2" /etc/driver_aliases:usbsacm "usbc88,17da" /etc/driver_aliases:usbsacm "usb1410,1110" /etc/driver_aliases:usbsacm "usb12d1,1003" /etc/name_to_major:usbsacm 235 /etc/path_to_inst:"/pci@0,0/pci1179,1@1d/storage@1" 3 "usbsacm" /etc/path_to_inst:"/pci@0,0/pci1179,1@1d/device@1" 2 "usbsacm" /etc/path_to_inst:"/pci@0,0/pci1179,1@1d,3/storage@1" 1 "usbsacm" /etc/path_to_inst:"/pci@0,0/pci1179,1@1d,3/device@1" 0 "usbsacm" /root # modinfo | grep -w usbsacm 99 fffffffff802d000 4c88 235 1 usbsacm (USB Serial CDC ACM driver 1.1) /root # ls -LlartR /dev 2>&1 | grep -w 235 crw-r--r-- 1 root sys 235, 32 Oct 19 07:32 0 crw-rw-rw- 1 root sys 235, 34 Oct 21 18:58 2 crw-rw-rw- 1 root sys 235, 33 Oct 21 18:58 1 crw-rw-rw- 1 root sys 235, 131106 Oct 21 18:58 2 crw-rw-rw- 1 root sys 235, 131105 Oct 21 18:58 1 crw-rw-rw- 1 root sys 235, 131104 Oct 21 18:58 0 /root # prtconf -Dv | grep 1003 value=00001003 value='usb12d1,1003.0' + 'usb12d1,1003' + 'usb,device' /root # ls -lartR /dev/term /dev/term: total 22 lrwxrwxrwx 1 root root 29 Jun 29 10:59 a -> ../../devices/isa/asy@1,3f8:a lrwxrwxrwx 1 root root 64 Jun 29 10:59 pc0 -> ../../devices/pci@0,0/pci8086,2448@1e/pci1179,1@b/serial@0:pcser drwxr-xr-x 303 root sys 5120 Oct 14 18:05 .. lrwxrwxrwx 1 root root 45 Oct 21 18:48 0 -> ../../devices/pci@0,0/pci1179,1@1d/device@1:0 lrwxrwxrwx 1 root root 45 Oct 21 18:48 1 -> ../../devices/pci@0,0/pci1179,1@1d/device@1:1 lrwxrwxrwx 1 root root 45 Oct 21 18:48 2 -> ../../devices/pci@0,0/pci1179,1@1d/device@1:2 drwxr-xr-x 7 root root 512 Oct 21 18:58 . /root # ls -RLlart /dev/term /dev/term: total 12 crw-rw-rw- 1 uucp uucp 195, 0 Jun 29 10:43 pc0 crw-rw-rw- 1 root sys 106, 0 Jun 29 10:43 a drwxr-xr-x 303 root sys 5120 Oct 14 18:05 .. crw-r--r-- 1 root sys 235, 32 Oct 19 07:32 0 crw-rw-rw- 1 root sys 235, 34 Oct 21 18:58 2 crw-rw-rw- 1 root sys 235, 33 Oct 21 18:58 1 drwxr-xr-x 7 root root 512 Oct 21 18:58 . /root # /root # tip /dev/term/0 connected at OK ati Manufacturer: huawei Model: E220 Revision: 11.110.05.00.00 IMEI: * +GCAP: +CGSM,+FCLASS,+DS
OK ~ [EOT] /root #
/root # grep -v \# /etc/ppp/peers/vodafone term/0 460800 idle 7200 lock crtscts modem noauth defaultroute user removed password 1 connect "/usr/sbin/chat -Vv -f /etc/ppp/chat-vodafone" noipdefault usepeerdns novj nodetach /root # grep -v \# /etc/ppp/chat-vodafone ABORT BUSY ABORT 'NO CARRIER' ABORT ERROR REPORT CONNECT TIMEOUT 120 "" "AT&F" OK "ATZ" OK "ATE1" OK "AT+CPIN=?" OK "AT+COPS=?" OK "AT+COPS?" OK "AT&V" OK "AT+CSQ" OK 'AT+CFUN=?' OK 'AT+CGDCONT=?' OK 'AT+CPBR=?' OK 'AT+CPBS=?' OK 'AT+CGDCONT=16,"IP","internet"' SAY "Calling Vodafone n" TIMEOUT 60 CONNECT c /root # grep -v \# /etc/ppp/chap-secrets "removed" * "1" /root # grep dns /etc/nsswitch.conf /root # grep dns /etc/ppp/nsswitch.conf hosts: files dns /root # ls -lart /etc/ppp/resolv.conf -rw-r--r-- 1 root root 50 Oct 19 09:56 /etc/ppp/resolv.conf /root # ln -s /etc/ppp/resolv.conf /etc/resolv.conf /root # ls -lart /etc/resolv.conf lrwxrwxrwx 1 root root 20 Oct 21 20:02 /etc/resolv.conf -> /etc/ppp/resolv.conf /root # /root # pppd call vodafone debug serial speed set to 460800 bps connect option: '/usr/sbin/chat -Vv -f /etc/ppp/chat-vodafone' started (pid 1848) AT&F OK ATZ OK ATE1 OK AT+COPS=? +COPS: (2,"vodafone UK","voda UK","23415",0),(3,"Orange","Orange","23433",0),(3,"O2 - UK","O2 -UK","23410",0),(3,"T-Mobile UK","TMO UK","23430",0),,(0,1,3,4),(0,1,2)
OK AT+COPS? +COPS: 1,0,"vodafone UK",0
OK AT+CSQ +CSQ: 13,99
OK AT+CFUN=? +CFUN: (0-1,4-7),(0-1)
OK AT+CGDCONT=? +CGDCONT: (1-16),"IP",,,(0-1),(0-1) +CGDCONT: (1-16),"PPP",,,(0-1),(0-1)
OK AT+CPBR=? +CPBR: (1-250),40,14
OK AT+CPBS=? +CPBS: ("SM","DC","FD","LD","MC","ME","RC","EN","ON")
OKCalling Vodafone n AT+CGDCONT=16,"IP","internet" OK ATD*99***16# CONNECTchat: Oct 21 20:02:48 CONNECT Serial connection established. serial speed set to 460800 bps Using interface sppp0 Connect: sppp0 <--> /dev/term/0 sent [LCP ConfReq id=0x70 <asyncmap 0x0> <magic 0x38bda6dd> <pcomp> <accomp>] rcvd [LCP ConfReq id=0x0 <asyncmap 0x0> <auth chap MD5> <magic 0xe8fbd244> <pcomp> <accomp>] sent [LCP ConfAck id=0x0 <asyncmap 0x0> <auth chap MD5> <magic 0xe8fbd244> <pcomp> <accomp>] rcvd [LCP ConfAck id=0x70 <asyncmap 0x0> <magic 0x38bda6dd> <pcomp> <accomp>] sent [LCP Ident id=0x71 magic=0x38bda6dd "ppp-2.4.0b1 (Sun Microsystems, Inc.)"] Authenticating to peer with standard CHAP rcvd [LCP DiscReq id=0x1 magic=0xe8fbd244] rcvd [CHAP Challenge id=0x1 <a682a24276822fbbfc701e2c04c78b82>, name = "UMTS_CHAP_SRVR"] sent [CHAP Response id=0x1 <fbe89644a4f6912bff9ee4c868dc245a>, name = "removed"] rcvd [CHAP Success id=0x1 ""] sent [IPCP ConfReq id=0x42 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>] sent [CCP ConfReq id=0xa8 <deflate 15> <deflate(old#) 15> <bsd v1 15>] rcvd [LCP ProtRej id=0x2 80 fd 01 a8 00 0f 1a 04 78 00 18 04 78 00 15 03 2f] rcvd [IPCP ConfReq id=0x0] sent [IPCP ConfNak id=0x0 <addr 0.0.0.0>] rcvd [IPCP ConfNak id=0x42 <addr 10.*.*.*> <ms-dns1 10.203.65.68> <ms-dns2 10.203.65.68>] sent [IPCP ConfReq id=0x43 <addr 10.*.*.*> <ms-dns1 10.203.65.68> <ms-dns2 10.203.65.68>] rcvd [IPCP ConfAck id=0x43 <addr 10.*.*.*> <ms-dns1 10.203.65.68> <ms-dns2 10.203.65.68>] rcvd [IPCP ConfReq id=0x1] sent [IPCP ConfAck id=0x1] Peer refused to provide his address; assuming 192.168.1.1 local IP address 10.*.*.* remote IP address 192.168.1.1 primary DNS address 10.203.65.68 secondary DNS address 10.203.65.68 ^Z[1] + Stopped (SIGTSTP) pppd call vodafone debug /root # bg [1] pppd call vodafone debug& /root # /root # ifconfig -a lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1 inet 127.0.0.1 netmask ff000000 sppp0: flags=10010008d1<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST,IPv4,FIXEDMTU> mtu 1500 index 2 inet 10.*.*.* --> 192.168.1.1 netmask ff000000 ether 0:0:0:0:0:0 lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1 inet6 ::1/128 /root # /root # cp -p /etc/ppp/nsswitch.conf /etc/nsswitch.conf /root # ping yahoo.com ping: unknown host yahoo.com /root # ping 216.109.112.135 216.109.112.135 is alive /root #
|
|
|
|
Posts:
154
From:
Registered:
8/13/07
|
|
|
|
Re: Huawei e220
Posted:
Nov 22, 2007 10:17 AM
in response to: robl
To: Communities » device drivers » discuss
|
|
Hi,
Finally I got the chance to test this again based on the reply of robl, and I've it working now.
In my case it was only needed to add in
1. /etc/driver_aliases usbsacm "usb12d1,1003" 2. reboot 3. after poweron I've plugged the usb modem 4. checked messages /var/adm/messages
Nov 22 18:02:49 zuzithus usba: [ID 912658 kern.info] USB 1.10 device (usb12d1,1003) operating at full speed (USB 1.x) on USB 1.10 root hub: device@2, usbsacm2 at bus address 2 Nov 22 18:02:49 zuzithus usba: [ID 349649 kern.info] HUAWEI Technologies Mobile Nov 22 18:02:49 zuzithus genunix: [ID 936769 kern.info] usbsacm2 is /pci@0,0/pci1179,1@1d,1/device@2 Nov 22 18:02:49 zuzithus genunix: [ID 408114 kern.info] /pci@0,0/pci1179,1@1d,1/device@2 (usbsacm2) online
NOTE: If it appears usbsacm2 all good to go. If it appears usbsacm0 you'll have to unplug and plug it back again until you get usbsacm2.
5. Configure /etc/ppp/peers/<isp> 6. Configure chat-<isp> as stated in previous post 7. pppd call <isp> bash-3.00# pppd call kanguru AT&F OK ATZ OK ATE1 OK AT+CPIN=? OK AT+COPS=? +COPS: (1,"P OPTIMUS","OPTIM","26803",0),(2,"P OPTIMUS","OPTIM","26803",2),(3,"vodafone P","voda P","26801",0),(3,"Telecomunicacoes","P TMN","26806",0),(3,"vodafone P","voda P","26801",2),,(0,1,3,4),(0,1,2)
OK AT+COPS? +COPS: 0,0,"P OPTIMUS",2
OK AT&V &C: 2; &D: 2; &F: 0; E: 1; L: 0; M: 0; Q: 0; V: 1; X: 0; Z: 0; S0: 0; S3: 13; S4: 10; S5: 8; S6: 2; S7: 50; S8: 2; S9: 6; S10: 14; S11: 95; +FCLASS: 0; +ICF: 3,3; +IFC: 2,2; +IPR: 115200; +DR: 0; +DS: 0,0,2048,6; +WS46: 12; +CBST: 0,0,1; +CRLP: (61,61,48,6,0),(61,61,48,6,1),(240,240,52,6,2); +CV120: 1,1,1,0,0,0; +CHSN: 0,0,0,0; +CSSN: 0,0; +CREG: 0; +CGREG: 0; +CFUN:; +CSCS: "IRA"; +CSTA: 129; +CR: 0; +CRC: 0; +CMEE: 2; +CGDCONT: (1,"IP","myconnection","0.0.0.0",0,0),(16,"IP","internet","0.0.0.0",0,0) ; +CGDSCONT: ; +CGTFT: ; +CGEQREQ: (1,2,0,0,0,0,2,0,"0E0","0E0",3,0,0),(2,2,0,0,0,0,2,0,"0E0","0E0",3,0,0),(3,2,0, 0,0,0,2,0,"0E0","0E0",3,0,0),(4,2,0,0,0,0,2,0,"0E0","0E0",3,0,0),(5,2,0,0,0,0,2, 0,"0E0","0E0",3,0,0),(6,2,0,0,0,0,2,0,"0E0","0E0",3,0,0),(7,2,0,0,0,0,2,0,"0E0", "0E0",3,0,0),(8,2,0,0,0,0,2,0,"0E0","0E0",3,0,0),(9,2,0,0,0,0,2,0,"0E0","0E0",3, 0,0),(10,2,0,0,0,0,2,0,"0E0","0E0",3,0,0),(11,2,0,0,0,0,2,0,"0E0","0E0",3,0,0),( 12,2,0,0,0,0,2,0,"0E0","0E0",3,0,0),(13,2,0,0,0,0,2,0,"0E0","0E0",3,0,0),(14,2,0 ,0,0,0,2,0,"0E0","0E0",3,0,0),(15,2,0,0,0,0,2,0,"0E0","0E0",3,0,0),(16,2,0,0,0,0 ,2,0,"0E0","0E0",3,0,0) ; +CGEQMIN: ; +CGQREQ: ; +CGQMIN: ; +CGEREP: 0,0; +CGDATA: "PPP"; +CGCLASS: "A"; +CGSMS: 3; +CSMS: 0; +CMGF: 0; +CSCA: "+35193121314",145; +CSMP: ,,0,0; +CSDH: 0; +CSCB: 0,"",""; +FDD: 0; +FAR: 0; +FCL: 0; +FIT: 0,0; +ES: ,,; +ESA: 0,,,,0,0,255,; +CMOD: 0; +CVHU: 1; +CPIN: ^?^?^?^?^?^?^?^?,^?^?^?^?^?^?^?^?; +CMEC: 0,0,0; +CKPD: 1,1; +CGATT: 1; +CGACT: 0; +CPBS: "SM"; +CPMS: "SM","SM","SM"; +CNMI: 0,0,0,0,0; +CMMS: 2; +FTS: 0; +FRS: 0; +FTH: 3; +FRH: 3; +FTM: 96; +FRM: 96; +CCUG: 0,0,0; +COPS: 0,0,""; +CUSD: 0; +CAOC: 1; +CCWA: 0; +CPOL: 0,2,""; +CTZR: 0; +CLIP: 0; +COLP: 0; +CLIR: 0; ^PORTSEL: 0; ^CPIN: ^?^?^?^?^?^?^?^?,^?^?^?^?^?^?^?^?; ^ATRECORD: 0; ^FREQLOCK: 12485836,1162820144
OK AT+CSQ +CSQ: 5,99
OK AT+CFUN=? +CFUN: (0-1,4-7),(0-1)
OK AT+CGDCONT=? +CGDCONT: (1-16),"IP",,,(0-2),(0-4) +CGDCONT: (1-16),"PPP",,,(0-2),(0-4) +CGDCONT: (1-16),"IPV6",,,(0-2),(0-4)
OKdone !!!! AT+CPBR=? +CPBR: (1-250),40,14
OK AT+CPBS=? +CPBS: ("SM","DC","FD","LD","MC","ME","RC","EN","ON")
OKCalling kanguru n AT+CGDCONT=16,"IP","internet" OK ATD*99# CONNECTchat: Nov 22 18:04:23 CONNECT Serial connection established. Using interface sppp0 Connect: sppp0 <--> /dev/term/0 local IP address 62.169.102.15 remote IP address 192.168.1.1 primary DNS address 62.169.67.164 secondary DNS address 62.169.67.171
8. Edit /etc/resolv.conf to put the correct nameservers and off we go :)
Regards Ether
|
|
|
|
Posts:
2
From:
Registered:
1/25/08
|
|
|
|
Re: Huawei e220
Posted:
Jan 25, 2008 1:42 AM
in response to: ether.pt
To: Communities » device drivers » discuss
|
|
After finally managing to play with both my laptop and a colleague's modem (I have a PCMCIA version) I finally got it to work.
Other than what people have said above, I have excluded the USB storage driver in /etc/system thus: exclude: drv/scsa2usb
Clearly this is not great but the USB modem now works more reliably, no more unplugging and replugging, no boot -r required anymore.
I ran into one further issue which I didn't dig into too much: When originally using my colleague's USB modem, I left his SIM in. This resulted in a connect but I didn't get an IP address. I swapped over to my SIM and "it just worked", ie. connect and IP address. Apparently there may be some sort of setting on the SIM which may need to be changed/set for this to work but I have not had any time to work out what it might be.
|
|
|
|
Posts:
154
From:
Registered:
8/13/07
|
|
|
|
Re: Huawei e220
Posted:
Jan 25, 2008 1:52 AM
in response to: bautsch
To: Communities » device drivers » discuss
|
|
Hi Bautsch,
About that question of the SIM, it might be if the first sim had to introduce the code to function, and with your SIM you have it memorized.
Regards Ether.pt
|
|
|
|
Posts:
154
From:
Registered:
8/13/07
|
|
|
|
Re: Huawei e220
Posted:
Apr 16, 2008 1:25 PM
in response to: ether.pt
To: Communities » device drivers » discuss
|
|
HI all,
I had this working with one provider and now I've changed provider. I changed the configuration files to reflect the isp change. But now I'm having a issue. The first step is working quite well but in the end ... fails
Does anyone has a solution for this?????
Thanks a lot sent [LCP TermReq id=0xed "No network protocols running"] sent [LCP TermReq id=0xee "No network protocols running"]
root @ zuzithus$ pppd call vodafone nodetach debug serial speed set to 115200 bps connect option: '/usr/bin/chat -Vv -f /etc/ppp/chat-vodafone' started (pid 5419) AT&F OK ATZ OK ATE1 OK AT+COPS=? +COPS: (1,"vodafone P","voda P","26801",0),(2,"vodafone P","voda P","26801",2),(1,"P OPTIMUS","OPTIM","26803",2),(1,"Telecomunicacoes","P TMN","26806",2),(1,"P OPTIMUS","OPTIM","26803",0),(1,"Telecomunicacoes","P TMN","26806",0),,(0,1,3,4),(0,1,2)
OK AT+COPS? +COPS: 0,0,"vodafone P",2
OK AT&V &C: 2; &D: 2; &F: 0; E: 1; L: 0; M: 0; Q: 0; V: 1; X: 0; Z: 0; S0: 0; S3: 13; S4: 10; S5: 8; S6: 2; S7: 50; S8: 2; S9: 6; S10: 14; S11: 95; +FCLASS: 0; +ICF: 3,3; +IFC: 2,2; +IPR: 115200; +DR: 0; +DS: 0,0,2048,6; +WS46: 12; +CBST: 0,0,1; +CRLP: (61,61,48,6,0),(61,61,48,6,1),(240,240,52,6,2); +CV120: 1,1,1,0,0,0; +CHSN: 0,0,0,0; +CSSN: 0,0; +CREG: 0; +CGREG: 0; +CFUN:; +CSCS: "IRA"; +CSTA: 129; +CR: 0; +CRC: 0; +CMEE: 2; +CGDCONT: (1,"IP","internet.vodafone.pt","0.0.0.0",0,1),(2,"IP","internet.vodafone.pt","0 .0.0.0",0,1),(16,"IP","internet","0.0.0.0",0,0) ; +CGDSCONT: ; +CGTFT: ; +CGEQREQ: (1,2,0,0,0,0,2,0,"0E0","0E0",3,0,0),(2,2,0,0,0,0,2,0,"0E0","0E0",3,0,0),(3,2,0, 0,0,0,2,0,"0E0","0E0",3,0,0),(4,2,0,0,0,0,2,0,"0E0","0E0",3,0,0),(5,2,0,0,0,0,2, 0,"0E0","0E0",3,0,0),(6,2,0,0,0,0,2,0,"0E0","0E0",3,0,0),(7,2,0,0,0,0,2,0,"0E0", "0E0",3,0,0),(8,2,0,0,0,0,2,0,"0E0","0E0",3,0,0),(9,2,0,0,0,0,2,0,"0E0","0E0",3, 0,0),(10,2,0,0,0,0,2,0,"0E0","0E0",3,0,0),(11,2,0,0,0,0,2,0,"0E0","0E0",3,0,0),( 12,2,0,0,0,0,2,0,"0E0","0E0",3,0,0),(13,2,0,0,0,0,2,0,"0E0","0E0",3,0,0),(14,2,0 ,0,0,0,2,0,"0E0","0E0",3,0,0),(15,2,0,0,0,0,2,0,"0E0","0E0",3,0,0),(16,2,0,0,0,0 ,2,0,"0E0","0E0",3,0,0) ; +CGEQMIN: ; +CGQREQ: ; +CGQMIN: ; +CGEREP: 0,0; +CGDATA: "PPP"; +CGCLASS: "A"; +CGSMS: 3; +CSMS: 0; +CMGF: 0; +CSCA: "+351911616161",145; +CSMP: ,,0,0; +CSDH: 0; +CSCB: 0,"",""; +FDD: 0; +FAR: 0; +FCL: 0; +FIT: 0,0; +ES: ,,; +ESA: 0,,,,0,0,255,; +CMOD: 0; +CVHU: 1; +CPIN: ^?^?^?^?^?^?^?^?,^?^?^?^?^?^?^?^?; +CMEC: 0,0,0; +CKPD: 1,1; +CGATT: 1; +CGACT: 0; +CPBS: "SM"; +CPMS: "SM","SM","SM"; +CNMI: 0,0,0,0,0; +CMMS: 2; +FTS: 0; +FRS: 0; +FTH: 3; +FRH: 3; +FTM: 96; +FRM: 96; +CCUG: 0,0,0; +COPS: 0,0,""; +CUSD: 0; +CAOC: 1; +CCWA: 0; +CPOL: 0,2,""; +CTZR: 0; +CLIP: 0; +COLP: 0; +CLIR: 0; ^PORTSEL: 0; ^CPIN: ^?^?^?^?^?^?^?^?,^?^?^?^?^?^?^?^?; ^ATRECORD: 0; ^FREQLOCK: 12481740,1162820144
OK AT+CSQ +CSQ: 9,99
OK AT+CFUN=? +CFUN: (0-1,4-7),(0-1)
OK AT+CGDCONT=? +CGDCONT: (1-16),"IP",,,(0-2),(0-4) +CGDCONT: (1-16),"PPP",,,(0-2),(0-4) +CGDCONT: (1-16),"IPV6",,,(0-2),(0-4)
OK AT+CPBR=? +CPBR: (1-250),40,16
OK AT+CPBS=? +CPBS: ("SM","DC","FD","LD","MC","ME","RC","EN","ON")
OKCalling VODAFONE
AT+CGDCONT=16,"IP","internet" OK ATD*99***16# CONNECTchat: Apr 16 21:21:51 CONNECT Serial connection established. serial speed set to 115200 bps Using interface sppp0 Connect: sppp0 <--> /dev/term/0 sent [LCP ConfReq id=0xeb <asyncmap 0x0> <magic 0x12fd5fc2> <pcomp> <accomp>] rcvd [LCP ConfReq id=0xe <asyncmap 0x0> <auth chap MD5> <magic 0xfbac6d> <pcomp> <accomp>] sent [LCP ConfAck id=0xe <asyncmap 0x0> <auth chap MD5> <magic 0xfbac6d> <pcomp> <accomp>] rcvd [LCP ConfAck id=0xeb <asyncmap 0x0> <magic 0x12fd5fc2> <pcomp> <accomp>] sent [LCP Ident id=0xec magic=0x12fd5fc2 "ppp-2.4.0b1 (Sun Microsystems, Inc.)"] Authenticating to peer with standard CHAP rcvd [LCP DiscReq id=0xf magic=0xfbac6d] rcvd [CHAP Challenge id=0x1 <e6f7283eea3cabf3a0a32c6f6496aadb>, name = "UMTS_CHAP_SRVR"] sent [CHAP Response id=0x1 <35c2920ce4856b04ee02891c38896813>, name = "removed"] rcvd [CHAP Success id=0x1 ""] sent [IPCP ConfReq id=0x19 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>] sent [CCP ConfReq id=0x82 <deflate 15> <deflate(old#) 15> <bsd v1 15>] rcvd [LCP ProtRej id=0x10 80 fd 01 82 00 0f 1a 04 78 00 18 04 78 00 15 03 2f] rcvd [IPCP ConfNak id=0x19 <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins1 10.11.12.13> <ms-wins2 10.11.12.14>] sent [IPCP ConfReq id=0x1a <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14>] sent [IPCP ConfReq id=0x1a <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14>] sent [IPCP ConfReq id=0x1a <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14>] sent [IPCP ConfReq id=0x1a <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14>] sent [IPCP ConfReq id=0x1a <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14>] sent [IPCP ConfReq id=0x1a <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14>] sent [IPCP ConfReq id=0x1a <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14>] sent [IPCP ConfReq id=0x1a <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14>] sent [IPCP ConfReq id=0x1a <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14>] sent [IPCP ConfReq id=0x1a <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14>] IPCP: timeout sending Config-Requests CCP: Down event in state Starting sent [LCP TermReq id=0xed "No network protocols running"] sent [LCP TermReq id=0xee "No network protocols running"] Connection terminated.
|
|
|
|
Posts:
154
From:
Registered:
8/13/07
|
|
|
|
Re: Huawei e220
Posted:
Apr 21, 2008 3:37 AM
in response to: ether.pt
To: Communities » device drivers » discuss
|
|
|
|
Hi all,
News about this working :) At least here in Portugal, I have two E220 working, I'm posting my config file for each. chat-kanguru and peers/kanguru for Optimus chat-vodafone and peers/vodafone for Vodafone (Thanks Lavrador :) )
for those that don't have the pin saved, at in the chat-* "OK AT+CPIN=<your pin>"
the major diference in the connections is the phone number (obviously) and the AT+CGDCONT=* you have to check both of them and configure according to your ISP provider.
Regards Ether.PT
|
|
|
|
Posts:
211
From:
BR
Registered:
6/16/05
|
|
|
|
Re: Huawei e220
Posted:
Apr 18, 2008 1:02 PM
in response to: ether.pt
To: Communities » device drivers » discuss
|
|
Hi all, Any progress in this? I am trying to recognize an Huawei E226 modem (seems to be the same as E220 in what concerns the USB side -- may be different in the UMTS side though).
After tweaking a lot with driver attachments, I came up with the following:
update_drv -a -i '"usbif12d1,1003.config1.0"' usbsacm update_drv -a -i '"usbif12d1,1003.config1.1"' usbsacm
If I subsequently do a reconfiguration boot (touch /reconfigure) then I get /dev/term/[1-6] and /dev/cua/[1-6]. I can tip to almost all of them (except 3 and 6 which say the port is busy) and get a reply to the ati command. However, still, prtconf -D shows these interfaces as "interface" rather than "modem" or "serial" while interface 2 is identified as "storage".
However, after unplugging the modem and replugging it, then the infamous storage@1 appears and I cannot see the modem interfaces again, unless I do another reconfiguration reboot.
I have also tried: update_drv -a -i '"usb12d1,1003"' usb_mid to try to force this device to be recognized as a multi interface one, but no success so far.
Anyone knows what is happening? Is this device a real multi interface USB device? Can I use all of the interfaces simultaneously?
Using SXCE snv_86.
Thanks in advance, Douglas
|
|
|
|
Posts:
154
From:
Registered:
8/13/07
|
|
|
|
Re: Huawei e220
Posted:
Apr 21, 2008 3:36 AM
in response to: d3atiq
To: Communities » device drivers » discuss
|
|
Hi,
I've a E220 but I have to do update_drv -a -i "usb21d1.1003". About the reconfiguration reboot, It happens as well with me. I still have to upgrade the firmware. but eveytime I want to use I have to plug it in in grub menu and wait until it boots, then a boot -rv.
And when I enter in solaris I have to devfsadm -Cv to see it creating /dev/term/[1-2] the 0 is there already·
After that is just a matter of dialing.
Regards Ether.pt
|
|
|
|
Posts:
26
From:
Registered:
5/31/07
|
|
|
|
Re: Huawei e220
Posted:
May 30, 2008 4:32 AM
in response to: ether.pt
To: Communities » device drivers » discuss
|
|
Hi Experts,
I have just tried about everything I can think of to get the E220 usb modem working. Please help.
My e220 is recognized and /dev/term/0 gets created as (usbsacm2). I configure /etc/ppp/peers/vodafone and /etc/ppp/chat-vodafone as the previous posts. When I connect "pppd call vodafone" the connection gets made and I have a new interface sppp0 10.x.x.x --> 192.168.1.1. Also default route 192.168.1.1 is added and /etc/ppp/resolv.conf is updated. I then copy /etc/ppp/resolv.conf to /etc/. Now when I nslookup www.sun.com all is cool.
Here comes the problem. When I start using my web browser or email it works for a couple of seconds/minutes and then just stop. When I do a ifconfig it hangs at interface sppp0 not showing the rest of the inet information. I had a look in the messages file, tried to truss the pppd call and snooped the sppp0 interface, tried different chat files as the post without any luck. I have also updated the E220 firmware to the latest but to no avail. Its like as soon as there is a little bit of load that the sppp0 interface looses its ip or hangs I don't know.
Please any ideas
Cheers Johnny
|
|
|
|
Posts:
154
From:
Registered:
8/13/07
|
|
|
|
Re: Huawei e220
Posted:
May 30, 2008 4:46 AM
in response to: jkoen
To: Communities » device drivers » discuss
Cc: Projects » wwan » discuss
|
|
Hi,
Actually I think we all are having a similar situation, unfortunately I still can't pin point where the problem is. For now I just have two possibilities:
1. network speed changes from 2g to 3g to 3,5 2. driver issue.
I had this working with usbsacm 1.0 modinfo |grep usbsacm 111 fffffffff8176000 4c98 209 1 usbsacm (USB Serial CDC ACM driver 1.2)
And since usbsacm 1.1 it's not working ... but to confirm this I'm getting a new HDD to install build 69 which has usbsacm 1.0 if I'm not mistaken.
I'll post my findings here later meanwhile, I'm putting wwan in cc to check if they have a solution or know about this situation.
Best Regards Ether.pt
|
|
|
|
Posts:
26
From:
Registered:
5/31/07
|
|
|
|
Re: Huawei e220
Posted:
Jun 1, 2008 6:41 AM
in response to: ether.pt
To: Communities » device drivers » discuss
|
|
Thanks for your reposonse Ether. Please keep us posted on the Build 69 trail.
Cheers Johnny
|
|
|
|
Posts:
26
From:
Registered:
5/31/07
|
|
|
|
Re: Huawei e220
Posted:
Jun 5, 2008 1:48 AM
in response to: ether.pt
To: Communities » device drivers » discuss
|
|
Hi Ether,
Have you had any luck with Build 69 and usbsacm 1.0?
Cheers Johnny
|
|
|
|
Posts:
154
From:
Registered:
8/13/07
|
|
|
|
Re: Huawei e220
Posted:
Jun 23, 2008 3:34 PM
in response to: jkoen
To: Communities » device drivers » discuss
|
|
Hi all,
Unfortunatelly I can't find the B69 :(. Anyway, I've keep some more testing on my side and I notice one thing that happens at least since b84,85,86,90 and 91.
When I connect to the internet wiht the device and having all properly configured, I can ping for "ever" any addres ... the problem comes when I start browsing ... if I have the page in cache it's quick (of course) but when it has to download several things it just hangs, doing a crtl+c on the pppd call doesn't solve the situation. I just got the sent [LCP TermReq id=0xed "No network protocols running"] after a while the pppd process is terminated but the modem connection is still up. Blue light on.
The only work around is to unplugged and plug back in the E220.
Regarding the drivers, I'm starting in thinking of doing then following ... go back Develeper Editon and test it, which has usbsacm 1.1 and a previous release of pppd.
Regards Ether.pt
|
|
|
|
Posts:
26
From:
Registered:
5/31/07
|
|
|
|
Re: Huawei e220
Posted:
Jun 24, 2008 6:55 AM
in response to: ether.pt
To: Communities » device drivers » discuss
|
|
Hi Ether,
I'm running Opensolaris 2008.05. I removed SUNWuacm which is usbsacm 1.2 version and installed SUNWuacm from B65 driver version 1.1 with the same result. I can make a connect but as soon as I start browsing etc my sppp0 interface drops the inet.
I have also installed the SUNWuacm from http://opensolaris.org/os/project/wwan/ driver version 1.3 with the same result.
Could you please confirm if you had it working with driver 1.0. I will then find it somewhere somehow install, test and update the forum.
Cheers Johnny
|
|
|
|
Posts:
26
From:
Registered:
5/31/07
|
|
|
|
Re: Huawei e220
Posted:
Jul 3, 2008 2:00 AM
in response to: ether.pt
To: Communities » device drivers » discuss
|
|
Hi Ether,
I have been looking high and low and cannot find the usbsacm 1.0 driver. The oldest snv build I could get my hands on was B59 which also has usbsacm 1.1. Now I'm stuck. My only other option to get internet connection on my laptop is if virtualbox had usb support then I could properbly get it working through Ubuntu or Windows which is not ideal and it doesn't look like virtualbox will have usb support soon.
But if I cannot get the E220 working some way on my laptop I will have to look at removing Opensolaris and go back to Ubuntu which I definitly don't want to do.
Please guys lets work together to find some sort of solution.
Thanks Johnny
|
|
|
|
Posts:
211
From:
BR
Registered:
6/16/05
|
|
|
|
Re: Huawei e220
Posted:
Jul 3, 2008 4:33 AM
in response to: jkoen
To: Communities » device drivers » discuss
Cc: Projects » wwan » discuss
|
|
Have you tried the old usbsacm in the WWAN page? http://www.opensolaris.org/os/project/wwan/files/
Now some advice, if you don't mind...
Instead of giving up OpenSolaris, you can get yourself an Option GlobeSurfer II router (http://www.option.com/products/globesurfer_II_72.shtml), which will give you a wifi or ethernet connection, and build upon the myriad of networking drivers that are already available and use nwam to get you connected automatically.
This is not to say you shouldn't pursue the solution to this problem, but I have gone through much of this long ago with a KPC650 EVDO card until I noticed that hacking OpenSolaris is a lot of fun but I needed Internet access quickly for other business. Then I bought a Kyocera KR1 wireless router to take care of all the PPP stuff and give me easy access through an ethernet/wifi interface.
USB modems are having a good start, but there's a long way until they will actually be easy to use.
-- Douglas
|
|
|
|
Posts:
26
From:
Registered:
5/31/07
|
|
|
|
Re: Huawei e220
Posted:
Jul 3, 2008 6:50 AM
in response to: d3atiq
To: Communities » device drivers » discuss
|
|
Hi Douglas,
Thanks for your response and advise. Yes I have tried the older version on http://www.opensolaris.org/os/project/wwan/files which is driver 1.1.
I've found more info. SUNWuacm which is usbsacm driver was introduced into SVN in build 56. This version is 1.1 which does not help. So now I'm not sure where Ether.pt got driver 1.0 from?
I now have two options left. Option 1: I can go and buy a Wireless 3G router that supports my Huawei E220 device like what Douglas mentioned but which I will need to import "which will be very costly" as I live in South Africa and we only have Wireless routers with 3G PCMCIA connectivity available here.
Option 2: I have mailed the engineer that integrated the driver into svn. Hopefully he can help us.
Also I see that there has been a very sketchy bug reported bug id 6588968 but which does not clearly say where the bug occurs and there has not been an update or date specified when it will be resolved or what the current status on it is :((
I have also installed centos 5 in a brandz zone to try and get the e220 working through it, but again another problem you cannot assign devices in brandz 2.6 zones as its not supported
I'm affraid if I don't come right with Option 2 (Not due to lack of trying) I will have to go back to Ubuntu.
Thanks Johnny
|
|
|
|
Posts:
154
From:
Registered:
8/13/07
|
|
|
|
Re: Huawei e220
Posted:
Jul 3, 2008 6:52 AM
in response to: jkoen
To: Communities » device drivers » discuss
|
|
Hi all,
I've opened a bug, since searching the forums this doesn't happen only with the HUAWEI device but with other makers as well.
I got some feedback from the pppd guy and after providing information it seems it's not a pppd problem but more a usb driver problem. Don't know if it is with the usbsacm or with the usb driver itself.
Anyway ... I haven't got any feedback for sometime ... but if anyone wants .. here's the bug id: 6719062
Regards Ether.pt
|
|
|
|
Posts:
26
From:
Registered:
5/31/07
|
|
|
|
Re: Huawei e220
Posted:
Jul 3, 2008 6:56 AM
in response to: ether.pt
To: Communities » device drivers » discuss
|
|
Hi Ether.pt
I see that the bug that you reported is marked as incomplete and that they require more information.
Regards Johnny
|
|
|
|
Posts:
154
From:
Registered:
8/13/07
|
|
|
|
Re: Huawei e220
Posted:
Jul 3, 2008 7:08 AM
in response to: jkoen
To: Communities » device drivers » discuss
|
|
My last update on 26-06-2008:
Alexandre Alves writes: > Thank you for the answer and explanation. > I'll do as you suggested and check with the driver team as well.
OK. Sorry I can't be of much help here ... this is a bit of a frustrating issue.
> Is it possible for you to transfer this "bug" to the usb team? or is it > better to send the mail and maybe file a new one?
I'll transfer it.¨
Regards Ether.pt
|
|
|
|
Posts:
50
From:
TW
Registered:
1/16/06
|
|
|
|
Re: Huawei e220
Posted:
Oct 11, 2009 2:21 AM
in response to: d3atiq
To: Communities » device drivers » discuss
|
|
The tests that I have performed -
# Critical Problems
During the tests preformed, two critical problems have been found: 1. Power - My "Powered by Sun Notebook"'s USB ports doesn't provide enough power to E220. Need to use the two ports USB cable that comes with E220.
2. Time - The timing of connecting E220 to the computer is also very important. Because the system sometime recognized E220 as a storage, not a device. Need to use the two ports USB cable that comes with E220 to help.
# Connecting Device
This is the most important part, the primary goal is to have OpenSoalris use the correct device file via proper procedure performed -
1. Initial Power-on At the initial power-on, after turned on the power switch, don't boot OpenSolaris right away. Wait at the GRUB menu for at lease 15 seconds, let E220 has enough time to complete its boot procedure. The reason that I found this is because most of the time even with -rv boot parameter specified, the system still recognized E220 as a storage. After many tests, have found this phenomenon has nothing to do with settings (i.e. parameters in /etc/path_to_inst, /etc/path_to_inst.old, /etc/system). So tests have been performed to see if it related to time. The result is if OpenSolaris boot is delayed, event without -rv boot parameter, the system can recognized E220 as a device.
2. Plug and Play With the above experience and further experiments, have found - after OpenSolaris booted, at the first time attached the device, it will be recognized as a storage. At the second time attached the device, it will be recognized as a device. So the trick is using the two ports USB cable and connecting both USB connectors to the system. Then unplug the primary connector without unplugging the auxiliary connector that provides power. Connect the primary connector back. At the moment, the system will detect E220 correctly and use the correct device file.
The detail settings that I have - http://blog.xuite.net/evereasy/solarpower/27645846
|
|
|
|
Posts:
52
From:
JP
Registered:
8/16/08
|
|
|
|
|
Posts:
154
From:
Registered:
8/13/07
|
|
|
|
Re: Huawei e220
Posted:
Aug 19, 2008 8:41 AM
in response to: chototsu
To: Communities » device drivers » discuss
|
|
hi there,
Thanks for feedback on this. I haven't tested your patch, but I try just disabling the one core and it worked fine ... I'm using the b94 right now.
For those that don't know how to disable the core just do:
psrinfo -> gives the cpus psradm -f # -> # is the cpu number and this disables the CPU/CORE
Regards
|
|
|
|
Posts:
26
From:
Registered:
5/31/07
|
|
|
|
Re: Huawei e220
Posted:
Aug 20, 2008 4:29 AM
in response to: ether.pt
To: Communities » device drivers » discuss
|
|
Hi Ether.pt
I just want to confirm. So you can make a connection using the E220 and browse and download without the sppp0 interface dropping?
Cheers Johnny
|
|
|
|
Posts:
154
From:
Registered:
8/13/07
|
|
|
|
Re: Huawei e220
Posted:
Aug 20, 2008 6:14 AM
in response to: jkoen
To: Communities » device drivers » discuss
|
|
Hi Johnny,
Yep, that's correct as long as one core is disabled. This works for Huawei E220 and Huawei E620.
Best Regards
|
|
|
|
Posts:
26
From:
Registered:
5/31/07
|
|
|
|
Re: Huawei e220
Posted:
Aug 22, 2008 12:52 AM
in response to: ether.pt
To: Communities » device drivers » discuss
|
|
Hi Guys,
I disabled my one core and it worked. :) Fantastic. But what is the reason/issue that usbsacm only works with one core? And how did chototsu discover that using dual core was the issue?
Thanks Johnny
|
|
|
|
Posts:
154
From:
Registered:
8/13/07
|
|
|
|
Re: Huawei e220
Posted:
Aug 22, 2008 1:20 AM
in response to: jkoen
To: Communities » device drivers » discuss
|
|
Hi all,
I don't know what is the issue. But I have a bug filled and I'm providing information to help the diagnosis on that. But only now we're trying to find the problem for the single core only.
Best Regards Alexandre Alves
|
|
|
|
Posts:
52
From:
JP
Registered:
8/16/08
|
|
|
|
Re: Huawei e220
Posted:
Aug 22, 2008 4:28 AM
in response to: jkoen
To: Communities » device drivers » discuss
|
|
Hi. > But what is the reason/issue that usbsacm only works with one core?
I don't know. But it is a well known problem in Japan.
My patch changes Huawei E220 from storage into serial device. It enables hot plugging.
-- Kazuhiko Kobayashi My blog: http://blogs.yahoo.co.jp/chototsu_moushinp
|
|
|
|
Posts:
1
From:
Registered:
12/6/07
|
|
|
|
Re: Huawei e220
Posted:
Aug 22, 2008 6:40 AM
in response to: ether.pt
To: Communities » device drivers » discuss
|
|
Quick question... has anyone tried to see if it works when one of the cores is set no-intr? (psradm -i)
Thanks
Ian
|
|
|
|
Posts:
52
From:
JP
Registered:
8/16/08
|
|
|
|
Re: Huawei e220
Posted:
Aug 22, 2008 7:19 AM
in response to: ianmc81
To: Communities » device drivers » discuss
|
|
Hi Ian. > Quick question... has anyone tried to see if it works when one of the cores is set no-intr? (psradm -i) No, it doesn't work.
I read usbsacm.c, usbser.c. usbser.c makes two threads per one port. Read/write threads access the device at the same time on smp systems. Possibly it may be a cause.
-- Kazuhiko Kobayashi My blog: http://blogs.yahoo.co.jp/chototsu_moushinp
|
|
|
|
Posts:
52
From:
JP
Registered:
8/16/08
|
|
|
|
|
Posts:
2
From:
Registered:
5/26/08
|
|
|
|
Re: Huawei e220
Posted:
Nov 13, 2009 6:29 AM
in response to: chototsu
To: Communities » device drivers » discuss
|
|
I have a Huawei USB K3715 working fine with Vodafone Spain
Here is my conf:
uname -a -> 5.11 snv_126 i86pc i386 i86pc Solaris
/var/adm/messages:
---- Nov 13 12:19:18 Mazinger usba: [ID 912658 kern.info] USB 2.0 device (usb12d1,1001) operating at hi speed (USB 2.x) on USB 2.0 root hub: storage@5, usbsacm4 at bus address 2 Nov 13 12:19:18 Mazinger usba: [ID 349649 kern.info] HUAWEI Technology Mobile Nov 13 12:19:18 Mazinger genunix: [ID 936769 kern.info] usbsacm4 is /pci@0,0/pci1028,1c2@1d,7/storage@5 Nov 13 12:19:18 Mazinger genunix: [ID 408114 kern.info] /pci@0,0/pci1028,1c2@1d,7/storage@5 (usbsacm4) online Nov 13 12:19:48 Mazinger genunix: [ID 408114 kern.info] /pci@0,0/pci1028,1c2@1d,7/storage@5 (usbsacm4) removed
Nov 13 12:20:00 Mazinger usba: [ID 912658 kern.info] USB 2.0 device (usb12d1,1001) operating at hi speed (USB 2.x) on USB 2.0 root hub: device@5, usbsacm5 at bus address 2 Nov 13 12:20:00 Mazinger usba: [ID 349649 kern.info] HUAWEI Technology Mobile Nov 13 12:20:00 Mazinger genunix: [ID 936769 kern.info] usbsacm5 is /pci@0,0/pci1028,1c2@1d,7/device@5 Nov 13 12:20:00 Mazinger genunix: [ID 408114 kern.info] /pci@0,0/pci1028,1c2@1d,7/device@5 ----
# cat /etc/ppp/chat-vodafone-sp ---- ABORT BUSY ABORT 'NO CARRIER' ABORT ERROR REPORT CONNECT '' 'AT+CPIN?' TIMEOUT 5 READY-AT+CPIN=0000-OK 'AT&F' OK "ATZ" OK 'ATS7=60' #OK "ATE0V1" #OK "AT+CPIN=xxxx" -> change it OK "AT+COPS?" OK "AT&V" OK "AT+CSQ" OK 'AT+CFUN=?' OK 'AT+CGDCONT=?' #OK 'AT+CPBR=?' #OK 'AT+CPBS=?' OK 'AT+CGDCONT=1,"IP","ac.vodafone.es"' SAY "Calling Vodafone" OK 'ATDT*99***1#' TIMEOUT 120 CONNECT '' ----
# cat /etc/ppp/peers/vodafone-sp --- term/4 115200 connect "/usr/bin/chat -V -t15 -f /etc/ppp/chat-vodafone-sp" idle 7200 lock crtscts noipdefault modem user vodafone password vodafone noauth passive usepeerdns defaultroute connect-delay 6000 #remotename Vodafone novj nodetach -----
OUTPUT
--- # pppd debug call vodafone-sp serial speed set to 115200 bps connect option: '/usr/bin/chat -V -t15 -f /etc/ppp/chat-vodafone-sp' started (pid 5250) AT+CPIN? +CPIN: READY
OK AT&F OK ATZ OK ATS7=60 OK AT+COPS? +COPS: 0,2,"21401",2
OK AT&V &C: 2; &D: 2; &E: 1; &F: 0; &S: 0; &W: 0; E: 1; L: 0; M: 0; Q: 0; V: 1; X: 0; Z: 0; \S: 0; \V: 0; S0: 0; S2: 43; S3: 13; S4: 10; S5: 8; S6: 2; S7: 60; S8: 2; S9: 6; S10: 14; S11: 95; S30: 0; S103: 1; S104: 1; +FCLASS: 0; +ICF: 3,3; +IFC: 2,2; +IPR: 115200; +DR: 0; +DS: 0,0,2048,6; +WS46: 12; +CBST: 0,0,1; +CRLP: (61,61,48,6,0),(61,61,48,6,1),(240,240,52,6,2); +CV120: 1,1,1,0,0,0; +CHSN: 0,0,0,0; +CSSN: 0,0; +CREG: 0; +CGREG: 0; +CFUN:; +CSCS: "IRA"; +CSTA: 129; +CR: 0; +CRC: 0; +CMEE: 0; +CGDCONT: (1,"IP","ac.vodafone.es","0.0.0.0",0,0),(2,"IP","ac.vodafone.es","0.0.0.0",0,1) ; +CGDSCONT: ; +CGTFT: ; +CGEQREQ: (1,2,0,0,0,0,2,0,"0E0","0E0",3,0,0),(2,2,0,0,0,0,2,0,"0E0","0E0",3,0,0),(3,2,0, 0,0,0,2,0,"0E0","0E0",3,0,0),(4,2,0,0,0,0,2,0,"0E0","0E0",3,0,0),(5,2,0,0,0,0,2, 0,"0E0","0E0",3,0,0),(6,2,0,0,0,0,2,0,"0E0","0E0",3,0,0),(7,2,0,0,0,0,2,0,"0E0", "0E0",3,0,0),(8,2,0,0,0,0,2,0,"0E0","0E0",3,0,0),(9,2,0,0,0,0,2,0,"0E0","0E0",3, 0,0),(10,2,0,0,0,0,2,0,"0E0","0E0",3,0,0),(11,2,0,0,0,0,2,0,"0E0","0E0",3,0,0),( 12,2,0,0,0,0,2,0,"0E0","0E0",3,0,0),(13,2,0,0,0,0,2,0,"0E0","0E0",3,0,0),(14,2,0 ,0,0,0,2,0,"0E0","0E0",3,0,0),(15,2,0,0,0,0,2,0,"0E0","0E0",3,0,0),(16,2,0,0,0,0 ,2,0,"0E0","0E0",3,0,0) ; +CGEQMIN: ; +CGQREQ: ; +CGQMIN: ; ; +CGEREP: 0,0; +CGCLASS: "A"; +CGSMS: 1; +CSMS: 0; +CMGF: 0; +CSAS: 0; +CRES: 0; +CSCA: "+34607003110",145; +CSMP: ,,0,0; +CSDH: 0; +CSCB: 0,"",""; +FDD: 0; +FAR: 0; +FCL: 0; +FIT: 0,0; +ES: ,,; +ESA: 0,,,,0,0,255,; +CMOD: 0; +CVHU: 1; ; +CPIN: ,; +CMEC: 0,0,0; +CGATT: 1; +CGACT: 0; +CPBS: "SM"; +CPMS: "SM","SM","SM"; +CNMI: 0,0,0,0,0; +CMMS: 2; +FTS: 0; +FRS: 0; +FTH: 3; +FRH: 3; +FTM: 96; +FRM: 96; +CCUG: 0,0,0; +COPS: 0,2,""; +CUSD: 0; +CAOC: 1; +CCWA: 0; +CCLK: ""; +CLVL: 2; +CMUT: 0; +CPOL: 0,2,"",0,0,0; +CPLS: 0; +CTZR: 0; +CTZU: 0; +CLIP: 0; +COLP: 0; +CDIP: 0; +CLIR: 0; ^CVOICE: 0; ^DDSETEX: 0; ^PORTSEL: 0; ^CPIN: ,; ^FREQLOCK: 4936916,0; ^HSPA: 2^@
OK AT+CSQ +CSQ: 18,99
OK AT+CFUN=? +CFUN: (0-1,4-7),(0-1)
OKCalling Vodafone AT+CGDCONT=? +CGDCONT: (1-16),"IP",,,(0-2),(0-2) +CGDCONT: (1-16),"PPP",,,(0-2),(0-2) +CGDCONT: (1-16),"IPV6",,,(0-2),(0-2)
OK AT+CGDCONT=1,"IP","ac.vodafone.es" OK ATDT*99***1# CONNECTchat: Nov 13 12:24:49 CONNECT Serial connection established. serial speed set to 115200 bps Using interface sppp0 Connect: sppp0 <--> /dev/term/4 sent [LCP ConfReq id=0x7 <asyncmap 0x0> <magic 0x8431c99d> <pcomp> <accomp>] rcvd [LCP ConfReq id=0x0 <asyncmap 0x0> <auth chap MD5> <magic 0x6f60fd> <pcomp> <accomp>] sent [LCP ConfAck id=0x0 <asyncmap 0x0> <auth chap MD5> <magic 0x6f60fd> <pcomp> <accomp>] rcvd [LCP ConfAck id=0x7 <asyncmap 0x0> <magic 0x8431c99d> <pcomp> <accomp>] sent [LCP Ident id=0x8 magic=0x8431c99d "ppp-2.4.0b1 (Sun Microsystems, Inc.)"] Authenticating to peer with standard CHAP rcvd [LCP DiscReq id=0x1 magic=0x6f60fd] rcvd [CHAP Challenge id=0x1 <e8b347486a69745b0eddb437b4de1c43>, name = "UMTS_CHAP_SRVR"] sent [CHAP Response id=0x1 <7aae29c04abcc210a389919c599e3010>, name = "vodafone"] rcvd [CHAP Success id=0x1 ""] sent [IPCP ConfReq id=0x6e <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>] sent [CCP ConfReq id=0xd9 <deflate 15> <deflate(old#) 15> <bsd v1 15>] rcvd [LCP ProtRej id=0x2 80 fd 01 d9 00 0f 1a 04 78 00 18 04 78 00 15 03 2f] rcvd [IPCP ConfNak id=0x6e <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins1 10.11.12.13> <ms-wins2 10.11.12.14>] sent [IPCP ConfReq id=0x6f <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14>] rcvd [IPCP ConfNak id=0x6f <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins1 10.11.12.13> <ms-wins2 10.11.12.14>] sent [IPCP ConfReq id=0x70 <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14>] rcvd [IPCP ConfReq id=0x0] sent [IPCP ConfNak id=0x0 <addr 0.0.0.0>] rcvd [IPCP ConfNak id=0x70 <addr 77.209.205.11> <ms-dns1 212.73.32.3> <ms-dns2 212.73.32.67>] sent [IPCP ConfReq id=0x71 <addr 77.209.205.11> <ms-dns1 212.73.32.3> <ms-dns2 212.73.32.67>] rcvd [IPCP ConfReq id=0x1] sent [IPCP ConfAck id=0x1] rcvd [IPCP ConfAck id=0x71 <addr 77.209.205.11> <ms-dns1 212.73.32.3> <ms-dns2 212.73.32.67>] Peer refused to provide his address; assuming 192.168.1.1 local IP address 77.209.205.11 remote IP address 192.168.1.1 primary DNS address 212.73.32.3 secondary DNS address 212.73.32.67 ---------------
Working fine... without problems.
regards
Javier,
|
|
|
|
|