Hardware and bindings for DMX lighting control

So something strange happend, I have a debug RPI, got my dmx light up running nicely. Then I cloned that image, took it to my fusebox rpi, realized i had forgotten to add the gpio binding, fixed that. Started ola changed the dmx dongle to the new one. Everything works superb from ola, but not from openhab as it used to!!

It says it can not establich contact to the dmx. So i tried to stop ola and restart it:

olad -l 3
olad/Olad.cpp:94: OLA Daemon version 0.9.8
olad/OlaDaemon.cpp:121: Using configs in /home/pi/.ola
common/thread/Thread.cpp:192: Thread pref-saver, policy SCHED_OTHER, priority 0
olad/OlaServer.cpp:194: Server UID is 7a70:9c01a8c0
olad/OlaServer.cpp:206: Server instance name is OLA Server
olad/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
common/network/TCPSocket.cpp:235: bind to 127.0.0.1:9010 failed, Cannot assign requested address
common/rpc/RpcServer.cpp:102: Could not listen on the RPC port 9010, you probably have another instance of running.
olad/OlaServer.cpp:252: Failed to init RPC server
common/thread/Thread.cpp:192: Thread signal-thread, policy SCHED_OTHER, priority 0

I noticed I got ola 1.7.1 jar and 1.8 jar in the addon folder is this an issue? How do i remove the bindings and reinstall them?

I tried running this,

pi@raspberrypi ~ $ sudo netstat -tulpn | grep :9010

but it seems like ola is not running on that port, because it says nothing in putty. Am I doing something wrong?

How do I uninstall ola so I can change to Artnet? Just delete the jar file?

i have the same problem like other people.
ā€œbind to 127.0.0.1:9010 failed, Address already in useā€

` olad/Olad.cpp:94: OLA Daemon version 0.9.8
olad/OlaDaemon.cpp:121: Using configs in /home/orangepi/.ola
common/thread/Thread.cpp:192: Thread pref-saver, policy SCHED_OTHER, priority 0
olad/OlaServer.cpp:194: Server UID is 7a70:e102a8c0
olad/OlaServer.cpp:206: Server instance name is OLA Server
common/network/TCPSocket.cpp:235: bind to 127.0.0.1:9010 failed, Address already in use
common/rpc/RpcServer.cpp:102: Could not listen on the RPC port 9010, you probably have another instance of running.
olad/OlaServer.cpp:252: Failed to init RPC server
common/thread/Thread.cpp:192: Thread signal-thread, policy SCHED_OTHER, priority 0

AND

2016-02-02 23:41:14.219 [ERROR] [ola.rpc.StreamRpcChannel ] - Error connecting to 192.168.2.225:9010. Make sure the olad daemon is running. 2016-02-02 23:41:14.263 [ERROR] [.d.internal.core.DmxController] - Error opening DMX connection. java.lang.Exception: Error connecting to 192.168.2.225:9010. Make sure the olad daemon is running. at ola.rpc.StreamRpcChannel.connect(StreamRpcChannel.java:76) ~[ola-java-client-0.0.3.jar:na] at ola.OlaClient.connect(OlaClient.java:72) ~[ola-java-client-0.0.3.jar:na] at org.openhab.binding.dmx.ola.OlaConnection.open(OlaConnection.java:55) ~[bundlefile:na] at org.openhab.binding.dmx.internal.core.DmxController.getConnection(DmxController.java:266) ~[bundlefile:na] at org.openhab.binding.dmx.internal.core.DmxTransmitter.run(DmxTransmitter.java:62) [bundlefile:na] at java.util.TimerThread.mainLoop(Timer.java:555) [na:1.7.0_40] at java.util.TimerThread.run(Timer.java:505) [na:1.7.0_40] Caused by: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) ~[na:1.7.0_40] at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) ~[na:1.7.0_40] at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) ~[na:1.7.0_40] at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) ~[na:1.7.0_40] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[na:1.7.0_40] at java.net.Socket.connect(Socket.java:579) ~[na:1.7.0_40] at java.net.Socket.connect(Socket.java:528) ~[na:1.7.0_40] at java.net.Socket.<init>(Socket.java:425) ~[na:1.7.0_40] at java.net.Socket.<init>(Socket.java:208) ~[na:1.7.0_40] at ola.rpc.StreamRpcChannel.connect(StreamRpcChannel.java:70) ~[ola-java-client-0.0.3.jar:na] ... 6 common frames omitted

1 Like

hi,
yeah i get the same code:

[ERROR] [ola.rpc.StreamRpcChannel :75 ] - Error connecting to localhost:9010. Make sure the olad daemon is running. 06:38:40.262 [ERROR] [.d.internal.core.DmxController:268 ] - Error opening DMX connection. java.lang.Exception: Error connecting to localhost:9010. Make sure the olad daemon is running. at ola.rpc.StreamRpcChannel.connect(StreamRpcChannel.java:76) ~[ola-java-client-0.0.3.jar:na] at ola.OlaClient.connect(OlaClient.java:72) ~[ola-java-client-0.0.3.jar:na] at org.openhab.binding.dmx.ola.OlaConnection.open(OlaConnection.java:55) ~[bundlefile:na] at org.openhab.binding.dmx.internal.core.DmxController.getConnection(DmxController.java:266) ~[bundlefile:na] at org.openhab.binding.dmx.internal.core.DmxTransmitter.run(DmxTransmitter.java:62) [bundlefile:na] at java.util.TimerThread.mainLoop(Timer.java:555) [na:1.8.0] at java.util.TimerThread.run(Timer.java:505) [na:1.8.0] Caused by: java.net.ConnectException: Connection timed out at java.net.PlainSocketImpl.socketConnect(Native Method) ~[na:1.8.0] at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345) ~[na:1.8.0] at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) ~[na:1.8.0] at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) ~[na:1.8.0] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[na:1.8.0] at java.net.Socket.connect(Socket.java:589) ~[na:1.8.0] at java.net.Socket.connect(Socket.java:538) ~[na:1.8.0] at java.net.Socket.<init>(Socket.java:434) ~[na:1.8.0] at java.net.Socket.<init>(Socket.java:211) ~[na:1.8.0] at ola.rpc.StreamRpcChannel.connect(StreamRpcChannel.java:70) ~[ola-java-client-0.0.3.jar:na] ... 6 common frames omitted

I tried changing to artnet but get the same result, what is really strange is that it used to work, then i cloned the image added gpio and set up universe 0 again, then it stopped working.

So my bet is that ola itself deleted some important comfig files when the dongle was not in and it restarted itself.

I spend a lot of hour to solve this problem. I donā€™t know where is problem!
Now we need some external people to help us. :slightly_smiling:

Is there a way we can test ola from command line without using openhab and ola as html?

I donā€™t think soā€¦, maybe tcp port connect with direct command
I think there is a problem with open port 9010???

FYI, you can also configure OLA as an artnet node and then connect openHAB to that using the org.openhab.binding.dmx.artnet bundle instead of org.openhab.binding.dmx.ola.
https://wiki.openlighting.org/index.php/Configuring_OLA_as_a_Artnet_Node_in_Ubuntu

Davy thanks for hint!!! :grin:
WORKING!

log openhab
orangepi@orangepi ~ $ tail -f /opt/openhab/logs/openhab.log 2016-02-06 13:40:55.335 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model 'demo.rules' 2016-02-06 13:41:37.351 [DEBUG] [.mqtt.internal.MqttItemBinding] - Publishing command ON to /testsw/1 2016-02-06 13:41:37.368 [DEBUG] [o.i.t.m.i.MqttBrokerConnection] - Publishing message 2 to topic '/testsw/1' 2016-02-06 13:41:38.365 [DEBUG] [.mqtt.internal.MqttItemBinding] - Publishing command ON to /testsw/2 2016-02-06 13:41:38.373 [DEBUG] [o.i.t.m.i.MqttBrokerConnection] - Publishing message 3 to topic '/testsw/2' 2016-02-06 13:41:41.489 [INFO ] [.binding.dmx.ola.OlaConnection] - Starting autobind for universe 0. To disable autobind use -Dnet.opendmx.ola.autobind=false 2016-02-06 13:41:43.057 [WARN ] [ola.OlaClient ] - RPC Call failed: No valid response received ! 2016-02-06 13:41:43.058 [INFO ] [.binding.dmx.ola.OlaConnection] - Could not link universe 0 to device FT232R USB UART with serial number : A50285BI 2016-02-06 13:41:43.060 [WARN ] [ola.OlaClient ] - RPC Call failed: No valid response received ! 2016-02-06 13:41:43.061 [INFO ] [.binding.dmx.ola.OlaConnection] - Could not link universe 0 to device ArtNet [192.168.2.225]

Log ola
orangepi@orangepi ~ $ olad -l 3 olad/Olad.cpp:94: OLA Daemon version 0.9.8 olad/OlaDaemon.cpp:121: Using configs in /home/orangepi/.ola common/thread/Thread.cpp:192: Thread pref-saver, policy SCHED_OTHER, priority 0 olad/OlaServer.cpp:194: Server UID is 7a70:e102a8c0 olad/OlaServer.cpp:206: Server instance name is OLA Server olad/AvahiDiscoveryAgent.cpp:201: Client state changed to AVAHI_CLIENT_CONNECTING common/thread/Thread.cpp:192: Thread http, policy SCHED_OTHER, priority 0 common/http/HTTPServer.cpp:496: HTTP Server started on port 9090 olad/OlaServer.cpp:481: Updated PID definitions. olad/OlaServer.cpp:489: PID store is at 0xb7308 common/thread/Thread.cpp:192: Thread signal-thread, policy SCHED_OTHER, priority 0 olad/PluginManager.cpp:73: Skipping Dummy because it was disabled olad/PluginManager.cpp:73: Skipping E1.31 (sACN) because it was disabled olad/PluginManager.cpp:73: Skipping ESP Net because it was disabled olad/PluginManager.cpp:73: Skipping GPIO because it was disabled olad/PluginManager.cpp:73: Skipping KarateLight because it was disabled olad/PluginManager.cpp:73: Skipping KiNET because it was disabled olad/PluginManager.cpp:73: Skipping Milford Instruments because it was disabled olad/PluginManager.cpp:73: Skipping Enttec Open DMX because it was disabled olad/PluginManager.cpp:73: Skipping Open Pixel Control because it was disabled olad/PluginManager.cpp:73: Skipping OSC because it was disabled olad/PluginManager.cpp:73: Skipping Renard because it was disabled olad/PluginManager.cpp:73: Skipping SandNet because it was disabled olad/PluginManager.cpp:73: Skipping ShowNet because it was disabled olad/PluginManager.cpp:73: Skipping SPI because it was disabled olad/PluginManager.cpp:73: Skipping StageProfi because it was disabled olad/PluginManager.cpp:73: Skipping Serial USB because it was disabled olad/PluginManager.cpp:73: Skipping USB because it was disabled olad/PluginManager.cpp:73: Skipping Pathport because it was disabled olad/PluginManager.cpp:73: Skipping UART native DMX because it was disabled olad/PluginManager.cpp:195: Trying to start ArtNet olad/DeviceManager.cpp:105: Installed device: ArtNet [192.168.2.225]:2-1 olad/Universe.cpp:506: Full RDM discovery triggered for universe 1 olad/PortManager.cpp:119: Patched 2-1-I-0 to universe 1 olad/Universe.cpp:506: Full RDM discovery triggered for universe 0 olad/PortManager.cpp:119: Patched 2-1-I-1 to universe 0 olad/PluginManager.cpp:200: Started ArtNet olad/PluginManager.cpp:195: Trying to start FTDI USB DMX plugins/ftdidmx/FtdiWidget.cpp:123: Found 1 FTDI devices with PID: 24577. plugins/ftdidmx/FtdiWidget.cpp:175: Found FTDI device. Vendor: 'FTDI', Name: 'FT232R USB UART', Serial: 'A50285BI' plugins/ftdidmx/FtdiWidget.cpp:123: Found 0 FTDI devices with PID: 24593. plugins/ftdidmx/FtdiDmxDevice.cpp:60: Widget FT232R USB UART has 1 interfaces. plugins/ftdidmx/FtdiWidget.cpp:215: Setting interface to: 1 common/thread/Thread.cpp:192: Thread , policy SCHED_OTHER, priority 0 plugins/ftdidmx/FtdiDmxDevice.cpp:75: Successfully added 1/1 interfaces. olad/DeviceManager.cpp:105: Installed device: FT232R USB UART with serial number : A50285BI :13-A50285BI olad/PortManager.cpp:119: Patched 13-A50285BI-O-1 to universe 0 olad/PluginManager.cpp:200: Started FTDI USB DMX plugins/ftdidmx/FtdiDmxThread.cpp:175: Granularity for FTDI thread is GOOD olad/PortManager.cpp:198: Port 1 is already patched to 0 olad/Universe.cpp:278: Added source client, 0xb4111538 to universe 0 olad/Universe.cpp:423: Removed Stale Client

can you show me which plugin in ola you used? And also did you add artnet binding to OH? and did you remove OLA binding?

Then I will go down the same lineā€¦

I have USB to RS485
enter link description here

ola-artnet.conf
always_broadcast = true enabled = true ip = 192.168.2.225 long_name = OLA - ArtNet node net = 0 output_ports = 4 short_name = OLA - ArtNet node subnet = 0 use_limited_broadcast = false use_loopback = false

ola-ftdidmx.conf
enabled = true frequency = 30

OPENHAB

org.openhab.binding.dmx-1.7.1.jar
org.openhab.binding.dmx.ola-1.7.1.jar

If you have any other question just ask. I spend a lot of time with DM512 and OPENHAB.
If I know I will answer :grin:

Aha, so you dont use the artnet binding in openhab, how can I remove a binding from OH? Just delete the jar file?

Maybe there is an issue with the dmx1.8.1 binding because thats what I use. I will try again tonight:)

Yes, just delete.
if you try with new version, please tell me, because I will try.

If you configure OLA with artnet, you need to use the dmx.artnet binding in openHAB.
If you donā€™t configure OLA with artnet, you need to use the dmx.ola binding in openHAB.

If you have the dmx.ola binding you are accessing OLA directly and not through artnet. You probably have configerd OLA to have multiple entry points (both OLA and artnet).

is that the same ip as openhab is running on, or did you take it of ola?

[DEBUG] [.b.dmx.artnet.ArtnetConnection:63   ] - adding artnet receiver 192.168.1.156
18:49:46.100 [ERROR] [.d.internal.core.DmxController:268  ] - Error opening DMX connection.
java.net.BindException: Address already in use
        at java.net.PlainDatagramSocketImpl.bind0(Native Method) ~[na:1.8.0]
        at java.net.AbstractPlainDatagramSocketImpl.bind(AbstractPlainDatagramSocketImpl.java:93) ~[na:1.8.0]
        at java.net.DatagramSocket.bind(DatagramSocket.java:371) ~[na:1.8.0]
        at java.net.DatagramSocket.<init>(DatagramSocket.java:222) ~[na:1.8.0]
        at java.net.DatagramSocket.<init>(DatagramSocket.java:279) ~[na:1.8.0]
        at java.net.DatagramSocket.<init>(DatagramSocket.java:251) ~[na:1.8.0]
        at artnet4j.ArtNetServer.start(Unknown Source) ~[artnet4j.jar:na]
        at artnet4j.ArtNet.start(Unknown Source) ~[artnet4j.jar:na]
        at org.openhab.binding.dmx.artnet.ArtnetConnection.open(ArtnetConnection.java:71) ~[bundlefile:na]
        at org.openhab.binding.dmx.internal.core.DmxController.getConnection(DmxController.java:266) ~[bundlefile:na]
        at org.openhab.binding.dmx.internal.core.DmxTransmitter.run(DmxTransmitter.java:62) [bundlefile:na]
        at java.util.TimerThread.mainLoop(Timer.java:555) [na:1.8.0]
        at java.util.TimerThread.run(Timer.java:505) [na:1.8.0]

So I deleted both artnet and ola binding then I did this:

sudo apt-get install openhab-addon-binding-dmx-ola
Reading package lists... Done
Building dependency tree
Reading state information... Done
openhab-addon-binding-dmx-ola is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

however no file turned up in the addons folderā€¦

Everything is working on orange Pi PC (OPENHAB, OLA, etc)
Check Addons
Maybe you have some duplicate addons (different version??)

This is my list addons

Hello,
i am also using openHab, RPI, a DMX controller and OLA.
OLA seems to work perfectly, but when using openHab i get a very strange behavior:
When increasing a DimmerItem to 255 i have to wait 10 or more seconds to have the light switch on.

Does anyone have a clue what the problem is?
Is there a way to see an event log?
Is it openHab which doesnā€™t send the command to OLA?
How can i check this?
Help would be much appreciated.