lambcutlet / DPS5005_pyGUI

A python gui to display & control DPS5005 power supply
GNU General Public License v3.0
71 stars 18 forks source link

Failed to read from instrument #24

Open HBerecz opened 3 years ago

HBerecz commented 3 years ago

With my old Windows10 Computer your really excellent program dps_GUI_program.py works perfectly well.

But with my new and much faster Windows10 Computer (Acer Aspire 3) I get after about 10 minutes the message: 'Failed to read from instrument.'

With the DPS3005 PC Software V1.3.exe I get after about 2 minutes the message: 'Connection exception'.

Perhaps the Aspire 3 is to fast for both programs or what else could it be?

The UM25C PC Software V1.3, which also uses Bluetooth, works without problems.

TD-er commented 3 years ago

Make sure your USB hub device (in Windows device manager) and the USB to serial adapter or Bluetooth adapter (also in device manager) are not set to allow power save options.

HBerecz commented 3 years ago

Thank you for your quick answer. I changed the settings as you suggested, but unfortunately the problem is still the same.

TD-er commented 3 years ago

There is a similar setting in the Windows control panel -> Display and Power settings -> Power & sleep -> Additional power settings: image

In that new panel, you can "Change advanced power settings" image

Not sure if Windows also considers Bluetooth as a "Wireless Adapter", but maybe you may also want to have a look at that section on the same Power Options tab.

N.B. Windows has several of these power plans, for example when running on battery and when running on mains power.

You can also have a look in the device manager and sort on connection. This will show how your Bluetooth device is connected. For example via USB or some other connection. If it isn't connected via USB, then changing USB power settings will of course not help here. Quite often Bluetooth is integrated in the WiFi module, which is often connected via PCI-express. But still in a lot of devices the Bluetooth module is connected via USB, so that's why I suggested to check there first.

Maybe you can also check to see if the manufacturer does have newer drivers for your Bluetooth adapter.

If these don't fix these issues, then I don't know any further steps and maybe others can help.

HBerecz commented 3 years ago

I set the 'advanced power settings' to 'Disabled'. Now it works. Thank you for your help.

TD-er commented 3 years ago

Glad I could help :)