Huawai E122 linux chat script

Kwestie techniczne, konfiguracja i rozwiązywanie problemów z modemami GSM (GPRS, EDGE, UMTS, HSDPA i HSUPA).

Moderator: Moderatorzy

ODPOWIEDZ
Speedy1205
Początkujący użytkownik forum
Posty: 4
Rejestracja: 2009-03-01, 19:30
Lokalizacja: Warszawa

Huawai E122 linux chat script

Post autor: Speedy1205 »

Hey Guys,

i`m fighting already 4 days to get the chat for the E122 on Ubuntu to work... no chance.

I have Ubuntu Server 10.04 and the normal connection is working fine pon/poff. I use this server as a gateway so it should dial when internet is needed. But I can not get the chat script working. I looked already at the page: http://www.szarp.org/szarp/doc/howto/html/gprs.html which isn't working for me. I modified it but didn't get the issue solved. So when of your Linux guys has a answer, that I would be very happy to get it :-)

PS.: no I dont want to install gnome, network manager etc.... :-)

at the moment is looking like this:

Kod: Zaznacz cały

ABORT BUSY ABORT 'NO CARRIER' ABORT VOICE ABORT 'NO DIALTONE' ABORT 'NO DIAL TONE' ABORT 'NO ANSWER' ABORT DELAYED
# modeminit
'' \rAT
SAY "\ndefining PDP context...\n"
OK ATH
OK ATE1
CONNECT 'AT+CGDCONT=1,"IP","erainternet"'
OK "ATD*99***1#"
# ispconnect

# prelogin
TIMEOUT         22
SAY "\nwaiting for connect...\n"
CONNECT ""
SAY "\nConnected."
SAY "\nIf the following ppp negotiations fail,\n"
SAY "try restarting the phone.\n"


# ispname
# login: "erainternet"
# isppassword
#password: "erainternet"
# postlogin
#'' \d\c
# end of pppconfig stuff
Sorry I have no idea from this dialing stuff :-) Anyway I would like to have a normal internet :-(

By the way when will start Polsat 4G ? I registered me there but never heard anything :-(

Thanks for help
Daniel
Awatar użytkownika
ra-v
Mistrz bezprzewodowy
Posty: 1529
Rejestracja: 2009-11-08, 22:59
Lokalizacja: Fryzjer City

Re: Huawai E122 linux chat script

Post autor: ra-v »

I Thing you should use THIS manual.

You pasted only one script, You have to have 3 scripts on Your computer like: /etc/ppp/peers/gprs, /etc/ppp/peers/gprs-connect, /etc/ppp/peers/gprs-disconnect. I have used this method since a few months ago - but I have had different modem and GSM Operator...

You have to do
1. enter this commands in terminal (this shows which devices[modem] are in use)

Kod: Zaznacz cały

ls /dev/ttyUSB*
ls /dev/ttyACM*
ls /dev/ttyHSO*
2. you should type in terminal this commands below (shows all useful logs), and after that you should try to connect to internet

Kod: Zaznacz cały

tailf /var/log/messages
You can paste to forum results of commands above.



SFME - sorry for my english
Internet 70GB/nolimit: Huawei E3372s-153+TP-LINK MR3420 v2
Telefon: Moto G 1gen / Lumia 625 / iPhone 4 / Nokia 6310i
ODPOWIEDZ