From: Vitus J. <je...@ho...> - 2002-10-29 08:56:57
|
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 |