public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Help for ECOS PPP setup in Germany with T-Mobile network via GPRS Modem
@ 2006-06-01 16:26 Weili Yao
  2006-06-01 21:00 ` Matt Jerdonek
  0 siblings, 1 reply; 2+ messages in thread
From: Weili Yao @ 2006-06-01 16:26 UTC (permalink / raw)
  To: ecos-discuss

Hello, there:
   We are having problem with ECOS PPP via GPRS Modem in Germany. The APN is T-Mobile network, and we believed that we have correctly set the PIN to the SIM card, the APN init string and username/password to the ECOS. It passed the CHAT and LCP handshaking, but it failed at IPCP, because we set initial local/remote IP address to 0.0.0.0, and the T-mobile server takes our local 0.0.0.0 suggestion. Here is the data captured:

==========================
PPP Config diagnostic reply : Connect: ppp0 <--> /dev/adapt_ser_3
<COM2>FF 03 C0 21 01 01 00 14 02 06 00 00 00 00 05 06 53 05 F6 9C 07 02 08 02 ==>to server
<COM2>FF 03 C0 21 01 01 00 16 01 04 05 DC 02 06 00 00 00 00 07 02 08 02 03 04 C0 23 <== from PPP server 
<COM2>FF 03 C0 21 02 01 00 16 01 04 05 DC 02 06 00 00 00 00 07 02 08 02 03 04 C0 23==> to PPP server
<COM2>FF 03 C0 21 04 01 00 0A 05 06 53 05 F6 9C <== from PPP server 
<COM2>FF 03 C0 21 01 02 00 0E 02 06 00 00 00 00 07 02 08 02 ==> to PPP server 
<COM2>FF 03 C0 21 02 02 00 0E 02 06 00 00 00 00 07 02 08 02 <== from PPP server
<COM2>FF 03 C0 21 09 00 00 08 00 00 00 00 ==> to PPP server
<COM2>FF 03 C0 23 01 01 00 10 05 67 75 65 73 74 05 67 75 65 73 74 ==> to PPP server
<COM2>FF 03 C0 21 0A 00 00 08 00 00 00 00 <== from PPP server
<COM2>FF 03 C0 23 02 01 00 0D 08 57 65 6C 63 6F 6D 65 21 <== from PPP server
PPP Config diagnostic reply : Remote message: Welcome!

<COM2>FF 03 80 21 01 01 00 10 03 06 00 00 00 00 02 06 00 2D 0F 01<< send Conf Req to PPP server, can we be ip=0.0.0.0, vJcompress
<COM2>FF 03 80 21 01 01 00 0A 03 06 C0 A8 6F 6F << get Conf Req, server is at ip=192.168.111.111
<COM2>FF 03 80 21 02 01 00 0A 03 06 C0 A8 6F 6F << send Conf Ack, we are happy with server being ip=192.168.111.111
<COM2>FF 03 80 21 04 01 00 0A 02 06 00 2D 0F 01 << get Conf Reject, server doesnt like vJcompress
<COM2>FF 03 80 21 01 02 00 0A 03 06 00 00 00 00 << send Conf Req, can we be ip=0.0.0.0
<COM2>FF 03 80 21 02 02 00 0A 03 06 00 00 00 00 << get Conf Ack, yes server is happy if we want to be ip=0.0.0.0
PPP Config diagnostic reply : Could not determine local IP address    << ECOS doesn't like the server accepting our suggestion of 0.0.0.0
<COM2>FF 03 80 21 05 03 00 28 43 6F 75 6C 64 20 6E 6F 74 20 64 65 74 65 72 6D 69 6E 65 20 6C 6F 63 61 6C 20 49 50 20 61 64 64 72 65 73 << send message "Could not determine local IP address"
<COM2>FF 03 C0 21 05 02 00 04 << get LCP Terminate request
PPP Config diagnostic reply : LCP terminated by peer
<COM2>FF 03 C0 21 06 02 00 04 << set LCP Terminate ACK.

===================================

The same application code is running fine in U.S.A with T-Mobile and Cingular Networks. But somehow it does not get through with Germany T-Mobile network. Does anybody have any suggestions or ideas about the problem?

Thank you very much!

Weili Yao


--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ECOS] Help for ECOS PPP setup in Germany with T-Mobile network via GPRS Modem
  2006-06-01 16:26 [ECOS] Help for ECOS PPP setup in Germany with T-Mobile network via GPRS Modem Weili Yao
@ 2006-06-01 21:00 ` Matt Jerdonek
  0 siblings, 0 replies; 2+ messages in thread
From: Matt Jerdonek @ 2006-06-01 21:00 UTC (permalink / raw)
  To: Weili Yao, ecos-discuss

[-- Attachment #1: Type: text/plain, Size: 3851 bytes --]

I ran into a similar problem a while ago.  I thought I
submitted a patch on this, but I looked at CVS and
didn't see it there.  I must have forgotten to
contribute it.  :-(

Anyway, the fix I made was to use the same IP address
for both sides of the link if the peer does not
provide an address.  Attached is the affected code
from ipcp.c.

I'm leaving for vacation soon.  If you find this works
ok for you, would you mind submitting a proper patch
to the maintainers?

Thanks,
-- Matt


--- Weili Yao <weili_yao@trimble.com> wrote:

> Hello, there:
>    We are having problem with ECOS PPP via GPRS
> Modem in Germany. The APN is T-Mobile network, and
> we believed that we have correctly set the PIN to
> the SIM card, the APN init string and
> username/password to the ECOS. It passed the CHAT
> and LCP handshaking, but it failed at IPCP, because
> we set initial local/remote IP address to 0.0.0.0,
> and the T-mobile server takes our local 0.0.0.0
> suggestion. Here is the data captured:
> 
> ==========================
> PPP Config diagnostic reply : Connect: ppp0 <-->
> /dev/adapt_ser_3
> <COM2>FF 03 C0 21 01 01 00 14 02 06 00 00 00 00 05
> 06 53 05 F6 9C 07 02 08 02 ==>to server
> <COM2>FF 03 C0 21 01 01 00 16 01 04 05 DC 02 06 00
> 00 00 00 07 02 08 02 03 04 C0 23 <== from PPP server
> 
> <COM2>FF 03 C0 21 02 01 00 16 01 04 05 DC 02 06 00
> 00 00 00 07 02 08 02 03 04 C0 23==> to PPP server
> <COM2>FF 03 C0 21 04 01 00 0A 05 06 53 05 F6 9C <==
> from PPP server 
> <COM2>FF 03 C0 21 01 02 00 0E 02 06 00 00 00 00 07
> 02 08 02 ==> to PPP server 
> <COM2>FF 03 C0 21 02 02 00 0E 02 06 00 00 00 00 07
> 02 08 02 <== from PPP server
> <COM2>FF 03 C0 21 09 00 00 08 00 00 00 00 ==> to PPP
> server
> <COM2>FF 03 C0 23 01 01 00 10 05 67 75 65 73 74 05
> 67 75 65 73 74 ==> to PPP server
> <COM2>FF 03 C0 21 0A 00 00 08 00 00 00 00 <== from
> PPP server
> <COM2>FF 03 C0 23 02 01 00 0D 08 57 65 6C 63 6F 6D
> 65 21 <== from PPP server
> PPP Config diagnostic reply : Remote message:
> Welcome!
> 
> <COM2>FF 03 80 21 01 01 00 10 03 06 00 00 00 00 02
> 06 00 2D 0F 01<< send Conf Req to PPP server, can we
> be ip=0.0.0.0, vJcompress
> <COM2>FF 03 80 21 01 01 00 0A 03 06 C0 A8 6F 6F <<
> get Conf Req, server is at ip=192.168.111.111
> <COM2>FF 03 80 21 02 01 00 0A 03 06 C0 A8 6F 6F <<
> send Conf Ack, we are happy with server being
> ip=192.168.111.111
> <COM2>FF 03 80 21 04 01 00 0A 02 06 00 2D 0F 01 <<
> get Conf Reject, server doesnt like vJcompress
> <COM2>FF 03 80 21 01 02 00 0A 03 06 00 00 00 00 <<
> send Conf Req, can we be ip=0.0.0.0
> <COM2>FF 03 80 21 02 02 00 0A 03 06 00 00 00 00 <<
> get Conf Ack, yes server is happy if we want to be
> ip=0.0.0.0
> PPP Config diagnostic reply : Could not determine
> local IP address��� << ECOS doesn't like the
server
> accepting our suggestion of 0.0.0.0
> <COM2>FF 03 80 21 05 03 00 28 43 6F 75 6C 64 20 6E
> 6F 74 20 64 65 74 65 72 6D 69 6E 65 20 6C 6F 63 61
> 6C 20 49 50 20 61 64 64 72 65 73 << send message
> "Could not determine local IP address"
> <COM2>FF 03 C0 21 05 02 00 04 << get LCP Terminate
> request
> PPP Config diagnostic reply : LCP terminated by peer
> <COM2>FF 03 C0 21 06 02 00 04 << set LCP Terminate
> ACK.
> 
> ===================================
> 
> The same application code is running fine in U.S.A
> with T-Mobile and Cingular Networks. But somehow it
> does not get through with Germany T-Mobile network.
> Does anybody have any suggestions or ideas about the
> problem?
> 
> Thank you very much!
> 
> Weili Yao
> 
> 
> --
> Before posting, please read the FAQ:
> http://ecos.sourceware.org/fom/ecos
> and search the list archive:
> http://ecos.sourceware.org/ml/ecos-discuss
> 
> 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

[-- Attachment #2: 1048418972-ipcp.patch --]
[-- Type: application/octet-stream, Size: 1056 bytes --]

/*
 * ipcp_up - IPCP has come UP.
 *
 * Configure the IP network interface appropriately and bring it up.
 */
static void
ipcp_up(f)
    fsm *f;
{
    u_int32_t mask;
    ipcp_options *ho = &ipcp_hisoptions[f->unit];
    ipcp_options *go = &ipcp_gotoptions[f->unit];
    ipcp_options *wo = &ipcp_wantoptions[f->unit];

    np_up(f->unit, PPP_IP);
    IPCPDEBUG((LOG_INFO, "ipcp: up"));

    /*
     * We must have a non-zero IP address for both ends of the link.
     */
    if (!ho->neg_addr) {
	// Remote end did not pass his IP address to us
	ho->hisaddr = wo->hisaddr;
	if (ho->hisaddr == 0) {
		// Use same IP address for both sides of link.
		ho->hisaddr = go->ouraddr;	  
		}
	}
	
    if (go->ouraddr == 0) {
	syslog(LOG_ERR, "Could not determine local IP address");
	ipcp_close(f->unit, "Could not determine local IP address");
	return;
    }	

    if (ho->hisaddr == 0) {
	syslog(LOG_ERR, "Could not determine remote IP address");
	ipcp_close(f->unit, "Could not determine remote IP address");
	return;
    }

[-- Attachment #3: Type: text/plain, Size: 148 bytes --]

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-06-01 21:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-01 16:26 [ECOS] Help for ECOS PPP setup in Germany with T-Mobile network via GPRS Modem Weili Yao
2006-06-01 21:00 ` Matt Jerdonek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).