The MASM Forum

General => The Campus => Topic started by: anunitu on August 16, 2018, 02:40:05 AM

Title: just question. on USB programming.
Post by: anunitu on August 16, 2018, 02:40:05 AM
was just wondering how one would program for usb interface,not sure about what could be used from a USB port.

Are there ideas about this,or am I hoping for something not possible?
Title: Re: just question. on USB programming.
Post by: anunitu on August 16, 2018, 02:44:19 AM
did find this,so perhaps something to look into.

https://www.electronicdesign.com/boards/how-create-and-program-usb-devices

Any thoughts?

The site allows a PDF DL of the article  also.
Title: Re: just question. on USB programming.
Post by: FORTRANS on August 16, 2018, 03:58:26 AM
Hi,

   Benjamin David Lunt wrote a book on programming the USB
ports "USB:  The Universal Serial Bus (Volume 8)".  Some of his
posts can be read on the usenet board alt.os.development .

Steve N.
Title: Re: just question. on USB programming.
Post by: aw27 on August 16, 2018, 04:44:56 AM
Quote from: anunitu on August 16, 2018, 02:40:05 AM
was just wondering how one would program for usb interface,not sure about what could be used from a USB port.

Are there ideas about this,or am I hoping for something not possible?

I think the first step is to download the Windows Driver Kit.  8)
Title: Re: just question. on USB programming.
Post by: Siekmanski on August 16, 2018, 07:47:14 AM
Look for libusb

https://libusb.info/
https://sourceforge.net/p/libusb-win32/wiki/Home/
https://sourceforge.net/projects/libusb-win32/

I once made an attempt to control a SDR dongle via usb, never finished it.
But got the USB part working.
Title: Re: just question. on USB programming.
Post by: PaddyO on August 19, 2018, 02:19:48 AM
@Siekmanski

Any chance you can post some of that USB code? I'm playing around with an AirSpy and would love to experiment low level. I have the libusb stuff but prefer straight to the core. I'm more interested in learning than ease of use.
Title: Re: just question. on USB programming.
Post by: Siekmanski on August 19, 2018, 03:48:22 AM
You have to install the libusb-win32 device driver.
https://sourceforge.net/projects/libusb-win32/

The sources are far from finished but the USB part is working. Have fun. :t