petersbingham / dae-py-relay-controller

Python code for controlling Denkovi usb relay boards.
https://denkovi.com/
14 stars 14 forks source link

i cant make this work on windows, is this tested? if yes, how did you make i work? #13

Open Vodsgaard opened 2 years ago

petersbingham commented 2 years ago

It was originally developed on windows but hasn't been tested for a long time. Please look at the other issues created. I don't have the time to fix atm but I can advise and review PRs. I can also test locally.

Vodsgaard commented 2 years ago

I think it might be something with FT_GetNumDevices, because it doesn't return any devices. I have the FTD2XX.dll file in my path, and get the error messeage "dae_RelayBoard.dae_RelayBoard_Common.Denkovi_Exception: FTD2XXWindows device not initialised" I am pretty new (student) to python, so might not be a big help atm, but I will tell you if I find a solution :)

petersbingham commented 2 years ago

First check you are able to connect using the in-house Denkovi application. Then check that you have a compatible device. The python supports usb and serial. There are other protocols used by Denkovi devices: HID and tcp eg.