Click here to Skip to main content
15,885,921 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello. I have a MS Visual C# (2013) WPF program that I'm trying to read data being received on a USB port. I have code that will recognize the USB Device (A ADB-S Usb Dongle) as
VID: 0BDA
PID: 2838
Friendly Name: RTL2838UHIDIR
Device Class: UsbDevice
Device Location: Port_#0002.Hub_#0002
Device Path: PCIROOT(0)#PCI(0B01)#USBROOT(0)#USB(2)
Device Physical Object Name: \Device\USBPDO-3

My question is, How do I read data that is streaming in from this device?

The existing library has no code to allow reading of the incoming data.
Can someone please provide C# source code that will read data being received?


Thank you.
Brad H.
Posted
Updated 21-Apr-15 23:26pm
v2
Comments
CHill60 22-Apr-15 5:01am    
Have a look at Working with USB devices in .NET[^]
And I advise removing your email from this public forum before you get hit by spam bots
Member 7964422 22-Apr-15 5:28am    
Hello. Thank you for your reply.
I did go ahead and remove my Email address.
Thank you for the advise. First time I have posted here.

Regards.
CHill60 22-Apr-15 5:31am    
Let me know if that link helps and I will post it as a solution for the benefit of any others coming across this post...or not if it doesn't help! :)
[no name] 22-Apr-15 5:04am    
This cannot be answered because we do not know what the device is. Is it implementing an RS232 device (probably not) or are you talking about accessing a USB interface directly. If so you will need to find and provide heaps more information and there is no generic solution. It may implement the HID interface (from its name) and that could make life a little easier.
Robert Bushlow 25-Apr-20 12:55pm    
USB is not RS232

1 solution

You have a gadget using Realtek RTL2832U device (ezcap USB 2.0 DVB-T/DAB/FM dongle)

http://www.realtek.com.tw/products/productsView.aspx?Langid=1&PFid=35&Level=4&Conn=3&ProdID=257[^]

This should get you going:
http://sdr.osmocom.org/trac/wiki/rtl-sdr[^]

and this:
https://inst.eecs.berkeley.edu/~ee123/fa12/rtl_sdr.html[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900