LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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, 03: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 04:08 AM. Reason: Drawing missleading
 
Old 05-21-2009, 07:56 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,143

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 08:19 PM
strange behavior with setting GPS serial port speed dovkruger Programming 1 11-17-2007 04:55 PM
Usb Garmin GPS alek66 Linux - Hardware 1 11-21-2006 03:11 PM
GPS via serial port MeLassen Linux - Hardware 3 08-19-2004 12:07 PM


All times are GMT -5. The time now is 07:49 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration