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

LRPT "NOSYNC" in terminal even if images are decoded; decoding slower than before #8

Closed
shuyuan-liu opened this issue Apr 12, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@shuyuan-liu
Copy link

Basically, SatDump always says NOSYNC in the terminal when decoding an LRPT baseband file, even though the constellation diagram looks very clean and images are in fact produced at the end.

Below is an example of this behaviour. Even with BER below 1%, the program still says NOSYNC.

[04/12/21 - 01:07:39] (I) Starting processing pipeline meteor_m2_lrpt...
[04/12/21 - 01:07:39] (D) Input file (baseband) : /mnt/Data/Recordings/IQ/lrpt-trimmed.wav
[04/12/21 - 01:07:39] (D) Output file (products) : /mnt/Data/Pictures/Satellite
[04/12/21 - 01:07:39] (D) Starting meteor_m2_lrpt
[04/12/21 - 01:07:39] (W) Data is already at level baseband, skipping
[04/12/21 - 01:07:39] (W) Processing data to level soft
[04/12/21 - 01:07:39] (D) Parameters :
[04/12/21 - 01:07:39] (D)    - agc_rate : 0.00001
[04/12/21 - 01:07:39] (D)    - baseband_format : i16
[04/12/21 - 01:07:39] (D)    - buffer_size : 8192
[04/12/21 - 01:07:39] (D)    - costas_bw : 0.004
[04/12/21 - 01:07:39] (D)    - dc_block : 0
[04/12/21 - 01:07:39] (D)    - iq_swap : 0
[04/12/21 - 01:07:39] (D)    - rrc_alpha : 0.6
[04/12/21 - 01:07:39] (D)    - rrc_taps : 361
[04/12/21 - 01:07:39] (D)    - samplerate : 256000
[04/12/21 - 01:07:39] (D)    - symbolrate : 72000
[04/12/21 - 01:07:39] (I) Using input baseband /mnt/Data/Recordings/IQ/lrpt-trimmed.wav
[04/12/21 - 01:07:39] (I) Demodulating to /mnt/Data/Pictures/Satellite/meteor_m2_lrpt.soft
[04/12/21 - 01:07:39] (I) Buffer size : 8192
[04/12/21 - 01:07:40] (I) Progress 0.000000%
[04/12/21 - 01:07:50] (I) Progress 21.600000%
[04/12/21 - 01:08:00] (I) Progress 45.200001%
[04/12/21 - 01:08:10] (I) Progress 59.099998%
[04/12/21 - 01:08:20] (I) Progress 71.699997%
[04/12/21 - 01:08:30] (I) Progress 83.900002%
[04/12/21 - 01:08:40] (I) Progress 95.099998%
[04/12/21 - 01:08:44] (I) Demodulation finished
[04/12/21 - 01:08:44] (W) Processing data to level cadu
[04/12/21 - 01:08:44] (D) Parameters :
[04/12/21 - 01:08:44] (D)    - baseband_format : i16
[04/12/21 - 01:08:44] (D)    - dc_block : 0
[04/12/21 - 01:08:44] (D)    - diff_decode : 0
[04/12/21 - 01:08:44] (D)    - iq_swap : 0
[04/12/21 - 01:08:44] (D)    - samplerate : 256000
[04/12/21 - 01:08:44] (I) Using input symbols /mnt/Data/Pictures/Satellite/meteor_m2_lrpt.soft
[04/12/21 - 01:08:44] (I) Decoding to /mnt/Data/Pictures/Satellite/meteor_m2_lrpt.cadu
[04/12/21 - 01:08:50] (I) Progress 1.200000%, Viterbi BER : 26.733398%, Lock : NOSYNC
[04/12/21 - 01:09:00] (I) Progress 3.800000%, Viterbi BER : 26.904297%, Lock : NOSYNC
[04/12/21 - 01:09:10] (I) Progress 7.400000%, Viterbi BER : 28.088379%, Lock : NOSYNC
[04/12/21 - 01:09:20] (I) Progress 10.200000%, Viterbi BER : 6.542969%, Lock : NOSYNC
[04/12/21 - 01:09:30] (I) Progress 14.000000%, Viterbi BER : 3.198242%, Lock : NOSYNC
[04/12/21 - 01:09:40] (I) Progress 18.700001%, Viterbi BER : 0.646973%, Lock : NOSYNC
[04/12/21 - 01:09:50] (I) Progress 23.400000%, Viterbi BER : 0.170898%, Lock : NOSYNC
[04/12/21 - 01:10:00] (I) Progress 28.100000%, Viterbi BER : 0.219727%, Lock : NOSYNC
[04/12/21 - 01:10:10] (I) Progress 32.599998%, Viterbi BER : 0.195312%, Lock : NOSYNC
[04/12/21 - 01:10:20] (I) Progress 37.000000%, Viterbi BER : 0.207520%, Lock : NOSYNC
...

It seems this problem is quite new but I'll need to find the exact commit after which it appeared. Related to this, it seems LRPT decoding is a lot slower now than before. Before the problem appeared, as soon as the decoder recognises the signal and BER drops the progress becomes a lot faster, and once the signal is lost it slows down again; now it's slow all the way through.

I can provide the baseband files I used, although I believe this behaviour is not specific to any particular recording.

@shuyuan-liu shuyuan-liu changed the title Meteor M2 LRPT: always "NOSYNC" in terminal even if images are decoded LRPT "NOSYNC" in terminal even if images are decoded; decoding slower than before Apr 12, 2021
@shuyuan-liu
Copy link
Author

shuyuan-liu commented Apr 12, 2021

I tried building previous versions and it seems commit 9401767 "Fixup LRPT a bit" started the issue. This commit removes a piece of code that makes decoding "go faster" if locked, but I don't quite understand why - @Aang23 do you mind giving a brief explanation?

I tried decoding the same recording with SatDump before and after commit 9401767, and below are the results. For this particular recording at least, less data is decoded at the start and end where the signal is bad. The amount of errors caused by signal level fluctuations in the middle of the pass stays about the same.

LRPT fixup effect

@Aang23
Copy link
Collaborator

Aang23 commented May 10, 2021

There was an issue with the correlator, that is now fixed since a recent commit. About the NOSYNC, that's indeed a bug I need to fix. Thanks though!

The NOSYNC issue appeared after I reworked the decoder a while ago...

@Aang23 Aang23 added the bug Something isn't working label May 10, 2021
@Aang23 Aang23 closed this as completed in 23e626b Jun 8, 2021
Aang23 added a commit that referenced this issue Oct 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants