Skip to content

Investigate using fsk_demod fork from auto_rx to allow negative frequencies #27

@darksidelemm

Description

@darksidelemm

Current fsk_demod within this repo does not seem to allow setting the frequency estimator to negative frequencies:
https://github.com/projecthorus/wenet/blob/master/src/fsk_demod.c#L215

        fsk = fsk_create_hbr(Fs,Rs,P,M,1200,400);
        if(fsk_lower> 0 && fsk_upper > fsk_lower){
            fsk_set_est_limits(fsk,fsk_lower,fsk_upper);
            fprintf(stderr,"Setting estimator limits to %d to %d Hz.\n",fsk_lower, fsk_upper);
        }

The fsk_demod fork from radiosonde_auto_rx has a different construct around this setting: https://github.com/projecthorus/radiosonde_auto_rx/blob/master/utils/fsk_demod.c#L215
And this version definitely allows for negative frequencies.

Suggest testing dropping in the version from auto_rx. This will allow for centring the wenet signal within the passband, rather than having it offset like it is now. This should allow dropping the oversampling rate, and hence the sample rate required for reception. (P=4 might be possible)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions