-
Notifications
You must be signed in to change notification settings - Fork 666
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
Calling set_rx_rate()
doesn't effect on N310 with UHD 4.1
#486
Comments
@andrepuschmann Is this a patched version of |
It should be identical to https://github.com/srsran/srsRAN/blob/master/lib/src/radio/test/benchmark_radio.cc , I don't recall any major changes. I just decorated the function calls a bit to print values. |
@andrepuschmann I could reproduce the issue with the latest UHD and srsRAN masters. I'll see if I can find what is the difference between the different devices. I can confirm that it works properly with B210 and X300, but N310 brings up the timestamp gap. |
@manderseck Can you check the order in which rate is done, streamers are created, etc. Any order should work, but I have a feeling this is related. |
Hey, just wondering if you guys have had a chance to investigate further and have a time estimate for a possible fix? We'd be happy to test here. |
Sorry for the delay, I had a few other things on my plate but I have this issue on my list for tomorrow (Tuesday). Will get back to you as soon as I know more. |
@andrepuschmann When I confirmed that I can reproduce the issue I saw an overrun which of course also causes gaps. The overrun was caused by a too slow interface (used the RJ45 connector). When I continued the investigation I first took smaller multiples of 1.92MS/s which worked well. Using the SFP port (with an adaptor to RJ45) I'm able to get the N310 running your test at 15.36MS/s (17.28 was possible, too):
This looks the same way in UHD 4.1 and in the latest master. Therefore I assume that setting the tx_rate works, otherwise I would expect to see timing gaps in all scenarios where the |
This is very weird. I've always used the 10GigE over SFP port with an optical fiber. On two different systems. And it was never working for rates above 1.92Msps. I've tried now a few more things, here and there, played with other UHD examples, and out of a sudden the same calls - that have never worked before - just work fine. I've no idea why though.
But I honestly have no clue what might have cause this. Could the N310 have been in a weird state not accepting rate changes? Also in your output above, I noticed your |
@andrepuschmann I'm glad the issue is resolved, even though we don't know exactly what caused it initially. |
Issue Description
Somehow the continuation of #449 in order to get the N310 reliably work with srsRAN.
This time we've noticed that the sample rates aren't applied correctly, perhaps they have the wrong order or something similar is wrong. But the result is that the rate stays at 1.92 MSps regardless of the configured value (usually a multiple of that).
Setup Details
Expected Behavior
Rx rate to get applied as specified.
Actual Behaviour
With the srsRAN
benchmark_radio
testcase (which doesn't do any DSP, just uses the radio module to talk to the radio) the issue becomes clear by looking at the timestamps. The app receives 1ms worth of samples, i.e. 15360 in case we sample at 15.36e6. We expect the Rx timestamp to advance 0.001s in this case, but it's not. The rate stays at 1.92e6.Steps to reproduce the problem
I couldn't reproduce the issue with the UHDs
benchmark_rate
so it seems to be an issue with how we call the API. But again, the same code works nicely with an X310 and UHD doesn't complain about anything.The text was updated successfully, but these errors were encountered: