Go Back   Cruiser Log World Cruising & Sailing Forums > Cruiserlog's Yacht Club > The Tavern | Welcome Aboard
Cruiser Wiki Click Here to Login

Join Cruiser Log Today

Reply
 
Thread Tools Search this Thread Display Modes
 
Old 08-19-2013, 07:08 PM   #1
Captain
 
Join Date: Aug 2013
Home Port: Toronto
Vessel Name: Cordelia
Posts: 3
Send a message via ICQ to arell41 Send a message via Skype™ to arell41
Smile Running OpenCPN under Linux Mint

I am trying to find someone who has the SR161 AIS receiver working within OpenCPN running under Linux Mint. Can anyone here help me?
__________________

__________________
arell41 is offline   Reply With Quote
Old 08-21-2013, 05:29 AM   #2
Moderator
 
redbopeep's Avatar
 
Join Date: Jun 2007
Home Port: Washington DC
Vessel Name: SV Mahdee
Posts: 3,236
Default

Are you have problems with OpenCPN, Linux, or your NMEA183 signal from the AIS? For example, have you opened a terminal window and checked your data stream coming in from your AIS receiver to make sure it works first?

We run OpenCPN on a Raspberry Pi (Debian Linux optimized for the Pi) and a regular computer (Debian Wheezy) and have run it on Ubuntu and Windows 7.

Brenda
__________________

__________________
"Do or do not. There is no try." - Yoda

What we're doing - The sailing life aboard and the Schooner Chandlery.

redbopeep is offline   Reply With Quote
Old 08-21-2013, 11:21 AM   #3
Captain
 
Join Date: Aug 2013
Home Port: Toronto
Vessel Name: Cordelia
Posts: 3
Send a message via ICQ to arell41 Send a message via Skype™ to arell41
Default

redbopeep
the essence of the problem is that I cannot find what to put in the AIS Data Port field of OpenCPN for the SR161 AIS receiver. I have another unit (Radargadget as advertised on OpenCPN website), and this requires /dev/ttyACM0 and works like a champ (it is a USB dongle). Unfortunately, the SR161 is a serial device and thus needs to go through a serial to USB converter, which shows up in /dev as ttyUSB0, but putting that in AIS Data Port does not produce results. I haven't purchased a second serial to USB converter for the SR161, but have been trying to verify that it works by using the converter that I normally use for the GPS. Is it possible that this is confusing the issue?
__________________
arell41 is offline   Reply With Quote
Old 08-21-2013, 05:43 PM   #4
Moderator
 
redbopeep's Avatar
 
Join Date: Jun 2007
Home Port: Washington DC
Vessel Name: SV Mahdee
Posts: 3,236
Default

You can check you're getting decent data from your device by using:

cat /dev/ttyUSB0

you're likely seein nothing until the serial speed is set correctly. So you need to know your baud rate for your AIS data coming in. Ours is 38400 but standard NMEA0183 is only 4800. So, you can set it use the stty command (think stty 38400 /dev/ttyusb0 ) and then when you do the cat command you should see sensible data you can read. Otherwise try stty with other baud rates until it's working.

Other problem can be permission related--do you have the correct permission set so you can see the port? As your user you need to ls-l to the port name you can see the group name for that port and you need to be a member of that group.

Once all is working, you can write a udev rule that will recognize the device when it's plugged in, set the baud rate, and give it a unique name that you can put into OpenCPN. And, there you go.
__________________
"Do or do not. There is no try." - Yoda

What we're doing - The sailing life aboard and the Schooner Chandlery.

redbopeep is offline   Reply With Quote
Old 08-23-2013, 02:15 PM   #5
Captain
 
Join Date: Aug 2013
Home Port: Toronto
Vessel Name: Cordelia
Posts: 3
Send a message via ICQ to arell41 Send a message via Skype™ to arell41
Default

Quote:
Originally Posted by redbopeep View Post
You can check you're getting decent data from your device by using:

cat /dev/ttyUSB0

you're likely seein nothing until the serial speed is set correctly. So you need to know your baud rate for your AIS data coming in. Ours is 38400 but standard NMEA0183 is only 4800. So, you can set it use the stty command (think stty 38400 /dev/ttyusb0 ) and then when you do the cat command you should see sensible data you can read. Otherwise try stty with other baud rates until it's working.

Other problem can be permission related--do you have the correct permission set so you can see the port? As your user you need to ls-l to the port name you can see the group name for that port and you need to be a member of that group.

Once all is working, you can write a udev rule that will recognize the device when it's plugged in, set the baud rate, and give it a unique name that you can put into OpenCPN. And, there you go.
redbopeep

Thanks for the advice; this stuff is a bit beyond my Linux level, but I'm glad to learn it. I tried the cat command and got nothing, i.e. it just hung till I broke it. I then set my user name to the root group (found that with the ls -l command), and when I do a cat on either of my devices, there is a pause then it returns to command prompt, no output. Using the stty command without a number shows the current baud rate, and my gps showed with 4800 and ais with 38400, and OpenCPN agrees with those numbers and is working with both units.
__________________
arell41 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Opencpn idpnd General Cruising Forum 7 07-08-2010 11:45 AM
Opencpn Mistral The Tavern | Welcome Aboard 5 03-03-2010 05:40 AM
Opencpn idpnd Living Aboard 2 07-12-2009 02:35 PM
Mint.unused Sailor R108 Reciever dlpfrench Cruiser's Market 3 06-14-2009 10:15 AM

Our Communities

Our communities encompass many different hobbies and interests, but each one is built on friendly, intelligent membership.

» More about our Communities

Automotive Communities

Our Automotive communities encompass many different makes and models. From U.S. domestics to European Saloons.

» More about our Automotive Communities

RV & Travel Trailer Communities

Our RV & Travel Trailer sites encompasses virtually all types of Recreational Vehicles, from brand-specific to general RV communities.

» More about our RV Communities

Marine Communities

Our Marine websites focus on Cruising and Sailing Vessels, including forums and the largest cruising Wiki project on the web today.

» More about our Marine Communities


All times are GMT. The time now is 05:35 PM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0
×