Hello, I deal with communication Android (tablet android 4.4.2) with our special hardware with FTDI chip via a USB port. I can actually detect the connected devices to the tablet and try to receive data via BulkTransfer. For testing purposes, I use a timer continuously read data through BulkTransfer. As the return value should be the number of received Bytes and I get 2 or 10 or 64 Bytes which seems to be OK. The problem is that in the buffer is only bytes 1 and 96 and others are 0 (or 1 and 98 and others are 0). I guess the problem is in setting of the baudrate of link and I wanted to use a method ControlTransfer to setting it. I come from the example in Java like this :
conn.controlTransfer(0x40, 0x03, 0x001A, 0, null, 0, 0);
and try use :
usbConnection.ControlTransfer(UsbAddressing.XferTypeMask, 3, 26, 0, null, 0, 0);
I have a problem with first paremeter of method. In .net the UsbAddressing not enum with a value of 40 and do not know which value is correct. Or is the problem somewhere else?
Thank you for the info