The Implementation of RFCOMM in Android

Introduction

    RFCOMM provides an emulation of serial cable line settings and status of an RS-232 serial port. RFCOMM is a simple transport protocol over L2CAP. So the protocol could supports up to 60 simultaneous connections between two Bluetooth devices.(The number of connections that may be used simultaneously in a Bluetooth device depends on the implementation). It does not have any ability to correct errors. The reliability relies on Bluetooth baseband.(RFCOMM‘s flow control also uses the basband‘s capabilities.)
    RFCOMM data rate is not configurable with the typical baud rate, e.g. 19200. RFCOMM will transfer the data as fast as it can. The actual data rate will vary, and what the highest data rate is  can be a complicated issue.(see the previous article <How Fast is Bluetooth>) RFCOMM data rates will be limited in devices where there is a physical serial port involved. Implementations may optionally pace data on virtual serial ports.

(be continued...)

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。