Reading USB ports

Just starting out? Need help? Post your questions and find answers here.
MadMax
Enthusiast
Enthusiast
Posts: 237
Joined: Mon Oct 06, 2003 11:56 am

Reading USB ports

Post by MadMax »

Just wonder if this would be possible. I wonder if I could read the data in my USB memory with PB.
Fred
Administrator
Administrator
Posts: 18153
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Yes, I had done that a few month ago.. I will try to find it again and post the sources here.
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

Fred....

When will you add USB functionality to PB !?
Seldon
Enthusiast
Enthusiast
Posts: 405
Joined: Fri Aug 22, 2003 7:12 am
Location: Italia

Post by Seldon »

@Fred: that would be great ! Thanks ! :)
MadMax
Enthusiast
Enthusiast
Posts: 237
Joined: Mon Oct 06, 2003 11:56 am

Post by MadMax »

@ wonderful :)
dagcrack
Addict
Addict
Posts: 1868
Joined: Sun Mar 07, 2004 8:47 am
Location: Argentina
Contact:

Post by dagcrack »

ORGASMIC!! USB!! USB!! USB!! USB!!
dmoc
Enthusiast
Enthusiast
Posts: 739
Joined: Sat Apr 26, 2003 12:40 am

Post by dmoc »

Hey Fred, any sign of those usb files? :D Were you using libusb by any chance?
User avatar
geoff
Enthusiast
Enthusiast
Posts: 128
Joined: Sun Apr 27, 2003 12:01 am
Location: Cornwall UK
Contact:

Post by geoff »

Accessing RS232 devices is easy using Marc Vitry's excellent MVCOM lib
I guess we need a USB equivalent.
Any volunteers?

Or is there an easy to use alternative?
User avatar
SimpleMind
Enthusiast
Enthusiast
Posts: 112
Joined: Sun May 18, 2003 12:40 pm
Location: Netherlands

Post by SimpleMind »

Is there already an alternative?
Give me books, fruit, french wine, fine weather and a little music.
John Keats
Intrigued
Enthusiast
Enthusiast
Posts: 501
Joined: Thu Jun 02, 2005 3:55 am
Location: U.S.A.

Post by Intrigued »

I agree... this would be nice to have access to.

*thumbs up*
Intrigued - Registered PureBasic, lifetime updates user
dagcrack
Addict
Addict
Posts: 1868
Joined: Sun Mar 07, 2004 8:47 am
Location: Argentina
Contact:

Post by dagcrack »

1 year later.. nothing to see :roll:
! Black holes are where God divided by zero !
My little blog!
(Not for the faint hearted!)
dmoc
Enthusiast
Enthusiast
Posts: 739
Joined: Sat Apr 26, 2003 12:40 am

Post by dmoc »

For those interested check out libusb. The problem is really documentation for the device you are trying to communicate with, usually not released to the public. I have not looked into this for sometime but do recall something recently about newer libusb utils being able to capture and replay usb communication, in which case you maybe don't need complete documentation to use some of the functionality of devices. Go Google.
User avatar
SimpleMind
Enthusiast
Enthusiast
Posts: 112
Joined: Sun May 18, 2003 12:40 pm
Location: Netherlands

Post by SimpleMind »

Take a look at: http://www.lvr.com/hidpage.htm . There are examples also in VB6, which you can easily translate into PB. The problem is that you always need the right HID driver from the chip/device manufacturer. The Microsoft DDK is not free afvailable.

Regards,

Marcel
User avatar
SimpleMind
Enthusiast
Enthusiast
Posts: 112
Joined: Sun May 18, 2003 12:40 pm
Location: Netherlands

Post by SimpleMind »

SimpleMind wrote:Take a look at: http://www.lvr.com/hidpage.htm . There are examples also in VB6, which you can easily translate into PB. The problem is that you always need the right HID driver from the chip/device manufacturer. The Microsoft DDK is not free afvailable.

Regards,

Marcel
New information on the DDK Microsoft Driver Development kit. The DDK self is free but you have to pay $25 handling/shipping. It is a bargain for what you get. I'mention some:

Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.4035 for 80x86

Microsoft (R) Library Manager Version 7.10.4035

Microsoft (R) Incremental Linker Version 7.10.4035

Debugger

Builder, macrocompiler, etc, etc.

In other words: In the DDK they put a complete C/C++ compiler and other stuff to build the driver examples. Microsoft Visual C++® is no longer required to be installed.
The problem is that you don't have an IDE! There is an example that builds a normal exe and I think you can build other stuff with it albeit in C/C++.
Give me books, fruit, french wine, fine weather and a little music.
John Keats
dmoc
Enthusiast
Enthusiast
Posts: 739
Joined: Sat Apr 26, 2003 12:40 am

Post by dmoc »

(deleted)
Post Reply