This repository has been archived by the owner on Mar 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
666 additions
and
230 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,17 @@ | ||
- Paul McMillan - https://github.com/PaulMcMillan | ||
- Russ Innes | ||
- John Hogenmiller KB3DFZ - https://github.com/ytjohn | ||
- Phil Gagnon N1HHG | ||
- Avi Solomon - https://github.com/genepool99 | ||
- Ben Benesh - https://github.com/bbene | ||
- Joe Goforth | ||
- Rick Eason | ||
- Enrico - https://github.com/Enrico204 | ||
- Humphreybas - https://github.com/Humphreybas | ||
- JDat - https://github.com/JDat | ||
- Jay Nugent | ||
- Joe Goforth | ||
- John Hogenmiller KB3DFZ - https://github.com/ytjohn | ||
- Paul McMillan - https://github.com/PaulMcMillan | ||
- Pete Loveall AE5PL | ||
- Phil Gagnon N1HHG | ||
- Rick Eason | ||
- Russ Innes | ||
- agmuino - https://github.com/agmuino | ||
- bgstewart - https://github.com/bgstewart | ||
- darksidelemm - https://github.com/darksidelemm | ||
- webbermr - https://github.com/webbermr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
#!/usr/bin/env python | ||
""" | ||
Reads & Prints KISS frames from a TCP Socket. | ||
For use with programs like Dire Wolf. | ||
Mac OS X Tests | ||
-------------- | ||
Soundflower, VLC & Dire Wolf as an audio-loopback-to-socket-bridge: | ||
1. Select "Soundflower (2ch)" as Audio Output. | ||
2. Play 'test_frames.wav' via VLC: `open -a vlc test_frames.wav` | ||
3. Startup direwolf: `direwolf "Soundflower (2ch)"` | ||
4. Run this script. | ||
Dire Wolf as a raw-audio-input-to-socket-bridge: | ||
1. Startup direwolf: `direwolf - < test_frames.wav` | ||
2. Run this script. | ||
Test output should be as follows: | ||
WB2OSZ-15>TEST:,The quick brown fox jumps over the lazy dog! 1 of 4 | ||
WB2OSZ-15>TEST:,The quick brown fox jumps over the lazy dog! 2 of 4 | ||
WB2OSZ-15>TEST:,The quick brown fox jumps over the lazy dog! 3 of 4 | ||
WB2OSZ-15>TEST:,The quick brown fox jumps over the lazy dog! 4 of 4 | ||
""" | ||
|
||
|
||
import aprs | ||
import kiss | ||
import logging | ||
|
||
|
||
def print_frame(frame): | ||
try: | ||
# Decode raw APRS frame into dictionary of separate sections | ||
decoded_frame = aprs.util.decode_frame(frame[1:]) | ||
|
||
# Format the APRS frame (in Raw ASCII Text) as a human readable frame | ||
formatted_aprs = aprs.util.format_aprs_frame(decoded_frame) | ||
|
||
# This is the human readable APRS output: | ||
print formatted_aprs | ||
|
||
except Exception as ex: | ||
print ex | ||
print "Error decoding frame:" | ||
print "\t%s" % frame | ||
|
||
|
||
def main(): | ||
ki = kiss.TCPKISS(host='localhost', port=8001) | ||
ki._logger.setLevel(logging.INFO) | ||
ki.start() | ||
ki.read(callback=print_frame) | ||
|
||
|
||
if __name__ == '__main__': | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.