OLA and Enttec Open DMX USB

1,360 views
Skip to first unread message

RitterSport

unread,
Aug 22, 2011, 8:52:10 AM8/22/11
to open-lighting
Hello,

I have an Enttec Open DMX USB Device and I installed OLA.
But when I do ola_dev_info
there's no opendmx Device,

dmesg shows:
[11182.988101] usb 2-3: new full speed USB device using ohci_hcd and
address 4
[11183.216112] usb 2-3: New USB device found, idVendor=0403,
idProduct=6001
[11183.216126] usb 2-3: New USB device strings: Mfr=1, Product=2,
SerialNumber=3
[11183.216134] usb 2-3: Product: FT232R USB UART
[11183.216141] usb 2-3: Manufacturer: FTDI
[11183.216147] usb 2-3: SerialNumber: A400guw5
[11183.224224] ftdi_sio 2-3:1.0: FTDI USB Serial Device converter
detected
[11183.224336] usb 2-3: Detected FT232RL
[11183.224343] usb 2-3: Number of endpoints 2
[11183.224349] usb 2-3: Endpoint 1 MaxPacketSize 64
[11183.224356] usb 2-3: Endpoint 2 MaxPacketSize 64
[11183.224362] usb 2-3: Setting MaxPacketSize 64
[11183.230277] usb 2-3: FTDI USB Serial Device converter now attached
to ttyUSB1

so i changed the file: ola-opendmx.conf to ttyUSB1
now the OpenDmx USB Device is shown. and I can connect de Device, Port
und Universe.

ola_dev_info
Device 5: OpenDmx USB Device
port 0, OUT Open Dmx at /dev/ttyUSB1, patched to universe 0

But when I change dmx values, nothing happens. The lamps are still
off.

Can someone help me please?

Simon Newton

unread,
Aug 22, 2011, 11:26:54 AM8/22/11
to open-l...@googlegroups.com

Did you load the kernel module? See
http://www.opendmx.net/index.php/Open_DMX_USB


> But when I change dmx values, nothing happens. The lamps are still
> off.
>
> Can someone help me please?
>

> --
> open-l...@googlegroups.com  /  http://groups.google.com/group/open-lighting
> To unsubscribe email open-lightin...@googlegroups.com
>

RitterSport

unread,
Aug 22, 2011, 5:03:27 PM8/22/11
to open-lighting
you're right, i forgot the kernel module,

but when I try todo a make, i got an error:

make -C /lib/modules/2.6.37-2-amd64/build SUBDIRS=~/dmx_usb_module
modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.37-2-amd64'
CC [M] ~/dmx-software/dmx_usb_module/dmx_usb.o
~/dmx-software/dmx_usb_module/dmx_usb.c:96: warning: type defaults to
‘int’ in declaration of ‘DECLARE_MUTEX’
~/dmx-software/dmx_usb_module/dmx_usb.c:96: warning: parameter names
(without types) in function declaration
~/dmx-software/dmx_usb_module/dmx_usb.c:124: error: unknown field
‘ioctl’ specified in initializer
~/dmx-software/dmx_usb_module/dmx_usb.c:124: warning: initialization
from incompatible pointer type
~/dmx-software/dmx_usb_module/dmx_usb.c: In function ‘dmx_usb_open’:
~/dmx-software/dmx_usb_module/dmx_usb.c:299: error: ‘disconnect_sem’
undeclared (first use in this function)
~/dmx-software/dmx_usb_module/dmx_usb.c:299: error: (Each undeclared
identifier is reported only once
~/dmx-software/dmx_usb_module/dmx_usb.c:299: error: for each function
it appears in.)
~/dmx-software/dmx_usb_module/dmx_usb.c: In function ‘dmx_usb_probe’:
~/dmx-software/dmx_usb_module/dmx_usb.c:621: error: implicit
declaration of function ‘init_MUTEX’
~/dmx-software/dmx_usb_module/dmx_usb.c: In function
‘dmx_usb_disconnect’:
~/dmx-software/dmx_usb_module/dmx_usb.c:732: error: ‘disconnect_sem’
undeclared (first use in this function)
make[4]: *** [~/dmx-software/dmx_usb_module/dmx_usb.o] Fehler 1
make[3]: *** [_module_~/dmx-software/dmx_usb_module] Fehler 2
make[2]: *** [sub-make] Fehler 2
make[1]: *** [all] Fehler 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.37-2-amd64'
make: *** [default] Fehler 2

Simon Newton

unread,
Aug 22, 2011, 6:25:52 PM8/22/11
to open-l...@googlegroups.com


It looks like the kernel interface has changed. If you search for
"implicit declaration of function ‘init_MUTEX’" you'll see other
people having the same problem.

http://code.google.com/p/open1211/issues/detail?id=5 is one example

Simon

g.schlmm

unread,
Aug 22, 2011, 7:22:31 PM8/22/11
to open-l...@googlegroups.com
found this:
https://github.com/drewp/light9/commit/aba032de9747a05c501ff1af7090d649c554da5e

but didnt test it

On 23.08.2011 00:25, Simon Newton wrote:
> On Mon, Aug 22, 2011 at 2:03 PM, RitterSport
> <ritte...@benibachmann.de> wrote:
>> you're right, i forgot the kernel module,
>>
>> but when I try todo a make, i got an error:
>>
>> make -C /lib/modules/2.6.37-2-amd64/build SUBDIRS=~/dmx_usb_module
>> modules
>> make[1]: Entering directory `/usr/src/linux-headers-2.6.37-2-amd64'
>> CC [M] ~/dmx-software/dmx_usb_module/dmx_usb.o
>> ~/dmx-software/dmx_usb_module/dmx_usb.c:96: warning: type defaults to

>> �int� in declaration of �DECLARE_MUTEX�


>> ~/dmx-software/dmx_usb_module/dmx_usb.c:96: warning: parameter names
>> (without types) in function declaration
>> ~/dmx-software/dmx_usb_module/dmx_usb.c:124: error: unknown field

>> �ioctl� specified in initializer


>> ~/dmx-software/dmx_usb_module/dmx_usb.c:124: warning: initialization
>> from incompatible pointer type

>> ~/dmx-software/dmx_usb_module/dmx_usb.c: In function �dmx_usb_open�:
>> ~/dmx-software/dmx_usb_module/dmx_usb.c:299: error: �disconnect_sem�


>> undeclared (first use in this function)
>> ~/dmx-software/dmx_usb_module/dmx_usb.c:299: error: (Each undeclared
>> identifier is reported only once
>> ~/dmx-software/dmx_usb_module/dmx_usb.c:299: error: for each function
>> it appears in.)

>> ~/dmx-software/dmx_usb_module/dmx_usb.c: In function �dmx_usb_probe�:
>> ~/dmx-software/dmx_usb_module/dmx_usb.c:621: error: implicit
>> declaration of function �init_MUTEX�
>> ~/dmx-software/dmx_usb_module/dmx_usb.c: In function
>> �dmx_usb_disconnect�:
>> ~/dmx-software/dmx_usb_module/dmx_usb.c:732: error: �disconnect_sem�


>> undeclared (first use in this function)
>> make[4]: *** [~/dmx-software/dmx_usb_module/dmx_usb.o] Fehler 1
>> make[3]: *** [_module_~/dmx-software/dmx_usb_module] Fehler 2
>> make[2]: *** [sub-make] Fehler 2
>> make[1]: *** [all] Fehler 2
>> make[1]: Leaving directory `/usr/src/linux-headers-2.6.37-2-amd64'
>> make: *** [default] Fehler 2
>
>
> It looks like the kernel interface has changed. If you search for

> "implicit declaration of function �init_MUTEX�" you'll see other

RitterSport

unread,
Aug 23, 2011, 4:31:50 AM8/23/11
to open-lighting
Thank you. now it works fine.

for Kernel 2.6.37 the dmx_usb.c file needs a few changes:

DECLARE_MUTEX -> DEFINE_SEMAPHORE
init_MUTEX() -> sema_init
.ioctl -> .unlocked_ioctl

Reply all
Reply to author
Forward
0 new messages