File tree 1 file changed +16
-0
lines changed
1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -74,3 +74,19 @@ sub-experiments difficult and fragile. You can however always use the
74
74
scheduler API to achieve the same (``scheduler.yield(duration=0) ``)
75
75
or wrap your own generators/coroutines/tasks in regular functions that
76
76
you then expose as part of the API.
77
+
78
+ list the serial devices attached to my Linux/Windows system?
79
+ ------------------------------------------------------------
80
+
81
+ You can do it by running::
82
+
83
+ $ python3 -m serial.tools.list_ports -v
84
+
85
+ It will give you the ``/dev/ttyUSBxx `` (or the ``COMxx `` for Windows) device
86
+ names.
87
+ The ``hwid: `` field gives you the string you can pass via the ``hwgrep:// ``
88
+ feature of pyserial
89
+ `serial_for_url() <http://pyserial.sourceforge.net/pyserial_api.html#serial.serial_for_url >`_
90
+ in order to open a serial device.
91
+
92
+ See the :ref: `TDC001 documentation <tdc001-controller-usage-example >` for an example of ``hwgrep:// `` usage.
You can’t perform that action at this time.
2 commit comments
sbourdeauducq commentedon Jun 23, 2015
You should be more explicit that people should use serial numbers and not /dev/ttyUSBX or COM ports.
fallen commentedon Jun 23, 2015
Ack, fixed in f0dddd9