понедельник, 16 июля 2012 г.

Making Huawei e171 to work

Now it's OpenSuSE 12.1 and usb 3g modem from greatly loved Huawei of E171 model.

1. This stick recognized as sd storage at first. To make it work we need usb_modeswitch (I see no other way). It can be taken here:
http://www.draisberghof.de/usb_modeswitch/

Usual makeinstalling and usb is recognized as modem! (Even without replugging). I got 4 /dev/ttyUSB*, where * in (0,1,2,3).

2. Now, we want to make it work without usb_modeswitch in order to take this USB to any beer-drinking-linux-friend without usb_modeswitch installed.

we need minicom program installed.

type "minicom -s" in terminal, com-terminal is up, enter port settings, press "A" (to enter device) and enter /dev/ttyUSB0 here. Save settings as dfl end exit, modem then should be initialized. It may even report "ERROR', this was not much problem for me.

Press "Ctrl-A-Z" and enable local echo.

Input "ati0", if reported - then connection is ok. If not - try /dev/ttyUSB1 (2,3), it may help.

By the way, you may try to unlock your modem (in fact, if it's not e171), but you should google for it.


 AT^CARDLOCK?

Will tell you if your modem locked or not:

^CARDLOCK: 2,10,0

"2" on first place means "unlocked"
"10" means - 10 tries to unlock.



So, back to work - our aim is to disable cdrom mode at all. This is done by:
AT^U2DIAG=0
or by 
at+zcdrun=8
or by 
AT+ZCDRUN=E


But, in fact, nothing of this works for E171.


Not a happy end, huh? I'm working to find out solution.


Upd.


Here we have another usefull info: http://forum.ubuntu.ru/index.php?topic=185146.0 , this gives us next commands:

AT^SETPORT?
- Shows current configuration

AT^GETPORTMODE
- Shows settings codes

AT^SETPORT="A1,A2;1,2,3,7,A1,A2"
- Sets default configuration. Use it on your own risk, better to substitute parameters for this command with output from 
AT^SETPORT? 

AT^SETPORT="A1,A2;1,2,3,7"
- Disables CD + SD

AT^SETPORT="A1,A2;1,2,3,A2"
- Disables NDIS and CDROM - only modem and SD are left

AT^SETPORT="A1,A2;1,2,3"
- Modem only

AT^SETPORT="A1,A2;2,7"
- Disable CD + SD + modem  in Win7, NDIS mode only left

AT^SETPORT="A1;2,7"
- CD + NDIS
It's sad, but this doesn't help too =). Working futher.

Комментариев нет:

Отправить комментарий