Hi,
I've
just read your posts on the LWIP forum and I've got a few questions if you
have some time.
I'm trying to use lwip with PPP and a GPRS
module I've written that takes care of AT commands. My init code looks like
that :
initModem(); // This
sends some AT commands to reboot the GPRS modem for example
// PPP
Session initialization
ppp->session = (struct sessiondata*)
CALL(ppp->allocator, alloc, sizeof(struct sessiondata));
ppp->state_machine = (fsm*) CALL(ppp->allocator, alloc,
sizeof(fsm));
ppp->login =
"******";
ppp->password = "*****";
stats_init();
mem_init();
memp_init();
pbuf_init();
pppInit();
fsm_init(ppp->state_machine); // FSM State =
INITIAL after the init
fsm_lowerup(ppp->state_machine); // FSM State
becomes CLOSED
fsm_open(ppp->state_machine); // FSM State
becomes REQSENT
pppSetAuth(PPPAUTHTYPE_CHAP,ppp->login,
ppp->password);
// Calls
LWIP pppOpen() after some particuliar treatment
WrappedPPPopen(NULL, APN, ppp->session->proto, 0);
//
Tests of the phone functionnalities
CALL(ppp->modem, phonecall, phoneNumber);
other
tests ...
The initModem phase looks good, all the inits
are OK, but my peer keeps sending Configure-Request packets without any
answer from the other end (which should be my GPRS
provider).
Do you have any
idea where this could come from ?
Thank you,
Sincerely,
Laurent Vanstaen
France Telecom R&D