On 12/14/2018 1:25 PM, arsz6733 wrote:
here is the dump data of the LWIP that pass to output callback
it just happens one time just during the connection
{FF}{7D}{23}{C0}{21}{7D}{21}{7D}{21}{7D}{20}{7D}{34}{7D}{22}{7D}{26}{7D}{20}{7D}{20}{7D}{20}{7D}{20}{7D}{25}{7D}{26}{CA}{C7}{32}{27}{7D}{27}{7D}{22}{7D}{28}{7D}{22}{27}{80}{7E}
Is it OK?!
That looks OK, but it wouldn't hurt to prepend a {7E} to make sure the
receiver knows you're staring a PPP packet.
and here is what I receive from Serial port
{7E}{FF}{7D}{23}{C0}{21}{7D}{21}{7D}{21}{7D}{20}{7D}{32}{7D}{22}{7E}{FF}{7D}{23}{C0}{21}{7D}{21}{7D}{21}{7D}{20}{7D}{32}{7D}{22}
{7E}{FF}{7D}{23}{C0}{21}{7D}{21}{7D}{21}{7D}{20}{7D}{32}{7D}{22}{7E}{FF}{7D}{23}{C0}{21}{7D}{21}{7D}{21}{7D}{20}{7D}{32}{7D}{22}
{7E}{FF}{7D}{23}{C0}{21}{7D}{21}{7D}{21}{7D}{20}{7D}{32}{7D}{22}{7E}{FF}{7D}{23}{C0}{21}{7D}{21}{7D}{21}{7D}{20}{7D}{32}{7D}{22}
I receive in length of 32 and pass it to ppp
any issue?
Let's try to decode your data and see:
{7E}{FF}{7D}{23}{C0}{21}{7D}{21}{7D}{21}{7D}{20}{7D}{32}{7D}{22}{7E}{FF}{7D}{23}{C0}{21}{7D}{21}{7D}{21}{7D}{20}{7D}{32}{7D}{22}
After unescaping, we get:
{FF}{03}{C0}{21}{01}{01}{00}{12}{02}
{FF}{03}{C0}{21}{01}{01}{00}{12}{02}
Those are not valid packets.
Does your hardware have a 16 byte FIFO on the serial receiver? Is your
serial port receiver interrupt driven? What baud rate are you running at?
Patrick Klos
Klos Technologies, Inc.
_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users