Problem with error -99

View: New views
2 Messages — Rating Filter:   Alert me  

Problem with error -99

by Kari Laine-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All,

I am quite new user of libusb. I am writing Linux-program for Velleman
scope PCSGU250. I have basic stuff done. Now then I changed my
development machiine. And I can't get my program work anymore.
interrupt transfer always returns -99 and I don't know what that
means.

lsusb gives:

Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
***** Bus 003 Device 023: ID 10cf:2501 Velleman Components, Inc. ****
Bus 003 Device 007: ID 0951:1607 Kingston Technology Data Traveler 2.0
Bus 003 Device 006: ID 0409:005a NEC Corp. HighSpeed Hub
Bus 003 Device 002: ID 059f:1014 LaCie, Ltd
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

So it finds the Velleman.

I try to send the FPGA-code to Velleman with following

        r = libusb_interrupt_transfer(devhandle,1,sx,54912,&byteswritten,help1);

sx is the array to which I have read the FPGA-code.

I tested with the original machine where I made the development and
program works.
I tested with another USB-cable.
I tested with and without a hub.

I would appreciate if someone could point me to possible solutions to test.

Problem is that -99 seems to be a general error and does not point to
specific problem.

Best Regards
Kari Laine

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Libusb-devel mailing list
Libusb-devel@...
https://lists.sourceforge.net/lists/listinfo/libusb-devel

Re: Problem with error -99

by Kari Laine-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Answering myself.

Forget this - it is probably hardware problem. There is no enough
current to power the box.

I will  investigate.

Best Regards
Kari


On Mon, Nov 9, 2009 at 9:16 AM, Kari Laine <klaine8@...> wrote:

> Hi All,
>
> I am quite new user of libusb. I am writing Linux-program for Velleman
> scope PCSGU250. I have basic stuff done. Now then I changed my
> development machiine. And I can't get my program work anymore.
> interrupt transfer always returns -99 and I don't know what that
> means.
>
> lsusb gives:
>
> Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> ***** Bus 003 Device 023: ID 10cf:2501 Velleman Components, Inc. ****
> Bus 003 Device 007: ID 0951:1607 Kingston Technology Data Traveler 2.0
> Bus 003 Device 006: ID 0409:005a NEC Corp. HighSpeed Hub
> Bus 003 Device 002: ID 059f:1014 LaCie, Ltd
> Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
>
> So it finds the Velleman.
>
> I try to send the FPGA-code to Velleman with following
>
>        r = libusb_interrupt_transfer(devhandle,1,sx,54912,&byteswritten,help1);
>
> sx is the array to which I have read the FPGA-code.
>
> I tested with the original machine where I made the development and
> program works.
> I tested with another USB-cable.
> I tested with and without a hub.
>
> I would appreciate if someone could point me to possible solutions to test.
>
> Problem is that -99 seems to be a general error and does not point to
> specific problem.
>
> Best Regards
> Kari Laine
>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Libusb-devel mailing list
Libusb-devel@...
https://lists.sourceforge.net/lists/listinfo/libusb-devel