lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] Ping is not working in LWIP pppos


From: rahul.mane .
Subject: [lwip-users] Ping is not working in LWIP pppos
Date: Fri, 5 Apr 2019 10:27:41 +0000 (UTC)

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="" 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

Attachment: log.txt
Description: Text document

Attachment: lwipcfg.h
Description: Text document

Attachment: lwipopts.h
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]