I haven't seem anything wrong. What you can do is add an software sniffer analyzer and compare the results using the two devices. Some people in this list have done it already, please check mailing list archives...
2010/11/3 Begoña Fuentes <begofume...@gmail.com>: > Of course. I did that and as you can see there is an error reading the > device status. Do you think that is important? Here it is the output of > lsusb -vv: > Bus 005 Device 008: ID 0590:0028 Omron Corp. HJ-720IT Pedometer > Device Descriptor: > bLength 18 > bDescriptorType 1 > bcdUSB 1.10 > bDeviceClass 0 (Defined at Interface level) > bDeviceSubClass 0 > bDeviceProtocol 0 > bMaxPacketSize0 8 > idVendor 0x0590 Omron Corp. > idProduct 0x0028 HJ-720IT Pedometer > bcdDevice 2.01 > iManufacturer 1 > iProduct 3 > iSerial 0 > bNumConfigurations 1 > Configuration Descriptor: > bLength 9 > bDescriptorType 2 > wTotalLength 41 > bNumInterfaces 1 > bConfigurationValue 1 > iConfiguration 0 > bmAttributes 0x80 > (Bus Powered) > MaxPower 100mA > Interface Descriptor: > bLength 9 > bDescriptorType 4 > bInterfaceNumber 0 > bAlternateSetting 0 > bNumEndpoints 2 > bInterfaceClass 3 Human Interface Device > bInterfaceSubClass 0 No Subclass > bInterfaceProtocol 0 None > iInterface 0 > HID Device Descriptor: > bLength 9 > bDescriptorType 33 > bcdHID 1.10 > bCountryCode 0 Not supported > bNumDescriptors 1 > bDescriptorType 34 Report > wDescriptorLength 31 > Report Descriptors: > ** UNAVAILABLE ** > Endpoint Descriptor: > bLength 7 > bDescriptorType 5 > bEndpointAddress 0x81 EP 1 IN > bmAttributes 3 > Transfer Type Interrupt > Synch Type None > Usage Type Data > wMaxPacketSize 0x0008 1x 8 bytes > bInterval 10 > Endpoint Descriptor: > bLength 7 > bDescriptorType 5 > bEndpointAddress 0x02 EP 2 OUT > bmAttributes 3 > Transfer Type Interrupt > Synch Type None > Usage Type Data > wMaxPacketSize 0x0008 1x 8 bytes > bInterval 10 > cannot read device status, Operation not permitted (1) > Once again, thank you very much for your time! > -- > Begoña Fuentes > > > 2010/11/3 wander.lairson <wander.lair...@gmail.com> >> >> It feels ok, would mind sending the output of lsusb -vv? (but please, >> cut off stuff not related to your device). >> >> 2010/11/2 Begoña Fuentes <begofume...@gmail.com>: >> > Of course, sorry I didn't do that before. Here it is >> > import usb.core >> > import usb.util >> > import usb >> > # find our device >> > dev = usb.core.find(idVendor=0x0590, idProduct=0x0028) >> > dev.baudrate=4800 >> > #detach kernel (this was necessary sometimes with the other device) >> > try: >> > dev.detach_kernel_driver(0) >> > except Exception, e: >> > pass # already unregistered >> > # check if it was found >> > if dev is None: >> > raise ValueError('Device not found') >> > st1=[0x07,0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00] #Command >> > dev.set_configuration() >> > #Find endpoints (i know they are right because their addresses match the >> > manufacturer specifications) >> > ep_out = usb.util.find_descriptor( >> > dev.get_interface_altsetting(), # first interface >> > # match the first OUT endpoint >> > custom_match = \ >> > lambda e: \ >> > usb.util.endpoint_direction(e.bEndpointAddress) == \ >> > usb.util.ENDPOINT_OUT >> > ) >> > >> > ep_in = usb.util.find_descriptor( >> > dev.get_interface_altsetting(), # first interface >> > # match the first IN endpoint >> > custom_match = \ >> > lambda e: \ >> > usb.util.endpoint_direction(e.bEndpointAddress) == \ >> > usb.util.ENDPOINT_IN >> > ) >> > >> > a=ep_out.write(st1, timeout=2000) >> > And here after 2000 I get "timeout exception", so it is not able to >> > write >> > the command in the endpoint. >> > Thank you again. >> > -- >> > Begoña Fuentes >> > >> > >> > 2010/11/2 wander.lairson <wander.lair...@gmail.com> >> >> >> >> > Do you think that it could be related with the fact that the cables >> >> > from >> >> > both devices are different? >> >> >> >> I don't think so. Could you please post the source code in the list? >> >> >> >> -- >> >> Best Regards, >> >> Wander Lairson Costa >> >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> Nokia and AT&T present the 2010 Calling All Innovators-North America >> >> contest >> >> Create new apps & games for the Nokia N8 for consumers in U.S. and >> >> Canada >> >> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in >> >> marketing >> >> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi >> >> Store >> >> http://p.sf.net/sfu/nokia-dev2dev >> >> _______________________________________________ >> >> pyusb-users mailing list >> >> pyusb-users@lists.sourceforge.net >> >> https://lists.sourceforge.net/lists/listinfo/pyusb-users >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > Nokia and AT&T present the 2010 Calling All Innovators-North America >> > contest >> > Create new apps & games for the Nokia N8 for consumers in U.S. and >> > Canada >> > $10 million total in prizes - $4M cash, 500 devices, nearly $6M in >> > marketing >> > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store >> > http://p.sf.net/sfu/nokia-dev2dev >> > _______________________________________________ >> > pyusb-users mailing list >> > pyusb-users@lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/pyusb-users >> > >> > >> >> >> >> -- >> Best Regards, >> Wander Lairson Costa >> >> >> ------------------------------------------------------------------------------ >> Achieve Improved Network Security with IP and DNS Reputation. >> Defend against bad network traffic, including botnets, malware, >> phishing sites, and compromised hosts - saving your company time, >> money, and embarrassment. Learn More! >> http://p.sf.net/sfu/hpdev2dev-nov >> _______________________________________________ >> pyusb-users mailing list >> pyusb-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/pyusb-users > > > ------------------------------------------------------------------------------ > Achieve Improved Network Security with IP and DNS Reputation. > Defend against bad network traffic, including botnets, malware, > phishing sites, and compromised hosts - saving your company time, > money, and embarrassment. Learn More! > http://p.sf.net/sfu/hpdev2dev-nov > _______________________________________________ > pyusb-users mailing list > pyusb-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pyusb-users > > -- Best Regards, Wander Lairson Costa ------------------------------------------------------------------------------ Achieve Improved Network Security with IP and DNS Reputation. Defend against bad network traffic, including botnets, malware, phishing sites, and compromised hosts - saving your company time, money, and embarrassment. Learn More! http://p.sf.net/sfu/hpdev2dev-nov _______________________________________________ pyusb-users mailing list pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users