Sorry for a mistake. The code is working fine but I am facing problem if I want to change the outData i.e. either increase the size, reduce the size or change the data.
Thanks, Sanjay Gupta ------- Original Message ------- Sender : SANJAY GUPTA<gupta.san...@samsung.com> S5/Senior Engineer/Architecture Analysis Lab./Samsung Electronics Date : Oct 02, 2013 19:23 (GMT+09:00) Title : [javax-usb-devel] Hang problem with UsbPipe.syncSubmit(byte[]) Hi All, Please look below the sample scenario:- final byte[] outData = new byte[] { (byte) 0x00, (byte) 0x01, (byte) 0x02, (byte) 0x03, (byte) 0x04, (byte) 0x05, (byte) 0x06, (byte) 0x07, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x08, (byte) 0x09, (byte) 0x0A, (byte) 0x01B, (byte) 0x0C, (byte) 0x0D, (byte) 0x0E, (byte) 0x0F, (byte) 0x00, (byte) 0x01, (byte) 0x02, (byte) 0x03, (byte) 0x04, (byte) 0x05, (byte) 0x06, (byte) 0x07, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00 } final byte[] inData = new byte[13]; log("Synchronously submitting the byte[] to UsbPipe ..."); outUsbPipe.syncSubmit(data); //Synchronously read the status from IN UsbPipe log("Synchronously reading the status from IN UsbPipe ..."); inUsbPipe.syncSubmit(inData); This code is working fine but I am facing problem if I want to change (reduce/reduce/modify) the outData. The control gets hang on reading the status data from the Input UsbPipe. Any suggestion on below points will be helpful:- 1. Is there any specific data format (may be starting header) in the actual data being transferred? 2. What is the data size which can be transferred using single invocation of syncSubmit()? 3. What is the status data size which is received on Input Pipe as a result of out data transfer? Thanks in Advance.. Sanjay Gupta ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk _______________________________________________ javax-usb-devel mailing list javax-usb-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/javax-usb-devel ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk _______________________________________________ javax-usb-devel mailing list javax-usb-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/javax-usb-devel