I used MQX 4.2 and modify PPP code can used M26 gprs modem OK.
when i used Fibocom L710 LTE 4G modem ,I have modify AT command, it can PPP OK,but
can not ping any IP address;
when i used M26 2G modem ,get local address and remote adress not same,but at 4G modem it is same.
see: (4G )
Attempting to establish connection. Please wait(45)....Link_up
DNS server added successfuly.
Connection established
Local address: 10.173.252.171
Remote address: 10.173.252.171
PPP connection ok
GPRS modem connected successfuly
Trying to resolve hostname
Hostname resolution failed
Start GPRS OK
howroute
IPv4 Routing Table:
INDIRECT Route: 10.173.252.171
DIRECT Route: 10.173.252.171, NetIF=2000a5a0,DestIF=0
DIRECT Route: 192.168.1.202, NetIF=1fff807c,DestIF=1fff807c
DIRECT Route: 192.168.1.202, NetIF=1fff807c,DestIF=0
Image is 2G modem infomation.
who can tell me why?? i can't ping any IP .
thank u.
=======================================================================
modify IPCP_up function ,on ipcpfsm.c file.
#if 1
if(ipcp_ptr->LOPT.ADDR == ipcp_ptr->POPT.ADDR)
{
ipcp_ptr->POPT.ADDR = 0;
ipcp_ptr->BIND_PARMS.network = 0;
}
#endif
RTCSCMD_smartissue(ipcp_ptr->BIND_PARMS, IPIF_bind_ppp);
add route 0.0.0.0 to route table.
Hello, I used MQX 4.0 to connect M26 gprs modem, the ppp process was ok and I got the remote address of gprs. But I could not connect the TCP server using the tcp socket. Could you show me your demo code for referrence. Thanks a lot!
Regards
sheng-dai
Hi tomzuojin:
The local address and remote address should be different, but in the same range. I would suggest you trace why the local address and remote address are the same at 4G modem.
Regards
Daniel