WIFI 定位系统

FanZ 发布于 2011/01/11 06:28
阅读 5K+
收藏 4

这学期选了们无线通信的课,自己定了一个项目是做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 是网卡驱动决定的,可以因网卡而异。

 

大家有什么建议和想法可以交流,我会实时更新我的进度。

加载中
0
红薯
红薯

wifi 好像没有区域相关信息吧。

像 google 都要自己开着小车去收集,呵呵

0
FanZ
FanZ

引用来自#2楼“红薯”的帖子

wifi 好像没有区域相关信息吧。

像 google 都要自己开着小车去收集,呵呵

事实上是有两种方法可循的~ 比方说每个点接到不同cell的信号量都不同 cell又有不同的MAC地址 这就像指纹一样 可以区分。

第二种方法是计算free space lost,前提是知道每个router的地理信息,算出接收点到达router的距离,然后很多圈圈的交点就是位置,

0
红薯
红薯

但这种方式很不靠谱啊,跟GSM蜂窝通信完全不同,按区域划分CELL。

信号量的决定因素太多了,AP的质量、无线网卡的质量、中间是否有墙的阻隔等等

0
FanZ
FanZ

引用来自#4楼“红薯”的帖子

但这种方式很不靠谱啊,跟GSM蜂窝通信完全不同,按区域划分CELL。

信号量的决定因素太多了,AP的质量、无线网卡的质量、中间是否有墙的阻隔等等

 是啊 这也可能是教授说难做的原因。总之在学校里都是学习过程,即使我建的模最后定位偏差太大,也可以写进报告里,说这个方法不可行。我目前的想法只是对一栋楼内环境进行定位。的确 我今天试了一下 同一个位置 两台不同无线网卡的电脑得到的数据完全不同 而且wifi信号一般都不稳定,+-10个dbm以内的飘动常有的事。

0
G.
G.

我倒是挺需要一个室内定位的.

我有一个单片机的小车,我想实现它自动定位,...然后找到充电坞,自己充电去...呵呵.

有考虑过Wifi,或者其它的无线定位. 但是无线这东东不靠谱,容易受干扰,墙壁的穿透和反射也是个问题.

想用红外线...可是这东东更不靠谱,没办法穿透墙啊.

目前的想法是搞两摄像头装在车上,模拟人眼... 虽然硬件是挺廉价的,但图形识别和自学习功能, 以我的水平还是搞不来.

0
FanZ
FanZ

引用来自#6楼“G”的帖子

我倒是挺需要一个室内定位的.

我有一个单片机的小车,我想实现它自动定位,...然后找到充电坞,自己充电去...呵呵.

有考虑过Wifi,或者其它的无线定位. 但是无线这东东不靠谱,容易受干扰,墙壁的穿透和反射也是个问题.

想用红外线...可是这东东更不靠谱,没办法穿透墙啊.

目前的想法是搞两摄像头装在车上,模拟人眼... 虽然硬件是挺廉价的,但图形识别和自学习功能, 以我的水平还是搞不来.

 你这个对于定位的精度要求太高了,我说的这个wifi定位精度基本都在10米就很不错了。

但是如果你的单片机小车能写个程序记得自己走过的所有路程,并在需要充电的时候自动计算回程的路线可能更靠谱一点。

至少在算法上是可以实现的, 车辆的走位是不是那么精确就是另一回事了。

0
G.
G.

引用来自#7楼“FanZ”的帖子

引用来自#6楼“G”的帖子

我倒是挺需要一个室内定位的.

我有一个单片机的小车,我想实现它自动定位,...然后找到充电坞,自己充电去...呵呵.

有考虑过Wifi,或者其它的无线定位. 但是无线这东东不靠谱,容易受干扰,墙壁的穿透和反射也是个问题.

想用红外线...可是这东东更不靠谱,没办法穿透墙啊.

目前的想法是搞两摄像头装在车上,模拟人眼... 虽然硬件是挺廉价的,但图形识别和自学习功能, 以我的水平还是搞不来.

 你这个对于定位的精度要求太高了,我说的这个wifi定位精度基本都在10米就很不错了。

但是如果你的单片机小车能写个程序记得自己走过的所有路程,并在需要充电的时候自动计算回程的路线可能更靠谱一点。

至少在算法上是可以实现的, 车辆的走位是不是那么精确就是另一回事了。

记录小车的路线再来计算回程, 这个更不靠谱了. 那样,小车的轮子需要用舵机, 在桌面上玩一玩还可以, 如果放到地板上, 那误差就太大了. 而且这样一来,定制性也差.

0
张世珍
有谁知不知道在android模拟器上点击设置可以看到无线和网络点击无线和网络可以看到wi-fi设置点击wi-fi设置可以看到添加wifi网络,他们一步步跳转代码怎么查看 ...
0
d
dbtop
看你是怎么理解这个问题,前面大多数人在说的是,像GPS一样的定位,还有一种就是室内定位,比如莫个房间内有多个Wifi设备,且位置固定,通过RSSI值,也可以是信号强度,能大致计算出一个设备的位置。
0
http://www.haoservice.com/docs/10      wifi定位数据接口, 免费体验 /
返回顶部
顶部