# Usb control of usrp with .NET

**URL:** <https://www.ruby-forum.com/t/usb-control-of-usrp-with-net/61052>\
**Category:** GNU Radio\
**Created:** [May 19, 2006, 6:03pm UTC](https://www.ruby-forum.com/t/usb-control-of-usrp-with-net/61052 "2006-05-19T18:03:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Caruth](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/9de053/32.png) [@David\_Caruth](https://www.ruby-forum.com/u/David_Caruth)\
**Post date:** [May 19, 2006, 6:03pm UTC](https://www.ruby-forum.com/t/usb-control-of-usrp-with-net/61052/1 "2006-05-19T18:03:55Z")

</div>

Hello,

I was looking to write some simple code in Visual C++ .NET to control  
the USRP. My first problem is to communicate with the USB port. I’ve  
seen some people who have used the CreateFile, Read, and Write functions  
in Windows to do this, but I’m unable to get a handle for the USRP.  
Does anyone have some example code of how to talk via USB with the USRP,  
specifically?

Thanks,  
Dave

* * *

Do You Yahoo!?  
Tired of spam? Yahoo! Mail has the best spam protection around

> **[Yahoo Mail - Organized Email](https://mail.yahoo.com)**
>
> It's time to get stuff done with Yahoo Mail. Just add your Gmail, Outlook, AOL or Yahoo Mail to get going. We automatically organize all the things life throws at you, like receipts and attachments, so you can find what you need fast. Plus, we've got...

---

<div class="post-metadata">

**Author:** ![David\_Caruth](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/9de053/32.png) [@David\_Caruth](https://www.ruby-forum.com/u/David_Caruth)\
**Post date:** [May 19, 2006, 6:17pm UTC](https://www.ruby-forum.com/t/usb-control-of-usrp-with-net/61052/2 "2006-05-19T18:17:17Z")

</div>

David Caruth wrote:

> Hello,
> 
> I was looking to write some simple code in Visual C++ .NET to control  
> the USRP. My first problem is to communicate with the USB port. I’ve  
> seen some people who have used the CreateFile, Read, and Write functions  
> in Windows to do this, but I’m unable to get a handle for the USRP.  
> Does anyone have some example code of how to talk via USB with the USRP,  
> specifically?

I Googled for “C# libusb” and found this.

> **[Additional info on the HPSDR project...](http://pcovington.blogspot.com/2005/10/additional-info-on-hpsdr-project.html)**
>
> Hi all, This is a response to a few questions that someone posted on my blog page requesting more info about the project. I have copied it h...

Cool blog btw.

/Ulf
