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 05-21-2009, 02:59 AM   #1
OlaJi
LQ Newbie
 
Registered: May 2009
Location: Uppsala, Sweden
Distribution: Ubuntu, Debian
Posts: 3

Rep: Reputation: 0
Question Reading NMEA from GPS and output it in the USB port


Hi,

I'm trying to set up NMEA-0183 "network" on my boat. I've a Globalsat BU-353 GPS puck that connects to my Netbook with Ubuntu Jaunty over an USB port. Works fine so far.

Now I want to forward NMEA sentences to my VHF-radio which has an NMEA input:

0--------------GPS+

0-------------GPS GND

To get the signal to the GPS i guess I'll need an USB to serial converter (the Netbook doesn't have a serial port), writing the NMEA strings to the USB port and connect the serial line to the VHF GPS-pins, Am I right?

Has anyone tried this before? I've heard that one should use opto-couplers when connecting NMEA devices, is this necessary when running all equipment on the same 12v system?

Someone who has this working or can point me in the right direction would be very appreciated!

Last edited by OlaJi; 05-21-2009 at 03:08 AM. Reason: Drawing missleading
 
Old 05-21-2009, 06:56 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,698

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Should not be necessary to isolate RS-232. However it could possibly protect the netbook if the VHF radio was ever hit by lightning.

I assume that your receiver already acts as a USB serial adapter /dev/ttyUSB0. Obviously the new USB serial port adapter will be /dev/ttyUSB1. You would want to use some udev rules so that each physical device will automatically be the same device ID. This will make programming much easier. Basically you need to forward all serial data from one port to the other. Connect the TX and GND of the serial port adapter to the VHF radio GPS+ and gnd pins respectively. NMEA data is slow i.e. 4800 baud so you should not have any major problems.
 
  


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
ndiswrapper... can I use it for a USB GPS? usafitz Linux - Newbie 3 12-01-2007 07:19 PM
strange behavior with setting GPS serial port speed dovkruger Programming 1 11-17-2007 03:55 PM
Usb Garmin GPS alek66 Linux - Hardware 1 11-21-2006 02:11 PM
GPS via serial port MeLassen Linux - Hardware 3 08-19-2004 11:07 AM

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

All times are GMT -5. The time now is 06:24 PM.

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