You are right: Kindle is recognized as a simple mass-storage device.
I have the kindle touch to experiment with, but actually I need to
communicate with the Atmel STK 600 with Atxmega 32A4U. I've found a
simple example from Atmel and they offer a dll with 4-5 function which
are really simple.
So
On Mon, Oct 1, 2012 at 1:49 PM, Stefano Di Martino wrote:
> Sorry, I miss the forest for the trees. I'm new to USB programming, python
> and the pyUSB lib.
> I think, my problem was, that I was testing with my kindle and I didn't get
> it so far, that every device has its own vendor requests.
> D
On Mon, Oct 1, 2012 at 7:49 PM, Stefano Di Martino wrote:
> Sorry, I miss the forest for the trees. I'm new to USB programming,
> python and the pyUSB lib.
> I think, my problem was, that I was testing with my kindle and I didn't
> get it so far, that every device has its own vendor requests.
> Do
b-users@lists.sourceforge.net
> Betreff: Re: [pyusb-users] ctrl_transfer: Example is not working
> 2012/10/1 Stefano Di Martino :
> > Hi Tormod,
> > ok thanks for your reply!
> > Can I assume, that the address 0x40 is custom, too?
> >
> > If I use following code,
&g
2012/10/1 Stefano Di Martino :
> Hi Tormod,
> ok thanks for your reply!
> Can I assume, that the address 0x40 is custom, too?
>
> If I use following code,
>
> assert dev.ctrl_transfer(0x40, usb.util.CTRL_OUT, 0, 0, msg) == len(msg)
> ret = dev.ctrl_transfer(0x40, usb.util.CTRL_IN, 0, 0, len(msg))
>
win error: The parameter is incorrect."
Do you know what's wrong?
Regards
Stefano
Original-Nachricht
> Datum: Mon, 1 Oct 2012 13:09:35 +0200
> Von: Tormod Volden
> An: pyusb-users@lists.sourceforge.net
> Betreff: Re: [pyusb-users] ctrl_transfer: Example is no
On Mon, Oct 1, 2012 at 9:27 AM, Stefano Di Martino wrote:
> Hi everyone,
> I'm testing PyUSB right now and tried this example:
>
msg = 'test'
assert dev.ctrl_transfer(0x40, CTRL_LOOPBACK_WRITE, 0, 0, msg) == len(msg)
ret = dev.ctrl_transfer(0x40, CTRL_LOOPBACK_READ, 0, 0, len(msg))
>
Hi everyone,
I'm testing PyUSB right now and tried this example:
>>> msg = 'test'
>>> assert dev.ctrl_transfer(0x40, CTRL_LOOPBACK_WRITE, 0, 0, msg) == len(msg)
>>> ret = dev.ctrl_transfer(0x40, CTRL_LOOPBACK_READ, 0, 0, len(msg))
>>> sret = ''.join([chr(x) for x in ret])
>>> assert sret == msg
T