Author Topic: just question. on USB programming.  (Read 258 times)

anunitu

  • Member
  • *****
  • Posts: 1037
just question. on USB programming.
« 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?

anunitu

  • Member
  • *****
  • Posts: 1037
Re: just question. on USB programming.
« Reply #1 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.

FORTRANS

  • Member
  • *****
  • Posts: 1016
Re: just question. on USB programming.
« Reply #2 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.

AW

  • Member
  • *****
  • Posts: 1483
  • Let's Make ASM Great Again!
Re: just question. on USB programming.
« Reply #3 on: August 16, 2018, 04:44:56 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)

Siekmanski

  • Member
  • *****
  • Posts: 1646
Re: just question. on USB programming.
« Reply #4 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.
Creative coders use backward thinking techniques as a strategy.

PaddyO

  • Regular Member
  • *
  • Posts: 4
Re: just question. on USB programming.
« Reply #5 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.

Siekmanski

  • Member
  • *****
  • Posts: 1646
Re: just question. on USB programming.
« Reply #6 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
Creative coders use backward thinking techniques as a strategy.