Hi all,
Spot on Marcus, OS X (10.6.3)
Regards,
Kevin
On Sat, Apr 10, 2010 at 11:02 PM, <pyusb-users-requ...@lists.sourceforge.net
> wrote:
> Send pyusb-users mailing list submissions to
> pyusb-users@lists.sourceforge.net
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.sourceforge.net/lists/listinfo/pyusb-users
> or, via email, send a message with subject or body 'help' to
> pyusb-users-requ...@lists.sourceforge.net
>
> You can reach the person managing the list at
> pyusb-users-ow...@lists.sourceforge.net
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of pyusb-users digest..."
>
>
> Today's Topics:
>
> 1. Re: pyusb 1.0 with libusb 1.0 Windows Backend (Xiaofan Chen)
> 2. Re: pyusb 1.0 with libusb 1.0 Windows Backend (Wander Lairson)
> 3. Re: pyusb 1.0 with libusb 1.0 Windows Backend (Xiaofan Chen)
> 4. Help with reading data from HID device (Kevin Kilroy)
> 5. Re: Help with reading data from HID device (Wander Lairson)
> 6. Re: Help with reading data from HID device (Marcus Foster)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 9 Apr 2010 07:33:33 +0800
> From: Xiaofan Chen <xiaof...@gmail.com>
> Subject: Re: [pyusb-users] pyusb 1.0 with libusb 1.0 Windows Backend
> To: pyusb-users@lists.sourceforge.net
> Message-ID:
> <r2na276da401004081633h6067af21pe7cc7cabfc104...@mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> On Thu, Apr 8, 2010 at 10:01 PM, Xiaofan Chen <xiaof...@gmail.com> wrote:
> > Ah, this may be the case. I need to ask again in the libusb mailing
> > list. The MSVC solution generates stdcall. And I believe if they
> > are different, then Pete will need to change the MinGW/Cygwin
> > build to use stdcall.
> >
>
> Indeed this is a problem.
>
> http://old.nabble.com/Calling-convention-of-the-libusb-1.0-Windows-snapshots-td28179386.html
>
> In my opinion, both should match and it seems to me using
> stdcall is the way to go.
>
> Wander: what is your opinion as the pyusb developer?
>
>
> --
> Xiaofan http://mcuee.blogspot.com
>
>
>
> ------------------------------
>
> Message: 2
> Date: Fri, 9 Apr 2010 21:56:03 -0300
> From: Wander Lairson <wander.lair...@gmail.com>
> Subject: Re: [pyusb-users] pyusb 1.0 with libusb 1.0 Windows Backend
> To: pyusb-users@lists.sourceforge.net
> Message-ID:
> <h2i63b983641004091756sb3b9c448je5c5cc0332d80...@mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> 2010/4/8 Xiaofan Chen <xiaof...@gmail.com>:
> > On Thu, Apr 8, 2010 at 10:01 PM, Xiaofan Chen <xiaof...@gmail.com>
> wrote:
> >> Ah, this may be the case. I need to ask again in the libusb mailing
> >> list. The MSVC solution generates stdcall. And I believe if they
> >> are different, then Pete will need to change the MinGW/Cygwin
> >> build to use stdcall.
> >>
> >
> > Indeed this is a problem.
> >
> http://old.nabble.com/Calling-convention-of-the-libusb-1.0-Windows-snapshots-td28179386.html
> >
> > In my opinion, both should match and it seems to me using
> > stdcall is the way to go.
> >
> > Wander: what is your opinion as the pyusb developer?
>
> As a library developer, I understand that calling convention is part
> of the API interface, and it should be explicit in the header file. If
> we are speaking on Windows, and we want to support as much clients as
> possible, we should we __stdcall. Some environments just cannot handle
> __cdecl (coff coff VB6).
>
> >
> >
> > --
> > Xiaofan http://mcuee.blogspot.com
> >
> >
> ------------------------------------------------------------------------------
> > Download Intel® Parallel Studio Eval
> > Try the new software tools for yourself. Speed compiling, find bugs
> > proactively, and fine-tune applications for parallel performance.
> > See why Intel Parallel Studio got high marks during beta.
> > http://p.sf.net/sfu/intel-sw-dev
> > _______________________________________________
> > pyusb-users mailing list
> > pyusb-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/pyusb-users
> >
>
>
>
> ------------------------------
>
> Message: 3
> Date: Sat, 10 Apr 2010 09:03:37 +0800
> From: Xiaofan Chen <xiaof...@gmail.com>
> Subject: Re: [pyusb-users] pyusb 1.0 with libusb 1.0 Windows Backend
> To: pyusb-users@lists.sourceforge.net
> Message-ID:
> <u2ka276da401004091803kc417af38n251671f984f4d...@mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> On Sat, Apr 10, 2010 at 8:56 AM, Wander Lairson
> <wander.lair...@gmail.com> wrote:
>
> >> Indeed this is a problem.
> >>
> http://old.nabble.com/Calling-convention-of-the-libusb-1.0-Windows-snapshots-td28179386.html
> >>
> >> In my opinion, both should match and it seems to me using
> >> stdcall is the way to go.
> >>
> >> Wander: what is your opinion as the pyusb developer?
> >
> > As a library developer, I understand that calling convention is part
> > of the API interface, and it should be explicit in the header file. If
> > we are speaking on Windows, and we want to support as much clients as
> > possible, we should we __stdcall. Some environments just cannot handle
> > __cdecl (coff coff VB6).
> >
>
> Thanks. That seems to be the consensus now even though Pete
> has some reservations.
>
>
> --
> Xiaofan http://mcuee.blogspot.com
>
>
>
> ------------------------------
>
> Message: 4
> Date: Sat, 10 Apr 2010 11:41:15 +0100
> From: Kevin Kilroy <kevkil...@googlemail.com>
> Subject: [pyusb-users] Help with reading data from HID device
> To: pyusb-users@lists.sourceforge.net
> Message-ID:
> <z2w52db2f591004100341w9fbdb812me896066d3911a...@mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
>
> I have an HID device that I am trying to read from, but I am receiving the
> following error:
>
> usb.core.USBError: Access denied (insufficient permissions)
>
> Here is a snippet from my code:
>
> import usb
> import usb.core
>
> myVendorId = 53769
> myProductId = 5377
> dev = usb.core.find(idVendor=myVendorId, idProduct=myProductId)
> dev.set_configuration()
> test = dev.read(0x81,8)
> print "res: ",test
>
> The output from running usbenum.py is:
>
> Device:
> Device class: 0
> Device sub class: 0
> Device protocol: 0
> Max packet size: 8
> idVendor: 53769 (0xd209)
> idProduct: 5377 (0x1501)
> Device Version: 25
> Configuration: 1
> Total length: 109
> selfPowered: 0
> remoteWakeup: 0
> maxPower: 1000
> Interface: 0
> Alternate Setting: 0
> Interface class: 3
> Interface sub class: 0
> Interface protocol: 0
> Endpoint: 0x81
> Type: 3
> Max packet size: 8
> Interval: 10
> Alternate Setting: 0
> Interface class: 3
> Interface sub class: 0
> Interface protocol: 0
> Endpoint: 0x82
> Type: 3
> Max packet size: 20
> Interval: 10
> Alternate Setting: 0
> Interface class: 3
> Interface sub class: 0
> Interface protocol: 0
> Endpoint: 0x83
> Type: 3
> Max packet size: 16
> Interval: 10
> Alternate Setting: 0
> Interface class: 3
> Interface sub class: 1
> Interface protocol: 2
> Endpoint: 0x84
> Type: 3
> Max packet size: 8
> Interval: 10
>
>
> I have tried reading from the other endpoints but get the following error:
>
> File "/Library/Python/2.6/site-packages/usb/core.py", line 163, in
> get_endpoint_type
> type = util.endpoint_type(e.bmAttributes)
> AttributeError: 'NoneType' object has no attribute 'bmAttributes'
>
> I'm a newbie to usb but I'm learning & reading the USB Complete book, so
> I'd
> really appreciate it if somebody could help me to retrieve data from my USB
> HID device.
>
> Thanks in advance,
>
> Kevin
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 5
> Date: Sat, 10 Apr 2010 17:50:07 -0300
> From: Wander Lairson <wander.lair...@gmail.com>
> Subject: Re: [pyusb-users] Help with reading data from HID device
> To: pyusb-users@lists.sourceforge.net
> Message-ID:
> <m2v63b983641004101350r21570534k60005c4ba456d...@mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hello Kevin,
>
> What OS are you using?
>
> Wander
>
> 2010/4/10 Kevin Kilroy <kevkil...@googlemail.com>:
> > Hi,
> >
> > I have an HID device that I am trying to read from, but I am receiving
> the
> > following error:
> >
> > usb.core.USBError: Access denied (insufficient permissions)
> >
> > Here is a snippet from my code:
> >
> > import usb
> > import usb.core
> >
> > myVendorId = 53769
> > myProductId = 5377
> > dev = usb.core.find(idVendor=myVendorId, idProduct=myProductId)
> > dev.set_configuration()
> > test = dev.read(0x81,8)
> > print "res: ",test
> >
> > The output from running usbenum.py is:
> >
> > Device:
> > ? Device class: 0
> > ? Device sub class: 0
> > ? Device protocol: 0
> > ? Max packet size: 8
> > ? idVendor: 53769 (0xd209)
> > ? idProduct: 5377 (0x1501)
> > ? Device Version: 25
> > ? Configuration: 1
> > ??? Total length: 109
> > ??? selfPowered: 0
> > ??? remoteWakeup: 0
> > ??? maxPower: 1000
> > ??? Interface: 0
> > ??? Alternate Setting: 0
> > ????? Interface class: 3
> > ????? Interface sub class: 0
> > ????? Interface protocol: 0
> > ????? Endpoint: 0x81
> > ??????? Type: 3
> > ??????? Max packet size: 8
> > ??????? Interval: 10
> > ??? Alternate Setting: 0
> > ????? Interface class: 3
> > ????? Interface sub class: 0
> > ????? Interface protocol: 0
> > ????? Endpoint: 0x82
> > ??????? Type: 3
> > ??????? Max packet size: 20
> > ??????? Interval: 10
> > ??? Alternate Setting: 0
> > ????? Interface class: 3
> > ????? Interface sub class: 0
> > ????? Interface protocol: 0
> > ????? Endpoint: 0x83
> > ??????? Type: 3
> > ??????? Max packet size: 16
> > ??????? Interval: 10
> > ??? Alternate Setting: 0
> > ????? Interface class: 3
> > ????? Interface sub class: 1
> > ????? Interface protocol: 2
> > ????? Endpoint: 0x84
> > ??????? Type: 3
> > ??????? Max packet size: 8
> > ??????? Interval: 10
> >
> >
> > I have tried reading from the other endpoints but get the following
> error:
> >
> > ? File "/Library/Python/2.6/site-packages/usb/core.py", line 163, in
> > get_endpoint_type
> > ??? type = util.endpoint_type(e.bmAttributes)
> > AttributeError: 'NoneType' object has no attribute 'bmAttributes'
> >
> > I'm a newbie to usb but I'm learning & reading the USB Complete book, so
> I'd
> > really appreciate it if somebody could help me to retrieve data from my
> USB
> > HID device.
> >
> > Thanks in advance,
> >
> > Kevin
> >
> >
> ------------------------------------------------------------------------------
> > Download Intel® Parallel Studio Eval
> > Try the new software tools for yourself. Speed compiling, find bugs
> > proactively, and fine-tune applications for parallel performance.
> > See why Intel Parallel Studio got high marks during beta.
> > http://p.sf.net/sfu/intel-sw-dev
> > _______________________________________________
> > pyusb-users mailing list
> > pyusb-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/pyusb-users
> >
> >
>
>
>
> ------------------------------
>
> Message: 6
> Date: Sat, 10 Apr 2010 23:02:13 +0100
> From: Marcus Foster <marcusfos...@gmail.com>
> Subject: Re: [pyusb-users] Help with reading data from HID device
> To: pyusb-users@lists.sourceforge.net
> Message-ID:
> <k2u3f3c566b1004101502k205f7008i9a84944ce42e4...@mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> "/Library/Python/2.6/site-packages/usb/core.py"
> sounds like Mac OSX
>
> On Sat, Apr 10, 2010 at 9:50 PM, Wander Lairson <wander.lair...@gmail.com
> >wrote:
>
> > Hello Kevin,
> >
> > What OS are you using?
> >
> > Wander
> >
> > 2010/4/10 Kevin Kilroy <kevkil...@googlemail.com>:
> > > Hi,
> > >
> > > I have an HID device that I am trying to read from, but I am receiving
> > the
> > > following error:
> > >
> > > usb.core.USBError: Access denied (insufficient permissions)
> > >
> > > Here is a snippet from my code:
> > >
> > > import usb
> > > import usb.core
> > >
> > > myVendorId = 53769
> > > myProductId = 5377
> > > dev = usb.core.find(idVendor=myVendorId, idProduct=myProductId)
> > > dev.set_configuration()
> > > test = dev.read(0x81,8)
> > > print "res: ",test
> > >
> > > The output from running usbenum.py is:
> > >
> > > Device:
> > > Device class: 0
> > > Device sub class: 0
> > > Device protocol: 0
> > > Max packet size: 8
> > > idVendor: 53769 (0xd209)
> > > idProduct: 5377 (0x1501)
> > > Device Version: 25
> > > Configuration: 1
> > > Total length: 109
> > > selfPowered: 0
> > > remoteWakeup: 0
> > > maxPower: 1000
> > > Interface: 0
> > > Alternate Setting: 0
> > > Interface class: 3
> > > Interface sub class: 0
> > > Interface protocol: 0
> > > Endpoint: 0x81
> > > Type: 3
> > > Max packet size: 8
> > > Interval: 10
> > > Alternate Setting: 0
> > > Interface class: 3
> > > Interface sub class: 0
> > > Interface protocol: 0
> > > Endpoint: 0x82
> > > Type: 3
> > > Max packet size: 20
> > > Interval: 10
> > > Alternate Setting: 0
> > > Interface class: 3
> > > Interface sub class: 0
> > > Interface protocol: 0
> > > Endpoint: 0x83
> > > Type: 3
> > > Max packet size: 16
> > > Interval: 10
> > > Alternate Setting: 0
> > > Interface class: 3
> > > Interface sub class: 1
> > > Interface protocol: 2
> > > Endpoint: 0x84
> > > Type: 3
> > > Max packet size: 8
> > > Interval: 10
> > >
> > >
> > > I have tried reading from the other endpoints but get the following
> > error:
> > >
> > > File "/Library/Python/2.6/site-packages/usb/core.py", line 163, in
> > > get_endpoint_type
> > > type = util.endpoint_type(e.bmAttributes)
> > > AttributeError: 'NoneType' object has no attribute 'bmAttributes'
> > >
> > > I'm a newbie to usb but I'm learning & reading the USB Complete book,
> so
> > I'd
> > > really appreciate it if somebody could help me to retrieve data from my
> > USB
> > > HID device.
> > >
> > > Thanks in advance,
> > >
> > > Kevin
> > >
> > >
> >
> ------------------------------------------------------------------------------
> > > Download Intel® Parallel Studio Eval
> > > Try the new software tools for yourself. Speed compiling, find bugs
> > > proactively, and fine-tune applications for parallel performance.
> > > See why Intel Parallel Studio got high marks during beta.
> > > http://p.sf.net/sfu/intel-sw-dev
> > > _______________________________________________
> > > pyusb-users mailing list
> > > pyusb-users@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/pyusb-users
> > >
> > >
> >
> >
> >
> ------------------------------------------------------------------------------
> > Download Intel® Parallel Studio Eval
> > Try the new software tools for yourself. Speed compiling, find bugs
> > proactively, and fine-tune applications for parallel performance.
> > See why Intel Parallel Studio got high marks during beta.
> > http://p.sf.net/sfu/intel-sw-dev
> > _______________________________________________
> > pyusb-users mailing list
> > pyusb-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/pyusb-users
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
>
> ------------------------------
>
> _______________________________________________
> pyusb-users mailing list
> pyusb-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pyusb-users
>
>
> End of pyusb-users Digest, Vol 22, Issue 11
> *******************************************
>
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users