VM116 serial

Hello,

Im a mac user, so i can’t use the DLL’s that ships with the vm116 dmx usb box. Does anybody know how to send data to the box with serial data directly?

VM116/K8062 is recognized as an HID device.
You may use libusb to access it (old API used here)

  1. find the usb device with Vendor 0x10CF and Product 0x8062
  2. usb_open() it
  3. claim the device (usb_detach_kernel_driver_np(dev,0), usb_set_configuration(dev,1), usb_claim_interface(dev,0) )
  4. to transmit a DMX sequence (channels 1 to N), use the following packets :
    4 i+1 D0 D1 D2 D3 D4 D5 ---- Start of DMX, begins with i channels set to 0 then channets set to D0…D5
    then
    2 D0 D1 D2 D3 D4 D5 D6 ---- Send channels set to D0…D6
    3 D0 00 00 00 00 00 00 ---- Send 1 channel set to D0
    5 i D0 D1 D2 D3 D4 D5 ---- Send i channels set to 0 then channels set to D0…D5

Do NOT send more than 512 channels.
To send the packets, use usb_interrupt_write(dev,1,(char *) data, 8, 20)
5) repeat step 4 at about every 25ms interval (which leaves time for the whole 512 channels to be transmitted)
6) at program end, release the device (usb_release_interface(dev,0) and usb_close() it.

The usb_detach_kernel_driver_np() call is Linux specific so you may have to skip it under MacOS or use some MAC-only way to disable the default driver.

I hope this will help you… This procedure should work on both Linux, *BSD and MacOSX.