这学期选了们无线通信的课,自己定了一个项目是做WIFI 定位的。跟教授刚讨论了一下,他说做起来比看起来难,可能是我目前的想法可能还比较简单。
我写了一个小程序,准确的说是改了一个小程序,iwlist。得到了如下的数据:
wlan0 Scan completed :
Cell 01 - Address: 00:25:84:03:12:6A Quality=74/100 Signal level=-57 dBm Noise level=-107 dBm
Cell 02 - Address: 00:26:0B:2A:3D:09 Quality=87/100 Signal level=-57 dBm Noise level=-113 dBm
Cell 03 - Address: 00:26:0B:2A:3D:0A Quality=76/100 Signal level=-56 dBm Noise level=-108 dBm
Cell 04 - Address: 00:22:90:39:47:0B Quality=70/100 Signal level=-56 dBm Noise level=-105 dBm
Cell 05 - Address: 00:26:0B:2A:3D:05 Quality=81/100 Signal level=-58 dBm Noise level=-110 dBm
Cell 06 - Address: 00:25:84:03:12:6B Quality=72/100 Signal level=-55 dBm Noise level=-106 dBm
Cell 07 - Address: 00:26:0B:2A:3D:0B Quality=81/100 Signal level=-58 dBm Noise level=-110 dBm
Cell 08 - Address: 00:26:0B:2A:3D:00 Quality=85/100 Signal level=-57 dBm Noise level=-112 dBm
Cell 09 - Address: 00:26:0B:2A:3D:01 Quality=81/100 Signal level=-58 dBm Noise level=-110 dBm
Cell 10 - Address: 00:22:90:39:47:05 Quality=70/100 Signal level=-57 dBm Noise level=-105 dBm
Cell 11 - Address: 00:25:84:03:12:69 Quality=72/100 Signal level=-57 dBm Noise level=-106 dBm
Cell 12 - Address: 00:25:84:03:12:61 Quality=72/100 Signal level=-56 dBm Noise level=-106 dBm
Cell 13 - Address: 00:25:84:03:12:65 Quality=72/100 Signal level=-57 dBm Noise level=-106 dBm
Cell 14 - Address: 00:14:F2:63:19:70 Quality=70/100 Signal level=-61 dBm Noise level=-105 dBm
Cell 15 - Address: 00:14:A8:6F:30:F9 Quality=81/100 Signal level=-62 dBm Noise level=-110 dBm
Cell 16 - Address: 00:17:5A:1E:14:E0 Quality=68/100 Signal level=-62 dBm Noise level=-104 dBm
Cell 17 - Address: 00:14:A8:6F:30:F0 Quality=79/100 Signal level=-62 dBm Noise level=-109 dBm
Cell 18 - Address: 00:14:F2:63:19:75 Quality=83/100 Signal level=-61 dBm Noise level=-111 dBm
Cell 19 - Address: 00:14:F2:63:19:71 Quality=89/100 Signal level=-61 dBm Noise level=-114 dBm
Cell 20 - Address: 00:14:F2:63:19:7B Quality=50/100 Signal level=-61 dBm Noise level=-95 dBm
Cell 21 - Address: 00:17:5A:1E:14:E1 Quality=66/100 Signal level=-61 dBm Noise level=-103 dBm
Cell 22 - Address: 00:14:F2:63:19:7A Quality=83/100 Signal level=-62 dBm Noise level=-111 dBm
Cell 23 - Address: 00:17:5A:1E:14:EB Quality=68/100 Signal level=-61 dBm Noise level=-104 dBm
Cell 24 - Address: 00:14:F2:63:19:79 Quality=89/100 Signal level=-61 dBm Noise level=-114 dBm
Cell 25 - Address: 00:14:A8:6F:30:F1 Quality=79/100 Signal level=-61 dBm Noise level=-109 dBm
Cell 26 - Address: 00:14:A8:6F:30:FB Quality=79/100 Signal level=-61 dBm Noise level=-109 dBm
Cell 27 - Address: 00:17:5A:1E:14:E9 Quality=68/100 Signal level=-61 dBm Noise level=-104 dBm
Cell 28 - Address: 00:14:A8:6F:30:F5 Quality=79/100 Signal level=-62 dBm Noise level=-109 dBm
Cell 29 - Address: 00:14:A8:6F:30:FA Quality=76/100 Signal level=-61 dBm Noise level=-108 dBm
Cell 30 - Address: 00:17:5A:1E:14:E5 Quality=50/100 Signal level=-61 dBm Noise level=-95 dBm
Cell 31 - Address: 00:14:A8:6F:3E:30 Quality=66/100 Signal level=-60 dBm Noise level=-103 dBm
Cell 32 - Address: 00:14:A8:6F:3E:35 Quality=79/100 Signal level=-61 dBm Noise level=-109 dBm
Cell 33 - Address: 00:14:A8:6F:3E:39 Quality=83/100 Signal level=-61 dBm Noise level=-111 dBm
Cell 34 - Address: 00:14:A8:6F:3E:3B Quality=79/100 Signal level=-61 dBm Noise level=-109 dBm
Cell 35 - Address: 00:14:A8:6F:3E:3A Quality=72/100 Signal level=-53 dBm Noise level=-106 dBm
Cell 36 - Address: 00:14:A8:6F:3E:31 Quality=79/100 Signal level=-61 dBm Noise level=-109 dBm
Cell 37 - Address: 00:26:0B:2A:35:A0 Quality=76/100 Signal level=-64 dBm Noise level=-108 dBm
Cell 38 - Address: 00:26:0B:2A:35:AA Quality=76/100 Signal level=-62 dBm Noise level=-108 dBm
Cell 39 - Address: 00:26:0B:2A:35:AB Quality=70/100 Signal level=-66 dBm Noise level=-105 dBm
Cell 40 - Address: 00:26:0B:2A:35:A5 Quality=68/100 Signal level=-61 dBm Noise level=-104 dBm
Cell 41 - Address: 00:14:A8:6F:2C:21 Quality=66/100 Signal level=-62 dBm Noise level=-103 dBm
Cell 42 - Address: 00:14:A8:6F:2C:25 Quality=47/100 Signal level=-65 dBm Noise level=-93 dBm
Cell 43 - Address: 00:26:0B:2A:35:A9 Quality=62/100 Signal level=-65 dBm Noise level=-101 dBm
Cell 44 - Address: 00:14:A8:6F:2C:2B Quality=62/100 Signal level=-62 dBm Noise level=-101 dBm
Cell 45 - Address: 00:14:A8:6F:2C:2A Quality=47/100 Signal level=-62 dBm Noise level=-93 dBm
Cell 46 - Address: 00:17:5A:1E:2A:E5 Quality=59/100 Signal level=-65 dBm Noise level=-99 dBm
Cell 47 - Address: 00:17:5A:1E:2A:EB Quality=59/100 Signal level=-63 dBm Noise level=-99 dBm
Cell 48 - Address: 00:17:5A:1E:2A:E0 Quality=50/100 Signal level=-61 dBm Noise level=-95 dBm
Cell 49 - Address: 00:17:5A:1E:2A:E1 Quality=47/100 Signal level=-65 dBm Noise level=-93 dBm
Cell 50 - Address: 00:14:A8:6F:2C:20 Quality=47/100 Signal level=-61 dBm Noise level=-93 dBm
Cell 51 - Address: 00:17:5A:1E:2A:E9 Quality=66/100 Signal level=-64 dBm Noise level=-103 dBm
Cell 52 - Address: 00:17:5A:1E:2A:EA Quality=70/100 Signal level=-65 dBm Noise level=-105 dBm
Cell 53 - Address: 00:26:0B:2A:35:A1 Quality=74/100 Signal level=-65 dBm Noise level=-107 dBm
Cell 54 - Address: 00:14:A8:6F:2C:29 Quality=62/100 Signal level=-63 dBm Noise level=-101 dBm
Cell 55 - Address: 00:24:14:85:DF:61 Quality=70/100 Signal level=-58 dBm Noise level=-105 dBm
Cell 56 - Address: 00:22:90:39:47:09 Quality=68/100 Signal level=-57 dBm Noise level=-104 dBm
Cell 57 - Address: 00:22:90:39:47:0A Quality=70/100 Signal level=-57 dBm Noise level=-105 dBm
Cell 58 - Address: 00:22:90:39:47:01 Quality=66/100 Signal level=-57 dBm Noise level=-103 dBm
Cell 59 - Address: 00:02:6F:45:20:84 Quality=47/100 Signal level=-55 dBm Noise level=-93 dBm
Cell 60 - Address: 00:22:90:5D:9F:71 Quality=47/100 Signal level=-64 dBm Noise level=-93 dBm
Cell 61 - Address: 00:14:A8:6F:3E:25 Quality=50/100 Signal level=-61 dBm Noise level=-95 dBm
Cell 62 - Address: 00:25:84:03:12:19 Quality=53/100 Signal level=-61 dBm Noise level=-96 dBm
Cell 63 - Address: 00:14:A8:6F:3E:29 Quality=62/100 Signal level=-62 dBm Noise level=-101 dBm
Cell 64 - Address: 00:22:90:5D:9F:75 Quality=47/100 Signal level=-64 dBm Noise level=-93 dBm
Cell 65 - Address: 00:25:84:03:12:1A Quality=47/100 Signal level=-61 dBm Noise level=-93 dBm
Cell 66 - Address: 00:22:90:5D:9F:7B Quality=47/100 Signal level=-65 dBm Noise level=-93 dBm
这样的数据可以做到实时更新,并且会根据移动不停的捕捉beacon frame计算信号强度,可能最重要的是Signal level和Noise Level, 因为Quality 是网卡驱动决定的,可以因网卡而异。
大家有什么建议和想法可以交流,我会实时更新我的进度。