Hello Simon,

I have ping_init() call by using PING_USE_SOCKET enabled.
In ping_init I have passed the IP as 8,8,8,8
In ping_thread, ping_send function is called.
Now in that function, when MCU hits this Line of code

ping_prepare_echo(iecho, (u16_t)ping_size);

#if LWIP_IPV4
if(IP_IS_V4(addr)) {
struct sockaddr_in *to4 = (struct sockaddr_in*)&to;
to4->sin_len = sizeof(to4);
to4->sin_family = AF_INET;
*inet_addr_from_ip4addr(&to4->sin_addr, ip_2_ip4(addr)); *  ----->* At this
point the MCU control gets lost.*
}

Any suggestions on this !! will be helpful.

Devanand

On Mon, Feb 4, 2019 at 2:24 PM Devanand Biradar <devanan...@gmail.com>
wrote:

> I have found ping app file. Just need sometime to implement and test.
>
>
>
> On 4 Feb 2019 2:19 pm, "Devanand Biradar" <devanan...@gmail.com> wrote:
>
> Thanks for reply Simon.
> Yes I have to do it myself.
> As I am doing in NXP , and I am very much new for Lwip.
> I am getting nice support from Lwip mailing list.
> Thanks for all.
>
> On Mon, 4 Feb 2019, 14:12 goldsimon, <goldsi...@gmx.de> wrote:
>
>>
>>
>> Am 4. Februar 2019 06:53:47 MEZ schrieb Devanand Biradar <
>> devanan...@gmail.com>:
>> >Hello Sylvain,
>> >I have corrected my input & output serial driver.
>> >Now I am getting the IP addr, GW, subnet from GSM using PPPOS over
>> >LWIP.
>> >Status - CONNECTED.
>> >
>> >Now I want to use PING (using ICMP).
>> >I want to ping google.com, how to proceed in this.
>> >I want the steps to perform.
>>
>> Ignoring previous replies and just asking a question again does not make
>> you very popular here...
>>
>> How hard can it be to search through the lwIP sources to find the ping
>> app file and an example using it? Have you done that?
>>
>> If you want someone else to do your work, look for paid support. This
>> mailing list tries to help, but you do have to show some interest in
>> solving your problems yourself or you won't get too many answers to your
>> mails...
>>
>> Regards,
>> Simon
>>
>> _______________________________________________
>> lwip-users mailing list
>> lwip-users@nongnu.org
>> https://lists.nongnu.org/mailman/listinfo/lwip-users
>>
>
>
_______________________________________________
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to