Difference between revisions of "OpenPlotter"

From wiki.bastelbude.grade.de
Jump to: navigation, search
(Created page with "https://sailoog.gitbooks.io/openplotter-documentation/en/ == Parts == * Seatalkng Erweiterungen: ** Spur-Kabel mit 1 offenen Ende 3m Art.-Nr: A06044 EUR 40,- ** 5-Wege-Verbi...")
 
(Mini-PC)
Line 9: Line 9:
  
 
== Mini-PC ==
 
== Mini-PC ==
** Raspberry Pi 3 Model B EUR 35,-
+
* Raspberry Pi 3 Model B EUR 35,-
** 16GB MicroSD Karte EUR 10,-
+
* 16GB MicroSD Karte EUR 10,-
** SPI USV EUR 25,-
+
* SPI USV EUR 25,-
** Gehaeuse
+
* Gehaeuse
** PiCAN 2 EUR 45,-
+
* PiCAN 2 EUR 45,-
** WLAN (RTL8192CU/CUS chipset) EUR 10,-
+
* WLAN (RTL8192CU/CUS chipset) EUR 10,-
  
 
== Setup Pi: ==
 
== Setup Pi: ==

Revision as of 09:12, 19 January 2018

https://sailoog.gitbooks.io/openplotter-documentation/en/

Parts

  • Seatalkng Erweiterungen:
    • 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 Karte EUR 10,-
  • SPI USV EUR 25,-
  • Gehaeuse
  • PiCAN 2 EUR 45,-
  • WLAN (RTL8192CU/CUS chipset) EUR 10,-

Setup Pi:

  • Preferences > Raspberry Configuration > Interfaces > SSH:enable (fuer Remotezugriff via WinSCP und Putty)
  • sudo apt-get install tightvncserver (damit RDP funzt)

Setup Android:

  • RDC aus dem playStore (funzt)
  • aRDP free aus dem playStore (funzt bestens)

Setup piCAN2:

siehe https://dayba.wordpress.com/category/canbus/pican2/

  • /boot/config.txt
dtparam=spi=on
dtoverlay=mcp2515-can0,oscillator=16000000,interrupt=25
dtoverlay=spi-bcm2835-overlay
  • /etc/modules
vcan
  • /etc/network/interfaces
    • (wird von wifi_server.py ueberschrieben!)
#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

#virtual can interfaces
auto vcan0
iface vcan0 inet manual
pre-up /sbin/ip link add dev $IFACE type vcan
up /sbin/ifconfig $IFACE up

can0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
UP RUNNING NOARP MTU:16 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:10
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
 
vcan0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
UP RUNNING NOARP MTU:16 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
  • openplotter-settings.json

{

 "id": "n2k-vcan0",
 "pipeElements": [
   {
     "type": "providers/execute",
     "options": {
       "command": "candump vcan0 | candump2analyzer "
     }
   },
   {
     "type": "providers/liner",
     "options": {
       "rawlogging": true,
       "logdir": "logs",
       "discriminator": "2"
     }
   },
   {
     "type": "providers/n2kAnalyzer"
   },
   {
     "type": "providers/n2k-signalk"
   }
 ]

}