Skip to contentSkip to conversation

rfcomm problems

Bluez-users Andrew de Quincey 2 participants 4 messages Nov 24, 2004 – Nov 25, 2004 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hi, I'm using linux kernel 2.6.9, gentoo, bluez-utils/libs 2.10. I have a Nokia 3650, with firmware 3.16.

I've initially been just trying to connect to the phone using rfcomm...

rfcomm connect 0 MACADDR 1

this works - I get the "Press Ctrl-C to hangup" and /dev/rfcomm0 appears (using udev BTW).

I then try to use minicom on /dev/rfcomm0. It opens it OK, but nothing happens... I mean, I send AT commands at it, but I get no response. Do I have to use a certain set of serial port settings (I've tried quite a few)?

I also tried running hcidump whilst typing stuff in minicom - nothing was logged.

What am I missing?

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

maintainer
#1 lore raw

Hi Andrew,

Quoted 5 lines

Hi, I'm using linux kernel 2.6.9, gentoo, bluez-utils/libs 2.10. I have a Nokia 3650, with firmware 3.16.

I've initially been just trying to connect to the phone using rfcomm...

Quoted 8 lines

rfcomm connect 0 MACADDR 1

this works - I get the "Press Ctrl-C to hangup" and /dev/rfcomm0 appears (using udev BTW).

I then try to use minicom on /dev/rfcomm0. It opens it OK, but nothing happens... I mean, I send AT commands at it, but I get no response. Do I have to use a certain set of serial port settings (I've tried quite a few)?

No. This should simply work.

However some people complained about that minicom and RFCOMM TTY do not work very good together. The BlueZ utils packages contains test/attest.c and you should give it a try.

Quoted 2 lines

I also tried running hcidump whilst typing stuff in minicom - nothing was logged.

Do you started hcidump as root? You must see at least the RFCOMM channel setup.

Regards

Marcel

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#2 lore raw
Quoted 23 lines · Marcel Holtmann

Hi Andrew,

Quoted 7 lines

Hi, I'm using linux kernel 2.6.9, gentoo, bluez-utils/libs 2.10. I have a Nokia 3650, with firmware 3.16.

I've initially been just trying to connect to the phone using rfcomm...

rfcomm connect 0 MACADDR 1

Quoted 7 lines

this works - I get the "Press Ctrl-C to hangup" and /dev/rfcomm0 appears (using udev BTW).

I then try to use minicom on /dev/rfcomm0. It opens it OK, but nothing happens... I mean, I send AT commands at it, but I get no response. Do I have to use a certain set of serial port settings (I've tried quite a few)?

No. This should simply work.

However some people complained about that minicom and RFCOMM TTY do not work very good together. The BlueZ utils packages contains test/attest.c and you should give it a try.

Quoted 5 lines
Quoted 2 lines

I also tried running hcidump whilst typing stuff in minicom - nothing was logged.

Do you started hcidump as root? You must see at least the RFCOMM channel setup.

Nice one! I've now got GPRS and everything working. I can confirm minicom just does not work with it.

OK: my next question is about the "Bluetooth serial port" on the phone. When I connect to it with:

rfcomm connect 0 00:60:57:7C:31:49 2

It connects, but then the phone immediately disconnects. A short time later, the phone connects back to my computer on seemingly the service with the highest channel id - in my case kbemusedsrv (from kdebluetooth - an XMMS control service for the phone).

kbemused handily has a raw data dump option, and I can see the phone sending what are obviously PPP LCP packets at it.

How do I get the phone to connect to something sensible - e.g. to dund. I found various sets of instructions on the web, but the damn thing keeps connecting to kbedmused.

Is this connect-disconnect-reconnect behaviour normal?

maintainer
#3 lore raw

Hi Andrew,

Quoted 10 lines

OK: my next question is about the "Bluetooth serial port" on the phone. When I connect to it with:

rfcomm connect 0 00:60:57:7C:31:49 2

It connects, but then the phone immediately disconnects. A short time later, the phone connects back to my computer on seemingly the service with the highest channel id - in my case kbemusedsrv (from kdebluetooth - an XMMS control service for the phone).

Quoted 8 lines

kbemused handily has a raw data dump option, and I can see the phone sending what are obviously PPP LCP packets at it.

How do I get the phone to connect to something sensible - e.g. to dund. I found various sets of instructions on the web, but the damn thing keeps connecting to kbedmused.

Is this connect-disconnect-reconnect behaviour normal?

welcome to the world of this mRouter crap. You can try the latest dund from bluez-utils-2.11 package. I added some support for mRouter, but I am not sure if it is really working.

Regards

Marcel

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users