Testing bluetooth device: Virtual HCI device
From: Neeraj kushwaha <hidden>
Date: 2009-08-21 06:59:48
Hi All,
I have started to learn BT and to see how it works. I want to test
bluetooth from Virtual HCI device.
I did following steps but still could not get through.
# modprove hci_vhci
Kernel: Bluetooth: Virtual HCI driver ver 1.2
# ls -l /dev/vhci
crw-rw---- 1 root root 10,58 2009-08-21 11:22 /dev/vhci
# hciemu localhost:10
# hciemu localhost:11
# hciconfig hci0 up
# hciconfig hci1 up
# hciconfig -a
hci0: Type: VIRTUAL
BD Address: 7F:00:00:01:00:0A ACL MTU: 192:8 SCO MTU: 0:0
UP RUNNING
RX bytes:0 acl:0 sco:0 events:35 errors:0
TX bytes:681 acl:0 sco:0 commands:35 errors:0
Features: 0xff 0xff 0x8f 0xfe 0x9b 0xf9 0x00 0x80
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy:
Link mode: SLAVE ACCEPT
Name: 'BlueZ (0)'
Class: 0x4a0100
Service Classes: Networking, Capturing, Telephony
Device Class: Computer, Uncategorized
HCI Ver: 2.0 (0x3) HCI Rev: 0x0 LMP Ver: 2.0 (0x3) LMP Subver: 0x0
Manufacturer: Qualcomm (29)
hci1: Type: VIRTUAL
BD Address: 7F:00:00:01:00:0B ACL MTU: 192:8 SCO MTU: 0:0
UP RUNNING
RX bytes:0 acl:0 sco:0 events:34 errors:0
TX bytes:680 acl:0 sco:0 commands:34 errors:0
Features: 0xff 0xff 0x8f 0xfe 0x9b 0xf9 0x00 0x80
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy:
Link mode: SLAVE ACCEPT
Name: 'BlueZ (1)'
Class: 0x4a0100
Service Classes: Networking, Capturing, Telephony
Device Class: Computer, Uncategorized
HCI Ver: 2.0 (0x3) HCI Rev: 0x0 LMP Ver: 2.0 (0x3) LMP Subver: 0x0
Manufacturer: Qualcomm (29)
# l2ping 7F:00:00:01:00:0B
Can't connect: Connection refused
Pl. tell me how to get it working, as this would help to get starton BT.
Thanks & Regards,
Neeraj