Click here to Skip to main content
15,894,740 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

I connect my device to my pc with usb port. i run the software which connects to the device and reads the required information.

I am looking for a code which will capture the data from that port. I just need to customise the data and prepare a different report which the device software is not able to.

can anyone please help me on this?

Thank you,
rizz
Posted

1 solution

The problem is that you're thinking that you can treat the USB "port" the same as a serial or parallel port. You can't. Look at what USB stands for: Universial Serial BUS. It's an expansion bus, not unlike the slots on your motherboard. It's not a port.

The only way you're going to be able to intercept communication is with Kernel-level code, specifically, writing a USB Client Driver.

If you don't know what I'm talking about, start here[^]. More resources can be found here[^]

Good Luck!

Oh! I almost forgot... You're not going to do this in VB.NET or C#. Well, not unless you like rewriting lots of C constants, enums, structures, ..., in your code and PInvoking all kinds of driver functions.
 
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