Quick Sign In:  

Forum: VirtualDJ Technical Support

Topic: Problem in controller development with usb-midi connection
Hello,

i started developing a controller for my specific needs.
Used a stm32 cortex arm, set midi usb class, sending midi events...all perfect.
Then i started to define the device, put the xml files in devices and mapper folders, sent some
note / cc events and they were correctly recognized.
All perfect but i was not able to see the device in vdj once i disconnected / reconnected the usb cable. In the same time i also had logic, midiview and wireshark for usb raw data monitoring, and all of them can see the device attached and the midi stream, but vdj seems to have "banned" the device; no change if i closed all other programs for usb monitoring. I succeeded in seeing the device again just deleting the xml in the device folder, but it disappeared forever again when disconnected / reconnected it.
All other programs are correctly seeing the device plugged or unplugged, no matter how many times i do it.
This is happening on an intel macbook pro running monterey 12.7.6, VDJ 2024-i b8350.

Thanks for any advice.

(Edit)
the usb device is directly connected to the laptop, no hubs in between.
Tried also to switch to other usb port with no success.

 

Posted Tue 29 Oct 24 @ 6:33 pm
..seems it was an usb vid issue.
I left the original st micro VID 0x483 because I cannot apply for a >2000$ personal VID bought from usb.org and every other application seemed to be ok with that.

But now I 'discovered' that there's a vid 0x1209 reserved for open source projects or just testing.
Switched ST VID to 0x1209 and all is working like a charm (happiness).

Thanks anyway.
 

Posted Tue 29 Oct 24 @ 8:33 pm