sudomesh / disaster-ping-pong

helps locate friendly ssids
1 stars 1 forks source link

Using reverse-engineered features for better meshing #2

Open Juul opened 6 years ago

Juul commented 6 years ago

This seems to be capable of both injecting arbitrary packets and a limited promiscuous mode that can capture packets addressed to the broadcast MAC address or the MAC address of the device.

I haven't tried it, but it looks like it is enough that you can do something like adhoc mode by having all devices in SOFTAP mode and either using the broadcast address or setting all nodes to have the same MAC.

paidforby commented 6 years ago

There is one problem, from previous experience, I know for a fact that the ESP truncates packets captured in promiscuous mode to ~128 bytes. Wonder how much this would constrain the data we need to send?

paidforby commented 6 years ago

Also, the nodeMCU firmware does not provide a function for enabling promiscuous mode, we could call it from Lua-wrapped C or modify the firmware to provide this functionality or just switch to writing the protocol in C. All of these are interesting possibilities, but I'm not sure if any are worth pursuing for what may just be a limited hack?

paidforby commented 6 years ago

After reading through this more I found a few interesting things:

All in all, this seems like a viable, if not the best solution (assuming I can find documentation on receiving raw packets). It isn't any less of a hack than what we are already doing in Lua.