[En-Nut-Discussion] ppp_hackup

Francois Rademeyer francois at asnone.com
Tue Jul 20 16:14:52 CEST 2004


Hi Harald,

Thanks for the info.

After issuing "_ioctl(uart_dev, HDLC_SETIFNET, NULL);" the stack starts
transmitting like crazy.  It seems that the stack is trying to re-nogiate
PAP & LCP over and over and over ....

For uart_dev I am using:

NutRegisterDevice(&devAhdlc0, 0, 0);
comm_phone = fopen("uart0", "r+");
uart_dev = _fileno(comm_phone);
Is this ok?

Also tried it with "ppp" device, but the same happens.

Is no one else using ppp_hackup?  Any other sollutions for transmitting AT
commands?  Should I go back to an old Nut OS version?

Cheers,
Francois


----- Original Message -----
From: "Harald Kipp" <harald.kipp at egnite.de>
To: "Ethernut User Chat (English)" <en-nut-discussion at egnite.de>
Cc: "Francois Rademeyer" <francois at asnone.com>
Sent: Monday, July 19, 2004 5:22 PM
Subject: Re: [En-Nut-Discussion] ppp_hackup


> Hi Francois,
>
> I assume that
>
>    _ioctl(uart_dev, HDLC_SETIFNET, NULL);
>
> should be sufficient to disable HDLC and allow normal
> UART communication.
>
>    _ioctl(uart_dev, HDLC_SETIFNET, ppp_dev);
>
> should re-enable the HDLC interface. Please let me
> know if this works or not.
>
>
> Harald
>
> P.S. Sorry for not answering this sooner.
>
>




More information about the En-Nut-Discussion mailing list