Search found 6 matches

by ray
Fri Nov 12, 2010 11:58 am
Forum: SUB-20 General Discussion
Topic: GPIO operations fail with "Bulk write failed"
Replies: 11
Views: 59925

Re: GPIO operations fail with "Bulk write failed"

It's a mobile robotics project. We have this large (80kg) tracked robot, which needs sensors. We'll use the SUB-20 i2c-bus at least for ultrasonic sensors and local I/O-expanders. AD-converters are used for monitoring voltages and currents of the power system and GPIO for various simple control or s...
by ray
Fri Nov 12, 2010 9:00 am
Forum: SUB-20 General Discussion
Topic: GPIO operations fail with "Bulk write failed"
Replies: 11
Views: 59925

Re: GPIO operations fail with "Bulk write failed"

Now it seems to work!
Thank you for the instructions.
by ray
Thu Nov 11, 2010 9:42 am
Forum: SUB-20 General Discussion
Topic: GPIO operations fail with "Bulk write failed"
Replies: 11
Views: 59925

Re: GPIO operations fail with "Bulk write failed"

Sometimes it works and then I get this:

./sub_app --gpio=c,0,0

BULK_OUT 11 bytes:
0a 60 08 00 00 00 00 00 00 00 00
Transfer completed, transferred=11
BULK_IN 7 bytes:
06 60 04 cf 00 00 00
GPIO Config: val=00000000,mask=00000000
GPIO Config: 000000CF
by ray
Thu Nov 11, 2010 9:41 am
Forum: SUB-20 General Discussion
Topic: GPIO operations fail with "Bulk write failed"
Replies: 11
Views: 59925

Re: GPIO operations fail with "Bulk write failed"

./sub_app --gpio=c,0,0

BULK_OUT 11 bytes:
0a 60 08 00 00 00 00 00 00 00 00
BULK_IN 7 bytes:
06 60 04 cf 00 00 00
Transfer incomplete
Failed(rc=7): Bulk write failed
by ray
Thu Nov 11, 2010 9:15 am
Forum: SUB-20 General Discussion
Topic: GPIO operations fail with "Bulk write failed"
Replies: 11
Views: 59925

Re: GPIO operations fail with "Bulk write failed"

The functions for configuring and reading AD-converter work without problems.
Also I2C functions and writing on the LCD work correctly.
I haven't tested PWM or SPI.

I'm running Ubuntu 9.04 with libusb-1.0-0 version 2:1.0.0-1.
by ray
Fri Nov 05, 2010 12:10 pm
Forum: SUB-20 General Discussion
Topic: GPIO operations fail with "Bulk write failed"
Replies: 11
Views: 59925

GPIO operations fail with "Bulk write failed"

I'm testing the SUB-20 module in Linux with the provided sub_app application. When using the GPIO functions (config and read) they fail most of the time with error code 7, "Bulk write failed". Approx. every 10th call is successful. ADC and I2C calls work perfectly. Version information: XDimax LTD, V...