Closed YuliaMorzhova closed 3 years ago
Many thanks for reporting this issue!
$ amodem send -vvv -i input.txt -o- | amodem recv -i- -vvvvv
2021-06-19 13:57:26,253 INFO Audio OFDM MODEM v1.15.1: 1.0 kb/s (2-QAM x 1 carriers) Fs=8.0 kHz __main__.py:235
2021-06-19 13:57:26,254 INFO Audio OFDM MODEM v1.15.1: 1.0 kb/s (2-QAM x 1 carriers) Fs=8.0 kHz __main__.py:235
2021-06-19 13:57:26,254 DEBUG Skipping 0.100 seconds main.py:46
2021-06-19 13:57:26,255 INFO Sending 1.050 seconds of training audio main.py:23
2021-06-19 13:57:26,255 INFO Starting modulation main.py:28
2021-06-19 13:57:26,255 INFO Waiting for carrier tone: 2.0 kHz main.py:53
2021-06-19 13:57:26,257 INFO Sent 0.017 kB @ 0.217 seconds main.py:32
2021-06-19 13:57:26,257 DEBUG Finished I/O __main__.py:266
2021-06-19 13:57:26,262 INFO Carrier detected at ~400.0 ms @ 2.0 kHz detect.py:60
2021-06-19 13:57:26,262 DEBUG Buffered 580 ms of audio detect.py:63
2021-06-19 13:57:26,262 INFO Carrier coherence: 100.000% detect.py:94
2021-06-19 13:57:26,262 DEBUG Carrier starts at 399.875 ms detect.py:73
2021-06-19 13:57:26,263 INFO Carrier symbols amplitude : 1.000 detect.py:105
2021-06-19 13:57:26,263 INFO Frequency error: 0.000 ppm detect.py:115
2021-06-19 13:57:26,263 DEBUG Frequency correction: 0.000 ppm main.py:57
2021-06-19 13:57:26,263 DEBUG Gain correction: 1.000 main.py:60
2021-06-19 13:57:26,263 DEBUG Receiving recv.py:161
2021-06-19 13:57:26,275 DEBUG Prefix OK recv.py:50
2021-06-19 13:57:26,289 DEBUG Training completed recv.py:73
2021-06-19 13:57:26,299 DEBUG 2.0 kHz: SNR = 305.65 dB recv.py:95
2021-06-19 13:57:26,299 DEBUG Training verified recv.py:99
2021-06-19 13:57:26,300 INFO Starting demodulation recv.py:130
2021-06-19 13:57:26,316 DEBUG Good checksum: 3fa43360 framing.py:32
2021-06-19 13:57:26,319 DEBUG Good checksum: 00000000 framing.py:32
2021-06-19 13:57:26,319 DEBUG EOF frame detected framing.py:61
123456789012345672021-06-19 13:57:26,319 DEBUG Demodulated 0.027 kB @ 0.020 seconds (9.1% realtime) recv.py:179
2021-06-19 13:57:26,320 INFO Received 0.017 kB @ 0.020 seconds = 0.863 kB/s recv.py:183
2021-06-19 13:57:26,320 DEBUG Finished I/O __main__.py:266
Hello, thank you ! I tried from this branch and it works for me without any problems, so I tend to think this issue is solved and I close it. Once again thank you for your time and quick support!
Cool, happy to help :)
Trying to use amodem with I/O redirection on Linux 5.4.0-73-generic #82~18.04.1-Ubuntu and python (Python 3.7.5) I've got the following timeout:
I tried all from Decoding failed #33 (amodem recv -vvv -l ALSA, and increase Reader.timeout from 2s to 30s) but the timeout still happening.
I noted that the timeout depends on symbols quantity in the test_data file. For instance with 16 symbols (123456789123445) there are no timeout (previous was 17)
with 100 timeout, with 124 -no timeout... May be there is something with framing...