-
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
set_sync_source() fails on N310 #449
Comments
Quick update. It actually turned out that by commenting the call to I've used this trivial patch:
But then the receive hangs. The issue can actually be reproduced with the much "simpler" The call just hangs:
|
Hey, just checking here if anyone else has seen this issue or knows something about it? Is it worth checking the UHD 4.1? |
@andrepuschmann It's worth checking UHD 4.1 release ... certainly! If this is a UHD issue, we want to track it down and deal with it, and that means fixing it in 4.1 & if it exists in prior UHD then backporting the fix as reasonably possible to 4.0 and 3.15. Question: Can you use any of the UHD-provided examples or utilities to show this issue? That's the ideal way to do so; using a significant 3rd party UHD-based application -- no matter how robust or well tested -- can introduce all sorts of strange behaviors without much ado. The goal here is to help track down the most likely place where the issue is being created: the 3rd party UHD-based application or UHD itself. If you can demonstrate the issue using UHD itself, then we know the answer and the issue is likely to be addressed by R&D ... otherwise ... well, who knows how the issue might proceed or not ... I'm sure you understand! |
Thanks for the feedback @michaelld Unless I am doing something completely wrong, it's very easy to reproduce with any UHD example I believe. See below, I am taking the first line from the srsRAN code base and the seconds is just copy paste from the UHD manual here
Both give:
|
@andrepuschmann Sorry for the delay. Thanks for providing a way to reproduce this without 3rd party applications. I have applied your changes to the benchmark_rate example and can confirm getting errors with this in UHD 4.1. I still need to investigate this further but will get back as soon as I will have found something. |
@andrepuschmann Update: As I wrote yesterday I could reproduce the original error |
In UHD-4.0 I could also reproduce the "unhashable type" issue which is caused by calling the wrong function - void mpmd_mb_controller::set_sync_source(
@@ -123,23 +181,25 @@ void mpmd_mb_controller::set_sync_source(const device_addr_t& sync_source)
for (const auto& key : sync_source.keys()) {
sync_source_map[key] = sync_source.get(key);
}
- _rpc->notify_with_token(
- MPMD_DEFAULT_LONG_TIMEOUT, "set_clock_source", sync_source_map);
+ _rpc->get_raw_rpc_client()->notify_with_token(
+ MPMD_DEFAULT_LONG_TIMEOUT, "set_sync_source", sync_source_map);
+ if (!_sync_source_updaters.empty()) {
+ for (const auto& updater : _sync_source_updaters) {
+ updater(sync_source);
+ }
+ }
} For a quick fix I can only recommend upgrading to 4.1. We are still in discussion if we can backport this fix to 4.0. |
The internal discussion about the backport is still ongoing, but the issue is found and already resolved in 4.1. Therefore I'll close the issue. Please re-open if you think that any aspect of your issue report was not covered properly. Thanks for reporting! |
Confirmed to work fine with the N310 with UHD 4.1. |
Thanks for confirming! |
Hi
Here are my n310 and my host server version of UHD:
root@ni-n3xx-32000F1:~# Any way out of this? |
Issue Description
The issue comes up when trying to bring up a N310 two-channel streamer and setting the sync source. For some reason, the
set_sync_source()
call doesn't work with the N310. The same code works well with the N310 and UHD 3.15 LTS or with UHD4 on the X310.Setup Details
UHD_4.0.0.0-231-gb54fb54b
Expected Behavior
UHD (3.15 and 4) to be able to set sync source reliably on all supported HW.
Actual Behaviour
The call fails with UHD4 and the N310. It works on the N310 with UHD 3.15 and the X310, even with UHD4.
Steps to reproduce the problem
The above output is with srsUE public version (https://github.com/srsran/srsRAN). Normal build from source with following UE config file.
ue_nsa.conf.zip
Additional Information
I've asked the same question a while ago on the usrp-users ML without any response.
The text was updated successfully, but these errors were encountered: