1

I already successfully paired my Android (6.0.1) phone (Sony Xperia Z3) with my laptop (running Ubuntu 14.04). I can send files back and forth. The Bluetooth connection menu shows that the connection switch switches to ON if files are sent.

I tried to establish a persistent conenction using:

sudo rfcomm connect rfcomm0 [MAC ADDRESS] 1

but I always get:

Can't connect RFCOMM socket: Connection refused.

Background: I want to send data from my phone to my laptop via Bluetooth. If I run this code the switch goes on as well, but immediately closes the connection down (switch goes back to OFF).

Logcat shows the following exception:

E/error: error init:java.io.IOException: read failed, socket might closed or timeout, read ret: -1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.