Can the fakeGPS program in Windows Mobile 6 sdk be a possible position fix for Gears GeoLocation?

14 views
Skip to first unread message

Renuka

unread,
Sep 11, 2008, 3:29:48 AM9/11/08
to Gears Users
Hi all,

The Web page in "http://code.google.com/apis/gears/samples/
hello_world_geolocation.html " works fine on my Windows Mobile 6.1
emulator. I get my location based on the IP through which my emulator
connects to the internet i.e., my computer's IP, which is an
approximate position.

I hosted a web page on my localhost based on the sample application
and tested it on the emulator. This works just as expected and gives
the exact same position

But I have a query. I installed the fakeGPS program which we normally
have in windows mobile 6 sdk > tools > GPS, on the emulator.
The fakeGPS program obviously simulates a GPS intermediate driver. I
tested the fakeGPS, I wrote a sample mobile forms based api, which
fetches the latitude an d longitude from the fakeGPS program.

Now, as the fakeGPS actually works, can I, in someway set this as a
position fix for Gears.Geolocation ?

Thanks in advance,
Renuka Prasad.

Ben Lisbakken

unread,
Sep 11, 2008, 12:33:10 PM9/11/08
to gears...@googlegroups.com
Hey Renuka --

You should post this question on the thread you currently have with Steve Block.  He is a good resource for these questions.

-Ben

Renuka

unread,
Sep 12, 2008, 12:17:54 AM9/12/08
to Gears Users
Hi Ben,

Yeah I feel the same too, but Steve's been on a holiday or probably
busy. What happened to him by the way?

-Renuka Prasad.

On Sep 11, 9:33 pm, "Ben Lisbakken" <lisba...@google.com> wrote:
> Hey Renuka --
> You should post this question on the thread you currently have with Steve
> Block.  He is a good resource for these questions.
>
> -Ben
>
> On Thu, Sep 11, 2008 at 12:29 AM, Renuka <renu.iit...@gmail.com> wrote:
>
> > Hi all,
>
> > The Web page in "http://code.google.com/apis/gears/samples/
> > hello_world_geolocation.html<http://code.google.com/apis/gears/samples/hello_world_geolocation.html>" works fine on my Windows Mobile 6.1

Steve Block

unread,
Sep 17, 2008, 6:51:48 AM9/17/08
to Gears Users
> > > Now, as thefakeGPSactually works, can I, in someway set this as a
> > > position fix for Gears.Geolocation ?
If PositionOptions.enableHighAccuracy is set to true, Gears will use
the GPS Intermediate Driver to see if a GPS unit is present. I would
therefore expect Gears to detect fakeGPS. However, as I mentioned
before, I've never used fakeGPS, so I'm not sure what the problem is.
I'll try to find time to look into this and will get back to you.

Steve

Renuka

unread,
Sep 17, 2008, 2:08:50 PM9/17/08
to Gears Users
Hi Steve,

PositionOptions.enableHighAccuracy has been set to be true since the
beginning. I still get the approximate coordinates.
Though I don't expect the Gears team to take into consideration, the
case of developers trying to develop location-aware web pages and test
on emulators but not actual devices, it would be quite helpful if
programs like fakeGPS are considered.

fakeGPS doesnot run any algorithm to get the approx location
coordinates but just simulates a GPS intermediate driver. Ex: even
though my location is in Bangalore, India, the fake GPS gives the
coordinates of Seatle or Pensylvania....
Thanks a lot Steve for the reply.

Renuka Prasad.

kuba

unread,
Sep 19, 2008, 3:59:42 AM9/19/08
to Gears Users
Hi all,

I'm quite new to this technology. Do I need to install GPS
intermediate driver or is it part of Windows Mobile 5 and 6. I tried
to get coordinates from a device that doesn't have GPS hardware port
set. I also tried another device that had both ports set without any
luck. I'm wondering if I'm missing something here. Is it possible to
check the number of satellites (like with google maps)? Also how do I
know that my position is taken from the GPS receiver? First problem is
quite similar to what Renuka is describing I think

Thanks
Kuba

kuba

unread,
Sep 19, 2008, 6:13:14 AM9/19/08
to Gears Users
Hi all,

I'm quite new to this technology. Do I need to install GPS
intermediate driver or is it part of Windows Mobile 5 and 6. I tried
to get coordinates from a device that doesn't have GPS hardware port
set. I also tried another device that had both ports set without any
luck. I'm wondering if I'm missing something here. Is it possible to
check the number of satellites (like with google maps)? Also how do I
know that my position is taken from the GPS receiver? First problem is
quite similar to what Renuka is describing I think

Thanks
Kuba


On 17 Wrz, 20:08, Renuka <renu.iit...@gmail.com> wrote:

Steve Block

unread,
Sep 23, 2008, 12:29:54 PM9/23/08
to Gears Users
Hi,

I've looked into FakeGPS and it is compatible with the GPS
intermediate driver, so Gears should use it as a source of position
information whenever enableHighAccuracy is set to true. See
http://msdn.microsoft.com/en-us/library/bb158722.aspx for details.
I've tried this on a WinMo 6 emulator and it works fine.

Note, however, that due to limitations of Windows Mobile, it is
possible to get Gears into a state where enabling FakeGPS has no
effect. (This can happen if Gears is used in the emulator when FakeGPS
is not installed or is disabled, and you refresh or navigate away from
the page while Gears is actively seeking a position fix.) In this
case, you must restart PIE (by stopping the process, not just closing
the window) to clear the problem.

Steve

Venkat Renuka Prasad Sahukara

unread,
Sep 24, 2008, 1:32:22 AM9/24/08
to gears...@googlegroups.com
Teah Steve, It already worked. I forgot to update tyhe status wid me.... All I did earlier when it didn;t work is I tried to set the hardware port for the GPS in the control pannel, and not in th efakeGPS's settings. Now that I set a hardware port and a software COM port, Gears considers the fake GPS as the only position option.
 
Thanks a lot, Steve for the time,
Renuka.

eC

unread,
Oct 2, 2008, 4:12:00 PM10/2/08
to Gears Users
Hi, Renuka. I´m new to windows mobile, and I can´t make gears
geolocation to work with the fakegps. I'm also using the sample you
used and it just seems to freeze on the 'Getting Location...' screen.
I never get the points location, not even by IP.

How did you get this to work?

Thanks a lot for any help.

eC

On Sep 24, 2:32 am, "Venkat Renuka Prasad Sahukara"
<renu.iit...@gmail.com> wrote:
> Teah Steve, It already worked. I forgot to update tyhe status wid me.... All
> I did earlier when it didn;t work is I tried to set the hardware port for
> the GPS in the control pannel, and not in th efakeGPS's settings. Now that I
> set a hardware port and a software COM port, Gears considers the fake GPS as
> the only position option.
>
> Thanks a lot, Steve for the time,
> Renuka.
>
> On Tue, Sep 23, 2008 at 9:59 PM, Steve Block <stevebl...@google.com> wrote:
>
> > Hi,
>
> > I've looked into FakeGPS and it is compatible with the GPS
> > intermediate driver, so Gears should use it as a source of position
> > information whenever enableHighAccuracy is set to true. See
> >http://msdn.microsoft.com/en-us/library/bb158722.aspxfor details.

eC

unread,
Oct 3, 2008, 1:36:52 PM10/3/08
to Gears Users
Anyone? I've set the software and hardware ports and the gears is now
returning the lat long for my ip address and not the lat long given by
the fakegps...

Anyone made it to work with the fakegps? Or is it not possible yet?

Thanks!

eC

eC

unread,
Oct 3, 2008, 1:38:44 PM10/3/08
to Gears Users
By The way, fakegps is working fine with google maps...


eC

On Oct 2, 5:12 pm, eC <edson.c...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages