Giter Club home page Giter Club logo

Comments (7)

solarmon avatar solarmon commented on September 28, 2024

This issue also occurs on an Amiga floppy drive (with SELECT on pin 10) and a Gotek drive (with SELECT on pin 10).

from greaseweazle.

keirf avatar keirf commented on September 28, 2024

The correct way to set a timeout is serial.Serial(args.device, timeout=5)

Ie you changed the wrong line.

This is not drive related so switching drives will make no difference.

from greaseweazle.

solarmon avatar solarmon commented on September 28, 2024

Sorry, I wrote that whilst half asleep!

I meant:

ser = serial.Serial(args.device,timeout=5)

And yes, with that I can use CTRL-C to break out of the python script.

from greaseweazle.

drdpj avatar drdpj commented on September 28, 2024

I'm also getting this behaviour :( -
Reading Track 14.0...Traceback (most recent call last): File "C:\Users\djame\Downloads\Greaseweazle-v0.1\Greaseweazle-v0.1\gw.py", line 345, in <module> main(sys.argv) File "C:\Users\djame\Downloads\Greaseweazle-v0.1\Greaseweazle-v0.1\gw.py", line 339, in main actions[args.action](args) File "C:\Users\djame\Downloads\Greaseweazle-v0.1\Greaseweazle-v0.1\gw.py", line 213, in read flux = read_flux(args.revs) File "C:\Users\djame\Downloads\Greaseweazle-v0.1\Greaseweazle-v0.1\gw.py", line 154, in read_flux x += ser.read(1) File "C:\Users\djame\AppData\Local\Programs\Python\Python38\lib\site-packages\serial\serialwin32.py", line 286, in read result_ok = win32.GetOverlappedResult( KeyboardInterrupt ^C

also (I think this was unplugging without a ctrl-c)
C:\Users\djame\Downloads\Greaseweazle-v0.1\Greaseweazle-v0.1>gw.py read grannyG.scp COM13 Reading Track 58.0...Traceback (most recent call last): File "C:\Users\djame\Downloads\Greaseweazle-v0.1\Greaseweazle-v0.1\gw.py", line 345, in <module> main(sys.argv) File "C:\Users\djame\Downloads\Greaseweazle-v0.1\Greaseweazle-v0.1\gw.py", line 339, in main actions[args.action](args) File "C:\Users\djame\Downloads\Greaseweazle-v0.1\Greaseweazle-v0.1\gw.py", line 213, in read flux = read_flux(args.revs) File "C:\Users\djame\Downloads\Greaseweazle-v0.1\Greaseweazle-v0.1\gw.py", line 155, in read_flux x += ser.read(ser.in_waiting) File "C:\Users\djame\AppData\Local\Programs\Python\Python38\lib\site-packages\serial\serialwin32.py", line 257, in in_waiting raise SerialException("ClearCommError failed ({!r})".format(ctypes.WinError())) serial.serialutil.SerialException: ClearCommError failed (PermissionError(13, 'The device does not recognize the command.', None, 22))

from greaseweazle.

keirf avatar keirf commented on September 28, 2024

Cheers for the tracebacks!

from greaseweazle.

drdpj avatar drdpj commented on September 28, 2024

I've got an STLINK so if I get the environment set up I should be able to do some proper debugging on the STM side (should it be required)....

(Should also say I've not been able to get a complete read at all, it always hangs at some point... Furthest I've ever got is track 72)

from greaseweazle.

keirf avatar keirf commented on September 28, 2024

This is fixed in v0.2 to be released later today.

from greaseweazle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.