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

Fix wrong data format for usrp #40

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions usrp.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <signal.h>
#include <stdio.h>
#include <string.h>

#include <complex.h>
#include <uhd.h>

#include "sdr.h"
Expand Down Expand Up @@ -101,7 +101,7 @@ void usrp_list(void) {
if (type == NULL || serial == NULL)
continue;

printf("interface {value=usrp-%s-%s}{display=ICE9 Bluetooth%s}\n", product, serial,
Copy link

@mrene mrene Aug 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you might want to update usrp_find_serial() - this fails for me since it passes serial=B200mini (xxxxxx),num_recv_frames=1024 as the opening arguments to libuhd (the original code also fails because it looks for the first - instead of the last -).

printf("interface {value=usrp-%s (%s)}{display=ICE9 Bluetooth%s}\n", product, serial,
strcmp(type, "b200") == 0 ? "" : " (unsupported)");

free(usrp_info);
Expand Down Expand Up @@ -156,8 +156,8 @@ void *usrp_stream_thread(void *arg) {
void *buf;
uhd_rx_metadata_error_code_t error_code;
uhd_stream_args_t stream_args = {
.cpu_format = "fc32",
.otw_format = "sc16",
.cpu_format = "sc8",
.otw_format = "sc8",
.args = "",
.channel_list = &channel,
.n_channels = 1
Expand Down
Loading