From: Vitus J. <je...@ho...> - 2002-10-29 17:01:34
|
Hello all! Fixed it by adding a call to SioIf.start() in StartupNet(). There are now LCP packets appearing on the SIO. Hurray! BTW: what would it take to add routing to the stack? My device has 5 usable SIOs for PPP... Bye, Vitus On Tue, 29 Oct 2002 09:55:40 +0100 (CET), Vitus Jensen wrote: > Hej! > > I'm trying to port uC/IP to our own multithreaded OS (romable, Toshiba CPU). > There were some changes needed (nested comments, and we can's live with > initialized variables) but it compiles OK now. Lots of warnings, though. > > Anyway, I want to test the thing now. TCP/IP over PPP and I have a PPP > analyser connected to the serial line. I would expect that once the stack is > started there will appear bytes on the serial line. But I can't find > anything. :-( > > And before PPP had done it's task any IP code does obviously fail with error > -5, Invalid configuration, because the local address is unknown. > Any hints how I could get things going? > > > > Here is my code (error checking removed): > ============================================= > int StartupNet(unsigned short chn) > { > repeat = 1; > > memset(&SioIf, 0, sizeof(SioIf)); > SioIf.nPortNum = chn; > SioIf.nBaudRate = 19200; > SIO_DriverEntry(&SioIf); > netInit(&SioIf); /* nBufInit, pppInit, > hdPPP = pppOpen(chn); > return 0; > } > int StopNet(int reason) > { > repeat = 0; > pppClose(hdPPP) > SioIf.stop(&SioIf); > return 0; > } > int IpTest(void) > { > StartupNet(3); > msleep(5000); > StopNet(0); > return 0; > } > ============================================= > > By[t]e, > Vitus > > -- > Dipl-Ing Vitus Jensen, R&D > Hoeft & Wessel AG, Hannover > EMail: je...@ho... > Tel: +49-511-6102-336, Fax: -435 > |