ftdi

Transferring data USB

一世执手 提交于 2019-11-26 09:34:07
问题 I am trying to send and receive data over USB, my device, the Acer Iconia A500 has everything needed to connect to the device and everything, that is fine and works properly, but when I try sending and receiving data it doesn\'t behave as expected. This is my code for( ; ; ) { //this is the main loop for transferring String get = \"$getPos\"; byte[] getBytes = get.getBytes(); conn.bulkTransfer( epOUT, getBytes, getBytes.length, 500 ); try { Thread.sleep( 500 ); byte[] buffer = new byte[4096];