Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 07-06-2015, 13:21   #1
Registered User

Join Date: Jun 2012
Location: Israel
Boat: Bavaria 36
Posts: 11
AIS on RPI not working

I switched form a windows based PC to the RPI2.
OpenCPN was built according to Pi Chart
USB "mouse" GPS on ttyUSB0 works fine and shows ship position
I have a Cypho-101 AIS which is working fine when connected to the PC via USB.
When connected to the RPI under the exact conditions I get no targets.
It seems that it is recognized by the RPI as I get a /dev/ttyUSB1 when connected however nothing comes up on OpenCPN (NMEA debug window shows GPS messages but no AIS messages).
The chipset for the USB is Prolific PL2303, which I believe is supported "out of the box" on the RPI.

Any ideas why it is not working or how should I go on with debugging this?
__________________

__________________
gbgb is offline   Reply With Quote
Old 07-06-2015, 13:47   #2
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 2,759
Re: AIS on RPI not working

Does the device show up in the drop down list of serial ports at the connections section of settings?

And be sure that no other process is using the serial port at the same time.
__________________

__________________
bcn is offline   Reply With Quote
Old 07-06-2015, 18:30   #3
Registered User

Join Date: Apr 2015
Location: San Francisco
Posts: 65
Re: AIS on RPI not working

And when he say "no other processes" that includes any RPI diagnostic or configuration tools - kill any processes that might be running in the background.
__________________
fogmachine is offline   Reply With Quote
Old 07-06-2015, 22:24   #4
Registered User

Join Date: Jun 2012
Location: Israel
Boat: Bavaria 36
Posts: 11
Re: AIS on RPI not working

Quote:
Originally Posted by bcn View Post
Does the device show up in the drop down list of serial ports at the connections section of settings?

And be sure that no other process is using the serial port at the same time.
Yes, it shows in the list, I add it and enable it.
No reason that naything else will use it - at the moment this RPI has only Opencpn running on it. But just to make sure - how do I check if any other process uses this port?
__________________
gbgb is offline   Reply With Quote
Old 08-06-2015, 08:34   #5
Registered User

Join Date: Jan 2015
Location: Rymättylä, Finland
Boat: Farrier F-9A
Posts: 37
Re: AIS on RPI not working

If you disable the GPS serial port ttyUSB0, activate NMEA debug window and play around with the baud rates for AIS ttyUSB1, nothing happens?
Start with 38400 baud.

Erkki
__________________
erkkisdt is offline   Reply With Quote
Old 08-06-2015, 09:36   #6
Registered User

Join Date: Jun 2012
Location: Israel
Boat: Bavaria 36
Posts: 11
Re: AIS on RPI not working

Quote:
Originally Posted by erkkisdt View Post
If you disable the GPS serial port ttyUSB0, activate NMEA debug window and play around with the baud rates for AIS ttyUSB1, nothing happens?
Start with 38400 baud.

Erkki
Tried to disable USB0, tried to disconnect GPS, Baud rate is 38400 (which worked with Windows and is the rate per the manual) - no message in the debug window.
__________________
gbgb is offline   Reply With Quote
Old 10-06-2015, 12:29   #7
Registered User

Join Date: Jun 2012
Location: Israel
Boat: Bavaria 36
Posts: 11
Re: AIS on RPI not working (SOLVED)

It took me some time and several tests to notice - it turns out that in order for the devices to be operable they must be plugged into the RPI before power on.
Although plugging them in and out after the system is on does change their appearance or disappearance in the devices selection box, only if they were plugged during startup do they actually work.
Don't know if it is something with the OS or something with OCPN.
__________________

__________________
gbgb is offline   Reply With Quote
Reply

Tags
ais

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
AIS Antenna Not Working natew Marine Electronics 21 15-12-2015 07:17
OpenCPN AIS not working Albro359 Marine Electronics 1 19-08-2014 16:03
AIS SR162 Receiver Not Working With OCPN? sinbad7 OpenCPN 10 09-07-2014 10:02
420: 420 inverter issues. Our inverter is not working and we are not able to find a manual EW-WE Lagoon Catamarans 1 25-05-2014 09:27
AIS-receiver not working in OpenCPN under Navigatrix hansvalk OpenCPN 11 29-04-2013 12:59



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 22:13.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.