Commit 53e0db48 authored by Manolis Surligas's avatar Manolis Surligas

Add AFSK1200 decoder

* AFSK1200 decoder with AX.25 frame support
* Fix issue with the AX.25 decoder when the frame has only one AX.25
SYNC flag
* Fix clear text debug output to print each one of the characters and
not the string, so that the payload can be partially be printed even if
it contains non-printable characters
* Add AFSK1200 decoder example that can decode frames from an .ogg file
retrieved by the satnogs-network
parent 1b0f949e
......@@ -32,5 +32,6 @@ GR_PYTHON_INSTALL(
flowgraphs/satnogs_apt_demod.py
flowgraphs/satnogs_fsk9600_ax25.py
flowgraphs/satnogs_fsk9600_g3ruh_ax25.py
flowgraphs/satnogs_afsk1200_ax25.py
DESTINATION bin
)
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -103,7 +103,16 @@ namespace gr
{
case NO_SYNC:
if (d_shift_reg == AX25_SYNC_FLAG) {
enter_sync_state ();
/*
* If the user asked for only one leading AX.25 SYNC flag
* start immediately the decoding
*/
if (d_sync_flags_thr == 0) {
enter_decoding_state ();
}
else {
enter_sync_state ();
}
}
break;
case IN_SYNC:
......@@ -211,7 +220,16 @@ namespace gr
{
case NO_SYNC:
if (d_shift_reg == AX25_SYNC_FLAG) {
enter_sync_state ();
/*
* If the user asked for only one leading AX.25 SYNC flag
* start immediately the decoding
*/
if(d_sync_flags_thr == 0) {
enter_decoding_state ();
}
else {
enter_sync_state ();
}
}
break;
case IN_SYNC:
......
......@@ -98,7 +98,10 @@ namespace gr
switch (d_format)
{
case 0:
std::cout << s << std::endl;
for (size_t i = 0; i < pmt::blob_length (msg); i++) {
std::cout << s[i];
}
std::cout << std::endl;
break;
case 1:
su = (uint8_t *) pmt::blob_data (msg);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment