Outils pour utilisateurs

Outils du site


esp8266:testportee

Test de portée

une expérience avec un ESP02 .. et 2 pile de 1,5v, j'en suis a 50 m sans problème .. le terrain est trop petit pour plus ;)

--init.lua

wifi.setmode(wifi.STATION)
cfg = { ip="192.168.1.63", netmask="255.255.255.0", gatway="192.168.1.1"}
wifi.sta.setip(cfg)
wifi.sta.config("SSID","PASSWD")
ip = wifi.sta.getip()
print(ip)
mac = wifi.sta.getmac()
print(mac)
ident = node.chipid()
cu=net.createConnection(net.UDP)
cu:connect(9009,"192.168.1.33")

tmr.alarm(1,10000, 1,  function() cu:send("ID " .. mac .. " " .. ident .. " " .. ip)
end )

tmr.alarm(2,10100, 1,  function()
  function listap(t)
       for ssid,v in pairs(t) do
         authmode, rssi, bssid, channel = string.match(v, "(%d),(-?%d+),(%x%x:%x%x:%x%x:%x%x:%x%x:%x%x),(%d+)")
         print(ssid,authmode,rssi,bssid,channel)
        cu:send(ssid .. " " .. authmode .. " " .. rssi .. " " .. bssid .. " " .. channel)
      end
    end
  wifi.sta.getap(listap)
end )  

Cela donne des idées pour une cartographie pour kismet ;-) en tout cas j'ai en posant ma puce plus loin

ID 18-FE-34-9C-A3-E7 10265575 192.168.1.63
FreeWifi_secure 0 -74 e6:06:43:17:63:59 1
FreeWifi 0 -75 e6:06:43:17:63:58 1
fred_freebox 2 -92 0e:76:6b:29:10:48 1
Bbox-716BB8 4 -91 00:1f:9f:be:eb:cb 1
Bouygues Telecom Wi-Fi 0 -91 52:1f:9f:be:eb:c8 1
ID 18-FE-34-9C-A3-E7 10265575 192.168.1.63
Bouygues Telecom Wi-Fi 0 -92 52:1f:9f:be:eb:c8 1
FreeWifi 0 -73 e6:06:43:17:63:58 1
fred_freebox 2 -92 0e:76:6b:29:10:48 1
Bbox-716BB8 4 -91 00:1f:9f:be:eb:cb 1
FreeWifi_secure 0 -92 0e:76:6b:29:10:4b 1
ID 18-FE-34-9C-A3-E7 10265575 192.168.1.63
fred_freebox 2 -92 0e:76:6b:29:10:48 1
FreeWifi 0 -91 0e:76:6b:29:10:4a 1
Bbox-716BB8 4 -87 00:1f:9f:be:eb:cb 1
FreeWifi_secure 0 -73 e6:06:43:17:63:59 1
SNHACK 2 -66 f8:d1:11:9f:f8:84 4
ID 18-FE-34-9C-A3-E7 10265575 192.168.1.63
FreeWifi_secure 0 -93 0e:76:6b:29:10:4b 1
FreeWifi 0 -92 0e:76:6b:29:10:4a 1
fred_freebox 2 -91 0e:76:6b:29:10:48 1
Bbox-716BB8 4 -90 00:1f:9f:be:eb:cb 1
Bouygues Telecom Wi-Fi 0 -91 52:1f:9f:be:eb:c8 1
ID 18-FE-34-9C-A3-E7 10265575 192.168.1.63
Bouygues Telecom Wi-Fi 0 -89 52:1f:9f:be:eb:c8 1
FreeWifi 0 -93 0e:76:6b:29:10:4a 1
fred_freebox 2 -89 0e:76:6b:29:10:48 1
FreeWifi_secure 0 -74 e6:06:43:17:63:59 1
SNHACK 2 -63 f8:d1:11:9f:f8:84 4
ID 18-FE-34-9C-A3-E7 10265575 192.168.1.63
Bbox-716BB8 4 -90 00:1f:9f:be:eb:cb 1
FreeWifi 0 -72 e6:06:43:17:63:58 1
fred_freebox 2 -93 0e:76:6b:29:10:48 1
FreeWifi_secure 0 -74 e6:06:43:17:63:59 1
SNHACK 2 -65 f8:d1:11:9f:f8:84 4
ID 18-FE-34-9C-A3-E7 10265575 192.168.1.63
FreeWifi_secure 0 -72 e6:06:43:17:63:59 1
FreeWifi 0 -73 e6:06:43:17:63:58 1
fred_freebox 2 -92 0e:76:6b:29:10:48 1
Bbox-716BB8 4 -82 00:1f:9f:be:eb:cb 1
Bouygues Telecom Wi-Fi 0 -89 52:1f:9f:be:eb:c8 1
esp8266/testportee.txt · Dernière modification: 2017/04/11 15:13 (modification externe)