Hi everybody...again ;)
I still got a problem with my Cypress CY3650 Developing Kit. Since it seemed that i sent too few data last time, i will go into greater detail this time My main problem is writing a program to transfer data to the device with Linux. I tried it using the hiddev api and the libusb api. But the device never answered or did the things i wanted it to do. The only thing I know is that with a small windows program i get all the data i want (I got the source-code but it just uses WriteFile to send the data. The devices is identified on the usb-bus as 8Port Voltmeter (see below) I used Usb Snoopy to see whats happening on the bus under Windows ( see below). I then used the usb-robot-master (http://usb-robot.sourceforge.net/) to transmit this to the device and it seemed to send the data since it finished with "end of input" but nothing was sent to the device (as i would have seen it with the attached debugger on the device) If i use the usb-robot-slave i get the following output. --------------------------------------------------------------------------------------------------- doing bus scan for: idVendor 0x925 idProduct 0x1234 found bus 001 scanning bus 001 device 001 on bus 001 does not match found bus 002 scanning bus 002 found device 007 on bus 002 (idVendor 0x925 idProduct 0x1234) opening device 007 on bus 002 OK: id=0 Type help and press return for a list of commands config 1 OK: id=1 interface OK: id=2 transfer type=bulk ep=0x00 dir=Out doing bulk transfer id 3 to ep 0x0, size 0, timeout 10000 frames status: problem doing write usb error: error writing to bulk endpoint 0: No such file or directory ERROR: id=3 transfer type=bulk ep=0x01 dir=Out doing bulk transfer id 4 to ep 0x1, size 0, timeout 10000 frames status: problem doing write usb error: error writing to bulk endpoint 1: No such file or directory ERROR: id=4 ------------------------------------------------------------------------------------------------------------ cat /proc/usb/bus/devices --------------------------------------------------------------------------------------- T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 3 Spd=1.5 MxCh= 0 D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=0925 ProdID=1234 Rev= 0.01 S: Manufacturer=Hendrik Kokulinsky S: Product=8Port Voltmeter C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA I: If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=00 Prot=00 Driver=(none) E: Ad=81(I) Atr=03(Int.) MxPS= 6 Ivl=10ms --------------------------------------------------------------------------------------- USBSNOOPY under Windows: --------------------------------------------------------------------------------------- <snip> // this is repeated all the time.> 00007436 2.55789840 >>>>>>> URB 41724 going down... 00007437 2.55791040 -- URB_FUNCTION_BULK_OR_INTERRUPT_TRANSFER: 00007438 2.55792080 PipeHandle = d5feaa38 00007439 2.55793680 TransferFlags = 00000003 (USBD_TRANSFER_DIRECTION_IN, USBD_SHORT_TRANSFER_OK) 00007440 2.55794720 TransferBufferLength = 00000002 00007441 2.55795760 TransferBuffer = d5fc6d60 00007442 2.55796720 TransferBufferMDL = 00000000 00007443 2.55797760 UrbLink = 00000000 00007444 2.56537440 00007445 2.56537920 <<<<<<< URB 41723 coming back... 00007446 2.56539280 -- URB_FUNCTION_BULK_OR_INTERRUPT_TRANSFER: 00007447 2.56540320 PipeHandle = d5feaa38 00007448 2.56542000 TransferFlags = 00000003 (USBD_TRANSFER_DIRECTION_IN, USBD_SHORT_TRANSFER_OK) 00007449 2.56542960 TransferBufferLength = 00000002 00007450 2.56544000 TransferBuffer = d5fc6d50 00007451 2.56545120 TransferBufferMDL = d5e679a0 00007452 2.56545760 00007453 2.56546240 0000: 00007454 2.56547360 0a 00 00007455 2.56548320 UrbLink = 00000000 00007456 2.56550880 UsbSnoop - IRP_MJ_INTERNAL_DEVICE_CONTROL, IOCTL_INTERNAL_USB_SUBMIT_URB <snip> --------------------------------------------------------------------------------------- Thats it. Greets Hendrik Kokulinsky -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
