If ppp_inproc_irq_safe=1
Then pass byte by byte  to pppos_ input

On Sat, 15 Dec 2018, 10:51 arsz6733, <arsz6...@gmail.com> wrote:

> here is my polling while()
>
>
>                 // *** LOOP: Handle GSM modem responses & disconnects ***
>                 while(1) {
>                         memset(data, 0, BUF_SIZE);
>                         int len = uart_read_bytes(GSM_UART_Port,
> (uint8_t*)data, BUF_SIZE, 30 /
> portTICK_RATE_MS);
>                         //DEBUGOUT("\n\r%s\n\r",data);
>                         if (len > 0)    {
>                                 pppos_input_tcpip(ppp, (u8_t*)data, len);
>                         }
>                 }
>
> and this is with interrupt I enabled PPP_INPROC_IRQ_SAFE
>
>
> void UART3_IRQHandler(void){
>                 char ch;
>                 ch=UARTGetChar(LPC_UART3);
>                         UARTPutChar(UART_0,ch);
>         }
>
> and here is the log more or less
>
> pppos_input[1]: got 1 bytes
> }pppos_input[1]: got 1 bytes
> #pppos_input[1]: got 1 bytes
> Àpppos_input[1]: got 1 bytes
> !pppos_input[1]: got 1 bytes
> }pppos_input[1]: got 1 bytes
> !pppos_input[1]: got 1 bytes
> }pppos_input[1]: got 1 bytes
> !pppos_input[1]: got 1 bytes
> }pppos_input[1]: got 1 bytes
>  pppos_input[1]: got 1 bytes
> }pppos_input[1]: got 1 bytes
> 2pppos_input[1]: got 1 bytes
> }pppos_input[1]: got 1 bytes
> "pppos_input[1]: got 1 bytes
> }pppos_input[1]: got 1 bytes
> ~pppos_input[1]: got 1 bytes
> pppos_input[1]: Dropping bad fcs 0x2a65 proto=0xc021
> pppos_input_drop: pbuf len=11, addr 10000098
>
> any new suggestion? I wonder where I'm doing wrong
>
>
>
>
>
>
>
>
>
> --
> Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html
>
> _______________________________________________
> lwip-users mailing list
> lwip-users@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/lwip-users
_______________________________________________
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to