Re: Help! Can't get USB DMX Controller to work!

469 views
Skip to first unread message

aaroncornish

unread,
Aug 13, 2012, 1:52:02 PM8/13/12
to open-l...@googlegroups.com

Simon Newton

unread,
Aug 13, 2012, 11:07:11 PM8/13/12
to open-l...@googlegroups.com
On Mon, Aug 13, 2012 at 10:41 AM, aaroncornish
<aaron....@bauermedia.co.uk> wrote:
> Hey All
>
> I have wasted a whole day so far and need some help before I got nuts...
>
> I am trying to install an Open DMX compatible USB controller and OLA on
> Ubuntu (I have tried 10.04, 11.04 and 12.04 so far)
>
> I have followed this guide to install the driver -
> http://www.opendmx.net/index.php/LLA_and_Q_Light_Controller_Ubuntu_Tutorial
>
> And I have have followed this guide to install OLA -
> http://www.opendmx.net/index.php/OLA_on_Linux
>
> I am not getting errors while installing.
>
> I have tried dmesg and it reports that the driver is being used and the
> device is on dmx192
>
> [ 16.074455] /home/dashboard/dmx-software/dmx_usb_module/dmx_usb.c: DMX
> USB device now attached to dmx192
> [ 16.074491] usbcore: registered new interface driver dmx_usb
> [ 16.074495] /home/dashboard/dmx-software/dmx_usb_module/dmx_usb.c: DMX
> USB Driver v0.1.20111215
>
>
> When I try and run OLA - it gives me these errors;
>
> OpenDmxPlugin.cpp:78: Could not open /dev/dmx192 No such file or directory
> OpenDmxPlugin.cpp:78: Could not open /dev/dmx0 Permission denied

Do this

ls -l /dev/dmx*

You should see one or more entries.

Then make sure whatever user you're running olad as has permission to
write to the devices. This probably means you'll need to add yourself
to the appropriate group, I can't remember what it is.

Simon


> StageProfiDevice.cpp:79: StageProfiPlugin: failed to connect to /dev/ttyUSB0
>
>
> Any ideas what I might be doing wrong? I have followed the guides to the
> letter.
>
> Thank in advance
> Aaron
>
>
> --
> open-l...@googlegroups.com /
> http://groups.google.com/group/open-lighting
> To unsubscribe email open-lightin...@googlegroups.com

aaroncornish

unread,
Aug 14, 2012, 5:14:13 AM8/14/12
to open-l...@googlegroups.com
Hey Simon

Thanks for the reply.

This is output I get

crw------- 1 root root 180, 192 2012-08-13 18:33 /dev/dmx0

Am I right in saying that I can't run OLAD as root?

Any ideas how to resolve this.  Sorry, I am not a linux expert, I just dabble in (read: break) it occassionally

Aaron




On Monday, August 13, 2012 6:41:49 PM UTC+1, aaroncornish wrote:
Hey All

I have wasted a whole day so far and need some help before I got nuts...

I am trying to install an Open DMX compatible USB controller and OLA on Ubuntu (I have tried 10.04, 11.04 and 12.04 so far)

I have followed this guide to install the driver - http://www.opendmx.net/index.php/LLA_and_Q_Light_Controller_Ubuntu_Tutorial

And I have have followed this guide to install OLA - http://www.opendmx.net/index.php/OLA_on_Linux

I am not getting errors while installing.

I have tried dmesg and it reports that the driver is being used and the device is on dmx192

[   16.074455] /home/dashboard/dmx-software/dmx_usb_module/dmx_usb.c: DMX USB device now attached to dmx192
[   16.074491] usbcore: registered new interface driver dmx_usb
[   16.074495] /home/dashboard/dmx-software/dmx_usb_module/dmx_usb.c: DMX USB Driver v0.1.20111215


When I try and run OLA - it gives me these errors;

OpenDmxPlugin.cpp:78: Could not open /dev/dmx192 No such file or directory
OpenDmxPlugin.cpp:78: Could not open /dev/dmx0 Permission denied

g.schlmm

unread,
Aug 14, 2012, 9:35:24 AM8/14/12
to open-l...@googlegroups.com
On 08/14/2012 11:14 AM, aaroncornish wrote:
> Hey Simon
>
> Thanks for the reply.
>
> This is output I get
>
> crw------- 1 root root 180, 192 2012-08-13 18:33 /dev/dmx0
>
> Am I right in saying that I can't run OLAD as root?
>
> Any ideas how to resolve this. Sorry, I am not a linux expert, I just
> dabble in (read: break) it occassionally
>
> Aaron

Hi,
either you change the permissions of the dmx device after each boot to
666 (chmod 666 /dev/dmx0)
or you create an udev rule for it:

# cat /etc/udev/rules.d/49-entec-open-dmx.rules
SUBSYSTEM=="usb", KERNEL=="dmx[0-9]", GROUP="dialout"

and put the user which is running ola to the group dialout

or you create something like the following udev rule just for the user
SUBSYSTEM=="usb", KERNEL=="dmx[0-9]", OWNER="the-user-which-is-using-ola"



Hippy

unread,
Aug 14, 2012, 9:37:42 AM8/14/12
to open-l...@googlegroups.com
you could try

sudo chmod a+rw /dev/dmx0

This might not be the best way, but you should change the privilages
so you any user can read and write the device.

Peter Stuge

unread,
Aug 14, 2012, 9:38:23 AM8/14/12
to open-l...@googlegroups.com
g.schlmm wrote:
>> This is output I get
>>
>> crw------- 1 root root 180, 192 2012-08-13 18:33 /dev/dmx0
>
> or you create something like the following udev rule just for the user
> SUBSYSTEM=="usb", KERNEL=="dmx[0-9]", OWNER="the-user-which-is-using-ola"

This is what I would suggest, since the mode ends up as 0600. But the
GROUP= will certainly also work if a ", MODE=660" is added to the
rule line.


//Peter

Hippy

unread,
Aug 14, 2012, 9:39:43 AM8/14/12
to open-l...@googlegroups.com
I meant "this should" sorry, not "you should" :)
oh red wine.... :)
Reply all
Reply to author
Forward
0 new messages