LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-18-2019, 09:17 PM   #1
ordealbyfire83
Member
 
Registered: Oct 2006
Location: Leiden, Netherlands
Distribution: LFS, Ubuntu Hardy
Posts: 302

Rep: Reputation: 89
Bluetooth GPS device acting up and seeking possible replacement


For the last couple of years I have been using a GlobalSat BT368 as a navigational aid with both Android devices and desktop Linux via gpsd. Recently, this device most often does not find a fix at all though sometimes it does after just a few seconds. Over the years I found that depending on the view of the sky it would generally be anywhere from 15 seconds to a few minutes, but not more than that. Once it had a fix, it worked well even in canyons (real canyons, not urban ones) where other devices quickly stopped working.

I have found out that using gpsd + xgps will show what satellites (it thinks) are in view, the positions, and the signal to noise ratios even if there is no fix. Today I left the unit turned on and it took approximately 3500 seconds to find a fix. I just happened to be looking at the screen when it fixed, and the five satellites it was using quickly jumped to nearly opposite quadrants of the sky. Clearly this unit did not think the satellites were in the right place.

My first question is, Does anyone know whether this device's SIRF III chip set is affected by the recent GPS "Y2K" situation? I cannot really find much documentation on this at all aside from hearsay. When it finds a fix the UTC time is correct, though there is no time given when there is no fix.

The manufacturer has removed almost all trace of this device from their web site. They really seem not to stand by their products, unfortunately.

My second question is, If I replace this unit with something newer, does anyone have any suggestions for a similar device that is compatible with gpsd for Linux, and BlueGPS for Android (specifically that app, and the fdroid version of it, please no proprietary magic)? Does anyone have a Garmin GLO working this way by chance?

I am aware of the list of gps devices at https://gpsd.gitlab.io/gpsd/hardware.html but it seems unmaintained nowadays. Thanks.
 
Old 07-26-2019, 04:58 PM   #2
ordealbyfire83
Member
 
Registered: Oct 2006
Location: Leiden, Netherlands
Distribution: LFS, Ubuntu Hardy
Posts: 302

Original Poster
Rep: Reputation: 89
After a lot of searching around and testing, I can conclude that this unit is indeed affected by the week rollover situation. Whether a GPS unit is vulnerable to this depends upon the physical chipset rather when the actual device was manufactured. Further, depending on how some devices parse and store timestamps, the effects of the week rollover might not be detectable for some time.

I found that after draining the battery completely (to the point that the device would not power on) and restarting it, it quickly found my location. After turning the unit off and back on again, it would not find my location no matter what.

There is a closed, Windows-only program called SirfDemo that will let you communicate directly with the firmware in the SiRF chip. This is basically just a graphical front-end to the commands found in the "SiRF Binary Protocol Reference Manual." Unfortunately for some devices, gpsctl won't communicate with the firmware. I was unable to make that work, so I had to consult SirfDemo. Although mainly used with USB devices, you can find the COM port of the bluetooth GPS and just use that.

- Turn on Bluetooth in Windows
- Turn on GPS Receiver
- Find COM port number
- Start Sirf Demo, use the above COM port number, set baud to 4800
- Then click Action -> Open Data Source

While the device tries to find your location, it should show satellites as well as some debug text. After 20 minutes my location was not found. In my case, it says we are in week 15 - it has been 15 weeks since the rollover.

To simulate draining the battery, try

- Action -> Initialize Data Source
- In the box that appears, check "Cold Start" and the option about clearing the internal RAM

After several seconds you should see the list of satellites change drastically. Within a 30-90 seconds it should find your location. It should now say week 2063 (ie 1024*2 + 15, first rollover was around 1999), or once it even said "n/a" but it still worked.

Leave the unit turned on.
- Then click Action -> uncheck Open Data Source
- Close SirfDemo
- Turn off Windows bluetooth

Now you can pair the GPS to your Linux computer or preferred mobile device and it should work.

(!) Unfortunately you need to do this every time you want to use the GPS.

This tells us that the saved settings used for warm start uses only two-digit week numbers. Yuck. So we need a way to force this device to do a cold start every time you turn it on. I have not found a way to do this yet.

References:
superuser, "Command to Change GPS from SiRF Binary to NMEA Output"
askubuntu, "Can gpsd change the firmware of a gps receiver?"
"Hacker's Guide to GPSD"
Maestro Wireless Solutions, "2019 GPS Week Number Rollover Update Customer Notification"
GPS Passion Forums, "NMEA Proprietary Commands - SiRF, NemeriX, etc..."
LIGO GPS Time Converter
"SiRF Binary Protocol Reference Manual"
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] bluetooth dongle + bluetooth speaker but no sound on the bluetooth speaker vonbiber Slackware 4 05-11-2017 09:53 AM
Can't get Atheros AR9462 Bluetooth working, Nor Gobi2000 3G AND GPS omegaaf Linux - Hardware 2 05-30-2014 10:33 AM
can't get gpsd to work with bluetooth gps mageus Linux - Software 0 03-20-2007 11:18 PM
Bluetooth GPS on Linux TB0ne Linux - Hardware 1 09-24-2006 03:05 PM
How to set up bluetooth gps as ttyX alek66 Linux - General 0 04-10-2006 11:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration