So I checked all the properties of my interface and endpoints, and they came
back as the following:

http://mono-for-android.1047100.n5.nabble.com/file/n5711598/usb_properties.jpg 

The "in" address reports XferIsochronous, but the "in" type reports a bulk
endpoint? I apologize if I'm missing something obvious to all of you, but I
don't understand what I'm doing wrong. I try to issue one simple
input/output command like so (I know the format and size of the expected
output, so I make a Byte array containing that information):

            Byte[] input_command = Encoding.ASCII.GetBytes("!001:SYS?\r");
            Byte[] output_buffer = Encoding.ASCII.GetBytes("-0.00000\r");
                     
            connection.ClaimInterface(intf, true);
  
            int result_in = connection.BulkTransfer(endpoint_IN,
input_command, input_command.Length, TIMEOUT);
            int result_out = connection.BulkTransfer(endpoint_OUT,
output_buffer, output_buffer.Length, TIMEOUT);

result_in returns 2, and result_out returns 9; However, the output_buffer is
unchanged.

I noticed in the documentation, it states: "Isochronous endpoints are
currently unsupported." 
http://androidapi.xamarin.com/?link=T%3aAndroid.Hardware.Usb.UsbEndpoint
http://androidapi.xamarin.com/?link=T%3aAndroid.Hardware.Usb.UsbEndpoint 

Can anyone confirm/deny that this might be my issue? 



--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/USB-Communication-Interpreting-Endpoints-tp5711539p5711598.html
Sent from the Mono for Android mailing list archive at Nabble.com.
_______________________________________________
Monodroid mailing list
[email protected]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to