Re: PPP connect to T-Mobile GPRS (Hungary) problem

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: PPP connect to T-Mobile GPRS (Hungary) problem

applehuu
-------- Original Message  --------
From: "Szabó András" [hidden email]
To: [hidden email]
Subject: [lwip-users] PPP connect to T-Mobile GPRS (Hungary) problem
Date: Thu Mar 16 2006 01:25:37 GMT+0800
Hi!

I'm trying to connect to gprs using the CVS code PPP, and i've managed to get to the point IPCP starts to do something, but suddenly an LCP terminate arrives, and NO CARRIER. Bah :)

It's a hack of the unix port in the contrib to work on my linux with my irda Siemens S45 phone. I have a GPRS account at T-Mobile, that has no user/password (under windows it works with user/pass leaved blank). I'm in Hungary, Europe.

Read: means the serial input characters from the serial port in hex
Write: ---"--- to the serial port.

I'm not an expert about these fancy protocols, such as LCP, IPCP, PAP and so on, i'm a bit stuck :) Maybe one of you see some sense on these codes and can help me, it would be great!


Some debug info:
---------------------------------------
tcp init donelcp_init: xmit_accm=0 0 0 0
upap_init: 0
Expecting: OK
Expecting: CONNECT
lcp_init: xmit_accm=0 0 0 0
[New Thread -1218192464 (LWP 3582)]
pppMain: unit 0: Connecting
Read:
  7E FF 7D 23 C0 21 7D 21 7D 23 7D 20 7D 3D 7D 21 7D 24 7D 27 D0 7D
22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 27 7D 22 7D 28 7D 22 7D 25 7D 26
8A 4A 9D 7D 25 7D 23 7D 25 C2 23 7D 25 7D 29 75 7E
pppInProc[0]: got 62 bytes
pppInProc[0]: tcpip_callback() failed, dropping packet
pppStartCB: unit 0
ppp_set_xaccm[0]: outACCM=0 0 0 0
ppp_send_config[0]: outACCM=FF FF FF FF
ppp_recv_config[0]: inACCM=0 0 0 0
lcp_lowerup: asyncmap=0 0 0 0
LCP: lowerup state 0 -> 2
auth_reset: 0
lcp_addci: L opt=2 0
lcp_addci: L opt=5 70A012B6
lcp_addci: opt=7
lcp_addci: opt=8
pppWrite[0]: len=46
Write:
  7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 34 7D 22 7D 26 7D 20 7D 20
7D 20 7D 20 7D 25 7D 26 70 A0 7D 32 B6 7D 27 7D 22 7D 28 7D 22 32 53
7E
fsm_sdata(LCP): Sent code 1,1,20.
LCP: sending Configure-Request, id 1
LCP: open state 2 -> 6
Read:
  7E FF 7D 23 C0 21 7D 23 7D 21 7D 20 7D 2A 7D 22 7D 26 7D 20 7D 2A
7D 20 7D 20 6C 50 7E
pppInProc[0]: got 29 bytes
pppInput[0]: LCP len=10
fsm_input(LCP):3,1,10
fsm_rconfnakrej(LCP): Rcvd id 1 state=6
lcp_addci: L opt=2 A0000
lcp_addci: L opt=5 70A012B6
lcp_addci: opt=7
lcp_addci: opt=8
pppWrite[0]: len=45
Write:
  FF 7D 23 C0 21 7D 21 7D 22 7D 20 7D 34 7D 22 7D 26 7D 20 7D 2A 7D
20 7D 20 7D 25 7D 26 70 A0 7D 32 B6 7D 27 7D 22 7D 28 7D 22 CA C8 7E
fsm_sdata(LCP): Sent code 1,2,20.
LCP: sending Configure-Request, id 2
Read:
  7E FF 7D 23 C0 21 7D 22 7D 22 7D 20 7D 34 7D 22 7D 26 7D 20 7D 2A
7D 20 7D 20 7D 25 7D 26 70 A0 7D 32 B6 7D 27 7D 22 7D 28 7D 22 21 A1
7E
pppInProc[0]: got 46 bytes
pppInput[0]: LCP len=20
fsm_input(LCP):2,2,20
fsm_rconfack(LCP): Rcvd id 2 state=6
lcp_acki: Ack
Read:
  7E FF 7D 23 C0 21 7D 21 7D 23 7D 20 7D 3D 7D 21 7D 24 7D 27 D0 7D
22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 27 7D 22 7D 28 7D 22 7D 25 7D 26
8A 4A 9D 7D 25 7D 23 7D 25 C2 23 7D 25 7D 29 75 7E
pppInProc[0]: got 62 bytes
pppInput[0]: LCP len=29
fsm_input(LCP):1,3,29
fsm_rconfreq(LCP): Rcvd id 3 state=7
lcp_reqci: rcvd MRU 2000 ASYNCMAP=A0000 PCOMPRESSION ACCOMPRESSION
lcp_reqci: Nak AUTHTYPE CHAP not allowed
lcp_reqci:  MAGICNUMBER (8A4A9D05)
lcp_reqci: returning CONFNAK.
pppWrite[0]: len=22
Write:
  FF 7D 23 C0 21 7D 23 7D 23 7D 20 7D 28 7D 23 7D 24 C0 23 99 7F 7E
fsm_sdata(LCP): Sent code 3,3,8.
Read:
  7E FF 7D 23 C0 21 7D 21 7D 25 7D 20 7D 3C 7D 21 7D 24 7D 27 D0 7D
22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 27 7D 22 7D 28 7D 22 7D 25 7D 26
8A 4A 9D 7D 25 7D 23 7D 24 C0 23 22 F9 7E
pppInProc[0]: got 59 bytes
pppInput[0]: LCP len=28
fsm_input(LCP):1,5,28
fsm_rconfreq(LCP): Rcvd id 5 state=7
lcp_reqci: rcvd MRU 2000 ASYNCMAP=A0000 PCOMPRESSION ACCOMPRESSION
lcp_reqci:  MAGICNUMBER (8A4A9D05) PAP (C023)
lcp_reqci: returning CONFACK.
pppWrite[0]: len=59
Write:
  FF 7D 23 C0 21 7D 22 7D 25 7D 20 7D 3C 7D 21 7D 24 7D 27 D0 7D 22
7D 26 7D 20 7D 2A 7D 20 7D 20 7D 27 7D 22 7D 28 7D 22 7D 25 7D 26 8A
4A 9D 7D 25 7D 23 7D 24 C0 23 7D 31 A3 7E
fsm_sdata(LCP): Sent code 2,5,28.
ppp_send_config[0]: outACCM=0 0 A 0
ppp_recv_config[0]: inACCM=0 0 A 0
link_established: 0
upap_lowerup: 0 s=0
IPCP: lowerup state 0 -> 2
upap_authwithpeer: 0 user=none password=none s=1
pppWrite[0]: len=21
Write:
  FF 3 C0 23 1 1 0 E 4 6E 6F 6E 65 4 6E 6F 6E 65 DE 60 7E
pap_sauth: Sent id 1
Read:
  7E C0 23 2 1 0 5 0 FD 30 7E
pppInProc[0]: got 11 bytes
pppInput[0]: PAP len=5
pap_rauthack: Rcvd id 1 s=3
Remote message:
auth_withpeer_success: 0 proto=C023
pppWrite[0]: len=29
Write:
  FF 3 80 21 1 1 0 16 3 6 0 0 0 0 81 6 0 0 0 0 83 6 0 0 0 0 6E DB 7E
fsm_sdata(IPCP): Sent code 1,1,22.
IPCP: sending Configure-Request, id 1
IPCP: open state 2 -> 6
Read:
  7E FF 7D 23 C0 21 7D 25 7D 25 7D 20 7D 24 5C A4 7E
pppInProc[0]: got 17 bytes
pppInput[0]: LCP len=4
fsm_input(LCP):5,5,4
fsm_rtermreq(LCP): Rcvd id 5 state=9
LCP terminated by peer                           <------------ why is this happening? :(
link_down: 0
upap_lowerdown: 0 s=4
IPCP: lowerdown state 6 -> 1
IPCP: close reason=LCP down state 1 -> 0
pppMainWakeup: unit 0
sio_read_abort: not yet implemented for unix
ppp_send_config[0]: outACCM=FF FF FF FF
ppp_recv_config[0]: inACCM=0 0 A 0
pppWrite[0]: len=16
Write:
  FF 7D 23 C0 21 7D 26 7D 25 7D 20 7D 24 91 81 7E
fsm_sdata(LCP): Sent code 6,5,4.
Read:
  7E FF 7D 23 C0 21 7D 25 7D 25 7D 20 7D 24 5C A4 7E
pppInProc[0]: got 17 bytes
pppInput[0]: LCP len=4
fsm_input(LCP):5,5,4
fsm_rtermreq(LCP): Rcvd id 5 state=5
pppWrite[0]: len=16
Write:
  FF 7D 23 C0 21 7D 26 7D 25 7D 20 7D 24 91 81 7E
fsm_sdata(LCP): Sent code 6,5,4.
Read:
  D A 4E 4F 20 43 41 52 52 49 45 52 D A
pppInProc[0]: got 14 bytes
--------------------- connection terminated here.

Thanks a lot!
András

------------------------------------------------------------------------

_______________________________________________
lwip-users mailing list
[hidden email]
http://lists.nongnu.org/mailman/listinfo/lwip-users

You use upap auth.How do you impliment it ?
#define PAP_SUPPORT  0
or
#define PAP_SUPPORT  1

use
pppSetAuth(PPPAUTHTYPE_ANY, USER, PASSWORD)
or
pppSetAuth(PPPAUTHTYPE_PAP, USER, PASSWORD)
????????



_______________________________________________
lwip-users mailing list
[hidden email]
http://lists.nongnu.org/mailman/listinfo/lwip-users
Reply | Threaded
Open this post in threaded view
|

Re: PPP connect to T-Mobile GPRS (Hungary) problem

Janusz U.

>I'm trying to connect to gprs using the CVS code PPP, and i've managed to
>get to the point IPCP starts to do something, but suddenly an LCP terminate
>arrives, and NO CARRIER. Bah :)

>It's a hack of the unix port in the contrib to work on my linux with my
>irda Siemens S45 phone. I have a GPRS account at T-Mobile, that has no
>user/password (under windows it works with user/pass leaved blank). I'm in
>Hungary, Europe.

hi,
did you set GPRS context (APN) by eg:
at+cgdcont=1,"IP","internet-apn","0.0.0.0",0,0
atd*99***1#

best regards
Janusz U.



_______________________________________________
lwip-users mailing list
[hidden email]
http://lists.nongnu.org/mailman/listinfo/lwip-users
Reply | Threaded
Open this post in threaded view
|

Re: PPP connect to T-Mobile GPRS (Hungary) problem

applehuu
-------- Original Message  --------
From: "Janusz U." <[hidden email]>
To: "Mailing list for lwIP users" <[hidden email]>
Subject: Re:[lwip-users] PPP connect to T-Mobile GPRS (Hungary) problem
Date: Wed Dec 20 2006 23:21:53 GMT+0800

>
>> I'm trying to connect to gprs using the CVS code PPP, and i've managed
>> to get to the point IPCP starts to do something, but suddenly an LCP
>> terminate arrives, and NO CARRIER. Bah :)
>
>> It's a hack of the unix port in the contrib to work on my linux with
>> my irda Siemens S45 phone. I have a GPRS account at T-Mobile, that has
>> no user/password (under windows it works with user/pass leaved blank).
>> I'm in Hungary, Europe.
>
> hi,
> did you set GPRS context (APN) by eg:
> at+cgdcont=1,"IP","internet-apn","0.0.0.0",0,0
> atd*99***1#
>
> best regards
> Janusz U.
>
>
>
> _______________________________________________
> lwip-users mailing list
> [hidden email]
> http://lists.nongnu.org/mailman/listinfo/lwip-users
>
I use CDMA.
at+cgdcont=1,"IP","internet-apn","0.0.0.0",0,0
It return  error

It can't support AT+CGDCONT.

Can you tell me how to configure authentication.

if i want CHAP,

"#define CHAP_SUPPORT 1"  means support chap?

"pppSetAuth(PPPAUTHTYPE_ANY, "card", "card");"
use PPPAUTHTYPE_ANY or PPPAUTHTYPE_CHAP?





_______________________________________________
lwip-users mailing list
[hidden email]
http://lists.nongnu.org/mailman/listinfo/lwip-users
Reply | Threaded
Open this post in threaded view
|

Re: PPP connect to T-Mobile GPRS (Hungary) problem

applehuu
In reply to this post by Janusz U.
-------- Original Message  --------
From: "Janusz U." <[hidden email]>
To: "Mailing list for lwIP users" <[hidden email]>
Subject: Re:[lwip-users] PPP connect to T-Mobile GPRS (Hungary) problem
Date: Wed Dec 20 2006 23:21:53 GMT+0800

>
>> I'm trying to connect to gprs using the CVS code PPP, and i've managed
>> to get to the point IPCP starts to do something, but suddenly an LCP
>> terminate arrives, and NO CARRIER. Bah :)
>
>> It's a hack of the unix port in the contrib to work on my linux with
>> my irda Siemens S45 phone. I have a GPRS account at T-Mobile, that has
>> no user/password (under windows it works with user/pass leaved blank).
>> I'm in Hungary, Europe.
>
> hi,
> did you set GPRS context (APN) by eg:
> at+cgdcont=1,"IP","internet-apn","0.0.0.0",0,0
> atd*99***1#
>
> best regards
> Janusz U.
>
>
>
> _______________________________________________
> lwip-users mailing list
> [hidden email]
> http://lists.nongnu.org/mailman/listinfo/lwip-users
>
When CHAP is used,the program stop "<00000-00:00:23:300>IPCP: lowerup
state 0 -> 1073744688 ".

<00000-00:00:23:250>fsm_input(LCP):2,1073744892,16216


<00000-00:00:23:250>fsm_rconfack(LCP): Rcvd id 1 state=1073744892


<00000-00:00:23:250>lcp_acki: Ack


<00000-00:00:23:250>lcp_up()

<00000-00:00:23:300>ppp_send_config[0]: outACCM=0 0 B638 0


<00000-00:00:23:300>ppp_recv_config[0]: inACCM=0 40000BC4 B734 0


<00000-00:00:23:300>link_established: 0


<00000-00:00:23:300>upap_lowerup: 0 s=0


<00000-00:00:23:300>IPCP: lowerup state 0 -> 1073744688


Use PAP,

<00000-00:00:43:450>lcp_reqci: Nak AUTHTYPE CHAP not allowed

Send some data to Modem:7E FF 7D 23 C0 21 7D 23 7D 23 7D 20 7D 28 7D 23
7D 24 C0 23 99 7F 7E

Receive some data from Modem:
7E FF 7D 23 C0 21 7D 21 7D 23 7D 20 7D 3D 7D 21 7D 24 7D 25 EA 7D 22 7D
26 7D 20 7D 20 7D 20 7D 20 7D 23 7D 25 C2 23 7D 25 7D 25 7D 26 57 7D 31
98 6C 7D 27 7D 22 7D 28 7D 22 70 7D 5D 7E

To repeate  receive

Receive some data from Modem:
7E FF 7D 23 C0 21 7D 21 7D 23 7D 20 7D 3D 7D 21 7D 24 7D 25 EA 7D 22 7D
26 7D 20 7D 20 7D 20 7D 20 7D 23 7D 25 C2 23 7D 25 7D 25 7D 26 57 7D 31
98 6C 7D 27 7D 22 7D 28 7D 22 70 7D 5D 7E

C2 23 is CHAP,modem needs CHAP.



The frame has some problem,It may be start with "7E" and  end with "7E" .
But my result is :

<00000-00:00:37:350> Receive some data from Modem:
7E 7E FF 7D 23 C0 21 7D 21 7D 23 7D 20 7D 3D 7D 21 7D 24 7D 25 EA 7D 22
7D 26 7D 20 7D 20 7D 20 7D 20 7D 23 7D 25 C2 23 7D 25 7D 25 7D 26 57

<00000-00:00:43:400> Receive some data from Modem:
7D 31 98 6C 7D 27 7D 22 7D 28 7D 22 70 7D 5D 7E 7E FF 7D 23 C0 21 7D 21
7D 24 7D 20 7D 3D 7D 21 7D 24 7D 25 EA 7D 22 7D 26 7D 20 7D 20 7D 20




_______________________________________________
lwip-users mailing list
[hidden email]
http://lists.nongnu.org/mailman/listinfo/lwip-users