Tim, I really appreciate you taking time to
respond.
I am basically running into a wall when
discussing the issue, for many reasons.
I will probably use wrong terminology
here, please be patient.
The device – LittleWire USB “dongle”
is basically an interface to hardware and the “inventor “
provided few sample codes how to use it. The simplest one is to turn
an output port off and on.
I am eventually going to control a
DirectDigitalSynthesis oscillator, nothing too speedy.
Here are my problems = and again I may
be using wrong terminology, so here it comes.
The source code I have modified is one
of the many copies of on the web LIBUSB-WIN32, Generic Windows USB
Library libusb_dyn.c . I have build / compiled VC++ static library
using this and necessary includes. ( I just do not see why it is
named -dyn, Must be some convention, yes?) . I did all of this so I
can step thru my program , including the “library”.
The basic misunderstanding is that I
really do not know how does the XP libusb0.dll gets into play.
I can have the resulting static library
execute the usb_init(), but all I can do is to load the libsub0.dll.
I have no clue where did the
libusb0.dll came from. And the original author used “libusb0.1”
and that is all I know about it.
I am sure I can find a copy of source
code for it somewhere.
I almost understand what you are saying
about I won't be able to retrieve devices using the
sub_find_busses().
Let me do some research to find out how
is this LitleWire driver “applied” to libusb0.
In the meantime if you could tell me
about this libusb0.dll already on my PC I would appreciate that.
Thanks
________________________________
From: Tim Roberts <t...@probo.com>
To: "libusbx-devel@lists.sourceforge.net" <libusbx-devel@lists.sourceforge.net>
Sent: Tuesday, August 6, 2013 11:36 AM
Subject: Re: [Libusbx-devel] LitteWire libusb library help
Vaclav wrote:
>I would like to have a private contact with someone who could give me some
>pointers about BASIC libusb build and usage in Windows MFC.
MFC is not relevant. That's just a framework for building GUI
applications. Did you mean Visual C++?
I have been told by "expert" to use libusb0.1 but the software I am using
clearly loads libusb0.dll
>
Yes, libusb0.dll is the interface for libusb-win32, which is a
Windows version of libusb 0.1. There is a separate mailing list for
libusb-win32, if that's what you currently have.
Basically whatever I am using is refusing to detect more than one USB "bus" -
whatever that is, and none USB devices. I can detect the device in question
using other applications, but I am stuck ( at least for now) to get libusb
going so I can control the device.
Yes, libusb in Windows can only access devices that are using the
libusb driver, libusb0.sys. There has to be a driver package with
an INF file that matches your USB device identifier to the
libusb0.sys driver. If you haven't assigned a driver to your
device, then it will not be found. If this is a package you
inherited, then there may already be a driver package somewhere.
I would prefer to build the whatever dll from source so I can debug my app ( I
have not figured out how to debug “build” dll) and learn how it works. I think
I am missing the relations between MFC .lib ( which I can build" and the
required libusb0.dll.
>
There is no relationship between MFC and libusb, except that your
application happens to use both. Libusb0.dll is just like any other
DLL (like gdi32.dll or user32.dll or the C run-time library). You
shouldn't really need to be debugging inside of it. You just use
the services it provides.
What kind of device is this? How much data will be you be
transferring?
I am basically lost which libusb to use ( libusb0.1, 0, libusbx, libusb_win32 )
but I need some basic know-how to be able to build and use library from source.
>
If you already have code that uses libusb_win32, then it's probably
not worth the trouble to start over. If you are starting from
scratch, then it might be worth considering an upgrade.
--
Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc.
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel