Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Anyone know how to open an USB port in C# for I/O ?

I read somewhere that it has something to do with the windows API function CreateFile. If someone can tell me what the path is to the usb port, it would be of great use.

  • 1 month later...
  • 2 weeks later...
Posted

More trouble than its worth ???

 

Hi,

 

Youd have to use COM Interop and define all the signatures, convert the types and manage the objects. So its probably more work in C#....

 

Mandrake

Posted

If you got a standard comport wrapper. Strip the SetCommDCB, GetCommDCB and the DCB Settings from it. And simply use as portname: \\\.\\[usbdevice] (replace [usbdevice] for the devicename).

 

Very simple :) if you want to create a wrapper with some functionallity for e.g. mass-storage or imaging, you will have to use the intel samples and all other documents listed in this thread.

  • 9 months later...
Posted
If you got a standard comport wrapper. Strip the SetCommDCB, GetCommDCB and the DCB Settings from it. And simply use as portname: \\\.\\[usbdevice] (replace [usbdevice] for the devicename).

 

Very simple :) if you want to create a wrapper with some functionallity for e.g. mass-storage or imaging, you will have to use the intel samples and all other documents listed in this thread.

 

Thx

 

I already have a working class for dealing with DB9 Serial

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...