[USRP-users] Problem running the MPM daemon & MPC Server

2025-02-24 Thread philip.tustin--- via USRP-users
Hello,\ \ After building the MPM daemon, I am trying (currently unsuccessfully) to execute the MPM daemon & RPC server.\ \ The following MPM build sequence creates the file **‘libusrp-periphs.so.4.8.0’** in the directory **‘/usr/lib’**. In the same directory **‘/usr/lib’**, the symlink **‘libus

[USRP-users] Re: REG : GPIO in USRP B205Mini

2025-02-24 Thread kavinraj
Hi, What is the minimum time to toggle the GPIO pin? I want to make the GPIO pin high for 1microsecond and low for 1milliseconds. How i achieve this through code? Thanks. On 2025-02-24 01:57, Martin Braun wrote: You don't specify a delay, you send one timed command to make the pin go H

[USRP-users] REG: GPIO Toggling

2025-02-24 Thread kavinraj
Hi, I have written a c code for GPIO toggling in USRP B205mini-i board. The pin should be high for 1microseconds and low for 1milliseconds. I have given the c code to verify whether it is correct or not? while(1) { uhd_usrp_get_time_now(usrp, mboard, &full_secs, &frac_secs);

[USRP-users] Re: [EXTERNAL]Re: register custom rfnoc block names

2025-02-24 Thread Martin Braun
OK, sounds like you're more than halfway there. Also, you can ignore UHD_REGISTER_EXTENSION() for now, that's for a different purpose. The way I've been testing "simple" applications is through probe_gain_block.cpp. The way I've been testing "complex" applications is through the GNU Radio integrat

[USRP-users] Re: REG: GPIO Toggling

2025-02-24 Thread Martin Braun
On Mon, Feb 24, 2025 at 10:42 AM wrote: > Hi, >I have written a c code for GPIO toggling in USRP B205mini-i board. > The pin should be high for 1microseconds and low for 1milliseconds. I > have given the c code to verify whether it is correct or not? > > while(1) > { > uhd_

[USRP-users] Re: REG : GPIO in USRP B205Mini

2025-02-24 Thread kavinraj
Hi, while(1) { uhd_usrp_get_time_now(usrp, mboard, &full_secs, &frac_secs); uhd_usrp_set_command_time(usrp, full_secs , frac_secs + 1e-6, mboard); error = uhd_usrp_set_gpio_attr(usrp, bank, "OUT", 0x01, mask1, mboard); uhd_usrp_clear_command_time(usrp,

[USRP-users] Re: REG : GPIO in USRP B205Mini

2025-02-24 Thread Martin Braun
Assuming t_high is a uhd::time_spec_t that marks the start time of your HIGH state, simply do auto t_low = t_high + 1e-6; and then use t_low for your second timed command: usrp->set_command_time(t_high); usrp->set_gpio_attr(/* set your pin high */); usrp->set_command_time(t_low); usrp->set_gpio_

[USRP-users] Re: REG: GPIO Toggling

2025-02-24 Thread kavinraj
Hi, Can you give me the corrected c code for my application? Thanks. On 2025-02-24 08:17, Martin Braun wrote: On Mon, Feb 24, 2025 at 10:42 AM wrote: Hi, I have written a c code for GPIO toggling in USRP B205mini-i board. The pin should be high for 1microseconds and low for 1milliseconds

[USRP-users] Re: [EXTERNAL]Re: register custom rfnoc block names

2025-02-24 Thread Kevin Williams
I found a clue today. The constructor of my control block never gets called in the test where I use the rfnoc-vastech shared library in a totally separate project. (In an application directly compiled in my rfnoc OOT repo it definitely does get called.) It seems like the “UHD_RFNOC_BL