USB port usage

Just starting out? Need help? Post your questions and find answers here.
Booger
Enthusiast
Enthusiast
Posts: 134
Joined: Tue Sep 04, 2007 2:18 pm

USB port usage

Post by Booger »

I'm sorry if this has been answered.

But, how do you send and receive information on a USB port?

The USB port chip driver is installed in windows, but I cannot find any clear documentation unlike COM Serial ports.

These companies that make drivers for their hardware have to be going through some Microsoft interface.

Any purebasic code demonstrating how to send and receive packets to a device on a port would be helpful. It doesn't have to be device specific as the Devices' driver interprets the command sequence.

I want to get live video off my expensive Cannon camera. The software that came with it can get live video on screen for remote picture taking, but it can't be routed to another software, meaning they are send a sequence of commands to the camera to tell the camera to send the video back.

So basicly anyway to monitor the usb data sent to the device so I can copy it in my own software, and send/receive from my own software?

Thanks.
Tranquil
Addict
Addict
Posts: 952
Joined: Mon Apr 28, 2003 2:22 pm
Location: Europe

Post by Tranquil »

Sure that Windows does not register your cam as a capture device? If not so I think it becomes complicated. Maybe you can find some SDKs on the manufactors website?

I dont think (but I may be wrong) that there is a general access commandset to communicate with any USB device. More likely a low level driver issue, so you need documentations on the driver itself.
Tranquil
Booger
Enthusiast
Enthusiast
Posts: 134
Joined: Tue Sep 04, 2007 2:18 pm

Post by Booger »

Yes there is an sdk, but its in c++ with objects and have to link with their library.

But what I asked is how do I communicate with the USB port myself. :roll:

The driver for the device(in this case 'Camera') is not a driver for the USB integrated circuit that is on my motherboard.

As I stated before windows already has this driver installed, but there is no real documentation on how I can send and receive packets myself. Not through a c++ sdk with an library that is junk.

I want to do this in Purebasic with API or other lowlevel functions.

This is possible, because the device driver itself is communicating with the USB control chip, alas its hidden in their silly static lib.

I have many robotic projects I"d like to move to usb as Com ports are so 70's.:cry:

USB has been around for many years, but cannot find any sample code for low level communication with out some lib, that never does what you want. :lol:

Thanks.
User avatar
bingo
Enthusiast
Enthusiast
Posts: 210
Joined: Fri Apr 02, 2004 12:21 pm
Location: germany/thueringen
Contact:

Post by bingo »

["1:0>1"]
Booger
Enthusiast
Enthusiast
Posts: 134
Joined: Tue Sep 04, 2007 2:18 pm

Post by Booger »

Nice links. Thanks a million Bingo.

If I make any progress, I'll share the code.
User avatar
BillyBob
User
User
Posts: 21
Joined: Fri Oct 15, 2010 1:02 am
Location: Canada

Re:

Post by BillyBob »

Booger wrote:Nice links. Thanks a million Bingo.

If I make any progress, I'll share the code.
Is it safe to assume that you have not made any progress as it is now a 37 MONTHS since you made this post? :shock:
Post Reply