summaryrefslogtreecommitdiff
path: root/documentation
diff options
context:
space:
mode:
authorcliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a>2009-08-05 15:47:57 +0000
committercliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a>2009-08-05 15:47:57 +0000
commit296eef092ff17730a0dd81f69d2ef6e6c6b55603 (patch)
treea350d2098b7bfe3a0d019bc93e2e5e768afc4033 /documentation
parente6608f49d2e39cbfd757286626ec976472ab2ed0 (diff)
downloadpyserial-296eef092ff17730a0dd81f69d2ef6e6c6b55603.tar.gz
- new option for client: poll_modem -> poll modem state instead of relying on notifications
- server now calculates all modem status bits - update documentation git-svn-id: http://svn.code.sf.net/p/pyserial/code/trunk/pyserial@301 f19166aa-fa4f-0410-85c2-fa1106f25c8a
Diffstat (limited to 'documentation')
-rw-r--r--documentation/examples.rst7
-rw-r--r--documentation/pyserial_api.rst18
2 files changed, 18 insertions, 7 deletions
diff --git a/documentation/examples.rst b/documentation/examples.rst
index f7f4e85..30ff8e3 100644
--- a/documentation/examples.rst
+++ b/documentation/examples.rst
@@ -191,7 +191,10 @@ only.
- Single process for all ports and sockets (not per port).
- The script can be started as daemon.
- Logging to stdout or when run as daemon to syslog.
-
+- modem status lines (CTS/DSR/RI/CD) are not polled periodically and the server
+ therefore does not send NOTIFY_MODEMSTATE on its own. However it responds to
+ request from the client (i.e. use the ``poll_modem`` option in the URL when
+ using a pySerial client.)
Requirements:
@@ -231,8 +234,6 @@ wxTerminal.py_
limited by wx and it may suddenly stop displaying new input.
wxTerminal.wxg_
-test_high_load.py_
- Tests involving sending a lot of data.
A wxGlade design file for the terminal application.
wxSerialConfigDialog.py_
diff --git a/documentation/pyserial_api.rst b/documentation/pyserial_api.rst
index 4c3f951..896c477 100644
--- a/documentation/pyserial_api.rst
+++ b/documentation/pyserial_api.rst
@@ -545,6 +545,7 @@ Native ports
:param serial_port: a :class:`Serial` instance that is managed.
:param connection: an object implementing :meth:`write`, used to write
to the network.
+ :param debug_output: used for development please set for False
Initializes the Manager and starts negotiating with client in Telnet
and :rfc:`2217` protocol. The negotiation starts immediately so that
@@ -586,7 +587,9 @@ Native ports
The function returns a generator which can be used in ``for`` loops.
It can be converted to bytes using ``serial.to_bytes``.
- .. method:: check_modem_lines()
+ .. method:: check_modem_lines(force_notification=False)
+
+ :param force_notification: Set to false. Parameter is for internal use.
This function needs to be called periodically (e.g. every second) when
the server wants to send NOTIFY_MODEMSTATE messages. This is required
@@ -703,13 +706,20 @@ Supported options are:
- ``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)
-- ``debug``: Prints diagnostic messages (not useful for end users)
+ ``remote rejected value for option 'control'`` error when connecting).
+
+- ``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).
(Future releases of pySerial might add more types).
Examples::
rfc2217://localhost:7000
- rfc2217://localhost:7000/ign_set_control
+ rfc2217://localhost:7000/poll_modem
rfc2217://localhost:7000/ign_set_control/debug