Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NMEA-0183 USB0 connectivity #10

Closed
hahobson opened this issue Jan 31, 2016 · 6 comments
Closed

NMEA-0183 USB0 connectivity #10

hahobson opened this issue Jan 31, 2016 · 6 comments

Comments

@hahobson
Copy link

Hi, I have an off the shelf USB NMEA-0183 GPS and am trying to get it to work with Viking. Cannot seem to find anything regarding a standard USB NMEA-0183 GPS. Please tell me where to look for this information. Thank you ! Harry
PS I am using Debian Jessie and the GPS is working as it displays data when this argument is displaced on the command line: stty -F /dev/ttyUSB0 ispeed 4800 && cat </dev/ttyUSB0

@gdt
Copy link

gdt commented Jan 31, 2016

viking can be built with gpsd. So you should 1) build viking with gpsd and then 2) get your GPSr working with gpsd.

@hahobson
Copy link
Author

Is there any documentation on this ? Thanks for your really quick reply !
On 31 Jan 2016 23:24, "Greg Troxel" notifications@github.com wrote:

viking can be built with gpsd. So you should 1) build viking with gpsd and
then 2) get your GPSr working with gpsd.


Reply to this email directly or view it on GitHub
#10 (comment).

@gdt
Copy link

gdt commented Jan 31, 2016

Not really, unfortunately. Basically you need gpsd installed (with headers/libs) when you build viking. If you are using viking from a packaging system, you should be using a version that depends on gpsd. If the version you have does not depend on gpsd, ask your package maintainer or build it yourself.

Then, see gpsd docs for setup; the whole point of gpsd is to put all of the GPSr setup information in one place, and have things like viking just use it without having to repeat everything.

@hahobson
Copy link
Author

hahobson commented Feb 1, 2016

Thanks, I will re-install viking

@hahobson
Copy link
Author

I actually would like to use Viking for tracking my drone. The drone will have GPSd. GPSd has a UPD and a TCP function for sending data. How do you configure Viking for receiving TCP or UDP packets ?

@rnorris
Copy link
Collaborator

rnorris commented Feb 14, 2016

Viking gets data from GPSd via libgps (the API for gpsd: http://www.catb.org/gpsd/libgps.html)

Configuration options for this in Viking are within the GPS Layer-->Properties-->Realtime Tracking Mode.

GPSd will be running as the server on the drone and the drone will need to have a IP address (or DNS name) on the network (presumably a Wifi network!). Your PC will need to be connected to the same network. You will have to find out the IP address of the drone on the network - either it's statically allocated or you will need to find out what the DHCP server for your network has assigned to it.

Put that IP address or DNS name of the drone into the Gpsd Host field in GPS Layer-->Properties-->Realtime Tracking Mode. Then Viking via the libgps client will connect to the GPSd server. I expect the port number used by GPSd server will be default 2947.

GPSd <-> libgps (Viking) connection always uses TCP.

GPSd does not have a UDP option for sending data. UDP or TCP options are only for reading data. See http://www.catb.org/gpsd/gpsd.html

HTH.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants