Search code examples
pythonshutdownpyusbdymo

PyUSB Stop Dymo scales from shutting down automatically


I am using a Dymo USB scale with PyUSB and everything is really great apart from the scale's automatic shutdown after three minutes. I would like to keep it running as long as my python program is running. Is there any way to do this using python?

I am new to PyUSB and have followed this tutorial successfully so far: http://steventsnyder.com/reading-a-dymo-usb-scale-using-python/.

The auto shutdown can be disabled manually as said here: http://www.manualslib.com/manual/472133/Dymo-S100.html?page=7 but this must be performed every single time which is a problem.

Many thanks in advance for any suggestions!


Solution

  • As Ignacio said, there doesn't seem to be any computing way to do this. We eventually managed to stop the automatic shutdown by wiring a timer directly to the button which changes the units mode from grams to ounces. "Pressing" this every few seconds prevents the shutdown, and a little bit of extra coding allows for reading the mass from either mode correctly.

    Not as simple a solution as I'd hoped for, but perhaps the idea will help anyone with a weirdly-specific problem similar to this.