public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Neeraj kushwaha <kushneeraj@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: Testing bluetooth device: Virtual HCI device
Date: Fri, 21 Aug 2009 12:29:48 +0530	[thread overview]
Message-ID: <df5e18bd0908202359m76f97dfemfc3b77afda8b516c@mail.gmail.com> (raw)

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

             reply	other threads:[~2009-08-21  6:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-21  6:59 Neeraj kushwaha [this message]
2009-08-22 20:00 ` Testing bluetooth device: Virtual HCI device Marcel Holtmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=df5e18bd0908202359m76f97dfemfc3b77afda8b516c@mail.gmail.com \
    --to=kushneeraj@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox