Skip to contentSkip to conversation

acm/ttyACM0/cdc_acm does not deliver data

DISCUSSION AW 3 participants 3 messages Oct 6, 2011

lore
Share & tools
lore

AW

author
#0 lore raw

Hi!

I made some USB devices using the CDC-ACM proposal... They work fine with 2.6.38.8-35.fc15/amd64 and earlier.

But since 2.6.40-4.fc15/amd64 it doesnt work as before...

My device receives a byte and then echoes it...
Sometimes when the 65th byte is sent, a read(2) returns with 0...
When I close the device and open it again and send 1 byte, I receive the echo for the 65th byte...
(btw: after 65 bytes, the roles change: my self-tinkered device sends 65bytes and listens to the echoes...)
Funnily some 65-byte-sequences are always echoed as before, while some are not (I tried it at least 10 times; I think the "bad" sequences had a lot of zeroes...)...

On my headless Atom N270 I have 1 self-tinkered USB-ACM-device and 2 DVB-T USB sticks... When I boot the 2.6.40 kernel it crashes after some minutes...

Can we change that somehow? *wag tail*
Is it safe to use 2.6.38.8-35 behind a NAT? (I mean: r there big security holes?)

PS: I reported it here https://bugzilla.redhat.com/show_bug.cgi?id=727610 , but fedora/redhat cant help me so much, because i m the only one who has that problem...

Thx.

Bye
Arne

#1 lore raw
Quoted 6 lines · AW

Hi!

I made some USB devices using the CDC-ACM proposal... They work fine with 2.6.38.8-35.fc15/amd64 and earlier.

But since 2.6.40-4.fc15/amd64 it doesnt work as before...

Can you try a kernel.org release instead of a Fedora kernel? Does this work on 3.0.6? If not, please post the output of running the usbmon tool when trying to do this to the linux-usb mailing list and we will try to help you out there.

greg k-h

#2 lore raw
Quoted 10 lines · Greg KH
Quoted 6 lines · AW

Hi!

I made some USB devices using the CDC-ACM proposal... They work fine with 2.6.38.8-35.fc15/amd64 and earlier.

But since 2.6.40-4.fc15/amd64 it doesnt work as before...

Can you try a kernel.org release instead of a Fedora kernel?  Does this work on 3.0.6?

He's tried 2.6.40.6, which is analogous to 3.0.6. It still fails according to the report.

Your suggestion of using a vanilla kernel is fine, but I wouldn't expect different results. We have a fairly small set of patches, none of which seem to jump out as impacting this.

josh