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

Trouble opening devices using xtrx_open #18

Open
itchy5 opened this issue Aug 9, 2019 · 1 comment
Open

Trouble opening devices using xtrx_open #18

itchy5 opened this issue Aug 9, 2019 · 1 comment

Comments

@itchy5
Copy link

itchy5 commented Aug 9, 2019

I'm not able to open a specific device using osmocom in GNU Radio or Soapy in python using dev=pcie:///dev/xtrx0 (or pcie:///dev/xtrx1). In GNU Radio it fails after xtrx_open_list with no error output. In Soapy it simply defaults to xtrx0 every time. If I leave dev empty everything works fine, transmit, receive, tuning, etc. Additionally, xtrx_fft example works fine with either device, which is odd.

My goal here is to get two xtrx devices receiving together (4 channel mimo).

EDIT: I've manually compiled all source repos since the images repo isn't properly tracking the latest commits. However, Soapy is still defaulting to xtrx0. Here is what I'm using for initialization in python:
args = dict(dev="/dev/xtrx1", loglevel="2")
print args
sdr = SoapySDR.Device(args)

and the corresponding output:
{'loglevel': '2', 'dev': '/dev/xtrx1'}
10:48:09.368261 DEBUG: xtrxllpciev0_discovery:264 [PCIE] pcie: Found 'pcie:///dev/xtrx0'
10:48:09.368292 DEBUG: xtrxllpciev0_discovery:264 [PCIE] pcie: Found 'pcie:///dev/xtrx1'
[INFO] Make connection: 'pcie:///dev/xtrx0'
CPU Features: SSE2+ SSE4.1+ AVX- FMA-
[INFO] Created: 'pcie:///dev/xtrx0'

If I manually set const std::string& dev = "/dev/xtrx1"; in SoapyXTRX.cpp I correctly initialize the second device.
[INFO] Created: '/dev/xtrx1'

@curtcorum
Copy link

Please see #20

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

2 participants