Google官网给的那个android串口通信程序现在能够发送数据,但是接受不到数据!
问题就出在size= mInputStream.read(buffer),执行到这一步就不往下执行了,求解!
try {
byte[] buffer = new byte[64];
if (mInputStream == null)
return;
size = mInputStream.read(buffer);
if (size > 0) {
onDataReceived(buffer, size);
}
问题就出在size= mInputStream.read(buffer),执行到这一步就不往下执行了,求解!