Difference between revisions of "OpenPlotter"
(→Setup piCAN2:) |
(→Setup piCAN2:) |
||
Line 46: | Line 46: | ||
dtoverlay=mcp2515-can0,oscillator=16000000,interrupt=25 | dtoverlay=mcp2515-can0,oscillator=16000000,interrupt=25 | ||
dtoverlay=spi-bcm2835-overlay | dtoverlay=spi-bcm2835-overlay | ||
− | |||
− | |||
− | |||
− | |||
− | |||
</pre> | </pre> | ||
Line 61: | Line 56: | ||
down /sbin/ip link set $IFACE down | down /sbin/ip link set $IFACE down | ||
up /sbin/ifconfig $IFACE txqueuelen 10000 | up /sbin/ifconfig $IFACE txqueuelen 10000 | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</pre> | </pre> | ||
Line 84: | Line 73: | ||
</pre> | </pre> | ||
− | * copy and edit /home/pi/canboat/canboat/config/n2kd to '''/etc/default/n2kd''' | + | * copy and edit /home/pi/canboat/canboat/config/n2kd to '''/etc/default/n2kd''' (is this really needed?) |
* add to '''/home/pi/.config/openplotter/OP-signalk/openplotter-settings.json''' | * add to '''/home/pi/.config/openplotter/OP-signalk/openplotter-settings.json''' |
Revision as of 14:01, 20 January 2018
https://sailoog.gitbooks.io/openplotter-documentation/en/
Aim
- fit a cheap and open source ECDIS on board of a sailing vessel
- yacht has SeaTalkng network (/w Raymarine iTC-5 Converter)
- VHV radio (Navman VHF 7100)
- autopilot (Raymarine Evolution EV-200 Sail)
- sumlog (VDO)
- depth sounder (???)
- wind & close hauled/VMG instrument (Raymarine Wind ST50 Plus)
- gps (Garmin GPS 126)
- AIS Class-B transceiver (SRT)
- battery monitor (Victron BMV-700)
Parts (boat specific)
- Seatalkng extensions:
- Spur-Kabel mit 1 offenen Ende 3m Art.-Nr: A06044 EUR 40,-
- 5-Wege-Verbinder Art.-Nr: A06064 EUR 35,- (alternativ T-Stück Art.-Nr.: A06028 EUR 25,-)
- Backbone-Kabel 0,40m - A06033 EUR 30,-
Mini-PC
- Raspberry Pi 3 Model B EUR 35,-
- 16GB MicroSD Card EUR 10,-
- SPI USV EUR 25,-
- Case
- PiCAN 2 EUR 45,-
- WLAN (RTL8192CU/CUS chipset) EUR 10,-
Setup Pi:
- Preferences > Raspberry Configuration > Interfaces > SSH:enable (Remote-access via WinSCP and Putty)
- sudo apt-get install tightvncserver (make RDP working)
- sudo apt-get install can-utils
Setup Android:
- RDC from playStore (working)
- aRDP free from playStore (suits my needs best)
Setup piCAN2:
- also see
- add to /boot/config.txt
dtparam=spi=on dtoverlay=mcp2515-can0,oscillator=16000000,interrupt=25 dtoverlay=spi-bcm2835-overlay
- add to /etc/network/interfaces (overwritten by /home/pi/.config/openplotter/wifi_server.py!)
#physical can interfaces allow-hotplug can0 iface can0 can static bitrate 250000 down /sbin/ip link set $IFACE down up /sbin/ifconfig $IFACE txqueuelen 10000
- install canboat
mkdir ~/canboat cd ~/canboat sudo apt-get install xsltproc git clone git://github.com/canboat/canboat cd canboat sudo make sudo make install
sudo apt-get install libconfig-general-perl
- copy and edit /home/pi/canboat/canboat/config/n2kd to /etc/default/n2kd (is this really needed?)
- add to /home/pi/.config/openplotter/OP-signalk/openplotter-settings.json
{ "id": "n2k-can0", "pipeElements": [ { "type": "providers/execute", "options": { "command": "candump can0 | candump2analyzer " } }, { "type": "providers/liner", "options": { "rawlogging": true, "logdir": "logs", "discriminator": "2" } }, { "type": "providers/n2kAnalyzer" }, { "type": "providers/n2k-signalk" } ] }