This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Help for ECOS PPP setup in Germany with T-Mobile network via GPRS Modem


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: ipcp.patch
Description: 1048418972-ipcp.patch

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]