KISS over TCP Interface¶
Warning
TNCs that are able to be controlled by TCP connections should not be directly connected to the Internet, or else should have firewall rules restricting which IPs can connect to them.
The TCPKISSInterface allows you to connect to a TNC in KISS mode over TCP. Some TNC manufacturers enable the ability to control your TNC over 'telnet', which in practice means a standard TCP/IP network connection. Your TNC must be in KISS mode before connecting this way. This can also be used to connect to a software TNC like Direwolf1.
To set up your TCP-connected TNC, you will need its IP address or hostname, and its port number.
You can see a working example of the TCP Interface configuration in the tutorial.
pax25.interfaces.tcp_kiss.TCPKISSInterface
¶
Interface for connecting to TCP-hosting TNCs.
Source code in pax25/interfaces/tcp_kiss.py
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | |
listening: bool
property
¶
Returns true if we are connected to the TNC.
sudo: bool
property
¶
Randos over the air shouldn't be superusers.
__init__(name: str, settings: TCPKISSSettings, station: Station) -> None
¶
Initialize the Interface.
Source code in pax25/interfaces/tcp_kiss.py
build_connection(delay: int = 0) -> None
¶
Set up the connection object that will be sending and receiving frames.
Source code in pax25/interfaces/tcp_kiss.py
connection_closed(connection: TCPKISSConnection) -> None
¶
Callback for closing the TCP connection.
Source code in pax25/interfaces/tcp_kiss.py
reload_settings(settings: TCPKISSSettings) -> None
async
¶
send_frame(frame: Frame) -> None
¶
shutdown() -> None
async
¶
-
This statement not tested by the document author. ↩