OLA on the Raspberry Pi 3 (Jessie)


Note : For Stretch -->  libprotobuf-lite10

Download Raspbian Jessie and prepare the SDCard

https://www.raspberrypi.org/downloads/raspbian/

Enable SSH
https://www.raspberrypi.org/blog/a-security-update-for-raspbian-pixel/

sudo apt-get update
sudo apt-get upgrade

Do the usual personalized sudo raspi-config actions
For example hostname : raspberrypi-3

Preventing Linux from using the serial port
http://elinux.org/RPi_Serial_Connection#Preventing_Linux_using_the_serial_port
Update : raspi-config -> 5 Interfacing Options ; Yes , No

Enable UART PL011
Add the following lines to the /boot/config.txt
# OLA UART DMX Output
dtoverlay=pi3-disable-bt
init_uart_clock=16000000
# http://eastertrail.blogspot.nl/2014/04/command-and-control-ii.html

reboot

pi@raspberrypi-3:~ $ ls -al /dev/ttyA*
crw-rw---- 1 root dialout 204, 64 Apr 10 19:03 /dev/ttyAMA0
pi@raspberrypi-3:~ $ ls -al /dev/ttyU*
crw-rw---- 1 root dialout 188, 0 Apr 10 19:03 /dev/ttyUSB0

sudo apt-get update
sudo apt-get install libtool autoconf bison flex make python-protobuf python-numpy protobuf-compiler libprotobuf-lite9 libftdi-dev libftdi1 uuid-dev libcppunit-dev libmicrohttpd-dev libprotobuf-dev libprotoc-dev zlib1g-dev libusb-1.0-0-dev liblo-dev libavahi-client-dev

mkdir ola
cd ola
wget https://github.com/OpenLightingProject/ola/archive/0.10.5.tar.gz
tar xvfz 0.10.5.tar.gz
cd ola-0.10.5/
autoreconf -i

make clean
./configure --disable-all-plugins --enable-usbpro --enable-e131 --enable-artnet --enable-uartdmx --enable-rdm-tests --enable-http
make -j 4 all
sudo make install
sudo ldconfig

Note : Install the RDM responder tests, adds --enable-python-libs

First starting : olad -l 3

pi@raspberrypi-3:~/ola/ola-0.10.5 $ olad -l 3
olad/Olad.cpp:94: OLA Daemon version 0.10.5
olad/OlaDaemon.cpp:121: Using configs in /home/pi/.ola
common/thread/Thread.cpp:194: Thread pref-saver, policy SCHED_OTHER, priority 0
olad/OlaServer.cpp:194: Server UID is 7a70:7b02a8c0
olad/plugin_api/Preferences.cpp:424: Missing /home/pi/.ola/ola-server.conf: No such file or directory - this isn't an error, we'll just use the defaults
olad/OlaServer.cpp:206: Server instance name is OLA Server
olad/plugin_api/Preferences.cpp:424: Missing /home/pi/.ola/ola-universe.conf: No such file or directory - this isn't an error, we'll just use the defaults
olad/plugin_api/Preferences.cpp:424: Missing /home/pi/.ola/ola-port.conf: No such file or directory - this isn't an error, we'll just use the defaults
olad/AvahiDiscoveryAgent.cpp:201: Client state changed to AVAHI_CLIENT_S_RUNNING
common/thread/Thread.cpp:194: Thread http, policy SCHED_OTHER, priority 0
common/http/HTTPServer.cpp:496: HTTP Server started on port 9090
olad/AvahiDiscoveryAgent.cpp:236: State for OLA Server._http._tcp,_ola, group 0xd8cb70 changed to AVAHI_ENTRY_GROUP_UNCOMMITED
olad/AvahiDiscoveryAgent.cpp:334: Adding _ola._sub._http._tcp
olad/AvahiDiscoveryAgent.cpp:342: Failed to add _ola._sub._http._tcp
olad/OlaServer.cpp:481: Updated PID definitions.
olad/AvahiDiscoveryAgent.cpp:236: State for OLA Server._http._tcp,_ola, group 0xd8cb70 changed to AVAHI_ENTRY_GROUP_REGISTERING
olad/OlaServer.cpp:489: PID store is at 0xdeb188
common/thread/Thread.cpp:194: Thread signal-thread, policy SCHED_OTHER, priority 0
olad/plugin_api/Preferences.cpp:424: Missing /home/pi/.ola/ola-artnet.conf: No such file or directory - this isn't an error, we'll just use the defaults
olad/plugin_api/Preferences.cpp:424: Missing /home/pi/.ola/ola-e131.conf: No such file or directory - this isn't an error, we'll just use the defaults
olad/plugin_api/Preferences.cpp:424: Missing /home/pi/.ola/ola-usbserial.conf: No such file or directory - this isn't an error, we'll just use the defaults
olad/plugin_api/Preferences.cpp:424: Missing /home/pi/.ola/ola-uartdmx.conf: No such file or directory - this isn't an error, we'll just use the defaults
olad/PluginManager.cpp:73: Skipping UART native DMX because it was disabled
olad/PluginManager.cpp:195: Trying to start ArtNet
olad/plugin_api/DeviceManager.cpp:105: Installed device: ArtNet [192.168.2.123]:2-1
olad/PluginManager.cpp:200: Started ArtNet
olad/PluginManager.cpp:195: Trying to start Serial USB
common/thread/Thread.cpp:194: Thread , policy SCHED_OTHER, priority 0
plugins/usbpro/WidgetDetectorThread.cpp:215: Found potential USB Serial device at /dev/ttyUSB0
common/io/Serial.cpp:197: Acquired /var/lock/LCK..ttyUSB0
plugins/usbpro/WidgetDetectorThread.cpp:384: trying stage 0 for 0x73e00548
olad/PluginManager.cpp:200: Started Serial USB
olad/PluginManager.cpp:195: Trying to start E1.31 (sACN)
olad/plugin_api/DeviceManager.cpp:105: Installed device: E1.31 (DMX over ACN) [192.168.2.123]:11-1
olad/PluginManager.cpp:200: Started E1.31 (sACN)
plugins/usbpro/UsbProWidgetDetector.cpp:536: Detected USB Device: ESTA Id: 0x7ff0 (AvV), device Id: 0x0001 (Raspberry Pi DMX USB Pro), serial: 0xebf43844, f/w version: 2.4
plugins/usbpro/WidgetDetectorThread.cpp:314: Defaulting to a Usb Pro device
olad/plugin_api/DeviceManager.cpp:105: Installed device: AvV - Raspberry Pi DMX USB Pro, Serial #: 1511543844, firmware 2.4:5-1511543844

web-browser http://raspberrypi-3:9090/ola.html

Check that 3 plug-ins are running

Edit .ola/ola-uartdmx.conf

device = /dev/ttyAMA0
enabled = true

Reload plug-ins

olad/OlaServer.cpp:475: Reloading plugins
common/io/Serial.cpp:245: Released /var/lock/LCK..ttyUSB0
olad/PluginManager.cpp:195: Trying to start ArtNet
olad/plugin_api/DeviceManager.cpp:105: Installed device: ArtNet [192.168.2.123]:2-1
olad/PluginManager.cpp:200: Started ArtNet
olad/PluginManager.cpp:195: Trying to start Serial USB
common/thread/Thread.cpp:194: Thread , policy SCHED_OTHER, priority 0
plugins/usbpro/WidgetDetectorThread.cpp:215: Found potential USB Serial device at /dev/ttyUSB0
common/io/Serial.cpp:197: Acquired /var/lock/LCK..ttyUSB0
plugins/usbpro/WidgetDetectorThread.cpp:384: trying stage 0 for 0x72b00548
olad/PluginManager.cpp:200: Started Serial USB
olad/PluginManager.cpp:195: Trying to start E1.31 (sACN)
olad/plugin_api/DeviceManager.cpp:105: Installed device: E1.31 (DMX over ACN) [192.168.2.123]:11-1
olad/PluginManager.cpp:200: Started E1.31 (sACN)
olad/PluginManager.cpp:195: Trying to start UART native DMX
common/io/ExtendedSerial.cpp:76: Port speeds for 27 are 250000 in and 250000 out
common/thread/Thread.cpp:194: Thread , policy SCHED_OTHER, priority 0
olad/plugin_api/DeviceManager.cpp:105: Installed device: UART native DMX:20-/dev/ttyAMA0
olad/PluginManager.cpp:200: Started UART native DMX
plugins/uartdmx/UartDmxThread.cpp:136: Granularity for UART thread is GOOD
plugins/usbpro/UsbProWidgetDetector.cpp:536: Detected USB Device: ESTA Id: 0x7ff0 (AvV), device Id: 0x0001 (Raspberry Pi DMX USB Pro), serial: 0xebf43844, f/w version: 2.4
plugins/usbpro/WidgetDetectorThread.cpp:314: Defaulting to a Usb Pro device
olad/plugin_api/DeviceManager.cpp:105: Installed device: AvV - Raspberry Pi DMX USB Pro, Serial #: 1511543844, firmware 2.4:5-1511543844


All plug-ins are available for use in an Universe


Comments