Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems decoding on Raspberry Pi4 #46

Closed
thomz0r opened this issue Mar 10, 2022 · 3 comments
Closed

Problems decoding on Raspberry Pi4 #46

thomz0r opened this issue Mar 10, 2022 · 3 comments

Comments

@thomz0r
Copy link

thomz0r commented Mar 10, 2022

Hi team ,
just started to use my Pi4 as portable SDR few days ago , and times comes to decode digital voice .
i compiled and installed mbelib and DSDcc with following Cmake options
DUSE_MBELIB=ON -DLIBMBE_INCLUDE_DIR=/usr/local/include/ -DLIBMBE_LIBRARY=/usr/local/lib/arm-linux-gnueabihf/libmbe.so

I can decode prefectly Dstar sample , and none of other sample are working , ie :
pi@raspberrypi:~/dsdcc $ sox -t s16 -r 48k -c 1 samples/dmr_it_8.dis -t s16 -r 48k -c 1 - | dsdccx -i - -fa -o - | play -q -t s16 -r 8k -c 1 -
DSDDstar::reset_header_strings
DSDDecoder::resetFrameSync: symbol 0 (0)
Digital Speech Decoder DSDcc
DSDDecoder::resetFrameSync: symbol 0 (0)
Enabling auto frame decoding.
DSDDecoder::resetFrameSync: symbol 0 (0)
Opened - for input.
Opened - for output.
Sync: +DMRd DSDDecoder::run: good sync found: 10 symbol 298 (12851)
DSDDecoder::run: before processFrameInit: symbol 299 (1717)
inlvl: 90% DSDDecoder::resetFrameSync: symbol 352 (3106)
play WARN alsa: can't encode 0-bit Unknown or not applicable
Sync: +DMRd DSDDecoder::run: good sync found: 10 symbol 586 (12809)
DSDDecoder::run: before processFrameInit: symbol 587 (1737)
inlvl: 101% DSDDecoder::resetFrameSync: symbol 640 (3183)
Sync: +DMRd DSDDecoder::run: good sync found: 10 symbol 874 (12496)
DSDDecoder::run: before processFrameInit: symbol 875 (1637)
inlvl: 100% DSDDecoder::resetFrameSync: symbol 928 (2896)

..
... (tons of similar line)
...
sometimes :
DSTAR HEADER: RPT 2: څ?[.tH RPT 1: ?S?T??? YOUR: ?????? MY: }$????/?q(?
..
...
inlvl: 98% DSDDecoder::resetFrameSync: symbol 94816 (2617)
Sync: +DMRv DSDDecoder::run: good sync found: 12 symbol 94906 (-12818)
DSDDecoder::run: before processFrameInit: symbol 94907 (-5292)
inlvl: 100% ==No more input
End of process
pi@raspberrypi:~/dsdcc $

also tried with DSD and i have issue to ( no audio ) .

any clue to help me moving forward ?

thx, 73'
Tom

@f1ixx
Copy link

f1ixx commented Apr 17, 2022

Hello
I've same problem on my laptop under Fedora 36.
Compiler : C++17.

When compile, i've warring with unuse variable. I'm make modification in source to have no error and/or warrning.
I'm sur is dirty solution but that work for me. Correct work with samples files.

`diff --git a/dsd_mbe.cpp b/dsd_mbe.cpp
index 84b58f3..fb53fe4 100644
--- a/dsd_mbe.cpp
+++ b/dsd_mbe.cpp
@@ -123,9 +123,18 @@ void DSDMBEDecoder::processFrame(char imbe_fr[8][23], char ambe_fr[4][24], char
}

 processAudio();

+// F1IXX : add to remove warring compilation
+#else

  • char trash;

  • trash = sizeof(imbe_fr[0]); trash += 1;

  • trash = sizeof(ambe_fr[0]); trash += 1;

  • trash = sizeof(imbe7100_fr[0]); trash += 1
    +// F1IXX : add to remove warring compilation
    #endif
    }

void DSDMBEDecoder::processData(char imbe_data[88], char ambe_data[49])
{
if (!m_dsdDecoder->m_mbelibEnable) {
@@ -161,6 +170,13 @@ void DSDMBEDecoder::processData(char imbe_data[88], char ambe_data[49])
}

 processAudio();

+// F1IXX : add to remove warring compilation
+#else

  • char trash;
  • trash = sizeof(imbe_data[0]); trash += 1;
  • trash = sizeof(ambe_data[0]); trash += 1;
    +// F1IXX : add to remove warring compilation
    #endif
    }

diff --git a/pn.cpp b/pn.cpp
index f9fd15b..d961794 100644
--- a/pn.cpp
+++ b/pn.cpp
@@ -33,6 +33,8 @@ void PN_9_5::init()
unsigned char byte;
unsigned int sr = m_seed;

  • byte = 0; // F1IXX : add to remove warring compilation
  • for (int i = 0; i < 512; i++)
    {
    if (i%8 == `0)``

I hope little help and resolve problem.

Best regards

Boris, F1IXX

@thomz0r
Copy link
Author

thomz0r commented Apr 19, 2022 via email

@github-actions
Copy link

This issue is going to be closed due to inactivity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants