public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] PPP-Stack dial-into
@ 2004-09-13 15:22 Thomas Motz
  2004-09-13 16:03 ` Nick Garnett
  2004-09-14  9:54 ` [ECOS] " Kelvin Lawson
  0 siblings, 2 replies; 3+ messages in thread
From: Thomas Motz @ 2004-09-13 15:22 UTC (permalink / raw)
  To: ecos-discuss

Hi,

Nick wrote in
http://sources.redhat.com/ml/ecos-discuss/2004-07/msg00444.html
> The expectation was that most eCos devices would be solitary remote
devices that were dialled into,
> or dialled out. So a single PPP connection would be the ususal case.

I'm surprised at the possibility to dial into the device.
When I see the API for PPP, it seems that only dial out is usable.

In the latest Reference Manual the API for PPP is described:

"cyg_ppp_up() This function starts up a PPP connection."
One may conclude that  the function starts a connection to a remote server.

"cyg_ppp_wait_up() This function waits until the PPP connection is running
... may take some time to complete, especially if dialling a remote server"
Does this suggest that cyg_ppp_up() is used for dial out only?

How do I have to stimulate the device through the API so that the device
waits for a dial into connection?

Best regards
Thomas Motz


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

* Re: [ECOS] PPP-Stack dial-into
  2004-09-13 15:22 [ECOS] PPP-Stack dial-into Thomas Motz
@ 2004-09-13 16:03 ` Nick Garnett
  2004-09-14  9:54 ` [ECOS] " Kelvin Lawson
  1 sibling, 0 replies; 3+ messages in thread
From: Nick Garnett @ 2004-09-13 16:03 UTC (permalink / raw)
  To: Thomas Motz; +Cc: ecos-discuss

"Thomas Motz" <t.motz@newage-avkseg.com> writes:

> Hi,
> 
> Nick wrote in
> http://sources.redhat.com/ml/ecos-discuss/2004-07/msg00444.html
> > The expectation was that most eCos devices would be solitary remote
> devices that were dialled into,
> > or dialled out. So a single PPP connection would be the ususal case.
> 
> I'm surprised at the possibility to dial into the device.
> When I see the API for PPP, it seems that only dial out is usable.
> 
> In the latest Reference Manual the API for PPP is described:
> 
> "cyg_ppp_up() This function starts up a PPP connection."
> One may conclude that  the function starts a connection to a remote server.
> 
> "cyg_ppp_wait_up() This function waits until the PPP connection is running
> ... may take some time to complete, especially if dialling a remote server"
> Does this suggest that cyg_ppp_up() is used for dial out only?
> 
> How do I have to stimulate the device through the API so that the device
> waits for a dial into connection?

At present, you will need to handle the initial connection from the
remote end yourself. There is no standard mechanism for doing this in
eCos. You may, for example need to check a password or parse some
commands to indicate that PPP should be started. However, once that is
done, the standard PPP API calls should then just bring up the PPP
link in the ususal way.


-- 
Nick Garnett                    eCos Kernel Architect
http://www.ecoscentric.com/     The eCos and RedBoot experts


-- 
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: PPP-Stack dial-into
  2004-09-13 15:22 [ECOS] PPP-Stack dial-into Thomas Motz
  2004-09-13 16:03 ` Nick Garnett
@ 2004-09-14  9:54 ` Kelvin Lawson
  1 sibling, 0 replies; 3+ messages in thread
From: Kelvin Lawson @ 2004-09-14  9:54 UTC (permalink / raw)
  To: ecos-discuss

> How do I have to stimulate the device through the API so that the device
> waits for a dial into connection?

You may get some luck out of a simple chat script that sets up 
auto-answer and waits for an incoming connection. I chose to do away 
with the chat script however - in my case, a separate modem manager that 
handled dialin/dialout etc was more appropriate.

Once the modem has answered, you can bring up PPP with the regular APIs. 
You will probably want to make a few changes to handle authentication in 
a way that is appropriate for your system (file on disk, hard-coded 
user/pass etc). See this thread for some details on that:

http://sources.redhat.com/ml/ecos-discuss/2004-06/msg00168.html

Cheers,
Kelvin.


-- 
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:[~2004-09-14  9:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-13 15:22 [ECOS] PPP-Stack dial-into Thomas Motz
2004-09-13 16:03 ` Nick Garnett
2004-09-14  9:54 ` [ECOS] " Kelvin Lawson

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