Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6150619
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T19:38:23+00:00 2026-05-23T19:38:23+00:00

Couple of quick questions. I have a DMX king USB lighting controller that I’m

  • 0

Couple of quick questions. I have a DMX king USB lighting controller that I’m trying to control.

It’s based on the Open DMX protocol (from Entec) who make available a c# class.
I’ve got the device plugged into an RGB can, and if I test the USB device with their driver, it connects to COM4 and when I switch their software into transmit mode, I can then set individual DMX channels.

Using their OpenDMX class, with a few modifications (the core is the same, i’ve just added some extra error checking, I can locate the device, query it’s information etc.
When I open the device I get a handle.
I can write to that device with FT_Write but no matter what I do, no lights actually come on.

Here’s a few relevant code snippets:

public static byte[] buffer;

[DllImport("FTD2XX.dll")]
public static extern FT_STATUS FT_Open(UInt32 uiPort, ref uint ftHandle);
[DllImport("FTD2XX.dll")]
public static extern FT_STATUS FT_Write(uint ftHandle, IntPtr lpBuffer, UInt32 dwBytesToRead, ref UInt32 lpdwBytesWritten);

public static void writeData()
{
    while (!done)
    {
        try
        {
            initOpenDMX();
            status = FT_SetBreakOn(handle);
            status = FT_SetBreakOff(handle);
            bytesWritten = write(handle, buffer, buffer.Length);
            if (bytesWritten == 0)
            {
                break;
            }

            System.Threading.Thread.Sleep(25);
        }
        catch (Exception)
        {
            break;
        }
    }
    Connected = false;
    done = false;
}

All the status come back as FT_Ok, and bytesWritten comes back as 512 (the number of channels on this USB controller)

I keep thinking I’ve missed something like setting the device into a transmit mode or similar (it only has one DMX socket)

public static void initOpenDMX()
{
    status = FT_ResetDevice(handle);
    status = FT_SetDivisor(handle, (char)12); // set baud rate
    status = FT_SetDataCharacteristics(handle, BITS_8, STOP_BITS_2, PARITY_NONE);
    status = FT_SetFlowControl(handle, (char)FLOW_NONE, 0, 0);
    status = FT_ClrRts(handle);
    status = FT_SetLatencyTimer(handle, (byte)40);
    status = FT_Purge(handle, PURGE_TX);
    status = FT_Purge(handle, PURGE_RX);
}

I’ve also tried the Entec OpenDMX class without any modifications from me and it doesn’t seem to do anything either.

Just want to stress that their control software is working fine, so the light and controller are compatible. I think something is missing in the way I’m using FTD2xx.
There’s no errors coming through (everything is FT_OK) so this suggests the DLL is working – especially since I can query the device using the FT_ListDevices and FT_GetDeviceInfo methods.

Any ideas?

Gareth

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T19:38:24+00:00Added an answer on May 23, 2026 at 7:38 pm

    To resolve this, I emailed the manufacturer.
    It turned out that the device wasn’t OpenDMX, in fact it was a DMXProUSB
    The protocol was pretty similar, and it was based on the FTDI chip which is why the code partly worked, but it has a microcontroller in it.
    I converted the C++ example controller file to C# and got it all working.
    If this ever comes up again, I am happy to share the resulting c# code for the DMXProUSB however with no support.
    I have emailed the code to the manfacturer (dmxking) and have placed a copy on github: https://github.com/agrath/Sniper.Lighting.Dmx

    Thanks for your help

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a couple quick questions. They all deal with 1 general topic, and
A quick couple of Cygwin questions that I am not quite sure how to
couple of quick questions 1) In the local search results - we can get
here is a quick question, i have my couple view controllers classes, and have
Just a couple of quick questions. If I'm writing CGI programs to create web
I've been reading a couple of questions/answers on StackOverflow trying to find the 'best',
I would like to ask a couple of quick questions about the proper destruction
hey just a couple quick noob questions about writing my first ios app. Ive
Firstly, I have found a couple of related questions on the issue with links
Just a couple of quick questions...not too hard to answer hopefully! How do I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.