Git Product home page Git Product logo

Comments (6)

jordens avatar jordens commented on September 20, 2024

Use hwgrep. Also works on Windows.

from artiq.

fallen avatar fallen commented on September 20, 2024

I can see one can do serial.open_for_url("hwgrep://VID:PID") which should work under both Windows+Linux as stated in this doc http://pyserial.sourceforge.net/pyserial_api.html

But that would mean we don't support multiple TDC/TPZ plugged on the same machine?

If we just bind via udev rules we can use the USB serial number to generate /dev/ttyUSBXX names consistently, then we can just open them "normally" like device files.
But indeed this (udev binding) only works on Linux.

Or maybe you are suggesting to use hwgrep only in the case when the user does not supply a serial device name? And to still let the user provide a name like "COMn" or "/dev/ttyUSBxx" and do static name binding via udev on Linux?

from artiq.

sbourdeauducq avatar sbourdeauducq commented on September 20, 2024

We definitely need to support multiple devices on the same machine. Typical use is through one of those fancy USB hub + power supply bars that have several devices docked.

from artiq.

sbourdeauducq avatar sbourdeauducq commented on September 20, 2024

"possible to search for the description or hardware ID of a device, e.g. USB VID:PID _or texts_."
What does the "text" say?

from artiq.

fallen avatar fallen commented on September 20, 2024

Indeed one can do
serial.serial_for_url("hwgrep://<VID>:<PID> SNR=<serial_number>")

from artiq.

fallen avatar fallen commented on September 20, 2024

Done in b8bb3d8

from artiq.

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.