All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] Running bluez on vmware?
@ 2007-04-02  9:44 Frederic Dalleau
  2007-04-02 10:35 ` Marcel Holtmann
  0 siblings, 1 reply; 4+ messages in thread
From: Frederic Dalleau @ 2007-04-02  9:44 UTC (permalink / raw)
  To: bluez development

Hi All,


A coworker is now working on running bluez over vmware. As a part of 
that, he is trying to get a Bluetooth dongle to work (the same dongle 
we've been using three weeks ago).

For far there seem to be a strange "hang" problem of hcid. It seems it 
does not complete the initialization of the device.

I hope some of you might be able to provide some pointers on this issue, 
so I'll present you what he's been able to come up so far.

Setup:

- BT dongle is connected through a USB 1.1 HUB. This is because vmware 
supports only USB1.1 devices (more info is here: 
http://kb.vmware.com/KanisaPlatform/Publishing/612/774_f.SAL_Public.html )

- it is possible to see the device in /proc/bus/usb/devices (its the 
second device, has multiple interfaces):
- After connecting the device it is possible to see two instances of 
hcid. One is stuck in non-interruptible io/sleep (it will stay like that 
until the device is disconnected):

/proc/bus/usb # ps w | grep hcid
 2411 root        724 S   /usr/sbin/hcid -f /etc/bluetooth/hcid.conf
 2423 root        224 D   /usr/sbin/hcid -f /etc/bluetooth/hcid.conf

~ # hciconfig hci0 -a
hci0:   Type: USB
        BD Address: 00:00:00:00:00:00 ACL MTU: 0:0 SCO MTU: 0:0
        DOWN
        RX bytes:14 acl:0 sco:0 events:1 errors:0
        TX bytes:6 acl:0 sco:0 commands:2 errors:0

~ # hciconfig hci0 up

The command does not return (at least for a few minutes).
When I disconnect the device, the following error is displayed (before 
the prompt is displayed again):

Can't init device hci0: Input/output error (5)


- syslog output for connecting the dongle :

Mar 27 12:48:07 Device user.info kernel: usb 1-1: new full speed USB 
device using uhci_hcd and address 5
Mar 27 12:48:08 Device user.info kernel: usb 1-1: configuration #1 
chosen from 1 choice
Mar 27 12:48:08 Device daemon.info hcid[2411]: HCI dev 0 registered
Mar 27 12:48:08 Device daemon.info hcid[2411]: Register 
path:/org/bluez/hci0 fallback:0
Mar 27 10:51:29 Device syslog.info -- MARK --

- syslog output after disconnecting:

Mar 27 13:02:20 Device user.info kernel: usb 1-1: USB disconnect, address 5
Mar 27 13:02:21 Device daemon.info hcid[2411]: HCI dev 0 unregistered
Mar 27 13:02:21 Device daemon.info hcid[2411]: Unregister 
path:/org/bluez/hci0
Mar 27 13:02:21 Device daemon.info hcid[2411]: Device hci0 has been removed
Mar 27 13:02:21 Device daemon.err hcid[2423]: Can't init device hci0: 
Connection timed out (110)

One trace appears when the device is unplugged :
hci_usb_intr_rx_submit: hci0 intr rx submit failed urb c3d70bd4 err -19

Any pointer is welcome,

Best regards,

Frederic


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] Running bluez on vmware?
  2007-04-02  9:44 [Bluez-devel] Running bluez on vmware? Frederic Dalleau
@ 2007-04-02 10:35 ` Marcel Holtmann
  2007-04-02 10:47   ` Frederic Dalleau
  0 siblings, 1 reply; 4+ messages in thread
From: Marcel Holtmann @ 2007-04-02 10:35 UTC (permalink / raw)
  To: BlueZ development

Hi Frederic,

> A coworker is now working on running bluez over vmware. As a part of 
> that, he is trying to get a Bluetooth dongle to work (the same dongle 
> we've been using three weeks ago).
> 
> For far there seem to be a strange "hang" problem of hcid. It seems it 
> does not complete the initialization of the device.
> 
> I hope some of you might be able to provide some pointers on this issue, 
> so I'll present you what he's been able to come up so far.
> 
> Setup:
> 
> - BT dongle is connected through a USB 1.1 HUB. This is because vmware 
> supports only USB1.1 devices (more info is here: 
> http://kb.vmware.com/KanisaPlatform/Publishing/612/774_f.SAL_Public.html )
> 
> - it is possible to see the device in /proc/bus/usb/devices (its the 
> second device, has multiple interfaces):
> - After connecting the device it is possible to see two instances of 
> hcid. One is stuck in non-interruptible io/sleep (it will stay like that 
> until the device is disconnected):
> 
> /proc/bus/usb # ps w | grep hcid
>  2411 root        724 S   /usr/sbin/hcid -f /etc/bluetooth/hcid.conf
>  2423 root        224 D   /usr/sbin/hcid -f /etc/bluetooth/hcid.conf
> 
> ~ # hciconfig hci0 -a
> hci0:   Type: USB
>         BD Address: 00:00:00:00:00:00 ACL MTU: 0:0 SCO MTU: 0:0
>         DOWN
>         RX bytes:14 acl:0 sco:0 events:1 errors:0
>         TX bytes:6 acl:0 sco:0 commands:2 errors:0
> 
> ~ # hciconfig hci0 up
> 
> The command does not return (at least for a few minutes).
> When I disconnect the device, the following error is displayed (before 
> the prompt is displayed again):
> 
> Can't init device hci0: Input/output error (5)
> 
> 
> - syslog output for connecting the dongle :
> 
> Mar 27 12:48:07 Device user.info kernel: usb 1-1: new full speed USB 
> device using uhci_hcd and address 5
> Mar 27 12:48:08 Device user.info kernel: usb 1-1: configuration #1 
> chosen from 1 choice
> Mar 27 12:48:08 Device daemon.info hcid[2411]: HCI dev 0 registered
> Mar 27 12:48:08 Device daemon.info hcid[2411]: Register 
> path:/org/bluez/hci0 fallback:0
> Mar 27 10:51:29 Device syslog.info -- MARK --
> 
> - syslog output after disconnecting:
> 
> Mar 27 13:02:20 Device user.info kernel: usb 1-1: USB disconnect, address 5
> Mar 27 13:02:21 Device daemon.info hcid[2411]: HCI dev 0 unregistered
> Mar 27 13:02:21 Device daemon.info hcid[2411]: Unregister 
> path:/org/bluez/hci0
> Mar 27 13:02:21 Device daemon.info hcid[2411]: Device hci0 has been removed
> Mar 27 13:02:21 Device daemon.err hcid[2423]: Can't init device hci0: 
> Connection timed out (110)
> 
> One trace appears when the device is unplugged :
> hci_usb_intr_rx_submit: hci0 intr rx submit failed urb c3d70bd4 err -19

this is not VMware related. It is the hub in between. Try to use a newer
kernel. I never figured out why this actually fails.

Regards

Marcel



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] Running bluez on vmware?
  2007-04-02 10:35 ` Marcel Holtmann
@ 2007-04-02 10:47   ` Frederic Dalleau
  2007-04-02 10:54     ` Marcel Holtmann
  0 siblings, 1 reply; 4+ messages in thread
From: Frederic Dalleau @ 2007-04-02 10:47 UTC (permalink / raw)
  To: BlueZ development


Marcel,

Thanks for answering,
Aside from vmware, we also tried qemu and the dongle was working, but it 
was very slow. The whole emulator was locked and reacted from time to 
time, thus we could do a discovery in 5 minutes... We were told this was 
a qemu issue which used blocking IO, but an irda usb device was working 
correctly.
Do you have some ideas about this?

Regards,
Frederic


Marcel Holtmann wrote:
> Hi Frederic,
>
>   
>> A coworker is now working on running bluez over vmware. As a part of 
>> that, he is trying to get a Bluetooth dongle to work (the same dongle 
>> we've been using three weeks ago).
>>
>> For far there seem to be a strange "hang" problem of hcid. It seems it 
>> does not complete the initialization of the device.
>>
>> I hope some of you might be able to provide some pointers on this issue, 
>> so I'll present you what he's been able to come up so far.
>>
>> Setup:
>>
>> - BT dongle is connected through a USB 1.1 HUB. This is because vmware 
>> supports only USB1.1 devices (more info is here: 
>> http://kb.vmware.com/KanisaPlatform/Publishing/612/774_f.SAL_Public.html )
>>
>> - it is possible to see the device in /proc/bus/usb/devices (its the 
>> second device, has multiple interfaces):
>> - After connecting the device it is possible to see two instances of 
>> hcid. One is stuck in non-interruptible io/sleep (it will stay like that 
>> until the device is disconnected):
>>
>> /proc/bus/usb # ps w | grep hcid
>>  2411 root        724 S   /usr/sbin/hcid -f /etc/bluetooth/hcid.conf
>>  2423 root        224 D   /usr/sbin/hcid -f /etc/bluetooth/hcid.conf
>>
>> ~ # hciconfig hci0 -a
>> hci0:   Type: USB
>>         BD Address: 00:00:00:00:00:00 ACL MTU: 0:0 SCO MTU: 0:0
>>         DOWN
>>         RX bytes:14 acl:0 sco:0 events:1 errors:0
>>         TX bytes:6 acl:0 sco:0 commands:2 errors:0
>>
>> ~ # hciconfig hci0 up
>>
>> The command does not return (at least for a few minutes).
>> When I disconnect the device, the following error is displayed (before 
>> the prompt is displayed again):
>>
>> Can't init device hci0: Input/output error (5)
>>
>>
>> - syslog output for connecting the dongle :
>>
>> Mar 27 12:48:07 Device user.info kernel: usb 1-1: new full speed USB 
>> device using uhci_hcd and address 5
>> Mar 27 12:48:08 Device user.info kernel: usb 1-1: configuration #1 
>> chosen from 1 choice
>> Mar 27 12:48:08 Device daemon.info hcid[2411]: HCI dev 0 registered
>> Mar 27 12:48:08 Device daemon.info hcid[2411]: Register 
>> path:/org/bluez/hci0 fallback:0
>> Mar 27 10:51:29 Device syslog.info -- MARK --
>>
>> - syslog output after disconnecting:
>>
>> Mar 27 13:02:20 Device user.info kernel: usb 1-1: USB disconnect, address 5
>> Mar 27 13:02:21 Device daemon.info hcid[2411]: HCI dev 0 unregistered
>> Mar 27 13:02:21 Device daemon.info hcid[2411]: Unregister 
>> path:/org/bluez/hci0
>> Mar 27 13:02:21 Device daemon.info hcid[2411]: Device hci0 has been removed
>> Mar 27 13:02:21 Device daemon.err hcid[2423]: Can't init device hci0: 
>> Connection timed out (110)
>>
>> One trace appears when the device is unplugged :
>> hci_usb_intr_rx_submit: hci0 intr rx submit failed urb c3d70bd4 err -19
>>     
>
> this is not VMware related. It is the hub in between. Try to use a newer
> kernel. I never figured out why this actually fails.
>
> Regards
>
> Marcel
>
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Bluez-devel mailing list
> Bluez-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-devel
>   


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] Running bluez on vmware?
  2007-04-02 10:47   ` Frederic Dalleau
@ 2007-04-02 10:54     ` Marcel Holtmann
  0 siblings, 0 replies; 4+ messages in thread
From: Marcel Holtmann @ 2007-04-02 10:54 UTC (permalink / raw)
  To: BlueZ development

Hi Frederic,

> Aside from vmware, we also tried qemu and the dongle was working, but it 
> was very slow. The whole emulator was locked and reacted from time to 
> time, thus we could do a discovery in 5 minutes... We were told this was 
> a qemu issue which used blocking IO, but an irda usb device was working 
> correctly.

depends on how the IrDA dongles works. If it only uses bulk endpoints
than this is quite clear. Bluetooth uses an interrupt endpoint for the
HCI events and this includes command status and command complete to
report the number of completed packets.

I never looked at the details of the Qemu implementation, but if it
doesn't use the async URB interface then you have problems. VMware is
using this interface and normally works quite good. You might wanna
simply try out VMware Workstation 6.0 beta something.

Regards

Marcel



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

end of thread, other threads:[~2007-04-02 10:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-02  9:44 [Bluez-devel] Running bluez on vmware? Frederic Dalleau
2007-04-02 10:35 ` Marcel Holtmann
2007-04-02 10:47   ` Frederic Dalleau
2007-04-02 10:54     ` Marcel Holtmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.