Re: [pyusb-users] reading multimeter

2013-07-29 Thread Jacques-D. Piguet
Hello Libby, I don't know your device, but I suspect it is using BCD for the lower nibble and some other info in the upper one. Another hint the most significant bit could be a parity bit... More samples could be helpfull... BR, Jacques-D. for h in ("31","34","b3","31","b5","31","31","b0","b

Re: [pyusb-users] reading multimeter

2013-07-28 Thread Elizabeth Tolman
Hello, You have to send the initialization code like this: dev.ctrl_transfer(0x21,0x09,0,0x05,[96,9,0,0,3]). After that, the device will constantly send reports every .012 seconds. Usually, these reports contain no data and look like this: F0 00 00 00 00 00 00 00. Every so often, it will send a

Re: [pyusb-users] reading multimeter

2013-07-21 Thread Ioakeim Tellidis
Elizabeth, Why dont you update your code including the initialization code for your instrument? It may be usuful in the future if somebody try to search the list archives for help. Well, this is just a suggestion. On Fri, Jul 19, 2013 at 4:30 PM, Elizabeth Tolman wrote: > Thank you all so much f

Re: [pyusb-users] reading multimeter

2013-07-19 Thread Elizabeth Tolman
Thank you all so much for your help! I can now get the multimeter to talk to me. It turns out you have to send it a message before it will send you reports. I'm still working on the best way to understand and record these reports, though, so I may need more help later, but for now things are goi

Re: [pyusb-users] reading multimeter

2013-07-18 Thread Xiaofan Chen
On Thu, Jul 18, 2013 at 9:40 PM, Elizabeth Tolman wrote: > > I don't know if this is helpful or not, but I have another software > program that reads from this multimeter. I can't look at the source code > because it's a .exe file, but I used USBlyzer to look at the requests it was > sending acro

Re: [pyusb-users] reading multimeter

2013-07-18 Thread Xiaofan Chen
On Wed, Jul 17, 2013 at 8:33 PM, Elizabeth Tolman wrote: > Hello, > > I'm new to pyusb and to working with usb devices in general. I'm trying to > read voltage data from a Tenma 72-7732 multimeter, but I'm having some > problems. This is my code so far: > > def main(): > import usb.core >

Re: [pyusb-users] reading multimeter

2013-07-18 Thread Wander Lairson Costa
2013/7/18 Elizabeth Tolman > > I don't know if this is helpful or not, but I have another software > program that reads from this multimeter. I can't look at the source code > because it's a .exe file, but I used USBlyzer to look at the requests it was > sending across the USB cable once it found

Re: [pyusb-users] reading multimeter

2013-07-18 Thread Elizabeth Tolman
1.2.6.0 On Thu, Jul 18, 2013 at 2:14 PM, Wander Lairson Costa < wander.lair...@gmail.com> wrote: > 2013/7/18 Elizabeth Tolman : > > Yes, I just reinstalled it to make sure, but I still get the timeout > error. > > > > There is something very weird with your logs, which I could not > reproduce he

Re: [pyusb-users] reading multimeter

2013-07-18 Thread Wander Lairson Costa
2013/7/18 Elizabeth Tolman : > Yes, I just reinstalled it to make sure, but I still get the timeout error. > There is something very weird with your logs, which I could not reproduce here. The arguments values in the call to intr_read int the backend don't make sense, although I tested in Linux. W

Re: [pyusb-users] reading multimeter

2013-07-18 Thread Elizabeth Tolman
Yes, I just reinstalled it to make sure, but I still get the timeout error. On Thu, Jul 18, 2013 at 1:46 AM, Wander Lairson Costa < wander.lair...@gmail.com> wrote: > Did you try the latest version on github [1] ? > > [1] https://github.com/walac/pyusb > > 2013/7/17 Elizabeth Tolman : > > Thanks

Re: [pyusb-users] reading multimeter

2013-07-17 Thread Wander Lairson Costa
Did you try the latest version on github [1] ? [1] https://github.com/walac/pyusb 2013/7/17 Elizabeth Tolman : > Thanks for helping me out! Here is all of the info about the device: > > bus-0/\\.\libusb0-0005--0x1a86-0xe008 1A86/E008 > - Manufacturer : WCH.CN > - Product : USB to Serial

Re: [pyusb-users] reading multimeter

2013-07-17 Thread Elizabeth Tolman
Thanks for helping me out! Here is all of the info about the device: bus-0/\\.\libusb0-0005--0x1a86-0xe008 1A86/E008 - Manufacturer : WCH.CN  - Product : USB to Serial wTotalLength: 41 bNumInterfaces: 1 bConfigurationValue: 1 iConfiguration: 4 bmAttributes

Re: [pyusb-users] reading multimeter

2013-07-17 Thread chris clark
Darn it I just re-read and saw you are on Windows. Try this instead :-) set PYUSB_DEBUG_LEVEL=debug python your_script.py On Wed, Jul 17, 2013 at 8:47 AM, chris clark wrote: > On Wed, Jul 17, 2013 at 7:58 AM, Elizabeth Tolman > wrote: > >> I'm running Windows 7. I can get a bit o

Re: [pyusb-users] reading multimeter

2013-07-17 Thread Wander Lairson Costa
2013/7/17 Elizabeth Tolman : > I'm running Windows 7. I can get a bit of information about the device > from the test program of libusb, if that would be helpful for you. I'm > having a bit of trouble understanding how to use the debug feature. When I > type "export PYUSB_DEBUG_LEVEL=debug" in

Re: [pyusb-users] reading multimeter

2013-07-17 Thread chris clark
On Wed, Jul 17, 2013 at 7:58 AM, Elizabeth Tolman wrote: > I'm running Windows 7. I can get a bit of information about the device > from the test program of libusb, if that would be helpful for you. I'm > having a bit of trouble understanding how to use the debug feature. When I > type "export

Re: [pyusb-users] reading multimeter

2013-07-17 Thread Elizabeth Tolman
I'm running Windows 7. I can get a bit of information about the device from the test program of libusb, if that would be helpful for you. I'm having a bit of trouble understanding how to use the debug feature. When I type "export PYUSB_DEBUG_LEVEL=debug" into the Python command line, I get an

Re: [pyusb-users] reading multimeter

2013-07-17 Thread Wander Lairson Costa
2013/7/17 Elizabeth Tolman : > Hello, > > I'm new to pyusb and to working with usb devices in general. I'm trying to > read voltage data from a Tenma 72-7732 multimeter, but I'm having some > problems. This is my code so far: > > def main(): > import usb.core > import usb.util > impor

[pyusb-users] reading multimeter

2013-07-17 Thread Elizabeth Tolman
Hello, I'm new to pyusb and to working with usb devices in general. I'm trying to read voltage data from a Tenma 72-7732 multimeter, but I'm having some problems. This is my code so far: def main(): import usb.core import usb.util import usb.backend #find device dev = usb.