Closed K7MDL2 closed 4 years ago
N1MM can output a value 0-15 based on antenna rules. It is sent via serial port using the OTRSP protocol. This change uses UART2 to receive and parse the message and output the the number as BCD on 4 pins of Port 0. Easily changed to parallel ports if needed. There is Radio number in the message (as 1 or 2), this code is only acting on Radio 1. A second Port could easily be enabled for Radio 2.
Allows N1MM+ logger to control radio and transverter and antenna selection by interpreting the OTRSP serial port messages from N1MM (configure->antennas tab) and converting to GPIO pin outputs. Also handle PTT routing with Key in port and several PTT outputs. Use SPI or I2C IO drivers for higher voltage and higher current handling.