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

[Question] RTL-SDR samples format #9

Open
RandDruid opened this issue Nov 11, 2024 · 0 comments
Open

[Question] RTL-SDR samples format #9

RandDruid opened this issue Nov 11, 2024 · 0 comments

Comments

@RandDruid
Copy link

Hello,

I am implementing HackRF support for the fork of 'sdr-server' project. One of the differences between boards is the sample format. As far as I know RTL-SDR outputs unsigned bytes, while HackRF outputs signed bytes.
When I take a look at 'process' function in 'xlating.c', I can see that you are already treating input as signed bytes:

void process(const uint8_t *input, size_t input_len, float complex **output, size_t *output_len, xlating *filter) {
  // input_len cannot be more than (working_len_total - history_offset)

  // convert to [-1.0;1.0] working buffer
  volk_8i_s32f_convert_32f_u(filter->working_buffer + filter->history_offset, (const signed char *) input, 128.0F, input_len);

 // ....
}

it works with HackRF (I tested it). But would it actually work correctly with RTL-SDR for values in 128-255 range?

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

No branches or pull requests

1 participant