Coder Social home page Coder Social logo

gpsd2nmea2000's Introduction

gpsd2nmea2000

convert nmea0183 data from gpsd to a nmea2000 compatible gps

Uses NMEA2000 library using socketCAN Linux CAN devices.

See https://github.com/thomasonw/NMEA2000_socketCAN

Building

It can be build using cmake on liunx, including raspberry pi and also on WSL

sudo apt install cmake g++ libgps-dev gpsd git
git clone --recurse-submodules https://github.com/mlaiacker/gpsd2nmea2000.git
cd gpsd2nmea2000
mkdir build
cd build
cmake ..
make

then you can run

./gpsd2nmea2000 -?
Usage: gpsd2nmea2000 [OPTION...]
convert data from gpsd to a nmea2000 compatible gps

  -d, --device[=can0]        can device name
  -h, --hostname[=localhost] gpsd hostname
  -p, --port[=2947]          gpsd port
  -v, --verbose              Produce verbose output
  -?, --help                 Give this help list
      --usage                Give a short usage message

Mandatory or optional arguments to long options are also mandatory or optional
for any corresponding short options.

Running

the default setup is a gpsd running on localhost and using can0 to write the nmea2000 data to

gpsd2nmea2000 --device=can0 --host=localhost --port=2947

Dependencies

socketCAN must be installed and working on your system - refer to the adapters users guide. And make sure to 'start up' the CAN port, example:

$ sudo /sbin/ip link set can0 up type can bitrate 250000

you can also use a virtual can (vcan) device to test it

gpsd2nmea2000's People

Watchers

Maximilian Laiacker avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.