summaryrefslogtreecommitdiff
path: root/documentation
diff options
context:
space:
mode:
authorcliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a>2011-11-03 23:24:31 +0000
committercliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a>2011-11-03 23:24:31 +0000
commit7ecf129293489d1389a3af982b1f543dad90203d (patch)
treeddbfae6996baebfdea2d5af25817c752f9ea9a91 /documentation
parenta882c4228d38d4fc5a1a103c6f8e2dfe934c0124 (diff)
downloadpyserial-7ecf129293489d1389a3af982b1f543dad90203d.tar.gz
doc update
git-svn-id: http://svn.code.sf.net/p/pyserial/code/trunk/pyserial@439 f19166aa-fa4f-0410-85c2-fa1106f25c8a
Diffstat (limited to 'documentation')
-rw-r--r--documentation/pyserial_api.rst15
1 files changed, 15 insertions, 0 deletions
diff --git a/documentation/pyserial_api.rst b/documentation/pyserial_api.rst
index 4849b23..bafea46 100644
--- a/documentation/pyserial_api.rst
+++ b/documentation/pyserial_api.rst
@@ -842,6 +842,20 @@ possible for the user to add protocol handlers using
etc. It will call :meth:`logging.basicConfig` which initializes for
output on ``sys.stderr`` (if no logging was set up already).
+``hwgrep://``
+ This type uses :mod:`serial.tools.list_ports` to obtain a list of ports and
+ searches the list for matches by a regexp (see :py:mod:`re`) that follows
+ the slashes.
+
+ Depending on the capabilities of the list_ports module on the system, it is
+ possible to search for the description or hardware ID of a device, e.g. USB
+ VID:PID or texts.
+
+ Unfortunately, on some systems list_ports only lists a subset of the port
+ names with no additional information. Currently, on Windows and Linux it
+ should find additional information.
+
+
Examples:
@@ -850,6 +864,7 @@ Examples:
- ``rfc2217://localhost:7000/ign_set_control/timeout=5.5``
- ``socket://localhost:7777``
- ``loop://logging=debug``
+- ``hwgrep://0451:f432`` (USB VID:PID)
Tools
=====