安卓应用之串口编程相关问题

串口是不是有什么监听事件,来处理接收到的数据
(例如判断接收的到数据是否正确)

    @Override
    protected void onDataReceived(final byte[] buffer, final int size) {
        runOnUiThread(new Runnable() {
            public void run() {
            if (mReception != null) {
                    mReception.append(new String(buffer, 0, size));

有哪位好心人做过类似的,指导一下。