Skip to contentSkip to conversation

rfcomm gives "no route to host"

Bluez-users Marcus Mikolaiczyk 2 participants 3 messages Mar 16, 2005 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Dear group users,

I got an embedded system using the Infineon Singlestone Bluemoon Module connected over UART. I can successfully start the device and scan for remote devices. I want to start rfcomm to provide a basic serial service
but probably I'm missing something to be successfull.
Kernel 2.4.19 (cannot be changed, cause it's a special port for the tricore 1130 microcontroller)
BLueZ Patch patch-2.4.19-mh18
Bluetooth support compiled in the kernel(no modules)
<*> Bluetooth subsystem support
<*> L2CAP protocol support
< > SCO links support
<*> RFCOMM protocol support
[*] RFCOMM TTY support
<*> BNEP protocol support
[ ] Multicast filter support
[ ] Protocol filter support
Bluetooth device drivers --->
<*> HCI UART driver
[*] UART (H4) protocol support
[ ] BCSP protocol support
< > HCI VHCI (Virtual HCI device) driver

---------- dmesg-output -------------------
...
BlueZ HCI UART driver ver 2.1 Copyright (C) 2000,2001 Qualcomm Inc Written 2000,2001 by Maxim Krasnyansky <[email protected]> TriCore ASC driver version 0.03-std
...
.p_tables: (C) 2000-2002 Netfilter core team
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. BlueZ L2CAP ver 2.3 Copyright (C) 2000,2001 Qualcomm Inc Written 2000,2001 by Maxim Krasnyansky <[email protected]> BlueZ RFCOMM ver 1.1
Copyright (C) 2002 Maxim Krasnyansky <[email protected]> Copyright (C) 2002 Marcel Holtmann <[email protected]> BlueZ BNEP ver 1.2
Copyright (C) 2001,2002 Inventel Systemes
Written 2001,2002 by Clement Moreau <[email protected]> Written 2001,2002 by David Libault <[email protected]> Copyright (C) 2002 Maxim Krasnyanskiy <[email protected]> Looking up port of RPC 100003/2 on 10.0.0.40.......
--------------------------------------------
bash-2.05a# ps -ef
PID Uid Stat Command
...

   32 root     S    hcid: processing events
   36 root     S    /sbin/hciattach -p -b -s 115200 /dev/tts/2 any 

115200 noflow
...
bash-2.05a# hciconfig
hci0: Type: UART

        BD Address: 00:80:37:25:B7:DB ACL MTU: 339:7 SCO MTU: 120:6
        UP RUNNING PSCAN ISCAN
        RX bytes:682 acl:0 sco:0 events:20 errors:0
        TX bytes:345 acl:0 sco:0 commands:15 errors:0

bash-2.05a# hcitool scan
Scanning ...

        00:0F:B3:4D:B8:A9       MIKOBOOK
        00:10:60:A4:59:C9       PC-28

bash-2.05a# rfcomm show
bash-2.05a# rfcomm bind 0
bash-2.05a# rfcomm show
rfcomm0: 00:80:37:25:B7:DB channel 1 clean bash-2.05a# cat /dev/bluetooth/rfcomm/0
cat: /dev/bluetooth/rfcomm/0: No route to host bash-2.05a# echo "Hello World" > /dev/bluetooth/rfcomm/0
bash: /dev/bluetooth/rfcomm/0: No route to host bash-2.05a# rfcomm connect 0 00:80:37:25:B7:DB 1 Can't connect RFCOMM socket: No route to host bash-2.05a# rfcomm connect 0
Can't connect RFCOMM socket: No route to host

Bye Marcus

-------------------------------------------------------
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://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

maintainer
#1 lore raw

Hi Marcus,

Quoted 60 lines

I got an embedded system using the Infineon Singlestone Bluemoon Module connected over UART. I can successfully start the device and scan for remote devices. I want to start rfcomm to provide a basic serial service
but probably I'm missing something to be successfull.
Kernel 2.4.19 (cannot be changed, cause it's a special port for the tricore 1130 microcontroller)
BLueZ Patch patch-2.4.19-mh18
Bluetooth support compiled in the kernel(no modules)
<*> Bluetooth subsystem support
<*> L2CAP protocol support
< > SCO links support
<*> RFCOMM protocol support
[*] RFCOMM TTY support
<*> BNEP protocol support
[ ] Multicast filter support
[ ] Protocol filter support
Bluetooth device drivers --->
<*> HCI UART driver
[*] UART (H4) protocol support
[ ] BCSP protocol support
< > HCI VHCI (Virtual HCI device) driver

---------- dmesg-output -------------------
...
BlueZ HCI UART driver ver 2.1 Copyright (C) 2000,2001 Qualcomm Inc Written 2000,2001 by Maxim Krasnyansky <[email protected]> TriCore ASC driver version 0.03-std
...
.p_tables: (C) 2000-2002 Netfilter core team
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. BlueZ L2CAP ver 2.3 Copyright (C) 2000,2001 Qualcomm Inc Written 2000,2001 by Maxim Krasnyansky <[email protected]> BlueZ RFCOMM ver 1.1
Copyright (C) 2002 Maxim Krasnyansky <[email protected]> Copyright (C) 2002 Marcel Holtmann <[email protected]> BlueZ BNEP ver 1.2
Copyright (C) 2001,2002 Inventel Systemes
Written 2001,2002 by Clement Moreau <[email protected]> Written 2001,2002 by David Libault <[email protected]> Copyright (C) 2002 Maxim Krasnyanskiy <[email protected]> Looking up port of RPC 100003/2 on 10.0.0.40.......
--------------------------------------------
bash-2.05a# ps -ef
PID Uid Stat Command
...

    32 root     S    hcid: processing events
    36 root     S    /sbin/hciattach -p -b -s 115200 /dev/tts/2 any 

115200 noflow
...
bash-2.05a# hciconfig
hci0: Type: UART

         BD Address: 00:80:37:25:B7:DB ACL MTU: 339:7 SCO MTU: 120:6
         UP RUNNING PSCAN ISCAN
         RX bytes:682 acl:0 sco:0 events:20 errors:0
         TX bytes:345 acl:0 sco:0 commands:15 errors:0

bash-2.05a# hcitool scan
Scanning ...

         00:0F:B3:4D:B8:A9       MIKOBOOK
         00:10:60:A4:59:C9       PC-28
Quoted 12 lines

bash-2.05a# rfcomm show
bash-2.05a# rfcomm bind 0
bash-2.05a# rfcomm show
rfcomm0: 00:80:37:25:B7:DB channel 1 clean bash-2.05a# cat /dev/bluetooth/rfcomm/0
cat: /dev/bluetooth/rfcomm/0: No route to host bash-2.05a# echo "Hello World" > /dev/bluetooth/rfcomm/0
bash: /dev/bluetooth/rfcomm/0: No route to host bash-2.05a# rfcomm connect 0 00:80:37:25:B7:DB 1 Can't connect RFCOMM socket: No route to host bash-2.05a# rfcomm connect 0
Can't connect RFCOMM socket: No route to host

you can't connect to yourself. This is not possible with Bluetooth.

	src = 00:80:37:25:B7:DB	(hci0)
	dst = 00:80:37:25:B7:DB (rfcomm0)

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://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#2 lore raw

Hi Marcel,

Quoted 4 lines

you can't connect to yourself. This is not possible with Bluetooth.

	src = 00:80:37:25:B7:DB	(hci0)
	dst = 00:80:37:25:B7:DB (rfcomm0)

OK that makes sence. Sorry for this dumb question.

thanks and regards
Marcus

-------------------------------------------------------
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://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users