summaryrefslogtreecommitdiff
path: root/documentation
diff options
context:
space:
mode:
authorcliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a>2009-08-06 01:44:34 +0000
committercliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a>2009-08-06 01:44:34 +0000
commitc6ad6489c518831d5a32fe33760a2f99e5ae703b (patch)
treec6f1f725b582961a3b4886c84c27fa857c6d2937 /documentation
parent0d74c5f242f9ff2c85dd9091450a91c305c2b2bb (diff)
downloadpyserial-c6ad6489c518831d5a32fe33760a2f99e5ae703b.tar.gz
- add simple socket connection implementationa
- update docs git-svn-id: http://svn.code.sf.net/p/pyserial/code/trunk/pyserial@310 f19166aa-fa4f-0410-85c2-fa1106f25c8a
Diffstat (limited to 'documentation')
-rw-r--r--documentation/pyserial_api.rst42
1 files changed, 29 insertions, 13 deletions
diff --git a/documentation/pyserial_api.rst b/documentation/pyserial_api.rst
index 896c477..aa2e176 100644
--- a/documentation/pyserial_api.rst
+++ b/documentation/pyserial_api.rst
@@ -698,25 +698,41 @@ Functions:
URLs
----
The class :class:`rfc2217.Serial` and the function :func:`serial_for_url`
-accept the following type URL::
+accept the following types URL:
- rfc2217://<host>:<port>[/<option>[/<option>]]
+- ``rfc2217://<host>:<port>[/<option>[/<option>]]``
+- ``socket://<host>:<port>[/<option>[/<option>]]``
-Supported options are:
+(Future releases of pySerial might add more types).
-- ``ign_set_control`` does not wait for acknowledges to SET_CONTROL. This
- option can be used for non compliant servers (i.e. when getting an
- ``remote rejected value for option 'control'`` error when connecting).
+``rfc2217://``
+ Used to connect to :rfc:`2217` compatible servers. All serial port
+ functions are supported.
-- ``poll_modem``: The client issues NOTIFY_MODEMSTATE requests when status
- lines are read (CTS/DTR/RI/CD). Without this option it relies on the server
- sending the notifications automatically (that's what the RFC suggests and
- most servers do). Enable this option when :meth:`getCTS` does not work as
- expected, i.e. for servers that do not send notifications.
+ Supported options in the URL are:
-- ``debug``: Prints diagnostic messages (not useful for end users).
+ - ``ign_set_control`` does not wait for acknowledges to SET_CONTROL. This
+ option can be used for non compliant servers (i.e. when getting an
+ ``remote rejected value for option 'control'`` error when connecting).
-(Future releases of pySerial might add more types).
+ - ``poll_modem``: The client issues NOTIFY_MODEMSTATE requests when status
+ lines are read (CTS/DTR/RI/CD). Without this option it relies on the server
+ sending the notifications automatically (that's what the RFC suggests and
+ most servers do). Enable this option when :meth:`getCTS` does not work as
+ expected, i.e. for servers that do not send notifications.
+
+ - ``debug``: Prints diagnostic messages (not useful for end users).
+
+``socket://``
+ The purpose of this connection type is that applications using pySerial can
+ connect to TCP/IP to serial port converters that do not support :rfc:`2217`.
+
+ Uses a TCP/IP socket. All serial port settings, control and status lines
+ are ignored. Only data is transmitted and received.
+
+ Supported options in the URL are:
+
+ - ``debug``: Prints diagnostic messages (not useful for end users).
Examples::