Re: [pyusb-users] question regarding HID with PYUSB on raspberry pi

2016-01-22 Thread Chhavi Goenka
Thank you Jared. I will look at your project and try HIDAPI for my project. On Thu, Jan 21, 2016 at 4:42 PM, Jared Contrascere < jared.n.contrasc...@libretees.com> wrote: > Hi, Chhavi! > > I'll defer to other opinions on the matter, but I think pyusb might be too > low-level for your purposes, Ch

Re: [pyusb-users] question regarding HID with PYUSB on raspberry pi

2016-01-21 Thread Jared Contrascere
Hi, Chhavi! I'll defer to other opinions on the matter, but I think pyusb might be too low-level for your purposes, Chhavi. I've been able to interface with a HID scale on a Raspberry Pi using the python 'hidapi' package. See https://github.com/libretees/silverscale for an example project. --cont

[pyusb-users] question regarding HID with PYUSB on raspberry pi

2016-01-21 Thread Chhavi Goenka
Hi, I am trying to interface raspberry pi with a custom HID device via USB. I am using PYUSB for this. But once I run my program i get a timeout error. Here is my program: import os import sys import time import usb.core import usb.util packet_len = 64 # packet request function def pack_reque