Cruisers Forum
 


Join CruisersForum Today

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

Join Date: May 2010
Boat: Tradewind 35
Posts: 19
Anchor Alarm to Bluetooth Speaker

I would really appreciate some help with getting Opencpn running on a Raspberry Pi (Raspbian OS) to output sound to a Bluetooth speaker.

I have successfully got my audio apps to play to the speaker by adding the following to the /etc/asound.conf :


# To redirect ALL output to speaker

pcm.!default {
type bluetooth
device 00:16:44:FD:6B:A0
profile "auto"

}

But blow me OpenCPN continues to send the sound to the 3.5mm jack !

Any help much appreciated.

Paul

S/V Cariad-Y-Mor
__________________

__________________
Cariad1961 is offline   Reply With Quote
Old 06-01-2015, 22:58   #2
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: chesapeake bay
Boat: bristol 27
Posts: 2,824
Re: Anchor Alarm to Bluetooth Speaker

does aplay output to bluetooth?


Another solution would be to use the anchor alarm in the watchdog plugin. It allows you to execute an arbitrary command, so you can pass the device to use as a command line parameter.
__________________

__________________
boat_alexandra is offline   Reply With Quote
Old 07-01-2015, 01:13   #3
Registered User

Join Date: May 2010
Boat: Tradewind 35
Posts: 19
Re: Anchor Alarm to Bluetooth Speaker

Firstly thank you for getting back to me, and yes aplay outputs to the speaker without any additional commands.

The watchdog plugin is not compatible with the optimised ARM version of OpenCPN 3.2

Any other ideas will be most welcome.

Thank you.
__________________
Cariad1961 is offline   Reply With Quote
Old 07-01-2015, 03:38   #4
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: chesapeake bay
Boat: bristol 27
Posts: 2,824
Re: Anchor Alarm to Bluetooth Speaker

How is the watchdog plugin not compatible? Is it because you are using opencpn 3.2 instead of the latest beta?
__________________
boat_alexandra is offline   Reply With Quote
Old 08-01-2015, 07:13   #5
Registered User

Join Date: May 2010
Boat: Tradewind 35
Posts: 19
Re: Anchor Alarm to Bluetooth Speaker

Hello, yes I am using 3.2, I tried the plugin with windows 3.2 and that did not work so I assumed it would not work with linux. I am not sure there is an optimised version for ARM machines of the latest Beta ?

I am very grateful for your feedback - my primary applicatoin of the project is as an anchor and AIS watch with low power consumption. I know I could use a wire to connect the two, but I have the nmea input coming in wireless and would like to do the same with the audio output.
__________________
Cariad1961 is offline   Reply With Quote
Old 08-01-2015, 07:32   #6
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: chesapeake bay
Boat: bristol 27
Posts: 2,824
Re: Anchor Alarm to Bluetooth Speaker

The version 3.2 is not optimized very well for arm processors, you should try the latest beta instead and if possible enable opengl acceleration by building glshim.
__________________
boat_alexandra is offline   Reply With Quote
Old 09-01-2015, 04:02   #7
Registered User

Join Date: May 2010
Boat: Tradewind 35
Posts: 19
Re: Anchor Alarm to Bluetooth Speaker

Okay .... I am now on Version 4 on the Raspberry PI - still no sound with Bluetooth speaker.

I have tried installing watch dog with the command:

sudo dpkg -i watchdog_pi_1.1-1_armhf.deb

But I get the following error indicating I do not opencpn pacakage installed ( I compiled it on the Raspberry Pi.) :

~/opencpn/OpenCPN# sudo dpkg -i watchdog_pi_1.1-1_armhf.deb
(Reading database ... 82730 files and directories currently installed.)
Preparing to replace watchdog_pi 1.1 (using watchdog_pi_1.1-1_armhf.deb) ...
Unpacking replacement watchdog_pi ...
dpkg: dependency problems prevent configuration of watchdog_pi:
watchdog_pi depends on opencpn; however:
Package opencpn is not installed.

dpkg: error processing watchdog_pi (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
watchdog_pi


I am no expert in Linux, but are you able to offer any tips on how to install watchdog from where I am ?

Any help appreciated

Paul
__________________
Cariad1961 is offline   Reply With Quote
Old 09-01-2015, 05:44   #8
Registered User

Join Date: May 2010
Boat: Tradewind 35
Posts: 19
Re: Anchor Alarm to Bluetooth Speaker

Update: I have tried installing version 4.0 on windows xp box and installing Watchdog with no success i.e. plugin dll is in the plugin folder but there is no sign of the plugin when you go into options and try and enable it.

Similarly I have confirmed on the Raspbery pi the .so file is in:

/usr/lib/opencpn


It feels like I am missing something really obvious ?

Any help much appreciated.

Paul

2nd Edit:

Re installed windows OpenCPN 4 and Watchdog now working on windows .... just need to sort Raspberry Pi (Raspbian) any suggestions welcome.

Paul
__________________
Cariad1961 is offline   Reply With Quote
Old 28-03-2015, 11:37   #9
Registered User

Join Date: Mar 2007
Location: Toronto,SE Florida, East Med
Boat: Dehler, Cruising 41 - BEBECA
Posts: 47
Send a message via Skype™ to deltasig
Re: Anchor Alarm to Bluetooth Speaker

Just wondering, any progress? I'm having problems running plug-ins in a home complied raspbian opencpm. Everything else, including the 2 build in plugins works fine.
__________________
deltasig is offline   Reply With Quote
Old 28-03-2015, 17:50   #10
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: chesapeake bay
Boat: bristol 27
Posts: 2,824
Re: Anchor Alarm to Bluetooth Speaker

post the log file
__________________
boat_alexandra is offline   Reply With Quote
Old 28-03-2015, 20:58   #11
Registered User

Join Date: Mar 2007
Location: Toronto,SE Florida, East Med
Boat: Dehler, Cruising 41 - BEBECA
Posts: 47
Send a message via Skype™ to deltasig
Re: Anchor Alarm to Bluetooth Speaker

Actually I installed OpenCPN from
http://agurney.com/raspi/opencpn_4.0.0-1_armhf_tides_map.deb

The plugin vdr was downloaded from OpenCPN site.
The systems stops with the following when I open the SetUp window.
*** opencpn (wxWidgets 2.8.12) crashed ***, see backtrace!
0x381734 in wxCrashPrint::Report() at ??:?
0x1176e0 in MyApp::OnFatalException() at ??:?
0xb6f04b4c in wxFatalSignalHandler at ??:0
0xb5cf1b20 in __default_sa_restorer_v2 at ??:0
Aborted

Log Follows:
13:40:48 EDT: 2015-03-28
13:40:48 EDT: ------- Starting OpenCPN -------
13:40:48 EDT: Version 4.0.0 Build 2015-01-08
13:40:48 EDT: wxWidgets version: wxWidgets 2.8.12
13:40:48 EDT: MemoryStatus: mem_total: 434 mb, mem_initial: 18 mb
13:40:48 EDT: SData_Locn is /usr/local/share/opencpn/
13:40:48 EDT: Using existing Config_File: /home/pi/.opencpn/opencpn.conf
13:40:48 EDT: Styles loading from /usr/local/share/opencpn/uidata/styles.xml
13:40:48 EDT: No styles found at: /home/pi/
13:40:48 EDT: No styles found at: /home/pi/.opencpn/
13:40:49 EDT: Detected display size: 313 mm
13:40:49 EDT: Detected display size: 313 mm
13:40:49 EDT: Setting Viewpoint Lat/Lon 39.1048, 23.5902
13:40:49 EDT: Setting Ownship Lat/Lon 26.0388, -80.1396
13:40:49 EDT: Loading navobjects from navobj.xml
13:40:49 EDT: Done loading navobjects
13:40:49 EDT: System default Language: en_US
13:40:49 EDT: Opencpn language set to: en_US
13:40:53 EDT: ChartSymbols loaded from /usr/local/share/opencpn/s57data/chartsymbols.xml
13:40:56 EDT: Using s57data in /usr/local/share/opencpn/s57data
13:40:56 EDT: Setting Viewpoint Lat/Lon 39.1048, 23.5902
13:40:56 EDT: Setting Ownship Lat/Lon 26.0388, -80.1396
13:40:56 EDT: Opening NMEA Datastream GPSD:localhost:2947
13:40:56 EDT: Creating glChartCanvas
13:40:56 EDT: PlugInManager searching for PlugIns in location /usr/local/lib/opencpn
13:40:57 EDT: PlugInManager: Loading PlugIn: /usr/local/lib/opencpn/libgrib_pi.so
13:40:57 EDT: /usr/local/lib/opencpn/libgrib_pi.so
API Version detected: 112
PlugIn Version detected: 203
13:40:57 EDT: Opencpn language reload for: en_US
13:40:57 EDT: Loading catalog for: opencpn-grib_pi
13:40:57 EDT: Loading catalog for opencpn core.
13:40:58 EDT: ChartDB Cache policy: Application target is 208 MBytes
13:40:58 EDT: Loading chart db version: V018
13:40:58 EDT: Chartdb: Chart directory list follows
13:40:58 EDT: Chart directory #0: /home/pi/ENC_ROOT
13:40:58 EDT: Chart directory #1: /home/pi/Cm93 jan 2011
13:40:58 EDT: GPS Watchdog Timeout is: 6 sec.
13:40:58 EDT: Unable to initialize background world map. No GSHHS datafiles found in /usr/local/share/opencpn/gshhs/
13:40:58 EDT: Loading World Chart Q=0 in 0 ms.
13:40:58 EDT: Background world map loaded from GSHHS datafiles found in: /usr/local/share/opencpn/gshhs/
13:40:58 EDT: Loading World Chart Q=0 in 0 ms.
13:40:59 EDT: Changing NMEA Datasource for GPGSV to GPSD:localhost:2947 (Priority: 1)
13:40:59 EDT: Changing NMEA Datasource for GPZDA to GPSD:localhost:2947 (Priority: 1)
13:40:59 EDT: Changing NMEA Datasource for GPGGA to GPSD:localhost:2947 (Priority: 1)
13:40:59 EDT: Changing NMEA Datasource for GPRMC to GPSD:localhost:2947 (Priority: 1)
13:40:59 EDT: Changing NMEA Datasource for GPGSA to GPSD:localhost:2947 (Priority: 1)
13:40:59 EDT: Initializing Chart /home/pi/Cm93 jan 2011
13:40:59 EDT: CM93Composite Chart Root is /home/pi/Cm93 jan 2011/
13:40:59 EDT: Loaded CM93 Dictionary from /home/pi/Cm93 jan 2011/
13:40:59 EDT: Loading CM93 cell /home/pi/Cm93 jan 2011/03300060/C/A3780060.C
13:41:00 EDT: Loading CM93 cell /home/pi/Cm93 jan 2011/03300060/C/B3780060.C
13:41:03 EDT: Loading CM93 cell /home/pi/Cm93 jan 2011/03300060/C/C3780060.C
13:41:06 EDT: Loading CM93 cell /home/pi/Cm93 jan 2011/03300060/C/D3780060.C
13:41:10 EDT: Loading CM93 cell /home/pi/Cm93 jan 2011/03300060/C/A3780072.C
13:41:17 EDT: Loading CM93 cell /home/pi/Cm93 jan 2011/03300060/C/B3780072.C
13:41:21 EDT: Loading CM93 cell /home/pi/Cm93 jan 2011/03300060/C/C3780072.C
13:41:24 EDT: Loading CM93 cell /home/pi/Cm93 jan 2011/03300060/C/D3780072.C
13:41:49 EDT: LOGBOOK: 2015-03-28 17:41:49 UTC GPS Lat 26.03858 Lon -80.13967 COG 0.00000 SOG 0.00 kts
13:44:38 EDT: Changing NMEA Datasource for GPGBS to GPSD:localhost:2947 (Priority: 1)
13:53:17 EDT: PlugInManager searching for PlugIns in location /usr/local/lib/opencpn
13:53:17 EDT: PlugInManager: Loading PlugIn: /usr/local/lib/opencpn/vdr_pi_0.3-1_armhf/lib/opencpn/libvdr_pi.so
__________________
deltasig is offline   Reply With Quote
Old 29-03-2015, 01:57   #12
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: chesapeake bay
Boat: bristol 27
Posts: 2,824
Re: Anchor Alarm to Bluetooth Speaker

are the plugins in /usr/local/lib/opencpn? what files are there?
__________________
boat_alexandra is offline   Reply With Quote
Old 29-03-2015, 14:43   #13
Registered User

Join Date: Mar 2007
Location: Toronto,SE Florida, East Med
Boat: Dehler, Cruising 41 - BEBECA
Posts: 47
Send a message via Skype™ to deltasig
Re: Anchor Alarm to Bluetooth Speaker

In /usr/local/lib/opencpn I have libdashboard_pi.so, libgrib_pi.so and libvdr_pi.so. The last one being the one I downloaded (armhf) from the site.
It appears, though that the armhf versions are for arm7 units and not arm6 (like my RPi); and that causes the crash.
I'm looking for a way to compile the plugins I need locally in the RPi but I'm having trouble locating all the parts.
__________________
deltasig is offline   Reply With Quote
Old 29-03-2015, 18:21   #14
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: chesapeake bay
Boat: bristol 27
Posts: 2,824
Re: Anchor Alarm to Bluetooth Speaker

yes, for armv6 you will need to compile from source.
__________________
boat_alexandra is offline   Reply With Quote
Old 31-03-2015, 09:46   #15
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 1,968
Re: Anchor Alarm to Bluetooth Speaker

deltasig...
If you have RPi-2 you could try my .deb linked here:
Raspberry Pi 2
or a later alpha version some posts above in the same thread.
Håkan
__________________

__________________
Hakan is online now   Reply With Quote
Reply

Tags
alarm, anchor

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
car alarm as boat alarm? arjand Health, Safety & Related Gear 2 12-01-2013 04:31
Inexpensive High Water Alarm (and boat alarm) kiltym Marine Electronics 2 04-11-2012 10:22
Mixing Signals to External Speaker Cadence10m Marine Electronics 30 24-09-2009 13:13



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 12:21.


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.