Python package for creating a full duplex audio frequency shift keying (AFSK) soft modem.
import fskmodem
# use system default alsa audio device and modem defaults (300 baud)
modem = fskmodem.Modem()
modem.set_rx_callback(rx_func)
modem.send('hello world!')
import fskmodem
def rx_callback(data):
print(data)
# 1200 baud, start subprocesses later
modem = fskmodem.Modem(search_alsa_dev_in='USB PnP', baudrate=1200, start=False)
modem.set_rx_callback(rx_callback)
modem.start()
modem.send('hello world!')
Use fskmodem as a KISS TNC with Reticulum via the TCPClientInterface and the tcpkissserver package. See this gist to get started quickly, and be sure to update the Reticulum config file accordingly.
Install the fskmodem package using pip:
pip3 install fskmodem
The minimodem package is required and can be installed on Debian systems using apt:
sudo apt install minimodem
The minimodem Unix application is developed by Kamal Mostafa https://www.whence.com/minimodem/