Hmm I'm stumped. The code I asked you to execute is exactly the code calibre uses to detect the device. If you do
Code:
import wmi, pythoncom
pythoncom.CoInitialize()
_wmi = wmi.WMI()
from calibre.devices.scanner import DeviceScanner
from calibre.devices.prs505.driver import PRS505
d = DeviceScanner(_wmi)
d.scan()
d.is_device_connected(PRS505)
and get True and then run
in another terminal you still get device not detected?