This is the mail archive of the ecos-discuss@sources.redhat.com 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: PPP disconnect script


Felix Nielsen <felix@dezign.dk> writes:

> Hi Nick,
> 
> Thanks I will try that :)
> 
> The "persist" seems to work just fine, the stack is trying to
> re-connect, when the ISP fails or no activity. But the connect fails
> if the modem is not ready to receive the initializing commands.
> 
> I thought that maybe it was possible to specify a chat disconnect script.

Since the call to chat() is inside the main loop, it will be invoked
each time around the reconnect loop. So a chat script that just sends
the "+++" each time should work. Actually, maybe not, since there are
timing constraints on the speed at which the "+++" is received by the
modem.

You have the sources, so you could just modify the loop to call out to
a routine of your own after the disconnection.

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


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