bulk in often lose packet

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
nhchmg
Posts: 8
Joined: Mon Sep 28, 2009 3:59 am

bulk in often lose packet

Post by nhchmg » Thu Oct 15, 2009 10:26 am

I will implements mass storage class on v-usb, mass stroage class must use bulk in,bulk out. when read a sector,need 64 packets(8 bytes per packet),often lose packet.
I look usb 1.1 spec, when bulk in transfer,host will send ack.
1.whether or not v-usb check ack?
2.How to send empty bulk in packet?

Guest

Re: bulk in often lose packet

Post by Guest » Sun Oct 18, 2009 8:47 pm

q)whether or not v-usb check ack?
a) Check ACK by Youself if you need it
q)How to send empty bulk in packet?
a) Just send ACK!(status)

christian
Objective Development
Objective Development
Posts: 1443
Joined: Thu Nov 09, 2006 11:46 am

Re: bulk in often lose packet

Post by christian » Sat Oct 24, 2009 11:15 pm

Bulk endpoints with V-USB are really tricky. The USB polling consumes most if not all of the CPU time. If the interrupt service routine comes too late, you lose a packet. Since V-USB does not implement error handling (no CRC checks etc), you may lose packets.

Post Reply