You Are Here:

Community: Developer Discussion Boards

Reply « Previous Thread | Next Thread »

#1 Old Need for WiFi positioning? - 2008-10-24, 20:10

Join Date: Nov 2006
Posts: 501
neil.young
Offline
Super Contributor
Is there a need for a PyS60 application, providing a geocode based upon the WiFi environment?
Reply With Quote

#2 Old Re: Need for WiFi positioning? - 2008-10-24, 20:25

Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Send a message via Skype™ to Rafael T.
Rafael T.'s Avatar
Rafael T.
Offline
Forum Nokia Champion
Please explain better your question. Do you want to get phone's position using Wi-Fi?

BR,

Rafael T.
Reply With Quote

#3 Old Re: Need for WiFi positioning? - 2008-10-24, 20:29

Join Date: Nov 2006
Posts: 501
neil.young
Offline
Super Contributor
* Scan WiFi environment, gather infos
* Lookup the found BSSIDs in the web
* Get the geocode if available and present a map (optional)
Reply With Quote

#4 Old Re: Need for WiFi positioning? - 2008-10-24, 21:12

Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Send a message via Skype™ to Rafael T.
Rafael T.'s Avatar
Rafael T.
Offline
Forum Nokia Champion
Actually there is a way to retrieve GPS data and show it in a map (using Google Maps). For reading GPS data you should see this article on the Wiki. And for using Google Maps to display the current location, you can see this thread.

Hope it helps,

Rafael.
Reply With Quote

#5 Old Re: Need for WiFi positioning? - 2008-10-24, 21:36

Join Date: Nov 2006
Posts: 501
neil.young
Offline
Super Contributor
Hmm... You are missing my point. I also have written those kind of stuff (refer to http://foreverneilyoung.blogspot.com/). That wasn't the question at all. I just wanted to figure out, whether there is and interest for a WiFi based solution. Nobody talked about Google Map tiles (illegal) and GPS retrieval (simple).

Please don't respond if you don't have an opinion to the initial question.
Reply With Quote

#6 Old Re: Need for WiFi positioning? - 2008-10-24, 21:45

Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Send a message via Skype™ to Rafael T.
Rafael T.'s Avatar
Rafael T.
Offline
Forum Nokia Champion
Quote:
Originally Posted by neil.young View Post
Hmm... You are missing my point. I also have written those kind of stuff (refer to http://foreverneilyoung.blogspot.com/). That wasn't the question at all. I just wanted to figure out, whether there is and interest for a WiFi based solution. Nobody talked about Google Map tiles (illegal) and GPS retrieval (simple).

Please don't respond if you don't have an opinion to the initial question.
Sorry, man!

I just interpreted your question differently. Now I understood what you want. I'm going to have a break now and after this I'll search for this and post it here if I find it.

Sorry for the wrong answer and thanks for telling me using Google Maps is illegal (I didn't knew that).


BR,

Rafael.
Reply With Quote

#7 Old Re: Need for WiFi positioning? - 2008-10-24, 21:52

Join Date: Nov 2006
Posts: 501
neil.young
Offline
Super Contributor
Sorry for beeing that rude... I'm a bit annoyed. So apologizes.
Regards
Reply With Quote

#8 Old Re: Need for WiFi positioning? - 2008-10-25, 17:52

Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
Send a message via Yahoo to gaba88 Send a message via Skype™ to gaba88
gaba88's Avatar
gaba88
Offline
Forum Nokia Champion
Quote:
Originally Posted by neil.young View Post
Is there a need for a PyS60 application, providing a geocode based upon the WiFi environment?
hi neil.young

I am not sure such a kind of thing is feasible in pys60 but yes there is obviously a need for such kind of application. If anybody comes with such an application it will be great.
Currently in pys60 we can get the location using two methods one is the cellid based and other is the GPS based.
Cellid is not that much efficient and GPS is not universal but efficient so the WiFi positioning could be a next better option.

Enjoy Pythoning
Gaba88


Gargi Das- http://gargidas.blogsot.com

Forum Nokia Python Wiki


Learn Python at http://mobapps.org/PyS60
Reply With Quote

#9 Old Re: Need for WiFi positioning? - 2008-10-25, 18:42

Join Date: Nov 2006
Posts: 501
neil.young
Offline
Super Contributor
You are absolutely right.

The background is this: http://foreverneilyoung.blogspot.com...u-firefox.html
And the preliminary, very first approach of the script is here:

Code:
# This script is published under GPL (included below)
# (c) "Neil Young" (neil.young@freenet.de)
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#


import httplib, urllib, e32, appuifw
 
def get_position(): 
	d = appuifw.query(u"BSSID:", "text")
	if d == None: 
		return
	else: 
		bssid = d
	
	req = "<?xml version='1.0'?>  <LocationRQ xmlns='http://skyhookwireless.com/wps/2005' version='2.6' street-address-lookup='full'>  <authentication version='2.0'>  <simple>  <username>beta</username>  <realm>js.loki.com</realm>  </simple>  </authentication>  <access-point>  <mac>xxxxxxxxxxxx</mac>  <signal-strength>-50</signal-strength>  </access-point>  </LocationRQ>"

	headers = {"Content-type": "text/xml", "Connection": "close"}
	conn = httplib.HTTPSConnection("api.skyhookwireless.com")
	req = req.replace("xxxxxxxxxxxx", bssid)
	conn.request("POST", "/wps2/location", req, headers)
	resp = conn.getresponse()
	answer = resp.read()
	conn.close()
	print answer
	e32.ao_yield()
	 
def quit(): #exit function
	script_lock.signal()
 
appuifw.app.menu = [(u"Get Position", get_position)]
 
appuifw.app.exit_key_handler = quit
script_lock = e32.Ao_lock()
script_lock.wait()
Use NetStumbler to scan your environment, take a BSSID found and enter all 12 digits in a row e.g. "112233445566". Currently I'm just tracing the result.

The fact is: Yesterday I drove home from my company (Berlin), with a notebook running netstumbler, found ~330 WiFi networks on a distance of ~8 km (excluding Autobahn), resolved them using SkyhookWireless as described above (success rate 65%) and showed the points on a Google Map. Finally I could easily reconstruct my route... Isn't that scaring?

Regards
Reply With Quote

#10 Old Re: Need for WiFi positioning? - 2008-10-25, 20:56

Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Send a message via Skype™ to Rafael T.
Rafael T.'s Avatar
Rafael T.
Offline
Forum Nokia Champion
Hey neil.young,

I wouldn't say scary, but interesting You made a cool piece of code already, maybe you can expand it to be a nice application with many features. Although WiFi positioning requires a lot of WiFi coverage since you'll be moving. Here in Brazil I can't use this, since we have few WiFi spots

Keep going with this code!


BR,

Rafael.
Last edited by Rafael T. : 2008-10-25 at 23:34.
Reply With Quote

#11 Old Re: Need for WiFi positioning? - 2008-10-25, 23:21

Join Date: Nov 2006
Posts: 501
neil.young
Offline
Super Contributor
The scaring part is: I provide movement profile information to guys, I don't know... And: Nobody asked me for my allowance to map my hotspots (which are all resolvable... so the war drivers have already seen my equipment...)

Regards
Reply With Quote

#12 Old Re: Need for WiFi positioning? - 2008-10-27, 18:09

Join Date: Mar 2003
Posts: 937
Location: Espoo, Finland
JOM's Avatar
JOM
Offline
Forum Nokia Champion
Quote:
Originally Posted by neil.young View Post
Is there a need for a PyS60 application, providing a geocode based upon the WiFi environment?
There are commercial systems based on that, especially for indoors navigation and resource location, for example in hospitals or security services.

I also believe that Wifi navigation support is going to be integrated into ... Now I have to stop, sorry I have no memos, no brochures, but for some reason I do believe I heard on Symbian Smartphone show that wifi support would be added into some well known mobile mapping sw.

So: yes, there is need, there is interest, people are already doing it and it will continue and grow. The current navigation devices will look pretty poor in next few years.

Cheers,

--jouni
Reply With Quote

#13 Old Re: Need for WiFi positioning? - 2008-10-28, 00:23

Join Date: Nov 2006
Posts: 501
neil.young
Offline
Super Contributor
Need some help: Could somebody please confirm the following strange monitoring? If using the script above with a _valid_ BSSID, this BSSID is resolvable using a WiFi connection. The same BSSID is _not_ resolvable using a GPRS connection.

I currently have no explanation, because it is _not_ the transport, what fails. The error is sent by skyhookwireless in the XML...

Regards
Reply With Quote

#14 Old Re: Need for WiFi positioning? - 2008-10-28, 19:56

Join Date: Nov 2006
Posts: 501
neil.young
Offline
Super Contributor
Nobody able to confirm? I have analyzed the requests leaving my phone, WiFi compared to GPRS. The differences are in the HTTP header, but I've put the GPRS header into my C# sample (running on PC) to no avail. Works.

But if it doesn't work over GPRS, I have to abandon the project.

Please give it a try!
Reply With Quote

#15 Old Re: Need for WiFi positioning? - 2008-10-29, 00:41

Join Date: Nov 2006
Posts: 501
neil.young
Offline
Super Contributor
Sorry for annoying you again. Here is the app for S60 3rd FP1:

http://maps.alphadex.de/datafiles/LocateMe_v1_0_1_unsigned_testrange.sis

It includes the fine WLANTOOLS module from Christophe Berger http://www-rp.lip6.fr/~berger/pys60.html, so it is rather easy to install: Download, opensign with full caps, test.

What does it do? It uses WLANTOOLS in order to scan your WiFi environment. After the scan it sends the gathered BSSIDs up to SkyHookWireless and asks for GeoCodes. If available, the codes are shown. I plan to add a function to show the GeoCode on a Google Map, but this is not done yet.

Comments welcome, but I doubt, I'll get one...

Regards
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
some questions about AGPS and Network based Positioning eling0167 Location Based Services and Navigation 4 2008-11-03 12:42
S60 3rd FP1 - Positioning Methods phanoulis Mobile Java Tools & SDKs 2 2008-06-21 23:53
Positioning Plugin - Location Acquisition API gosuwachu Symbian Networking & Messaging 9 2008-02-20 08:31
Same old story with positioning in 1.4.1 neil.young Python 9 2007-11-04 21:26
Positioning - N70 - Holux: Help please! neil.young Python 0 2007-07-31 22:52

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia