Error “rfcomm connection refused” attempting to establish a GPRS modem connection over a Bluetooth phone

This had been working without any problems for months, but this afternoon got an error while trying to connect to the Internet using my Nokia E62 as a Bluetooth modem on a Dell Inspiron E1505 running Ubuntu 8.10. Attempting to establish a dial up connection returned a rude error.

# wvdial E62
rfcomm connection refused

The solution was to remove the file containing the Link Keys used for the Bluetooth challenge-response scheme and letting the system recreate it after a successful bind. On my system this file was named "linkkeys" and lived in /var/lib/bluetooth/[device MAC address]

find /var/lib/bluetooth/ -name linkkeys | xargs rm

Leave a comment

NOTE: Enclose quotes in <blockquote></blockquote>. Enclose code in <pre lang="LANG"></pre> (where LANG is one of these).