public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* Testing bluetooth device: Virtual HCI device
@ 2009-08-21  6:59 Neeraj kushwaha
  2009-08-22 20:00 ` Marcel Holtmann
  0 siblings, 1 reply; 2+ messages in thread
From: Neeraj kushwaha @ 2009-08-21  6:59 UTC (permalink / raw)
  To: linux-bluetooth

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-08-22 20:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-21  6:59 Testing bluetooth device: Virtual HCI device Neeraj kushwaha
2009-08-22 20:00 ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox