Page 3 of 6

Re: Adding a Bluetooth GPS

Posted: 08 Mar 2012, 14:53
by pbenco
Dear h-g-t²

Here is the step by step: http://freelug.org/spip.php?article1174
You will not being able to dialogue with your BT GPS unit, without being able to get this:
Image
Without that, no hope!

Best regards
Ben

Re: Adding a Bluetooth GPS

Posted: 08 Mar 2012, 15:27
by h-g-t
I already have my PC in the contacts list but am not sure which 'line' it is on.

Tried line 1 and it failed so tried line 2 -
Solar Miss.zip
(889.74 KiB) Downloaded 351 times
Don't know if it is the 9600 baud rate, the connection dialogue to PCs, etc allow you to change the rate but I can't see how to do that with the NXT.

Re: Adding a Bluetooth GPS

Posted: 08 Mar 2012, 18:18
by afanofosc
Your icons at the top of the screen strongly suggest that you are connected to something via bluetooth. Are you connecting from your PC to your NXT via Bluetooth? I think the icon you see for connection 1 means that you are connected to your BT GPS on conn 1.

John Hansen

Re: Adding a Bluetooth GPS

Posted: 08 Mar 2012, 21:08
by h-g-t
Tried line 1 and it just comes up as failed.

I have no Bluetooth dongle on the PC, I just use the USB cable nowadays to connect to the brick.

Wiped out all contacts and started again with the GPS but still no success.

Re: Adding a Bluetooth GPS

Posted: 08 Mar 2012, 22:07
by afanofosc
So what is your theory for why your NXT shows an icon at the top of the screen that looks like this: <> That icon means that you are connected to another Bluetooth device. What is your definition of "it failed" and "still no success"? It is not clear to me whether you mean "it fails to connect via the menu system" or whether you mean "pbenco's code doesn't do anything". Which is it? Based on the screen image you posted it looks like you have successfully connected to your GPS device. Do you ever get prompted for a PIN? It would be helpful if you added a lot more detail about exactly what you have done from step 0 through step N.

John Hansen

Re: Adding a Bluetooth GPS

Posted: 10 Mar 2012, 13:56
by h-g-t
Well, a bit of a curate's egg, parts of it seem to be working!

I the GPS does not seem to be acquiring the satellites, even when left outdoors for a while.

I think am connecting to the unit by BT, the BT light on the unit is certainly flashing at the correct speed.

When I run gps_library_v0.3.nxc, it comes up with 'gps_library_v0.3.nxc', 'Running' and a square underneath with a line moving round it.

So the program seems to be running this time but not showing any output.

I suspect that it has stalled waiting for the GPS coming up with some data.

£2.99 wasted!!!!!!

Re: Adding a Bluetooth GPS

Posted: 10 Mar 2012, 17:38
by afanofosc
Can you describe the LED behavior on your device? Is the Blue LED blinking once per second? Is the Red LED continuously on or blinking once every three seconds? Did you leave the device outside in clear sky for 20 minutes? Is the battery fully charged?

Have you contacted the seller to see if they can help you figure out whether the device is broken or functional?

John Hansen

Re: Adding a Bluetooth GPS

Posted: 10 Mar 2012, 19:17
by h-g-t
GPS blue blinking slowly (communicating), red on (no signal), left outside on the roof of my shed (away from the house) with a fully charged battery for about 20 minutes) and still continuous red, seller said the device was working and they are unlikely to change their story now.

At least the program and the GPS seem to be talking this time, but I suspect the program has got into a loop waiting for some data from the GPS.

There is at least a possibility that it will work and I think the Exchequer will stand another £2.99 so I am going to bid for another GPS and try again.

Re: Adding a Bluetooth GPS

Posted: 11 Mar 2012, 01:19
by h-g-t
Well, I wondered if the program on the website (http://freelug.org/spip.php?article1174) was exactly the same as that provided by Matt so I copied the code, pasted it into the BCC and saved it as a new file.

Matt's copy from NXTASY was17,857 and the new file was17,848 bytes.

Superficially they appeared the same (including the same CASE error) but I thought I would run it anyway.

To my amazement details immediately appeared on the screen!

I enabled the 'write to file' section of the code (commented out) to get a record.

Location is out by about 7 miles, not too bad considering the GPS could not get a fix. Thanks, pbenco!

Details of NMEA codes can be found here - http://aprs.gids.nl/nmea/

Code: Select all

$GPRMC,000047.0,V,5611.13936,N,00309.90546,W,,,010100,,,N*6E
 $GPGGA,000052.0,5611.13936,N,00309.90546,W,0,00,,00092,M,,,,*29
 $GPGSV,2,1,08,09,00,000,,25,00,000,,08,00,000,,27,00,000,*71
 $GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPRMC,000102.0,V,5611.13936,N,00309.90546,W,,,010100,,,N*6E
 $GPRMC,000102.0,V,5611.13936,N,00309.90546,W,,,010100,,,N*6E
 $GPRMC,000102.0,V,5611.13936,N,00309.90546,W,,,010100,,,N*6E
 $GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGSV,2,1,08,09,00,000,,25,00,000,,08,00,000,,27,00,000,*71
 $GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGSV,2,1,08,09,00,000,,25,00,000,,08,00,000,,27,00,000,*71
 $GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGSV,2,1,08,09,00,000,,25,00,000,,08,00,000,,27,00,000,*71
 $GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGSV,2,1,08,09,00,000,,25,00,000,,08,00,000,,27,00,000,*71
 $GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGSV,2,1,08,09,00,000,,25,00,000,,08,00,000,,27,00,000,*71
 $GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGSV,2,1,08,09,00,000,,25,00,000,,08,00,000,,27,00,000,*71
 $GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGSV,2,1,08,09,00,000,,25,00,000,,08,00,000,,27,00,000,*71
 $GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGSV,2,1,08,09,00,000,,25,00,000,,08,00,000,,27,00,000,*71
 $GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGSV,2,1,08,09,00,000,,25,00,000,,08,00,000,,27,00,000,*71
 $GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGSV,2,1,08,09,00,000,,25,00,000,,08,00,000,,27,00,000,*71
 $GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGSV,2,1,08,09,00,000,,25,00,000,,08,00,000,,27,00,000,*71
 $GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGSV,2,1,08,09,00,000,,25,00,000,,08,00,000,,27,00,000,*71
 $GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGSV,2,1,08,09,00,000,,25,00,000,,08,00,000,,27,00,000,*71
 $GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGSV,2,1,08,09,00,000,,25,00,000,,08,00,000,,27,00,000,*71
 $GPRMC,000103.0,V,5611.13936,N,00309.90546,W,,,010100,,,N*6F
 $GPRMC,000103.0,V,5611.13936,N,00309.90546,W,,,010100,,,N*6F
 $GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGSV,2,1,08,09,00,000,,25,00,000,,08,00,000,,27,00,000,*71
 $GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGSV,2,1,08,09,00,000,,25,00,000,,08,00,000,,27,00,000,*71
 $GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGSV,2,1,08,09,00,000,,25,00,000,,08,00,000,,27,00,000,*71
 $GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGSV,2,1,08,09,00,000,,25,00,000,,08,00,000,,27,00,000,*71
 $GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGSV,2,1,08,09,00,000,,25,00,000,,08,00,000,,27,00,000,*71
 $GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGSV,2,1,08,09,00,000,,25,00,000,,08,00,000,,27,00,000,*71
 $GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGSV,2,1,08,09,00,000,,25,00,000,,08,00,000,,27,00,000,*71
 $GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGSV,2,1,08,09,00,000,,25,00,000,,08,00,000,,27,00,000,*71
 $GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGSV,2,1,08,09,00,000,,25,00,000,,08,00,000,,27,00,000,*71
 $GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGSV,2,1,08,09,00,000,,25,00,000,,08,00,000,,27,00,000,*71
 $GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGSV,2,1,08,09,00,000,,25,00,000,,08,00,000,,27,00,000,*71
 $GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGSV,2,1,08,09,00,000,,25,00,000,,08,00,000,,27,00,000,*71
 $GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGSV,2,1,08,09,00,000,,25,00,000,,08,00,000,,27,00,000,*71
 $GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGSV,2,1,08,09,00,000,,25,00,000,,08,00,000,,27,00,000,*71
 $GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGSV,2,1,08,09,00,000,,25,00,000,,08,00,000,,27,00,000,*71
 $GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGSV,2,1,08,09,00,000,,25,00,000,,08,00,000,,27,00,000,*71
 $GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGSV,2,1,08,09,00,000,,25,00,000,,08,00,000,,27,00,000,*71
 $GPRS‚‚Š‚¢r‚b5211.13936,N,00309.90546,W,,,010100,,,N*68
 $GPRS‚‚Š‚¢r‚b5211.13936,N,00309.90546,W,,,010100,,,N*68
 $GPRS‚‚Š‚¢r‚b5211.13936,N,00309.90546,W,,,010100,,,N*68
 $GPRS‚‚Š‚¢r‚b5211.13936,N,00309.90546,W,,,010100,,,N*68
 $GPGSA,A,1,,,,,,,,,,$,,,,*1E
$GPGSV,2,1,08,09,00,000,,25,00,000,,08,00,00,,27,00,000,*71
 $GPGSA,A,1,,,,,,,,,,$,,,,*1E
$GPGSV,2,1,08,09,00,000,,25,00,000,,08,00,00,,27,00,000,*71
 $GPGSA,A,1,,,,,,,,,,$,,,,*1E
$GPGSV,2,1,08,09,00,000,,25,00,000,,08,00,00,,27,00,000,*71
 $GPGSA,A,1,,,,,,,,,,$,,,,*1E
$GPGSV,2,1,08,09,00,000,,25,00,000,,08,00,00,,27,00,000,*71
 $GPGSA,A,1,,,,,,,,,,$,,,,*1E
$GPGSV,2,1,08,09,00,000,,25,00,000,,08,00,00,,27,00,000,*71
 $GPGSA,A,1,,,,,,,,,,$,,,,*1E
$GPGSV,2,1,08,09,00,000,,25,00,000,,08,00,00,,27,00,000,*71
 $GPGSA,A,1,,,,,,,,,,$,,,,*1E
$GPGSV,2,1,08,09,00,000,,25,00,000,,08,00,00,,27,00,000,*71
 $GPGSA,A,1,,,,,,,,,,$,,,,*1E
$GPGSV,2,1,08,09,00,000,,25,00,000,,08,00,00,,27,00,000,*71
 $GPGSA,A,1,,,,,,,,,,$,,,,*1E
$GPGSV,2,1,08,09,00,000,,25,00,000,,08,00,00,,27,00,000,*71
 $GPGSA,A,1,,,,,,,,,,$,,,,*1E
$GPGSV,2,1,08,09,00,000,,25,00,000,,08,00,00,,27,00,000,*71
 $GPGSA,A,1,,,,,,,,,,$,,,,*1E
$GPGSV,2,1,08,09,00,000,,25,00,000,,08,00,00,,27,00,000,*71
 $GPGSA,A,1,,,,,,,,,,$,,,,*1E
$GPGSV,2,1,08,09,00,000,,25,00,000,,08,00,00,,27,00,000,*71
 $GPRS‚‚Š‚ªrb5211.13936,N,00309.90546,W,,,010100,,,N*69
 $GPRS‚‚Š‚ªrb5211.13936,N,00309.90546,W,,,010100,,,N*69
 $GPRS‚‚Š‚ªrb5211.13936,N,00309.90546,W,,,010100,,,N*69
 $GPGSA,A,1,,,,,,,,,,,,,,,*1E
 $GPGSA,A,1,,,,,,,,,,,,,,,*1E
 $GPGSA,A,1,,,,,,,,,,,,,,,*1E
 $GPGSA,A,1,,,,,,,,,,,,,,,*1E
 $GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGGA,000107.0,5611.13936,N,00309.90546,W,0,00,,00092,M,,,,*28
$GPGSA,A,1,,,,,,,,,,,,,,,*1E
 $GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGGA,000108.0,56“‚b‚‚bb‚‚‚Ê’b,,,*27
$WPGSA,A,1,,,,,,,,,,,,,,,*1E
 $GPGGA,000108.0,56“‚b‚‚bb‚‚‚Ê’b,,,*27
$WPGSA,A,1,,,,,,,,,,,,,,,*1E
 $GPGGA,000108.0,56“‚b‚‚bb‚‚‚Ê’b,,,*27
$WPGSA,A,1,,,,,,,,,,,,,,,*1E
 $GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGGA,000109.0,5611.13936,N,00309.90546,W,0,00,,00092,M,,,,*26
$GPGSA,A,1,,,,,,,,,,,,,,,*1E
 $GPGSV,2,2,08,06,00,000‚‚‚bb‚ºb‚‚b‚‚‚bRºŠ
 $GPGSV,2,2,08,06,00,000‚‚‚bb‚ºb‚‚b‚‚‚bRºŠ
 $GPGSV,2,2,08,06,00,000‚‚‚bb‚ºb‚‚b‚‚‚bRºŠ
 $GPGSV,2,2,08,06,00,000‚‚‚bb‚ºb‚‚b‚‚‚bRºŠ
 $GPGSV,2,2,08,06,00,000‚‚‚bb‚ºb‚‚b‚‚‚bRºŠ
 $GPGSV,2,2,08,06,00,000‚‚‚bb‚ºb‚‚b‚‚‚bRºŠ
 $GPGSV,2,2,08,06,00,000‚‚‚bb‚ºb‚‚b‚‚‚bRºŠ
 $GPGSV,2,2,08,06,00,000‚‚‚bb‚ºb‚‚b‚‚‚bRºŠ
 $GPGSV,2,2,08,06,00,000‚‚‚bb‚ºb‚‚b‚‚‚bRºŠ
 $GPGSV,2,2,08,06,00,000‚‚‚bb‚ºb‚‚b‚‚‚bRºŠ
 $GPGSV,2,2,08,06,00,000‚‚‚bb‚ºb‚‚b‚‚‚bRºŠ
 $GPGSV,2,2,08,06,00,000‚‚‚bb‚ºb‚‚b‚‚‚bRºŠ
 $GPGSV,2,2,08,06,00,000‚‚‚bb‚ºb‚‚b‚‚‚bRºŠ
 $GPGSV,2,2,08,06,00,000‚‚‚bb‚ºb‚‚b‚‚‚bRºŠ
 $GPGSV,2,2,08,06,00,000‚‚‚bb‚ºb‚‚b‚‚‚bRºŠ
 $GPGSV,2,2,08,06,00,000‚‚‚bb‚ºb‚‚b‚‚‚bRºŠ
 $GPGGA,000110.0,5611.13936,N,00309.90546,W,0,00,,00092,M,,,,*2E
 $GPGGA,000110.0,5611.13936,N,00309.90546,W,0,00,,00092,M,,,,*2E
 $GPGGA,000110.0,5611.13936,N,00309.90546,W,0,00,,00092,M,,,,*2E
 $GPGSV,2,1,08,09,00,000,,25,00,000,,08,00,000,,27,00,000,*71
$GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGSV,2,1,08,09,00,000,,25,00,000,,08,00,000,,27,00,000,*71
$GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGSV,2,1,08,09,00,000,,25,00,000,,08,00,000,,27,00,000,*71
$GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGSV,2,1,08,09,00,000,,25,00,000,,08,00,000,,27,00,000,*71
$GPGSV,2,2,08,06,00,000,,03,00,000,,31,00,000,,07,00,000,*71
 $GPGSV,2,1,08,09,00,000,,25,00,000,,08,00,000,,27,00,000,*71
$GPGSV,2,2,08,06,0

Re: Adding a Bluetooth GPS

Posted: 11 Mar 2012, 15:21
by h-g-t
Tried again today, first attempt connected ok but all outputs were 0's.

Then twice just got the 'Program running' screen.

Oh well, just snagged another unit from ebay - this one cost a whole £3.50 (inc p&p), so it is bound to be better ..... (said he hopefully).

Also bidding on this - http://www.ebay.co.uk/sch/i.html?_from= ... Categories

If neither of these work then I will just have to try one of these (before giving up completely) - http://www.ebay.co.uk/itm/Vodafone-Sat- ... 2a1aa82f3e

Those who are paying attention will, of course, realise that it would have been more economic to have just bought the last one straight away. But, we Albanians are always trying to get things cheap.