ESP8266.ping does not work as expected #5510
Replies: 1 comment
-
Posted at 2016-06-26 by Wilberforce Have you connect to wifi first? What ip address did you get? Posted at 2016-06-26 by Filip yes I'm connected to wifi see the require("Wifi").getIP() result below. I'm able to ping to my board from my PC but not the other way around.
Posted at 2016-06-27 by Wilberforce I'm using I'm getting the same behaviour. I wonder if this is related to the router model? Posted at 2016-06-27 by @MaBecker running on ESP8266-12E tested with .1 (router) and .52 (mac book) - so this works fine for my configuration
Posted at 2016-06-29 by Filip The following is my output. It still does not work despite the fact that I'm connected to different router right now. Obviously there is bug somewhere, which is very discouraging
Posted at 2016-06-29 by @MaBecker additionally
Posted at 2016-06-29 by @MaBecker also works for me with sdk 1.5.4
Posted at 2016-07-08 by @MaBecker ESP on 192.168.194.65, Macbook on 192.168.194.52 ESP pings Macbook and Macbook captures packages with tcpdump tcpdump -s 1550 -w x.pcap -v host 192.168.194.64 tcpdump -XX -nnr x.pcap | grep ICMP funny ..... Posted at 2016-07-08 by tve Yup, there's a clear bug where the ping always goes to 0.0.0.0. Some devices evidently respond to that. Posted at 2016-07-08 by @MaBecker @tve take it and let you get payed for your great work on Esprunino for ESPs at Bug Bounty
Posted at 2016-07-08 by tve The bug is in the esp8266 espruino code... Posted at 2016-07-08 by @MaBecker hmm - I will start searching now - good exercise for me ;-) Posted at 2016-07-08 by @MaBecker comment this line and you get this: tcpdump -XX -nnr x.pcap | grep ICMP @tve please check Posted at 2016-07-08 by DrAzzy @MaBecker - the BugBounty link doesn't work. URL comes out hopelessly mangled. Posted at 2016-07-08 by @MaBecker @drazzy - updated the link but as tve mentioned:
Posted at 2016-07-08 by @MaBecker created pull request #874 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2016-06-26 by Filip
Hi All,
I'm simply trying to send a ping request to my router with ESP8266.ping function, my callback gets called but the result is always negative as if my router is not alive but it is. I have the latest nodeMCU board with espruino 1v85. Any idea?
The code I'm running :
and the result :
Beta Was this translation helpful? Give feedback.
All reactions