Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Mario Mikočević
@mozgy
WiFi USB dongle
brutzler
@brutzler
Yes, have one (as i told). Any special software? Tshark, or....?
Mario Mikočević
@mozgy
plain tcpdump
brutzler
@brutzler
do I get an online dump with this? or do i have to dump into a file?
Hmmm....I like the gui and the filter possibility of wireshark. And it is "online" No need of dumping into a file.
Is there any äquivalent on Raspi for this?
And is it possible to sniff packages from different WiFi-modules? On normal LAN I use a switch with port mirroring to sniff "foreign" packages
brutzler
@brutzler
Other idea: Use the WiFi Dongle on my W7-computer. looking for a driver to let wireshark work with the WiFi-interface. But is it possible to sniff all packages in the WLAN-network? Or only own telegrams. If I can not sniff the packages from my ESP, then the solution from Links2004 "capturing on the router" is the best (and only) way.
Markus
@Links2004
in windows the drivers that give real low level access are rare, on linux its no problem.
"monitor mode" is the keyword
brutzler
@brutzler
thx for input. will check. But interesting prior would be, if I can really sniff foreign packages. otherwise its of no use.
Stavros Korokithakis
@skorokithakis
Hello
I just got a NodeMCU and flashed the Arduino firmware, and am trying to read a few sensors, but the damn thing keeps dumping core at random times. Has anyone had the same experience of instability?
d-anders
@d-anders
a lot of ways to crash it
code?
Stavros Korokithakis
@skorokithakis
I'll post it when I'm at the pc, but it doesn't seem to me like it would be code-related, I'm just doing some digitalReads
Does it ever crash randomly for you?
d-anders
@d-anders
no
Stavros Korokithakis
@skorokithakis
Hmm, I'll post some code soon then, thanks
d-anders
@d-anders
but for example if you use interrupts the wrong way (doing much work in a timer etc) it will crash
Stavros Korokithakis
@skorokithakis
yes, I also hit that (I was adding a timer and it kept crashing), so I took it out
d-anders
@d-anders
having timers should work fine, but the code needs to finish quickly
brutzler
@brutzler
How do you ensure always to have a connection to a router?
When ESP is running with an established connection to the router, and I restart the router. Will the WiFi connection be automatic restored?
Or do I have to restart the ESP too in that case? Perhaps automatically with a watchdog or similiar?
d-anders
@d-anders
good question, i always asumed it would reconnect :)
Stavros Korokithakis
@skorokithakis
@brutzler, that code contains a function to reconnect as well, if you want to check it out
Me No Dev
@me-no-dev
@brutzler it will reconnect automatically
Mario Mikočević
@mozgy
I have several NodeMCU hw, all works fine with sensors (DHT11/22, DS18B20)
Me No Dev
@me-no-dev
@skorokithakis code looks fine
d-anders
@d-anders
@skorokithakis didnt really see anything strange in your code
Me No Dev
@me-no-dev
maybe mqtt giving you headaches?
Stavros Korokithakis
@skorokithakis
@me-no-dev it is, but it's also crashing without mqtt (i removed it from the code)
d-anders
@d-anders
when does it crash and can you remove code to avoid it?
Stavros Korokithakis
@skorokithakis
sometimes it crashes on startup, sometimes it works for minutes, sometimes it crashes after a few seconds
completely random
brutzler
@brutzler
How do you ensure, that the ESP is still working proper?
I want to setup a little 24/7 controller for my warmwater-heating. And this "PLC" should not stop working.
Is there a need/possibility for a watchdog to reset the ESP in case of hanging? And how to recognize this?
d-anders
@d-anders
it crashed even if you comment out everything in your loop?
Me No Dev
@me-no-dev
@skorokithakis you said you use nodemcu. Any chance something is wrong with the power to it?
power spikes can reseti it easily
Stavros Korokithakis
@skorokithakis
i'm powering it from the computer's USB, as i want to be able to read the serial. i don't know if the computer's power supply is that unstable, it's a macbook plugged in to the wall
Me No Dev
@me-no-dev
it should be fine then
Mario Mikočević
@mozgy
try this example DHT and OTA
Me No Dev
@me-no-dev
given that the cable is OK
Stavros Korokithakis
@skorokithakis
hmmm
i should try another cable
d-anders
@d-anders
do you have any hardware connected to nodemcu board?
Stavros Korokithakis
@skorokithakis
@d-anders, some sensors
@mozgy what does that code do?
Mario Mikočević
@mozgy
nodemcu boards are working on 3.0V
reading DHT sensor and posting data on web
d-anders
@d-anders
seperate power supply for those or are you using the usb?
Mario Mikočević
@mozgy
so those 3.0V might not be enough juice