PPPos Lwip Issue
Hello everyone,
Today I'm writing to you because I'm trying to implement a PPPoS connection over the USB CDC Host of a STM32H745. The modem I'm trying to connect to is a SIM7500 of SimCom.
I managed to establish the connection between the modem and the mcu because I can see in the status callback the case PPPERR_NONE.
The problem is that even after establishing the connection, when I try to ping the ip that the SIM has assigned I cannot get a response. I tried to debug and I am able to see the ping received on the MCU side. It tries to respond and it but it never reaches te computer from which I sent the ping. If I'm not in PPP mode and I set up the PDP context I can ping the modem without any problem, so the ip is reachable.
Any ideas how should I proceed to debug that?
Thank you very much in advance
<!!!UPDATE!!!>
Seems like I haven't enabled the checksum generation and checksum control for lwip and I was sending packages with a 0x0 checksum.
For me worked enabling it with those 2 defines:
#define LWIP_CHECKSUM_CTRL_PER_NETIF 1
#define CHECKSUM_GEN_IP 1
Now I'm trying to open a tcp connection but seems like I have a problem with the routing. If anyone have an idea about how can I solve that I would appreciate.
Cheers
