How to query Rx config

Discussions related to embedded firmware, driver, and user mode application software development
Post Reply
ksmiller99
Posts: 10
Joined: Wed Jun 15, 2016 11:22 am

How to query Rx config

Post by ksmiller99 »

Is there a way to get the rx configuration, or the individual settings through libbladerf? for example, in bladerfcli you can enter "rx" and get the settings:

bladeRF> rx

State: Idle
Last error: None
File: Not configured
File format: SC16 Q11, Binary
# Samples: 100000
# Buffers: 32
# Samples per buffer: 32768
# Transfers: 16
Timeout (ms): 1000

bladeRF>



I'm using C# and have the NativeMethods.cs and cannot find it there or in the LibBladeRF API documentation.

Thanks,
Kevin
bpadalino
Posts: 303
Joined: Mon Mar 04, 2013 4:53 pm

Re: How to query Rx config

Post by bpadalino »

That state is maintained in the CLI itself and not in the library.

Sorry for the misunderstanding.
ksmiller99
Posts: 10
Joined: Wed Jun 15, 2016 11:22 am

Re: How to query Rx config

Post by ksmiller99 »

Thanks bpadalino. So those are default values chosen by the programmer and sent to the BladeRF in the bladerf_sync_config() command just before receiving? I notice in the NativeMethods.cs that the bladerf_sync_config() command returns a status, but that it is not examined - is there a reason? Thanks for the newbie support.

Kevin
bpadalino
Posts: 303
Joined: Mon Mar 04, 2013 4:53 pm

Re: How to query Rx config

Post by bpadalino »

You should always check the return codes of all the functions after calling them. I don't know anything about C# so I am not sure what you mean about NativeMethods.cs, but if you call it and it returns an error code - you absolutely should check it.

Sorry if this answer isn't useful.
Post Reply