Firefox GPS

View: New views
5 Messages — Rating Filter:   Alert me  

Firefox GPS

by Csaba Veres-2 :: Rate this Message:

| View Threaded | Show Only this Message

I am trying to use the GPS capabilities supposedly built into the Firefox 6 geo location API. But it is not working.

I can see firefox talking to gpsd, but the exchange is very brief and (to me) unintelligible:

gpsd: client 127.0.0.1 (0) connect on fd 6
gpsd: checking client(0)
gpsd: <= client(0): J=1\x0aw
gpsd: => client(0): GPSD,J=1
gpsd: DGPSF1b0100000000000000000000000000000106220206220306220406220506220606220706220806220906220a06220b06220c0622
gpsd: GND 0x29: Navtype = 0x204, Status = 1, mode = 3
gpsd: MID 41 UTC: 1265630764.999000
gpsd: <= GPS (binary) /dev/ttyUSB0: $GPGGA,120604,6023.3077,N,00519.4436,E,1,06,1.20,15.49,M,,,*0C\x0d\x0a$GPRMC,120604,A,6023.3077,N,00519.4436,E,0.0000,146.540,080210,,*29\x0d\x0a$GPGSA,A,3,32,19,20,17,11,14,,,,,,,0.0,1.2,0.0*39\x0d\x0a$PGRME,0.56,M,0.70,M,0.00,M*1A
gpsd: THR 0x09: SegStatMax=168.409, SegStatLat=132, AveTrkTime=0.075, Last MS=0

......................

gpsd: DGPSF1b0100000000000000000000000000000106220206220306220406220506220606220706220806220906220a06220b06220c0622
gpsd: checking client(0)
gpsd: detaching 127.0.0.1 (sub 0, fd 6) in detach_client


Obviously Firefox does find gpsd (?), but then they can't talk (?).

Is this correct?

thanks.
_______________________________________________
Gpsd-users mailing list
Gpsd-users@...
https://lists.berlios.de/mailman/listinfo/gpsd-users

Re: Firefox GPS

by Eric S. Raymond :: Rate this Message:

| View Threaded | Show Only this Message

Csaba Veres <Csaba.Veres@...>:

> I am trying to use the GPS capabilities supposedly built into the Firefox 6 geo location API. But it is not working.
>
> I can see firefox talking to gpsd, but the exchange is very brief and (to me) unintelligible:
>
> gpsd: client 127.0.0.1 (0) connect on fd 6
> gpsd: checking client(0)
> gpsd: <= client(0): J=1\x0aw
> gpsd: => client(0): GPSD,J=1
> gpsd: DGPSF1b0100000000000000000000000000000106220206220306220406220506220606220706220806220906220a06220b06220c0622
> gpsd: GND 0x29: Navtype = 0x204, Status = 1, mode = 3
> gpsd: MID 41 UTC: 1265630764.999000
> gpsd: <= GPS (binary) /dev/ttyUSB0: $GPGGA,120604,6023.3077,N,00519.4436,E,1,06,1.20,15.49,M,,,*0C\x0d\x0a$GPRMC,120604,A,6023.3077,N,00519.4436,E,0.0000,146.540,080210,,*29\x0d\x0a$GPGSA,A,3,32,19,20,17,11,14,,,,,,,0.0,1.2,0.0*39\x0d\x0a$PGRME,0.56,M,0.70,M,0.00,M*1A
> gpsd: THR 0x09: SegStatMax=168.409, SegStatLat=132, AveTrkTime=0.075, Last MS=0
>
> ......................
>
> gpsd: DGPSF1b0100000000000000000000000000000106220206220306220406220506220606220706220806220906220a06220b06220c0622
> gpsd: checking client(0)
> gpsd: detaching 127.0.0.1 (sub 0, fd 6) in detach_client
>
>
> Obviously Firefox does find gpsd (?), but then they can't talk (?).
>
> Is this correct?

You snipped out the part of the session transcript that would have nade that
clear.  Can you point me at where this "geolocation API" is located?
--
                <a href="http://www.catb.org/~esr/">Eric S. Raymond</a>
_______________________________________________
Gpsd-users mailing list
Gpsd-users@...
https://lists.berlios.de/mailman/listinfo/gpsd-users

Re: Firefox GPS

by Csaba Veres-2 :: Rate this Message:

| View Threaded | Show Only this Message


Hi Eric, thanks for your response.

I just noticed the original is a draft message that was not supposed to go out. Apologies if second near identical post goes out from me :-(

I snipped part of the transcript because I believed there is no communication going on .. but I reproduce the whole section below. I admit I don't understand many of the messages!

Also, the Firefox 3.6 API:

https://developer.mozilla.org/en/using_geolocation

Not much, which is why I had hoped people on this list can fill in the details.


gpsd: client 127.0.0.1 (0) connect on fd 6
gpsd: checking client(0)
gpsd: <= client(0): J=1\x0aw
gpsd: => client(0): GPSD,J=1
gpsd: DGPSF1b0100000000000000000000000000000106220206220306220406220506220606220706220806220906220a06220b06220c0622
gpsd: GND 0x29: Navtype = 0x204, Status = 1, mode = 3
gpsd: MID 41 UTC: 1265630764.999000
gpsd: <= GPS (binary) /dev/ttyUSB0: $GPGGA,120604,6023.3077,N,00519.4436,E,1,06,1.20,15.49,M,,,*0C\x0d\x0a$GPRMC,120604,A,6023.3077,N,00519.4436,E,0.0000,146.540,080210,,*29\x0d\x0a$GPGSA,A,3,32,19,20,17,11,14,,,,,,,0.0,1.2,0.0*39\x0d\x0a$PGRME,0.56,M,0.70,M,0.00,M*1A
gpsd: THR 0x09: SegStatMax=168.409, SegStatLat=132, AveTrkTime=0.075, Last MS=0
gpsd: CLK 0x07
gpsd: DGPSF1b0100000000000000000000000000000106220206220306220406220506220606220706220806220906220a06220b06220c0622
gpsd: GND 0x29: Navtype = 0x204, Status = 1, mode = 3
gpsd: MID 41 UTC: 1265630765.999000
gpsd: <= GPS (binary) /dev/ttyUSB0: $GPGGA,120605,6023.3077,N,00519.4436,E,1,06,0.80,15.49,M,,,*06\x0d\x0a$GPRMC,120605,A,6023.3077,N,00519.4436,E,0.0000,146.680,080210,,*27\x0d\x0a$GPGSA,A,3,32,19,20,17,11,14,,,,,,,0.0,0.8,0.0*32\x0d\x0a$PGRME,0.55,M,0.70,M,0.00,M*19
gpsd: MTD 0x04: 8 satellites
gpsd: THR 0x09: SegStatMax=168.409, SegStatLat=132, AveTrkTime=0.075, Last MS=0
gpsd: CLK 0x07
gpsd: DGPSF1b0100000000000000000000000000000106220206220306220406220506220606220706220806220906220a06220b06220c0622
gpsd: GND 0x29: Navtype = 0x204, Status = 1, mode = 3
gpsd: MID 41 UTC: 1265630766.999000
gpsd: <= GPS (binary) /dev/ttyUSB0: $GPGGA,120606,6023.3077,N,00519.4436,E,1,08,1.00,15.49,M,,,*02\x0d\x0a$GPRMC,120606,A,6023.3077,N,00519.4436,E,0.0000,112.370,080210,,*2F\x0d\x0a$GPGSA,A,3,32,19,20,28,17,11,26,14,,,,,0.0,1.0,0.0*35\x0d\x0a$PGRME,0.55,M,0.70,M,0.00,M*19
gpsd: THR 0x09: SegStatMax=168.409, SegStatLat=132, AveTrkTime=0.075, Last MS=0
gpsd: CLK 0x07
gpsd: DGPSF1b0100000000000000000000000000000106220206220306220406220506220606220706220806220906220a06220b06220c0622
gpsd: GND 0x29: Navtype = 0x204, Status = 1, mode = 3
gpsd: MID 41 UTC: 1265630767.999000
gpsd: <= GPS (binary) /dev/ttyUSB0: $GPGGA,120607,6023.3077,N,00519.4436,E,1,07,1.00,15.49,M,,,*0C\x0d\x0a$GPRMC,120607,A,6023.3077,N,00519.4436,E,0.0000,117.670,080210,,*2E\x0d\x0a$GPGSA,A,3,32,19,20,28,17,11,14,,,,,,0.0,1.0,0.0*31\x0d\x0a$PGRME,0.55,M,0.70,M,0.00,M*19
gpsd: THR 0x09: SegStatMax=168.409, SegStatLat=132, AveTrkTime=0.075, Last MS=0
gpsd: CLK 0x07
gpsd: DGPSF1b0100000000000000000000000000000106220206220306220406220506220606220706220806220906220a06220b06220c0622
gpsd: GND 0x29: Navtype = 0x204, Status = 1, mode = 3
gpsd: MID 41 UTC: 1265630768.999000
gpsd: <= GPS (binary) /dev/ttyUSB0: $GPGGA,120608,6023.3077,N,00519.4436,E,1,07,2.20,15.49,M,,,*02\x0d\x0a$GPRMC,120608,A,6023.3077,N,00519.4436,E,0.0000,135.750,080210,,*22\x0d\x0a$GPGSA,A,3,32,19,20,28,17,11,14,,,,,,0.0,2.2,0.0*30\x0d\x0a$PGRME,0.56,M,0.72,M,0.00,M*18
gpsd: MTD 0x04: 7 satellites
gpsd: THR 0x09: SegStatMax=168.409, SegStatLat=132, AveTrkTime=0.075, Last MS=0
gpsd: CLK 0x07
gpsd: DGPSF1b0100000000000000000000000000000106220206220306220406220506220606220706220806220906220a06220b06220c0622
gpsd: VIS 0x0d
gpsd: GND 0x29: Navtype = 0x204, Status = 1, mode = 3
gpsd: MID 41 UTC: 1265630769.999000
gpsd: <= GPS (binary) /dev/ttyUSB0: $GPGGA,120609,6023.3077,N,00519.4436,E,1,05,2.20,15.49,M,,,*01\x0d\x0a$GPRMC,120609,A,6023.3077,N,00519.4436,E,0.0000,127.890,080210,,*23\x0d\x0a$GPGSA,A,3,32,19,20,11,14,,,,,,,,0.0,2.2,0.0*3C\x0d\x0a$PGRME,0.58,M,0.73,M,0.00,M*17
gpsd: THR 0x09: SegStatMax=168.409, SegStatLat=132, AveTrkTime=0.075, Last MS=0
gpsd: CLK 0x07
gpsd: DGPSF1b0100000000000000000000000000000106220206220306220406220506220606220706220806220906220a06220b06220c0622
gpsd: checking client(0)
gpsd: detaching 127.0.0.1 (sub 0, fd 6) in detach_client



thanks,

Csaba


On 08/02/2010, at 8:33 PM, Eric Raymond wrote:

> Csaba Veres <Csaba.Veres@...>:
>> I am trying to use the GPS capabilities supposedly built into the Firefox 6 geo location API. But it is not working.
>>
>> I can see firefox talking to gpsd, but the exchange is very brief and (to me) unintelligible:
>>
>> gpsd: client 127.0.0.1 (0) connect on fd 6
>> gpsd: checking client(0)
>> gpsd: <= client(0): J=1\x0aw
>> gpsd: => client(0): GPSD,J=1
>> gpsd: DGPSF1b0100000000000000000000000000000106220206220306220406220506220606220706220806220906220a06220b06220c0622
>> gpsd: GND 0x29: Navtype = 0x204, Status = 1, mode = 3
>> gpsd: MID 41 UTC: 1265630764.999000
>> gpsd: <= GPS (binary) /dev/ttyUSB0: $GPGGA,120604,6023.3077,N,00519.4436,E,1,06,1.20,15.49,M,,,*0C\x0d\x0a$GPRMC,120604,A,6023.3077,N,00519.4436,E,0.0000,146.540,080210,,*29\x0d\x0a$GPGSA,A,3,32,19,20,17,11,14,,,,,,,0.0,1.2,0.0*39\x0d\x0a$PGRME,0.56,M,0.70,M,0.00,M*1A
>> gpsd: THR 0x09: SegStatMax=168.409, SegStatLat=132, AveTrkTime=0.075, Last MS=0
>>
>> ......................
>>
>> gpsd: DGPSF1b0100000000000000000000000000000106220206220306220406220506220606220706220806220906220a06220b06220c0622
>> gpsd: checking client(0)
>> gpsd: detaching 127.0.0.1 (sub 0, fd 6) in detach_client
>>
>>
>> Obviously Firefox does find gpsd (?), but then they can't talk (?).
>>
>> Is this correct?
>
> You snipped out the part of the session transcript that would have nade that
> clear.  Can you point me at where this "geolocation API" is located?
> --
> <a href="http://www.catb.org/~esr/">Eric S. Raymond</a>

_______________________________________________
Gpsd-users mailing list
Gpsd-users@...
https://lists.berlios.de/mailman/listinfo/gpsd-users

Re: Firefox GPS

by Eric S. Raymond :: Rate this Message:

| View Threaded | Show Only this Message

Csaba Veres <Csaba.Veres@...>:
> I just noticed the original is a draft message that was not supposed
>  to go out. Apologies if second near identical post goes out from me
>  :-(

No problem.

> I snipped part of the transcript because I believed there is no
> communication going on .. but I reproduce the whole section below. I
> admit I don't understand many of the messages!


> gpsd: client 127.0.0.1 (0) connect on fd 6
> gpsd: checking client(0)
> gpsd: <= client(0): J=1\x0aw
> gpsd: => client(0): GPSD,J=1

OK, this is kind of weird. That looks like Mozille is shipping a J\nw
command to port 2947.  That's not right; they probably wanted to send j=1,w+

As it is, gpsd never processes the "w" and thius never ships fixes
where Mozilla can see them.  So, their implementation is broken.
--
                <a href="http://www.catb.org/~esr/">Eric S. Raymond</a>
_______________________________________________
Gpsd-users mailing list
Gpsd-users@...
https://lists.berlios.de/mailman/listinfo/gpsd-users

Re: Firefox GPS

by speculatrix :: Rate this Message:

| View Threaded | Show Only this Message

Eric Raymond-3 wrote:
OK, this is kind of weird. That looks like Mozille is shipping a J\nw
command to port 2947.  That's not right; they probably wanted to send j=1,w+

As it is, gpsd never processes the "w" and thius never ships fixes
where Mozilla can see them.  So, their implementation is broken.
I took a peek at mozilla bugtracker and didn't see anything obvious to indicate this was a reported bug; do you know if it is being fixed?