Author Topic: Winusb CS problem with application or device ?  (Read 14547 times)

nrw7

  • Member
  • ***
  • Posts: 7
Winusb CS problem with application or device ?
« on: November 23, 2010, 01:24:33 pm »
Hello i have problems with transfers.
When i click find my device i have massage that device is detected but when i click some transfers i have following errors and when i click again find my device i heve massage device not found:

control transfer:




interrupt:



bulk:





whether the problem may be a device, not the application?

with heneric_hid_cs is working great but i need aplication with winusb

i'm using this keil starter kit:


« Last Edit: November 23, 2010, 01:30:10 pm by nrw7 »

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: Winusb CS problem with application or device ?
« Reply #1 on: November 23, 2010, 01:58:30 pm »
To isolate the problem, use a protocol analyzer or whatever debugging tools you have to find out how the device is responding to the transaction attempts.

Jan

nrw7

  • Member
  • ***
  • Posts: 7
Re: Winusb CS problem with application or device ?
« Reply #2 on: November 23, 2010, 05:06:04 pm »
if I make this board

http://www.create.ucsb.edu/~dano/CUI/

 and flash pic with this dump:

http://www.lvr.com/files/pic_usb_device_winusb_jan_axelson_10.zip

 everything it should be work?

i need test winusb function's for my engineering thesis, and i need device i can do this board.

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: Winusb CS problem with application or device ?
« Reply #3 on: November 23, 2010, 10:05:08 pm »
I'm not familiar with that board specifically, but my firmware is for the 18F4550, and I've heard from folks who have used the firmware with my WinUSB host application on a variety of boards.

Jan

nrw7

  • Member
  • ***
  • Posts: 7
Re: Winusb CS problem with application or device ?
« Reply #4 on: February 11, 2011, 12:13:04 pm »
i build this http://www.create.ucsb.edu/~dano/CUI/ device but firmware from this archive: http://www.lvr.com/files/pic_usb_device_winusb_jan_axelson_10.zip dont work, Who knows what may be the reason?

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: Winusb CS problem with application or device ?
« Reply #5 on: February 12, 2011, 09:44:36 am »
Describe the problem you are seeing.

Jan

nrw7

  • Member
  • ***
  • Posts: 7
Re: Winusb CS problem with application or device ?
« Reply #6 on: February 14, 2011, 03:53:06 am »
bootloader from http://www.create.ucsb.edu/~dano/CUI/  working, hex with hid example code working. when i flash pic using programmer or bootloader with your Flash is no responce to connectig device.

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: Winusb CS problem with application or device ?
« Reply #7 on: February 14, 2011, 11:09:54 am »
As I understand it, your hardware works with a HID example but with my WinUSB example, you are not seeing a response from the device.

Use whatever debugging tools you have to isolate the problem.

A protocol analyzer will show if the device is successfully enumerated and any other communication attempts on the bus. Check the Windows setupapi log for information on what the host is seeing.

In the application software, error messages or locating the lines of code that result in other failures can be useful.

Jan

nrw7

  • Member
  • ***
  • Posts: 7
Re: Winusb CS problem with application or device ?
« Reply #8 on: February 15, 2011, 09:59:27 am »
it seems that the problem was in the hardware side, i changed and add few elements and CUI work with your code for PIC. In picture is what I changed.



i have question about LED's from RD2, RD3 outputs are blinking when i attached board. Can you write me which outputs are outputs for LED status ? and i have question about your Winusb_CS Application when i send control write transfer LEDs should light up?

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: Winusb CS problem with application or device ?
« Reply #9 on: February 15, 2011, 10:56:46 am »
My WinUSB example application doesn't control the LEDs.

Jan

nrw7

  • Member
  • ***
  • Posts: 7
Re: Winusb CS problem with application or device ?
« Reply #10 on: February 28, 2011, 05:50:38 am »
i have question about bulk transfer it is possible separate send from recive as is in Control transfer?

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: Winusb CS problem with application or device ?
« Reply #11 on: February 28, 2011, 09:29:31 am »
Bulk, interrupt, and isochronous transfers are unidirectional.

Jan