Re: Failing controls transfers in VMware
On Tuesday 30 June 2009 22:04:34 Markus Dolze wrote: Hans Petter Selasky wrote: On Tuesday 30 June 2009 20:46:22 Markus Dolze wrote: Hello, for several days I ways trying to get devel/avrdude to work with an USBasp compatibel device (www.ullihome.de) on FreeBSD 7.2 running as a guest in VMware Workstation 6.5.2. ... FYI: Not a solution maybe, but 8-current has a new USB stack. Works with AVRDUDE. --HPS Hi, yes, I know. Therefore I already tried and the result is even worse. Output from the test program: freebsd8# ./main ./main: Command not found. freebsd8# ./test Found AVR-USB device USB_control_msg result: 20 2e 00 Found device from vendor: (null) USB_control_msg result: 6 61 00 Found device: (null) freebsd8# uname -v FreeBSD 8.0-CURRENT-200906 #0: Mon Jun 29 23:38:52 CEST 2009 r...@freebsd8.intra.mdolze.de:/usr/obj/usr/src/sys/CUSTOM It does not even get string descriptors back (second byte of buffer is 0x00). Avrdude doesn't work either: freebsd8# avrdude -c usbasp -p atmega8 -U eeprom:r:-:h avrdude: error: usbasp_transmit: Unknown error That's maybe a bug in the firmware in your USB device! Can you try reading the strings using usbconfig -u XXX -a YYY dump_string ZZZ What does usbconfig output? --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
Re: Failing controls transfers in VMware
On Tuesday 30 June 2009 22:11:47 Markus Dolze wrote: Markus Dolze wrote: To repeat run the attached program: 1. Fill in some vendor / product ID of a device detected as ugen device 2. Compile and run the code (devel/libusb must be installed). You should use this function when reading strings: int usb_get_string_simple(usb_dev_handle * dev, int index, char *buf, size_t buflen); --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
Re: Failing controls transfers in VMware
Hans Petter Selasky wrote: On Tuesday 30 June 2009 22:04:34 Markus Dolze wrote: Hans Petter Selasky wrote: On Tuesday 30 June 2009 20:46:22 Markus Dolze wrote: Hello, for several days I ways trying to get devel/avrdude to work with an USBasp compatibel device (www.ullihome.de) on FreeBSD 7.2 running as a guest in VMware Workstation 6.5.2. ... FYI: Not a solution maybe, but 8-current has a new USB stack. Works with AVRDUDE. --HPS Hi, yes, I know. Therefore I already tried and the result is even worse. Output from the test program: freebsd8# ./main ./main: Command not found. freebsd8# ./test Found AVR-USB device USB_control_msg result: 20 2e 00 Found device from vendor: (null) USB_control_msg result: 6 61 00 Found device: (null) freebsd8# uname -v FreeBSD 8.0-CURRENT-200906 #0: Mon Jun 29 23:38:52 CEST 2009 r...@freebsd8.intra.mdolze.de:/usr/obj/usr/src/sys/CUSTOM It does not even get string descriptors back (second byte of buffer is 0x00). Avrdude doesn't work either: freebsd8# avrdude -c usbasp -p atmega8 -U eeprom:r:-:h avrdude: error: usbasp_transmit: Unknown error That's maybe a bug in the firmware in your USB device! Can you try reading the strings using usbconfig -u XXX -a YYY dump_string ZZZ What does usbconfig output? --HPS Here's the output: freebsd8# usbconfig -u 0 -a 3 dump_string 1 STRING_0x01 = www.fischl.de freebsd8# usbconfig -u 0 -a 3 dump_string 2 STRING_0x02 = USBasp I already took a problem with the usb stack into account. The stack used is V-USB formerly known as AVR-USB (http://www.obdev.at/products/vusb/index.html). As written previously I tried several different devices including GPS and smartcard terminals with the same bad result. It may also be a problem with VMware's virtual devices or host drivers. Thanks, Markus ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
Re: Failing controls transfers in VMware
Hans Petter Selasky wrote: On Tuesday 30 June 2009 22:11:47 Markus Dolze wrote: Markus Dolze wrote: To repeat run the attached program: 1. Fill in some vendor / product ID of a device detected as ugen device 2. Compile and run the code (devel/libusb must be installed). You should use this function when reading strings: int usb_get_string_simple(usb_dev_handle * dev, int index, char *buf, size_t buflen); Yes, this is more easy, but I crafted the control transfers myself to show that actually the control transfer is failing. Libusb's usb_get_string_simple internally uses to control transfers to read a string. The first one to get a list of supported languages and the second one to actually retrieve the string. I found that the second control transfer always errors out. If I replace the usb_control_msg() in my test program with usb_get_string_simple() I get: r...@freebsd7:./test Found AVR-USB device USB_control_msg result: -5 Warning: cannot query manufacturer for device: error sending control message: Input/output error USB_control_msg result: -5 Warning: cannot query product: error sending control message: Input/output error Thanks, Markus ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
Re: Failing controls transfers in VMware
On Wednesday 01 July 2009 20:31:41 Markus Dolze wrote: Hans Petter Selasky wrote: On Tuesday 30 June 2009 22:11:47 Markus Dolze wrote: Markus Dolze wrote: To repeat run the attached program: 1. Fill in some vendor / product ID of a device detected as ugen device 2. Compile and run the code (devel/libusb must be installed). You should use this function when reading strings: int usb_get_string_simple(usb_dev_handle * dev, int index, char *buf, size_t buflen); Yes, this is more easy, but I crafted the control transfers myself to show that actually the control transfer is failing. Sometimes you have to pass the exact length of the string, and not the maximum length when doing the control request. Libusb's usb_get_string_simple internally uses to control transfers to read a string. The first one to get a list of supported languages and the second one to actually retrieve the string. I found that the second control transfer always errors out. If I replace the usb_control_msg() in my test program with usb_get_string_simple() I get: r...@freebsd7:./test Found AVR-USB device USB_control_msg result: -5 Warning: cannot query manufacturer for device: error sending control message: Input/output error USB_control_msg result: -5 Warning: cannot query product: error sending control message: Input/output error usbconfig is using the same function to dump the device string. Strange you get different results. --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
Re: Failing controls transfers in VMware
On Wednesday 01 July 2009 20:26:35 Markus Dolze wrote: Hans Petter Selasky wrote: On Tuesday 30 June 2009 22:04:34 Markus Dolze freebsd8# usbconfig -u 0 -a 3 dump_string 1 STRING_0x01 = www.fischl.de freebsd8# usbconfig -u 0 -a 3 dump_string 2 STRING_0x02 = USBasp I already took a problem with the usb stack into account. The stack used is V-USB formerly known as AVR-USB (http://www.obdev.at/products/vusb/index.html). As written previously I tried several different devices including GPS and smartcard terminals with the same bad result. It may also be a problem with VMware's virtual devices or host drivers. Try without VM-ware, and see if the result is the same. --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
Card Reader at USD 0.59/pc 1K pcs up (CR35)
Promotional gift with YOUR OWN LOGO Card Reader at USD 0.59/pc 1K pcs up CR35 ( http://rs-tr.com//t.aspx/subid/7647985/camid/25556/rs-tr.com//t.aspx/subid/6782126/camid/25489/www.worldcrown.net/product_info.asp?id=529 ) ( http://rs-tr.com//t.aspx/subid/7647985/camid/25556/rs-tr.com//t.aspx/subid/6782126/camid/25489/worldcrown.net/product_info.asp?id=539 ) ( http://rs-tr.com//t.aspx/subid/7647985/camid/25556/rs-tr.com//t.aspx/subid/6782126/camid/25489/https/rspd_col///www.reasonablespread.com/Management/Campaign/AddCampaignContent.aspx?campaign_id=15518 ) ( http://rs-tr.com//t.aspx/subid/7647985/camid/25556/rs-tr.com//t.aspx/subid/6782126/camid/25489/worldcrown.net/product_info.asp?id=592 ) ( http://rs-tr.com//t.aspx/subid/7647985/camid/25556/rs-tr.com//t.aspx/subid/6782126/camid/25489/www.am730.com.hk/ ) CR25 CR60 CR66 CR53 CR29 CR35 CR55CR23 CR21 For more product details, please visit http://worldcrown.net ( http://rs-tr.com//t.aspx/subid/7647985/camid/25556/rs-tr.com//t.aspx/subid/6782126/camid/25489/worldcrown.net/ ) Please tell me your MSN or Skype so we can discuss directly. My MSN is world.cr...@hotmail.com ( ) and Skype is sales3_worldcrown.net Ms Li _ Direct Line: (852) 31870298 , Email: l...@worldcrown.net ( ), Skype: sales3_worldcrown.net, MSN: world.cr...@hotmail.com ( ) WORLD CROWN ELECTRONICS LTD Hong Kong Office Showroom: Unit 371-374, 3/F., Sino Industrial Plaza, 9 Kai Cheung Road, Kowloon Bay, Kowloon, Hong Kong Tel: (852) 3187 0228 (18 Lines)Fax:(852) 2155 0985 (3 Lines) China Office Address: Unit A516, Automobile Building, 45 Zhenhua Road, Futian District, Shenzhen, China Factory Adddress: 6/F., B7 Building, Xujingchang Industry Park, Fuyuanyi Road, Xinhe Community, Fuyong Street, Bao An District, Shenzhen, China. They trust and rely on us with their important promotional projects. How about you? Please make your first step to contact our sales department. You are ensured that your requirements will be our first priority. Forward this email ( http://rs-ar.com/2400-25556/.newsletter/Card_Reader_at_USD_0.59pc_1K_pcs_up_(CR35)/forward.aspx ) Update Email Profile ( http://rs-sub.com/SubscribeFormDetail.aspx?ens=sdUASjfpOA7IYYkm5rnZ6Q==type=profile ) | Unsubscribe ( http://rs-sub.com/Unsubscribe.aspx?sub=7647985user=2400campid=25556type=p ) ( http://rs-w.com/about.aspx?subid=7647985campid=25556 ) ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org