Navigatrix.net - A Voyager's Companion
http://navigatrix.net/

GPS give me no data on XGPS or Open CPN
http://navigatrix.net/viewtopic.php?f=4&t=640
Page 1 of 2

Author:  pakoki [ 06 May 2014, 01:16 ]
Post subject:  GPS give me no data on XGPS or Open CPN

Hi all! i try the new version of Navigatrix (great work!) but when i connect my GPS (qstarz 818x-bluetooth) i see on the bluetooth-window is connect to serial port /dev/rfcomm0 and Qstarz GPS unknown 00:1c:88:12:3b:a1. On the bottom of the window the amount of data is changing and the two little icons are blinking... can you maybe give any help with this problem ( I'm absolute beginner!!! :( )

Author:  Moe [ 06 May 2014, 02:20 ]
Post subject:  Re: GPS give me no data on XGPS or Open CPN

I'm not sure why it not picking up the gps. Bluetooth is a mystery to me.

This is a quick fix.

Open a terminal; (<ctrl><alt><t> at the same time...or Ray> Accessories> Terminal Emulator) and enter:
Code:
sudo dpkg-reconfigure gpsg
The window will open the gpsd reconfiguration script.

The first two screens are unchanged, hitting <Enter> advances you to the next screen.

The third screen is instruction for the gpsd where to look for a gps. Blank means look at everything. You could point to directly to your gps. 1) enter the location; 2)<tab> to change to <ok> and then <Enter> to activate the change.
Attachment:
Selection_031.png
Selection_031.png [ 40.97 KiB | Viewed 19435 times ]
<Enter> to pass through the rest of the options until the script closes.

Then follow it up with:
Code:
sudo service gpsd restart


Give that a go.

Author:  pakoki [ 06 May 2014, 04:34 ]
Post subject:  Re: GPS give me no data on XGPS or Open CPN

Hi Moe! thanks for your help, i have follow yours instructions but on the xgps screen no data are visible...
on the bottom i see "path":"/dev/rfcomm0", any idea? :roll:

Author:  Moe [ 06 May 2014, 04:42 ]
Post subject:  Re: GPS give me no data on XGPS or Open CPN

If it has been a while since the gps was last used it can take up to 15 minutes from a cold-dead start.

That will give me a chance to think of the next step.

Author:  pakoki [ 06 May 2014, 04:49 ]
Post subject:  Re: GPS give me no data on XGPS or Open CPN

Ok! THX

Author:  pakoki [ 06 May 2014, 05:00 ]
Post subject:  Re: GPS give me no data on XGPS or Open CPN

another little problem is that i can't see the whole window from xgps on my small screen (acer aspire one AO 531h, with only 11 inch) i can only reduce or open it, but not resize, so i don't see all data on the bottom... is not very important.

Author:  Moe [ 06 May 2014, 09:43 ]
Post subject:  Re: GPS give me no data on XGPS or Open CPN

It helps to know the gps tested and works out of the box with gpsd.

Inn Navigatrix the default is with the -b flag.

http://gpsd.berlios.de/hardware.html
Quote:
BT-Q818 mouse MTK Bluetooth 2.92-4 3.01 Had to use the -b option. Reported by jason.komut@*******.

I've got a solution for your screen size...as soon as I find where I archived it.

Author:  Moe [ 06 May 2014, 10:38 ]
Post subject:  Re: GPS give me no data on XGPS or Open CPN

The 'netbook screen problem' is addressed

http://navigatrix.net/viewtopic.php?f=10&t=641

Author:  pakoki [ 06 May 2014, 12:54 ]
Post subject:  Re: GPS give me no data on XGPS or Open CPN

Moe wrote:
It helps to know the gps tested and works out of the box with gpsd.

Inn Navigatrix the default is with the -b flag.

http://gpsd.berlios.de/hardware.html
Quote:
BT-Q818 mouse MTK Bluetooth 2.92-4 3.01 Had to use the -b option. Reported by jason.komut@*******.



Hi! where i should put the -b flag? please... i'm absolute beginner :(

Author:  Moe [ 06 May 2014, 13:13 ]
Post subject:  Re: GPS give me no data on XGPS or Open CPN

It has already been done.

There are three flags set by default.
Quote:
-b

Broken-device-safety mode, otherwise known as read-only mode. A few bluetooth and USB receivers lock up or become totally inaccessible when probed or reconfigured; see the hardware compatibility list on the GPSD project website for details. This switch prevents gpsd from writing to a receiver. This means that gpsd cannot configure the receiver for optimal performance, but it also means that gpsd cannot break the receiver. A better solution would be for Bluetooth to not be so fragile. A platform independent method to identify serial-over-Bluetooth devices would also be nice.
-G

This flag causes gpsd to listen on all addresses (INADDR_ANY) rather than just the loop back (INADDR_LOOPBACK) address. For the sake of privacy and security, TPV information is now private to the local machine until the user makes an effort to expose this to the world.

-n

Don't wait for a client to connect before polling whatever GPS is associated with it. Some RS232 GPSes wait in a standby mode (drawing less power) when the host machine is not asserting DTR, and some cellphone and handheld embedded GPSes have similar behaviors. Accordingly, waiting for a watch request to open the device may save battery power. (This capability is rare in consumer-grade devices).

Author:  pakoki [ 06 May 2014, 13:14 ]
Post subject:  Re: GPS give me no data on XGPS or Open CPN

Moe wrote:
The 'netbook screen problem' is addressed

http://navigatrix.net/viewtopic.php?f=10&t=641


I've do it and:

nx@nx:~$ mkdir .local/bin
nx@nx:~$ medit ~/.local/bin/nxrez ~/Desktop/alilbigger.desktop

** (medit:5201): WARNING **: Invalid borders specified for theme pixmap:
/usr/share/themes/Navigatrix-default/gtk-2.0/images/null.png,
borders don't fit within the image

** (medit:5201): WARNING **: Invalid borders specified for theme pixmap:
/usr/share/themes/Navigatrix-default/gtk-2.0/images/scrollbar_vertical.png,
borders don't fit within the image

** (medit:5201): WARNING **: Invalid borders specified for theme pixmap:
/usr/share/themes/Navigatrix-default/gtk-2.0/images/null.png,
borders don't fit within the image

** (medit:5201): WARNING **: Invalid borders specified for theme pixmap:
/usr/share/themes/Navigatrix-default/gtk-2.0/images/scrollbar_horizontal.png,
borders don't fit within the image
nx@nx:~$


???

But i've a new icon and work fine THX!!

Author:  Moe [ 06 May 2014, 13:27 ]
Post subject:  Re: GPS give me no data on XGPS or Open CPN

yeah, sorry...that's nothing. Those are just warnings that say an icon for the user interface is not where it should be. It really doesn't matter. But like a nagging conscience, it can't 'undo' the past, but it never forgets.

When you use the Menu to start the text editor it doesn't matter; you don't see those errors...one of the dirty little secrets of the GUI world.

There are 'warnings', 'errors', possibly on several layers, some even 'good'...and then there are 'fatal errors'; which tend to be 'not-good'.

Author:  pakoki [ 06 May 2014, 14:41 ]
Post subject:  Re: GPS give me no data on XGPS or Open CPN

Thanks :) But the problem with my gps is not not solved... :( , in the bluetooth connection window it seems working (orange, green and blue icons are on) but i have no data on Open CPN, maybe should i add a new connection on the connection window of Open CPN...? My GPS work fine otherwise with Open CPN and WXP or Ubuntu installed on the hard disk, any sugestion?? :oops:

Author:  Moe [ 07 May 2014, 02:07 ]
Post subject:  Re: GPS give me no data on XGPS or Open CPN

If you modify the connections in OpenCPN you could be inviting more trouble. Hang in there, a solution can be found.

Author:  pakoki [ 07 May 2014, 05:07 ]
Post subject:  Re: GPS give me no data on XGPS or Open CPN

Ok! i wait for another possible solution... :) Thanks one more time

Author:  pakoki [ 07 May 2014, 12:48 ]
Post subject:  Re: GPS give me no data on XGPS or Open CPN

Hello Moi, i have try now to reconfigure GPSD service, on the window socket path i see : /var/run/gpsd.sock is this path right?

Now on the connexion window OPENCPN i see: red localhost2947 0 GPSD no
serie /tmp/aisfifo 0 4800 no
and all the two options are checked "V"
Is this ok?

Author:  Moe [ 07 May 2014, 21:08 ]
Post subject:  Re: GPS give me no data on XGPS or Open CPN

GoneTropo had a fix for Bluetooth gps and those wanting to go places.
Quote:
using the spare nx usb stick I connected the gps with BT Manager and then in terminal
nx@nx:~$ rfcomm
rfcomm0: 00:23:06:D7:8D:19 -> 00:1C:88:11:0C:02 channel 1 connected [reuse-dlc tty-attached]
Then removed the gps device in BT manager. Then in terminal
nx@nx:~$ sudo medit /etc/bluetooth/rfcomm.conf (as Moe said above)

# RFCOMM configuration file.
#
# # Automatically bind the device at startup
bind yes;
#
# # Bluetooth address of the device
device 00:1C:88:11:0C:02;
#
# # RFCOMM channel for the connection
channel 1;
#
# # Description of the connection
# comment "Example Bluetooth device";
}

Then in terminal
nx@nx:~$ hcitool scan
Scanning ...
00:1C:88:11:0C:02 iBT-GPS
nx@nx:~$ rfcomm
nx@nx:~$
At this point I rebooted and the gps was auto connected to rfcomm0 in BT manager
nx@nx:~$ rfcomm
rfcomm0: 00:1C:88:11:0C:02 channel 1 connected [tty-attached]
Xgps was happy and all is right with the world :D

http://navigatrix.net/viewtopic.php?f=4&t=481&p=2346#p2346
Give that a go.

Author:  pakoki [ 08 May 2014, 01:45 ]
Post subject:  Re: GPS give me no data on XGPS or Open CPN

Hi Moe!
I have do it as follow:
Code:
#
# RFCOMM configuration file.
#

 rfcomm0 {
#   # Automatically bind the device at startup
 bind yes;
#
#   # Bluetooth address of the device
 device 00:1C:88:12:3B:A1;
#
#   # RFCOMM channel for the connection
 channel   1;
#
#   # Description of the connection
#   comment "Example Bluetooth device";
 }


Than on terminal:
Code:
nx@nx:~$ hcitool scan
Scanning ...
   00:1C:88:12:3B:A1   Qstarz GPS


After reboot:
Code:
nx@nx:~$ rfcomm
rfcomm0: 00:1C:88:12:3B:A1 channel 1 connected [tty-attached]


But is the same problem, have not data on Xgps or OpenCPN...

:(

Author:  pakoki [ 09 May 2014, 12:08 ]
Post subject:  Re: GPS give me no data on XGPS or Open CPN

It's working now! i have make a copy on another USB stick, and do the script modifications (like above) and Open CPN receive the position!!
Many times when i change the options, the connexion will interrupt (??) and i have to closed and now opening CPN.
Another little problem is that i have loaded KAP Charts (made with GE2kap) but i can't see it, I see only black squares at this place

Author:  Moe [ 09 May 2014, 12:37 ]
Post subject:  Re: GPS give me no data on XGPS or Open CPN

Cool, well done. I can go to bed now.

Page 1 of 2 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/