We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hello. again... i don't know your e-mail. so, i'll write here. and simply. base source code is this android-serialport-api. and only changed SerialPortActivity.java file. --- original source --------------------------- private class ReadThread extends Thread { @Override public void run() { super.run(); while(!isInterrupted()) { int size; try { byte[] buffer = new byte[64]; if (mInputStream == null) return; size = mInputStream.read(buffer); if (size > 0) { onDataReceived(buffer, size); } } catch (IOException e) { e.printStackTrace(); return; } catch(Exception e){ } } } } --------------------------------------------------- ----- and changed --------------------------------- private class ReadThread extends Thread { @Override public void run() { super.run(); while(!isInterrupted()) { int size; try { byte[] buffer = new byte[64]; if (mInputStream == null) return; size = mInputStream.read(buffer); if (size > 0) { onDataReceived(buffer, size); } } catch (IOException e) { e.printStackTrace(); return; } catch(Exception e){ } try { Thread.sleep(1000); }catch(InterruptedException e){ } } } } --------------------------------------------- just added Thread.sleep(1000); and try to send '1' -- 600ms lather --> '2' -- 600ms later -> '3' ....~ then this source can't receive all of char. this source will received '1', '3', '5'....~
Original issue reported on code.google.com by [email protected] on 2 Jul 2014 at 8:40
[email protected]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Original issue reported on code.google.com by
[email protected]
on 2 Jul 2014 at 8:40The text was updated successfully, but these errors were encountered: