OpenSolaris

Discussions Communities Projects Download Source Browser

Home » OpenSolaris Forums » wwan » discuss

Thread: Huawei E220 HSDPA USB Modem

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 9 - Last Post: Nov 13, 2009 11:34 AM by: reivajhh
evereasy

Posts: 50
From: TW

Registered: 1/16/06
Huawei E220 HSDPA USB Modem
Posted: Oct 17, 2007 6:37 AM
To: Projects » wwan » discuss
  Click to reply to this thread Reply

Does the Huawei E220 HSDPA USB Modem work on OpenSolaris? Or if there is other alternatives (3G cards) that will work on OpenSolaris?

Huawei E220 HSDPA USB Modem
http://www.huawei.com/mobileweb/en/products/view.do?id=282

pwl

Posts: 144
From: AU

Registered: 5/18/05
Re: Huawei E220 HSDPA USB Modem
Posted: Oct 24, 2007 1:00 AM   in response to: evereasy
To: Projects » wwan » discuss
  Click to reply to this thread Reply

i was able to get my novatel hsdpa card recognised by opensolaris (b74, x86, 32-bit with the alternative cardbus driver - integrated cardbus resulting in hang)

i did have to manually specify to use the usbsacm driver:
# update_drv -a -i 'usb1410,1430' usbsacm
# devfsadm

i 've just connected to the device:

t# tip /dev/term/0
connected
atz
OK
ati
Manufacturer: Novatel Wireless Incorporated
Model: Merlin XU870 ExpressCard
Revision: 9.2.00.0-00 [2006-08-03 13:07:27]
IMEI: 011057000682366
+GCAP: +CGSM,+DS,+ES

OK


...which is very exciting. now i need to figure out how to dial & connect to the 'net :P

pwl

Posts: 144
From: AU

Registered: 5/18/05
Re: Huawei E220 HSDPA USB Modem
Posted: Oct 24, 2007 7:24 AM   in response to: pwl
To: Projects » wwan » discuss
  Click to reply to this thread Reply

whoohoo - i'm sending this via hsdpa (3g) wireless modem from opensolaris - sony vaio pcg-z1vgp laptop - opensolaris b74 - alternate cardbus driver - no vatel wirless Merlin XU870 3G HSDPA 3.6/7.2 Mbps ExpressCard - ('3' wireless broadband account: http://www.three.com.au)


in addition to connecting the card to the usbsacm driver (above) i did this:

# ln -s /dev/term/0 /dev/hsdpa

- created /etc/ppp/peers/3netconnect as below:

nodetach
/dev/hsdpa
230400
crtscts
holdoff 1
noauth
asyncmap 00000000
passive
defaultroute
usepeerdns
noccp
novj
lcp-echo-interval 0
connect '/usr/bin/chat -V -t15 -f /etc/ppp/3netaccess-chat'


and a chat script as below:

connect '/usr/bin/chat -V -t15 -f /etc/ppp/3netaccess-chat'
when:/etc/ppp/peers# cat ../3netaccess-chat
'ABORT' 'BUSY'
'ABORT' 'NO CARRIER'
'' 'AT'
'OK' 'ATD *99#'
CONNECT '\d\c'


my wireless broadband account doesn't use a username or password - it uses the SIM card for authentication

i added an /etc/ppp/ip-up script to copy the /etc/ppp/resolv.conf file into /etc/resolv.conf, and an /etc/ppp/ip-down script to restore the original resolv.conf

now all i want is a pretty front-end gui to pppd to turn the connection on & off

sparcdr

Posts: 1,032
From: US

Registered: 3/24/06
Re: Huawei E220 HSDPA USB Modem
Posted: Oct 24, 2007 7:24 AM   in response to: pwl

  Click to reply to this thread Reply

Cool, I can use this for my Novatel EX720 ExpressCard. (Uses USB mode ExpressCard, and therefore the same driver) James On Oct 24, 2007, at 2:24 PM, Peter Lees wrote: > whoohoo - i'm sending this via hsdpa (3g) wireless modem from > opensolaris > > sony vaio pcg-z1vgp laptop > opensolaris b74 > alternate cardbus driver > novatel wirless Merlin XU870 3G HSDPA 3.6/7.2 Mbps > ExpressCard > ('3' wireless broadband account: http://www.three.com.au)
>
> in addition to connecting the card to the usbsacm driver (above) i
> did this:
>
> # ln -s /dev/term/0 /dev/hsdpa
>
> - created /etc/ppp/peers/3netconnect as below:
> <code>
> nodetach
> /dev/hsdpa
> 230400
> crtscts
> holdoff 1
> noauth
> asyncmap 00000000
> passive
> defaultroute
> usepeerdns
> noccp
> novj
> lcp-echo-interval 0
> connect '/usr/bin/chat -V -t15 -f /etc/ppp/3netaccess-chat'
> </code>
>
> and a chat script as below:
> <code>
> connect '/usr/bin/chat -V -t15 -f /etc/ppp/3netaccess-chat'
> when:/etc/ppp/peers# cat ../3netaccess-chat
> 'ABORT' 'BUSY'
> 'ABORT' 'NO CARRIER'
> '' 'AT'
> 'OK' 'ATD *99#'
> CONNECT '\d\c'
> </code>
>
> my wireless broadband account doesn't use a username or password -
> it uses the SIM card for authentication
>
> i added an /etc/ppp/ip-up script to copy the /etc/ppp/resolv.conf
> file into /etc/resolv.conf, and an /etc/ppp/ip-down script to
> restore the original resolv.conf
>
> now all i want is a pretty front-end gui to pppd to turn the
> connection on & off
> --
> This messages posted from opensolaris.org
> _______________________________________________
> wwan-discuss mailing list
> wwan-discuss at opensolaris dot org
> http://mail.opensolaris.org/mailman/listinfo/wwan-discuss

_______________________________________________
wwan-discuss mailing list
wwan-discuss at opensolaris dot org
http://mail.opensolaris.org/mailman/listinfo/wwan-discuss


robspop

Posts: 10
From:

Registered: 10/2/08
Re: Huawei E220 HSDPA USB Modem
Posted: Oct 20, 2008 9:51 AM   in response to: pwl
To: Projects » wwan » discuss
Cc: OpenSolaris » help
  Click to reply to this thread Reply

Sorry, I'm pretty much of a novice at this stuff, so apologies if this is a daft question:

I found a blog on getting a huawei e169g to work with open solaris (at http://darkstar-solaris.blogspot.com/2008/10/huawei-e169-usb-umts-gprs-modem.html) which contained a link to your posting, and said to use your scripts. I've followed all instructions carefully. I can tip to the modem and get a response so it appears to be alive. However, tring to connect just results in a NO CARRIER message and script failure. I've tried adjusting timeouts, or sending the modem some extra configuration strings I got from a log of it running under windoze, but no success. I don't have any idea of how to solve the problem. I've noticed on another thread on this issue that you need to do a full reconfigure reboot each time you want to use the modem but, because tip works, I haven't done that. Do I need to?

Any suggestions gratefully received!

jabrewer

Posts: 813
From: US

Registered: 12/25/05
Re: Huawei E220 HSDPA USB Modem
Posted: Apr 28, 2009 4:16 PM   in response to: robspop
To: Projects » wwan » discuss
  Click to reply to this thread Reply

Can you submit a RFE http://www.opensolaris.org/bug/report.jspa and inclode the steps to reproduce.

d3atiq

Posts: 211
From: BR

Registered: 6/16/05
Re: Huawei E220 HSDPA USB Modem
Posted: Apr 20, 2008 6:46 AM   in response to: evereasy
To: Projects » wwan » discuss
  Click to reply to this thread Reply

I am also interested in having this modem working. 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 update_drv, I came up with the following:

update_drv -a -i '"usbif12d1,1003.config1.0"' usbsacm
update_drv -a -i '"usbif12d1,1003.config1.1"' usbsacm

(it seems that interface 2 is the mass storage device)

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, hotplugging doesn't work as expected. Only the storage interface gets attached to scsa2usb driver. The other interfaces are not attached.

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.

Cheers,
Douglas

(N.B. This message has been posted to the device drivers discussion, too. Sorry for the duplication, but I thought this forum would also profit from it.)

kberrah

Posts: 356
From: CH

Registered: 10/24/06
Re: Huawei E220 HSDPA USB Modem
Posted: May 7, 2009 6:59 AM   in response to: d3atiq
To: Projects » wwan » discuss
  Click to reply to this thread Reply

Hi,

have a look at this blog, it might help you.
http://my2ndhead.blogspot.com/2008/11/opensolaris-huawei-e220-swisscom-and.html

Karim

evereasy

Posts: 50
From: TW

Registered: 1/16/06
Re: Huawei E220 HSDPA USB Modem
Posted: Oct 11, 2009 2:15 AM   in response to: d3atiq
To: Projects » wwan » discuss
  Click to reply to this thread Reply

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 paramenter, 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

reivajhh

Posts: 2
From:

Registered: 5/26/08
Re: Huawei E220 HSDPA USB Modem
Posted: Nov 13, 2009 11:33 AM   in response to: evereasy
To: Projects » wwan » discuss
  Click to reply to this thread Reply

Hi,

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"
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,

Message was edited by: reivajhh




Terms of Use | Privacy | Trademarks | Copyright Policy | Site Guidelines
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Use.
Copyright © 1995-2005 Sun Microsystems, Inc.