c# - Windows IoT on RaspberryPi. Error while opening serialPort using SerialDevice.FromIdAsync() -
i having issue communication velleman vm116/k8062. usb dmx converter controlling light fixtures.
when looking device ids this
var vid_selector = serialdevice.getdeviceselectorfromusbvidpid(0x10cf, 0x8062); var vid_devices = await deviceinformation.findallasync(vid_selector);
i retreive generic device, named "minwinpc", nothing else.
if use
ushort vendorid = 0x10cf; ushort productid = 0x8062; ushort usagepage = 0x00ff; ushort usageid = 0x0001; var hid_selector = windows.devices.humaninterfacedevice.hiddevice.getdeviceselector(usagepage, usageid, vendorid, productid); var hid_devices = await deviceinformation.findallasync(hid_selector);
i find device hid devices id \\?\hid#vid_10cf&pid_8062#6&a0b36c7&1&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
i can open connection using
await hiddevice.fromidasync(serialdeviceid, windows.storage.fileaccessmode.readwrite);
but dmx device works on strict clock pairing bytes, should (imo, maybe mistake is) opened serial port .
if try open serialdevice, doesn't return null neither exception serialdevice object corrupted.
await serialdevice.fromidasync(serialdeviceid);
verified packageappmanifest, tried install drivers though devcon
tool in powershell session.
the processor being arm hard use existing com x86 libraries.
maybe there other driver install? or library control hid devices based on clock.
Comments
Post a Comment