usbdmx.com output/input plugin?

Post Reply
User avatar
cLx
Posts: 3
Joined: Sat Mar 12, 2016 6:17 pm
Location: France
Real Name: cLx The Jaguar
Contact:

Hi,

That's my first post here, so hello everyone :)

I miss the output (and input) adapter plugin for that adapter : http://usbdmx.com/
Even if there's an FTDI chip inside, it's seen as a serial port. On linux, a serial port is like a file you open for read/write...
The protocol is here : http://usbdmx.com/downloads/protocol.pdf
I was using DMXControl on windows and was working great! But i'm moving to QLC+ on Debian ;)

I already managed to make a curses program (for fun) for that specific adapter:
https://sourceforge.net/projects/usbdmxcurses/

And of course, i would like to try to help to add the support of that device on QLC+ !
I saw already https://github.com/mcallegari/qlcplus/t ... gins/dummy but i'm a bit lost, i'm a total newbie for Qt.
Could you help me a bit for a start?

Thanks by advance,
-- cLx
User avatar
mcallegari
Posts: 4711
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

Hi, if it's FTDI, then you can extend the QLC+ USB DMX plugin with the specific protocol bits.
For example that's what has been done for the Stageprofi device: https://github.com/mcallegari/qlcplus/b ... eprofi.cpp

However, if you're not experienced with C++/Qt, I see it hard for you to create a new subclass, add the VID/PID and hook the detection and transmission protocol in the right places.

I might have a look at the protocol pdf, but not having the device myself, you should test code changes for me.
User avatar
cLx
Posts: 3
Joined: Sat Mar 12, 2016 6:17 pm
Location: France
Real Name: cLx The Jaguar
Contact:

I think it would be better to stick to a see it as a file (or a virtual port, under windows), as it can used via ser2net or anything.
My standalone program was just doing a fopen() on it, and was to use DMX output and DMX input with that adapter.
User avatar
mcallegari
Posts: 4711
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

QLC+ is cross platform. fopen doesn't work on Windows cause it doesn't map USB devices as files.
If you want to give your contribution to this project, I explained above how this should be done.
If you want the device to work only on your computer, then it's another story.
User avatar
cLx
Posts: 3
Joined: Sat Mar 12, 2016 6:17 pm
Location: France
Real Name: cLx The Jaguar
Contact:

You can't open a serial port to a cross-platform way? I had to do this since long time, and i finished to make a C++ module with some win32 code adapted to windows so it's portable everywhere.

I only realize now... I would guess that Qt has a module for doing that.. maybe this?
http://doc.qt.io/qt-5/qtserialport-index.html
http://doc.qt.io/qt-5/qtserialport-term ... ample.html

If you want to test the DMX adapter whichout having it, I can open you a TCP port with the ser2net program. I have one plugged all the time on my home server. DMX all around the world ;)
Post Reply