LOGIN   :::   RECOVER PASS   :::   GET ACCOUNT    
Browse
  • Projects
  • Code (CVS)
  • Forums
  • News
  • Articles
  • Polls
  •  
    OpenCores
  • FAQ
  • CVS HowTo
  • Mission
  • Media
  • Tools
  • Sponsors
  • Mirrors
  • Logos
  • Contact us
  •  
    Tools
  • Search
      
  • Download Cores (CVSGet)
  •  
    More
  • Wishbone
  • Perlilog
  • EDA tools
  • OpenTech CD
  •  
    Navigation: All forums > Usb > Message List > Message Post

    Message

    Reply | Reply all
    Date Prev | Date Next | Thread Prev | Thread Next Date Index | Thread Index

    From: Jeff Lin <jlin87@y...>
    Date: Wed, 12 Nov 2003 14:38:27 -0800 (PST)
    Subject: Re: [usb] how to receive successive data after clear_feature()?
    Top

    Did you double chcek that EP2 was configured correctly as
     IN Endpoint and Bulk-type?
     
    If the settings are  correct, you should make sure EP2 does have data available before
    you make bulk-in request.
     
    Did the probelm solved?
     
    Good luck.

    Gayathri Seshadri <gaysesh@h...> wrote:
    Hi,

    To my knowledge, the mass storage device will not be able to
    differentiate between the bulkIN for the data stage and the
    bulk IN for the CSW on conditions following a short packet. That is why,
    it sends a STALL following a short packet(IN-data). So it is
    required that the software do a CSW(13 bytes) after the clear_feature
    command
    and then proceed on with a successive cbw-[data]-csw patterns..

    Hope the above is clear and correct.

    Do update.

    Regards,
    Gayathri Seshadri.

    ----- Original Message -----
    From: <MIDAS@J...>
    To: <USB@O...>
    Sent: Monday, October 06, 2003 12:09 PM
    Subject: [usb] how to receive successive data after clear_feature()?


    > hi,
    > I'm developing a USB Mass Storage device, Bulk-Only protocol.
    > I use READ(10) command to get data. When bulk-in execute, the
    > host get "STALL". I use clear_feature to clear "STALL". After clear
    > _feature, next bulk-in command get a message "NAK", why?
    >
    > My clear_feature command :
    > Packet 1> SETUP from host to ADDR=0x08, EP = 0
    > Packet 2> DATA0 (0x02 , 0x01 , 00 , 00 , 0x82, 00 , 00 , 00) from host
    > Packet 3> ACK from device to Host
    > Packet 4> IN from host to ADDR=0x08, EP = 0
    > Packet 5> ACK from device to Host
    >
    > ps:My bulk-in command use EP=2 ADDR=0x08.
    >
    > Is my method wrong? Or should I use other commands?
    > Thanks a lot.
    >
    > Do you Yahoo!?
    Protect your identity with Yahoo! Mail AddressGuard
     
    Copyright (c) 1999 OPENCORES.ORG. All rights reserved.