UsbSerial icon indicating copy to clipboard operation
UsbSerial copied to clipboard

Not receiving data for all commands

Open kcdhaker1987 opened this issue 9 years ago • 0 comments

When is write below commands try { byte[] arr={1,0,1,0,12,4,54,(byte)253}; usbService.write(arr); Thread.sleep(2000); byte[] arr1={1,0,1,0,12,2,70,26}; usbService.write(arr1); Thread.sleep(2000); byte[] arr2={1,0,1,0,11,0,(byte)239,(byte)238}; usbService.write(arr2); Thread.sleep(2000); byte[] arr3={1,0,1,0,10,0,(byte)220,(byte)223};//Time usbService.write(arr3); Thread.sleep(2000); byte[] arr4={2,0,1,0,19,1,0,(byte)227,(byte)176}; usbService.write(arr4); Thread.sleep(2000); byte[] arr5={2,0,1,0,19,1,1,(byte)243,(byte)145}; usbService.write(arr5); Thread.sleep(2000); byte[] arr6={3,0,1,0,19,6,0,0,(byte)191,(byte)14}; usbService.write(arr6); Thread.sleep(2000); byte[] arr7={3,0,1,0,19,6,1,0,(byte)140,(byte)63}; usbService.write(arr7); Thread.sleep(2000); byte[] arr8={3,0,1,0,19,6,0,3,(byte)143,(byte)109}; usbService.write(arr8); Thread.sleep(2000); byte[] arr9={3,0,1,0,19,6,1,3,(byte)188,(byte)92}; usbService.write(arr9); Thread.sleep(2000); byte[] arr10={3,0,1,0,19,6,0,2,(byte)159,(byte)76}; usbService.write(arr10); Thread.sleep(2000); byte[] arr11={3,0,1,0,19,6,1,2,(byte)172,(byte)125}; usbService.write(arr11); } catch (InterruptedException e) { //e.printStackTrace(); display.append(e.getMessage()); }

I am not getting response for almost last 7 (arr5 to arr11) command doesn't produce any output

kcdhaker1987 avatar May 25 '17 11:05 kcdhaker1987