BB USB: how to do free form bulk in
Dave Higton (281) 668 posts |
Bluetooth requires bulk transfers whose length is not known in advance. Nor is the number of transfers, even – and that number can be none. How do I do this on the BeagleBoard, please? I think this has been covered before, but I don’t recall seeing a definitive answer. I don’t know about anyone else, but I’ve never managed to get the timeout to work. This really does screw things when transfers may or may not happen. |
Thomas Milius (126) 44 posts |
From USBDriver 0.50 there is indeed a working simple possibility to do so. However during my surf stick experiments I noted a problem in blocking mode, which blocked my machine entirely even there was definitely data pending on the input stream. In pratice there seems to be a couple of other problems with the special fields: SCSIFS seems to swap “alternate” and “interface”. So you have to handle this by the program yourself. Non blocking seems to mandatory to obtain useable result. DIM IOCTLBlock% 20 REM size must be a multiple of 64/512 + 1 |