-->
Page 2 of 2

Re: Use Sonoff with no Wifi access point via Wifi probe requ

PostPosted: Fri Nov 16, 2018 8:59 am
by torntrousers
QuickFix wrote:I've never really thought about something like a no central (access) point problem you're trying to solve.
My gut feeling says to create a special layer around the transport layer inside the OSI model or perhaps just sending UDP datagrams to anyone that wants to listen (and act accordingly, finalizing with an "I'm done" ack).


Mmm. Tricky though to send a UDP packet without being on an established IP network, and creating new special layer around the OSI transport layer - crikey - far from simple (which is part of the point of this approach) and quite likely not possible via the public API's and SPI's available to us from Python on the Pi or the Arduino SDK on the ESP8266.

I did initially look at using ESP-Now on the Sonoff and trying to emulate the Espressif specific ESP-Now packets from the Pi, which I think might be closer to what you are suggesting, but I haven't found any way to do that yet, and from hunting around in the Internet no one else has either.

Re: Use Sonoff with no Wifi access point via Wifi probe requ

PostPosted: Sat Nov 17, 2018 6:38 am
by torntrousers
Playing around with this some more I've found you can also use probe request's targeted to specific SSID's, and that enables even more possibilities with how to use this. See the update at the bottom of the page, here.

Re: Use Sonoff with no Wifi access point via Wifi probe requ

PostPosted: Wed Nov 21, 2018 4:52 pm
by schufti
Hi torntrousers,
I don't know of any commandline parameter to mute iwlist but one can allways redirect output to /dev/null

Code: Select allsudo iwlist wlan0 scan > /dev/null

Code: Select allcall("sudo iwlist wlan0 scan > /dev/null", shell=True)

Re: Use Sonoff with no Wifi access point via Wifi probe requ

PostPosted: Fri Nov 23, 2018 2:16 am
by torntrousers
Thanks schufti, thats great. I will go update the page.