Skip to contentSkip to conversation

vhci and RFCOMM

Bluez-users Papadopoulos Giannis 3 participants 3 messages Jul 26, 2004 – Jul 27, 2004 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hi!

I am trying to create an RFCOMM connection between 2 virtual adapters in my machine..

I' ve created the adapters and a connection between them...

Everything is OK, but I can't create an RFCOMM connection between them..

Terminal 1:
mordor:/home/dop # hcitool dev
Devices:

        hci0    7F:00:00:01:00:0A
        hci1    7F:00:00:01:00:0B

mordor:/home/dop # hcitool -i 7F:00:00:01:00:0A cc 7F:00:00:01:00:0B mordor:/home/dop # rfcomm -i 7F:00:00:01:00:0A listen /dev/rfcomm0 Waiting for connection on channel 1
Can't open RFCOMM device: No such file or directory mordor:/home/dop #

Terminal2:
dop@mordor:~> rfcomm -i 7F:00:00:01:00:0B connect /dev/rfcomm1 7F:00:00:01:00:0A Can't open RFCOMM device: No such file or directory

What am I doing wrong??

Papadopoulos Giannis
Computer and Communications Engineering Student
University Of Thessaly (UTH)
http://dop.users.uth.gr/

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

maintainer
#1 lore raw

Hi Papadopoulos,

Quoted 18 lines

I am trying to create an RFCOMM connection between 2 virtual adapters in my machine..

I' ve created the adapters and a connection between them...

Everything is OK, but I can't create an RFCOMM connection between them..

Terminal 1:
mordor:/home/dop # hcitool dev
Devices:

        hci0    7F:00:00:01:00:0A
        hci1    7F:00:00:01:00:0B

mordor:/home/dop # hcitool -i 7F:00:00:01:00:0A cc 7F:00:00:01:00:0B mordor:/home/dop # rfcomm -i 7F:00:00:01:00:0A listen /dev/rfcomm0 Waiting for connection on channel 1
Can't open RFCOMM device: No such file or directory mordor:/home/dop #

Quoted 5 lines

Terminal2:
dop@mordor:~> rfcomm -i 7F:00:00:01:00:0B connect /dev/rfcomm1 7F:00:00:01:00:0A Can't open RFCOMM device: No such file or directory

What am I doing wrong??

first, don't use "hcitool cc ...". This command is never needed and it is only there for testing purpose. Who said that you should use it?

Your problem is that you didn't created the RFCOMM device nodes.

Regards

Marcel

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#2 lore raw
In reply to Papadopoulos Giannis

Hi,

Quoted 2 lines

Hi!

<snip>

Quoted 4 lines

mordor:/home/dop # rfcomm -i 7F:00:00:01:00:0A listen /dev/rfcomm0 Waiting for connection on channel 1
Can't open RFCOMM device: No such file or directory mordor:/home/dop #

</snip>

you should create the rfcomm devices, you can creat them as follows.

#mknod /dev/rfcomm0 c 216 0
#mknod /dev/rfcomm1 c 216 0

(for further details read the man pages of mknod)

Regards,

Virat

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users