Skip to content

Bandwidth over 20 MHZ not supported #2

@freqmod

Description

@freqmod

Setting bandwidth to any value bigger than ~20 mhz does not result in any data in the waterfall for frequencies over 20 mhz away from the center frequency.

This simple patch provides more bandwidth (however i am not sure if it is the correct way).


diff --git a/liblms7002m.c b/liblms7002m.c
index 95fc8de..9df8407 100644
--- a/liblms7002m.c
+++ b/liblms7002m.c
@@ -1241,7 +1241,7 @@ int lms7_rbb_set_lpfx_bandwidth(struct lms7_state* st, unsigned bw)
        enum rbb_path path;
        int res;
 
-       path = RBB_LB_LBF;
+       path = bw > 20000000 ? RBB_LB_HBF : RBB_LB_LBF;
 
        int rcc_ctl_lpfl_rbb = 0;
        int c_ctl_lpfl_rbb = (int)(2160000000U/bw - 103);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions