Ports
May 19, 2013, 11:52:30 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: SMF - Just Installed!
 
   Home   Help Search Login Register  
Welcome to the PORTS Forum. Please post your questions, answers, and comments relating to USB and other hardware interfaces in the appropriate forums below. - Jan
Pages: [1]
  Print  
Author Topic: Winusb CS problem with application or device ?  (Read 2965 times)
nrw7
Member
*
Posts: 7


« 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 » Logged
Jan Axelson
Administrator
Frequent Contributor
*****
Posts: 1625


WWW
« 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
Logged
nrw7
Member
*
Posts: 7


« 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.
Logged
Jan Axelson
Administrator
Frequent Contributor
*****
Posts: 1625


WWW
« 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
Logged
nrw7
Member
*
Posts: 7


« 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?
Logged
Jan Axelson
Administrator
Frequent Contributor
*****
Posts: 1625


WWW
« Reply #5 on: February 12, 2011, 09:44:36 am »

Describe the problem you are seeing.

Jan
Logged
nrw7
Member
*
Posts: 7


« 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.
Logged
Jan Axelson
Administrator
Frequent Contributor
*****
Posts: 1625


WWW
« 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
Logged
nrw7
Member
*
Posts: 7


« 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?
Logged
Jan Axelson
Administrator
Frequent Contributor
*****
Posts: 1625


WWW
« Reply #9 on: February 15, 2011, 10:56:46 am »

My WinUSB example application doesn't control the LEDs.

Jan
Logged
nrw7
Member
*
Posts: 7


« 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?
Logged
Jan Axelson
Administrator
Frequent Contributor
*****
Posts: 1625


WWW
« Reply #11 on: February 28, 2011, 09:29:31 am »

Bulk, interrupt, and isochronous transfers are unidirectional.

Jan
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!