public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Re: eCos and VMware experiences
       [not found] <4582E535.2030508@softhome.net>
@ 2006-12-15 19:43 ` Donald Walton
  2006-12-15 20:05   ` [ECOS] ECOS PPP terminated because of echo-request being rejected by peer Weili Yao
  0 siblings, 1 reply; 3+ messages in thread
From: Donald Walton @ 2006-12-15 19:43 UTC (permalink / raw)
  To: John Kane; +Cc: ecos-discuss

On Fri, 2006-12-15 at 13:11 -0500, John Kane wrote:
> I take it you've got eCos playing nicely with VMware?
> We've got a couple of projects on the drawing board;
> how's it been working out for you?
> 
>   --- John Kane, southern NH
> 
> 
> 

I am very impressed with VMWare.  Though I a developing for an embedded
environment, I have been able to accomplish many tasks, particularly
related to networking and message passing, by using VMWare.  There can
be some problems with special hardware interfaces.  You are probably
aware that there is an i386 w/VMWare template for eCos.

I would recommend you set up your virtual machines using the custom set
up option.  Configure for "Other Linux" and choose the 2.4 kernel
option.  The other configuration items are up to you.

Then I used a ISO version of Damn Small Linux, which can be run from a
virtual cdrom, and setup the partitions on the virtual drives.  I
allowed a 300MB partition for the installation of the Damn Small Linux.
I use the Linux for maintenance of the virtual drives.  GRUB also gets
installed as part of the package.  However, you will have to download
and rebuild GRUB for network booting.  Once that's done, you can have
your test setup and debug environment on the same machine or different
machines if you choose.

I have tried to give you the high points.  Let me know if you need
additional help.

Have a great day,
Don Walton
  

-- 
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] 3+ messages in thread

* [ECOS] ECOS PPP terminated because of echo-request being rejected by peer
  2006-12-15 19:43 ` [ECOS] Re: eCos and VMware experiences Donald Walton
@ 2006-12-15 20:05   ` Weili Yao
  2006-12-19 19:34     ` [ECOS] " Weili Yao
  0 siblings, 1 reply; 3+ messages in thread
From: Weili Yao @ 2006-12-15 20:05 UTC (permalink / raw)
  To: ecos-discuss; +Cc: Weili Yao



Hello, there:
    I have a device that is ECOS-based with Bluetooth connection to cell
phone (Sony-Ericsson T68i), and I have SIM card from T-Mobile in the
cell phone for the data connection. 
    When I established the PPP connection on the Bluetooth channel via
cell phone to T-Mobile ISP, the PPP would be up and running, but the
peer rejected echo-request made by ECOS like following (I decoded):

1) FF 03 C0 21 09 14 00 08 00 00 00 00 
    Sent to Peer:
   C0 21: LCP Protocol 
   09   : code (Echo Request)
   14   : ID (incremental)
   00 08: Length (including code, ID, len, and data followed)
   00 00 00 00: Magic Number
2) FF 03 C0 21 07 17 00 0C 09 14 00 08 00 00 00 00 
    Received from Peer:
    C0 21: LCP Protocol 
    07   : code (Code-Reject)
    17   : ID
    00 0C: len
    09 14 00 08 00 00 00 00: the original packet

    After 4 retries, the ECOS terminated the PPP connection. In that
period, the PPP was actually up and running. I just don't know why the
peer would reject the echo-request.

    In the net/ppp/current/src/pppd.c file, I then changed
lcp_echo_fails from 4 to 0 to ignore the LCP Code-Reject message from
peer. Then the connection will not be terminated by ECOS. The PPP
connection just works fine for me.

    Now my questions:

1) Is there any side-effect if I change lcp_echo_fails to 0 (i.e. ignore
the ECOH-Request reject message)?

2) The same SIM card is working fine with other cell phone (e.g. Nokia
6600) and GPRS/GSM modem without changing lcp_echo_fails. I don't see
the reject message. Did I miss something that is related to the cell
phone configuration?

   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] 3+ messages in thread

* [ECOS] RE: ECOS PPP terminated because of echo-request being rejected by peer
  2006-12-15 20:05   ` [ECOS] ECOS PPP terminated because of echo-request being rejected by peer Weili Yao
@ 2006-12-19 19:34     ` Weili Yao
  0 siblings, 0 replies; 3+ messages in thread
From: Weili Yao @ 2006-12-19 19:34 UTC (permalink / raw)
  To: ecos-discuss

It turns out that the LCP echo-reject from peer only happens on Sony
Ericsson T68i cell phone. I tried T-Mobile SIM and Cingular SIM in the
T68i cell phone and both SIM cards have the same behavior. But those SIM
cards just work fine on different cell phones (such as Nokia 6600).

In order for my device to work with T68i cell phone, I have to change
ECOS PPP so that it ignores LCP-echo-reject from peer. I treated the
LCP-echo-reject the same as LCP-echo-reply. 

I also compared the Linux PPP with ECOS PPP, and found that Linux PPP by
default does not send LCP-echo-request after PPP is up. Of course Linux
PPP allows user to set these parameters. 

I also compared the Windows-XP PPP, and Windows-XP does not send
LCP-echo-request either after PPP connection is established. 

By looking up the RFC documents, I could not find the meaning/reason of
LCP-echo-reject. So I think as long as my device is able to receive
LCP-echo-reply or LCP-echo-reject, I will consider the PPP connection is
fine and will keep the connection up. 

However, I am still wondering why Sony Ericsson T68i cell phone is
working differently. Maybe some bugs in Sony Ericsson T68i?

Cheers!

Weili Yao


-----Original Message-----
From: Weili Yao 
Sent: Friday, December 15, 2006 12:05 PM
To: ecos-discuss@sourceware.org
Cc: Weili Yao
Subject: ECOS PPP terminated because of echo-request being rejected by
peer



Hello, there:
    I have a device that is ECOS-based with Bluetooth connection to cell
phone (Sony-Ericsson T68i), and I have SIM card from T-Mobile in the
cell phone for the data connection. 
    When I established the PPP connection on the Bluetooth channel via
cell phone to T-Mobile ISP, the PPP would be up and running, but the
peer rejected echo-request made by ECOS like following (I decoded):

1) FF 03 C0 21 09 14 00 08 00 00 00 00 
    Sent to Peer:
   C0 21: LCP Protocol 
   09   : code (Echo Request)
   14   : ID (incremental)
   00 08: Length (including code, ID, len, and data followed)
   00 00 00 00: Magic Number
2) FF 03 C0 21 07 17 00 0C 09 14 00 08 00 00 00 00 
    Received from Peer:
    C0 21: LCP Protocol 
    07   : code (Code-Reject)
    17   : ID
    00 0C: len
    09 14 00 08 00 00 00 00: the original packet

    After 4 retries, the ECOS terminated the PPP connection. In that
period, the PPP was actually up and running. I just don't know why the
peer would reject the echo-request.

    In the net/ppp/current/src/pppd.c file, I then changed
lcp_echo_fails from 4 to 0 to ignore the LCP Code-Reject message from
peer. Then the connection will not be terminated by ECOS. The PPP
connection just works fine for me.

    Now my questions:

1) Is there any side-effect if I change lcp_echo_fails to 0 (i.e. ignore
the ECOH-Request reject message)?

2) The same SIM card is working fine with other cell phone (e.g. Nokia
6600) and GPRS/GSM modem without changing lcp_echo_fails. I don't see
the reject message. Did I miss something that is related to the cell
phone configuration?

   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] 3+ messages in thread

end of thread, other threads:[~2006-12-19 19:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <4582E535.2030508@softhome.net>
2006-12-15 19:43 ` [ECOS] Re: eCos and VMware experiences Donald Walton
2006-12-15 20:05   ` [ECOS] ECOS PPP terminated because of echo-request being rejected by peer Weili Yao
2006-12-19 19:34     ` [ECOS] " Weili Yao

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).