Home | History | Annotate | Download | only in wardmodem

Lines Matching full:channel

19     This class represents the AT command channel. The program can
20 (1) Request *one* AT command to be sent on the channel.
36 # descriptor fails because the channel is full.
39 def __init__(self, receiver_callback, channel, channel_name='',
43 command is received over the channel. The signature of the
48 @param channel: The file descriptor for channel, as returned by e.g.
51 @param channel_name: [Optional] Name of the channel to be used for
54 @param at_prefix: AT commands sent out on this channel will be prefixed
57 @param at_suffix: AT commands sent out on this channel will be
60 @raises IOError if some file operation on |channel| fails.
64 assert receiver_callback and channel
67 self._channel = channel
85 # If we've come so far, assume channel is well behaved.
95 """ The string used to prefix AT commands sent on the channel. """
115 """ The string used to terminate AT commands sent on the channel. """
139 Send an AT command on the channel.
144 channel was full.
147 channel was full.
167 Process a command from the channel once it has been fully received.
176 def _handle_channel_cb(self, channel, cb_condition):
178 Callback used by the channel when there is any data to read.
180 @param channel: The channel which issued the signal.
184 @return: True, so as to continue watching the channel for further
188 if channel != self._channel:
189 self._logger.warning('%s Signal received on unknown channel. '
191 self._channel_name, self._channel, channel)
204 Read data from channel when the channel indicates available data.
225 # to be '\r\n' send spurious '\r's on the channel. If so, we must ignore
257 Sanitize AT command before sending on channel.