Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows Utilities Incomplete #2

Open
fragmuffin opened this issue Apr 22, 2019 · 2 comments
Open

Windows Utilities Incomplete #2

fragmuffin opened this issue Apr 22, 2019 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@fragmuffin
Copy link
Owner

fragmuffin commented Apr 22, 2019

Importing upytester in windows raises:

raise NotImplementedError("Windows not supported, yet")

Why?
Because I don't know how to do the following in windows reliably:

  • list all connected pyboards by serial number
  • map a given serial number to:
    • serial port device (eg: COM2)
    • mountpoing (eg: D:\)
  • mount / unmount (aka: safely disconnect mass storage device)

I'm a Linux guy by nature, so I attempted to do this for a few days back when I had a windows machine for work, but didn't succeed.

The contents of utils_win32.py is mostly experimental... some of it works, but not reliably.

Solution?
I don't know, but I'm open to ideas.
I'm open to the idea of implementing it in a more suitable language, and using system calls to invoke a builtin binary... but ideally the solution would be pure python, or compiled with python hooks.

@fragmuffin fragmuffin added the help wanted Extra attention is needed label Apr 22, 2019
@fragmuffin
Copy link
Owner Author

fragmuffin commented Oct 1, 2019

workaround is implemented and documented in PR #3 (not a fix)

@fragmuffin
Copy link
Owner Author

Potential solution in pyusb lib:

python -m pip install pyusb

Investigate usage in: https://github.com/micropython/micropython/blob/master/tools/pydfu.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant