Well you can send data with the submit methods, either asyncSubmit()
or syncSubmit().  The sync method blocks until the data is completely
transferred, while async does not block and you have to check yourself
for when the data finishes transferring.  You can use a simple byte[]
or to control more of the transfer use a UsbIrp.

As far as what to send to the device, that is entirely up to the
specific device's protocol, which is defined by each device
manufacturer...

On 1/23/07, BK <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I want to write a application to read and write data from my USB device.
>
> I looked through the APIs and was able to get a handle to the Endpoint.
> However I am still not clear on how to read/write a particular vendor
> specific data from the device. Any pointer/sample code would be of great
> help.
>
> Please excuse, If this is not the forum for such queries.
>
> Thanks,
> B.K.
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> _______________________________________________
> javax-usb-devel mailing list
> javax-usb-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/javax-usb-devel
>
>
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
javax-usb-devel mailing list
javax-usb-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/javax-usb-devel

Reply via email to