raytheonbbn / hammer

A software acoustic modem for the Android Team Awareness Kit (ATAK) that allows multiple ATAK devices to share data using only voice comms (e.g., over a walkie talkie)
GNU General Public License v3.0
151 stars 39 forks source link

TNC/KISS support by using APRSDroid API #13

Closed niccellular closed 2 years ago

niccellular commented 3 years ago

This commit enables HAMMER to use a TNC via APRSDroid.

APRSDroid exposes an API via intents that can be leveraged to send HAMMER chat and CoT messages. The APRSDroid app also emits broadcasts when a message comes in which we can listen for to receive the HAMMER chat and CoT messages. The code in this commit simply glues it all together with a new toggle in the Settings UI that enables the HAMMER messages to use the TNC instead of the audiomodem.

This was tested with the latest APRSDroid APK at the time (version 1.6) available from https://aprsdroid.org/download/