Ping is not working in LWIP pppos

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Ping is not working in LWIP pppos

rahul.mane .
Hello ,

I want to use LWIP stack (2.0.2) with pppos.
I have NXP MC5748 board wi SIM800c interface with one UART channel.
I have use following AT commands to configure GSM module:


#define msg1  "AT\r\n"
#define msg2  "ATE0\r\n"
#define msg3  "AT+CFUN=1\r"
#define msg4  "AT+CNMI=0,0,0,0,0\r"
#define msg5  "AT+CPIN?\r"
#define msg6  "AT+CREG=1\r"
#define msg7  "AT+CGDCONT=1,\"IP\",\"airtelgprs.com\"\r"
#define msg8  "AT+CGDATA=\"PPP\",1\r"
#define msg9  "ATD*99***1#\r"



I am successfully getting following data from GSM module.

status_cb: Connected
   our_ipaddr  = 100.95.137.40
   his_ipaddr  = 192.168.254.254
   netmask     = 255.255.255.255
   dns1        = 59.144.144.46
   dns2        = 59.144.127.117
   
Next step, I am trying to ping 8.8.8.8 

But I am getting Timeout error

lwip_socket(PF_INET, SOCK_RAW, 1) = 1
lwip_sendto(1, data=0x40040728, short_size=40, flags=0x0 to=8.8.8.8 port=42405
ping: send 8.8.8.8
1. lwip_recvfrom(1, 0x40008cb8, 64, 0x0, ..)
2. lwip_recvfrom: top while sock->lastdata=0x0
4. lwip_recvfrom: netconn_recv err=-3, netbuf=0x0
5.lwip_recvfrom(1): buf == NULL, error is "Timeout."!

Is there any step i am missing to configure ?

For more information I have attached log file

Thanks
Rahul


_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users

log.txt (2K) Download Attachment
lwipcfg.h (1K) Download Attachment
lwipopts.h (14K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Ping is not working in LWIP pppos

Sylvain Rochet
Hi Rahul,

On Fri, Apr 05, 2019 at 10:27:41AM +0000, rahul.mane . wrote:

> Hello ,
>
> I want to use LWIP stack (2.0.2) with pppos.I have NXP MC5748 board wi
> SIM800c interface with one UART channel.I have use following AT
> commands to configure GSM module:
>
> I am successfully getting following data from GSM module.
> status_cb: Connected   our_ipaddr  = 100.95.137.40   his_ipaddr  = 192.168.254.254   netmask     = 255.255.255.255   dns1        = 59.144.144.46   dns2        = 59.144.127.117   Next step, I am trying to ping 8.8.8.8 
> But I am getting Timeout error
> lwip_socket(PF_INET, SOCK_RAW, 1) = 1lwip_sendto(1, data=0x40040728, short_size=40, flags=0x0 to=8.8.8.8 port=42405ping: send 8.8.8.81. lwip_recvfrom(1, 0x40008cb8, 64, 0x0, ..)2. lwip_recvfrom: top while sock->lastdata=0x04. lwip_recvfrom: netconn_recv err=-3, netbuf=0x05.lwip_recvfrom(1): buf == NULL, error is "Timeout."!
> Is there any step i am missing to configure ?
> For more information I have attached log file
I guess it is because checksums are disabled. Could you try enabling
CHECKSUM_GEN_* and CHECKSUM_CHECK_* options ?

Sylvain

_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users

signature.asc (188 bytes) Download Attachment