Hi Jay, On Tue, Jun 13, 2017 at 8:27 PM, Jay Aurabind <jay.aurabind@xxxxxxxxx> wrote: > Hi, > > I am connecting to a custom bluetooth device (uses RN-42 module). I am > using SPP which I connect from Android (BlueTerm app). The device > continuously sends data through the serial port, and I keep receiving > it in the android app. > > I have pybluez based application (on Arch Linux, Bluez 5) that > connect to RFCOMM socket. This stops receiving data after few seconds, > and I get a timeout error: > > Traceback (most recent call last): > File "Launch.py", line 434, in run > Data = self.sockRF.recv(1) > File "<string>", line 5, in recv > bluetooth.btcommon.BluetoothError: (110, 'Connection timed out') > > What could possible be the reasons? Please check with btmon that should tell the reason why it is disconnecting. > Are there any other methods I can programmatically connect to the data > stream though Bluez 5 ? You could use L2CAP directly but Android probably don't support that. > > -- > > Thanks and Regards, > Aurabindo J > -- > To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html -- Luiz Augusto von Dentz -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html