Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: Device::USB ubuntu 13.10 and bulk read write problem

by zentara (Archbishop)
on Mar 15, 2014 at 11:32 UTC ( #1078435=note: print w/replies, xml ) Need Help??

in reply to Device::USB ubuntu 13.10 and bulk read write problem

Update: see libusb and sync/asyc IO .

I am happy to see this code, as I figure USB devices are going to proliferate. With only a small knowledge of how sockets work, and assuming USB would use a similar protocol, I'm guessing that you have a classic lockup condition, where both ends of the connection are trying to read, or trying to write, at the same time. Nothing gets thru.

You need to get some sort of synchronization going, a protocol, like "over and out", means you are switching to listening, so the other end should now send.

Possibly, just printing a few newlines on a line by themselves, would signal a protocol shift, by flushing the buffers, or whatever it is doing. I notice in the module's example code, they use alot of newlines. :-)

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh
  • Comment on Re: Device::USB ubuntu 13.10 and bulk read write problem

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1078435]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2021-06-13 05:17 GMT
Find Nodes?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)

    Results (54 votes). Check out past polls.