Comments (6)
Use hwgrep. Also works on Windows.
from artiq.
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.
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.
"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.
Indeed one can do
serial.serial_for_url("hwgrep://<VID>:<PID> SNR=<serial_number>")
from artiq.
Done in b8bb3d8
from artiq.
Related Issues (20)
- LMDB databases break single argument XY Plot Applet HOT 1
- `nix develop` doesn't allow building firmware without git repo HOT 2
- `openocd-unstable-2021-09-15` not reproducible from source
- Minor issues/suggestions on `flake.nix` and `.gitignore` HOT 2
- Unexpected Sequence Error in ARTIQ 8 HOT 4
- Restore Urukul Switch TTL MonInj HOT 5
- make SED spreading optional and configurable in flash settings
- Coremgmt support for satellites HOT 1
- Urukuls in 1-EEM and 2-EEM modes cannot be used together HOT 3
- scipy missing in MSYS2 HOT 3
- fix qt6 applet embedding on Wayland HOT 5
- Dashboard cannot connect with remote moninj and coreanalyzer proxy HOT 5
- No Qt6 support in conda
- Firmware panic in network code HOT 19
- Incorrect usage of CDC primitives HOT 2
- Cannot use results filestructure outside of `set_dataset` HOT 3
- switch to platformdirs
- Improve scheduling by interleaving setup and teardown of an experiment HOT 7
- ARTIQ 8->9 in GUI watermark HOT 2
- Release-7: I2C comms failure with Si5324 on Kasli v1.1 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from artiq.