fix some bugs in RFCOMM connection, next step is to implement the cross-platform & bluetooth version serial profile.