2007-04-16 13:08:33

by siddhant tewari

[permalink] [raw]
Subject: [Bluez-users] problem using two bluetooth dongles together

hi,
I am using bluez on arm single board computer and i am facing this
strange problem.

When i am using only one bluetooth dongle , hciconfig correctly reports the
bluetooth address of the dongle but when i insert a second dongle then the
second dongles bt address is reported as 00:00:00:00:00:00 .

Both the dongles individually work fine.

Can anyone tell me what can be the cause for such a problem ????

regards
siddhant


Attachments:
(No filename) (431.00 B)
(No filename) (483.00 B)
(No filename) (286.00 B)
(No filename) (164.00 B)
Download all attachments

2007-04-17 04:56:27

by siddhant tewari

[permalink] [raw]
Subject: Re: [Bluez-users] problem using two bluetooth dongles together

hi Marcel,
Thanks for the advice , will surely port to 2.6 kernel.
regards
siddhant

On 4/16/07, Marcel Holtmann <[email protected]> wrote:
>
> Hi Siddhant,
>
> > I will try to upgrade to 2.6 kernel but since this is arm Single
> > Board Computer , i am not sure about the effort and time that would
> > be required to do so.
> >
> > I have another observation to share with you .
> >
> > When using two dongle , if i put hci0 down by hciconfig hci0 down
> > and then put hci1 up by hciconfig hci1 up
> > then hciconfig returns correct address for the second adapter as well.
> >
> > Also if i try to put hci1 up without putting hci0 down then same
> > thing
> > ----- "cannot contact hci1 connection timed out" message appears.
> >
> > Please reply if you can give me some hints about whats happening after
> > going through the above observation.
>
> I am pretty sure that is the USB subsystem. Since when you down the
> adapter all URBs will be canceled. So you can try to change the
> constants for the number of URBs in hci_usb.h and recompile your kernel.
> You can also try to disable ISOC transfers (SCO support for the driver)
> and see if that takes the bandwidth pressure from the USB bus.
>
> However, the 2.6 USB subsystem is really the way to go. No effort on
> porting to 2.6 is wasted.
>
> Regards
>
> Marcel
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Bluez-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bluez-users
>


Attachments:
(No filename) (1.78 kB)
(No filename) (2.47 kB)
(No filename) (286.00 B)
(No filename) (164.00 B)
Download all attachments

2007-04-16 17:28:51

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] problem using two bluetooth dongles together

Hi Siddhant,

> I will try to upgrade to 2.6 kernel but since this is arm Single
> Board Computer , i am not sure about the effort and time that would
> be required to do so.
>
> I have another observation to share with you .
>
> When using two dongle , if i put hci0 down by hciconfig hci0 down
> and then put hci1 up by hciconfig hci1 up
> then hciconfig returns correct address for the second adapter as well.
>
> Also if i try to put hci1 up without putting hci0 down then same
> thing
> ----- "cannot contact hci1 connection timed out" message appears.
>
> Please reply if you can give me some hints about whats happening after
> going through the above observation.

I am pretty sure that is the USB subsystem. Since when you down the
adapter all URBs will be canceled. So you can try to change the
constants for the number of URBs in hci_usb.h and recompile your kernel.
You can also try to disable ISOC transfers (SCO support for the driver)
and see if that takes the bandwidth pressure from the USB bus.

However, the 2.6 USB subsystem is really the way to go. No effort on
porting to 2.6 is wasted.

Regards

Marcel



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2007-04-16 16:04:15

by siddhant tewari

[permalink] [raw]
Subject: Re: [Bluez-users] problem using two bluetooth dongles together

hi Marcel,

I will try to upgrade to 2.6 kernel but since this is arm Single Board
Computer , i am not sure about the effort and time that would be required
to do so.

I have another observation to share with you .

When using two dongle , if i put hci0 down by hciconfig hci0 down
and then put hci1 up by hciconfig hci1 up
then hciconfig returns correct address for the second adapter as well.

Also if i try to put hci1 up without putting hci0 down then same thing
----- "cannot contact hci1 connection timed out" message appears.

Please reply if you can give me some hints about whats happening after going
through the above observation.

regards
siddhant



On 4/16/07, Marcel Holtmann <[email protected]> wrote:
>
> Hi Siddhant,
>
> > I am using using kernel 2.4.26.
> > cant find anything with dmesg output.
> >
> > When trying to run hcid at the prompt i am getting
> > message
> >
> > Can't init device hci1 : Connection time out.
> >
> > What can be the possible reasons for this ???
>
> the USB stack in 2.4.26 is very old. So is the Bluetooth stack. You
> should really start using a 2.6 kernel.
>
> My guess is that you have problems with the USB support in this ancient
> kernel.
>
> Regards
>
> Marcel
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Bluez-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bluez-users
>


Attachments:
(No filename) (1.75 kB)
(No filename) (2.80 kB)
(No filename) (286.00 B)
(No filename) (164.00 B)
Download all attachments

2007-04-16 15:36:26

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] problem using two bluetooth dongles together

Hi Siddhant,

> I am using using kernel 2.4.26.
> cant find anything with dmesg output.
>
> When trying to run hcid at the prompt i am getting
> message
>
> Can't init device hci1 : Connection time out.
>
> What can be the possible reasons for this ???

the USB stack in 2.4.26 is very old. So is the Bluetooth stack. You
should really start using a 2.6 kernel.

My guess is that you have problems with the USB support in this ancient
kernel.

Regards

Marcel



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2007-04-16 14:41:15

by siddhant tewari

[permalink] [raw]
Subject: Re: [Bluez-users] problem using two bluetooth dongles together

hi Marcel,
I am using using kernel 2.4.26.
cant find anything with dmesg output.

When trying to run hcid at the prompt i am getting message

Can't init device hci1 : Connection time out.

What can be the possible reasons for this ???

regards
siddhant


On 4/16/07, Marcel Holtmann <[email protected]> wrote:
>
> Hi,
>
> > I am using bluez on arm single board computer and i am facing this
> > strange problem.
> >
> > When i am using only one bluetooth dongle , hciconfig correctly
> > reports the bluetooth address of the dongle but when i insert a second
> > dongle then the second dongles bt address is reported as
> > 00:00:00:00:00:00 .
> >
> > Both the dongles individually work fine.
> >
> > Can anyone tell me what can be the cause for such a problem ????
>
> never tried it on ARM machines. Check the output of dmesg. Maybe your
> USB stack has a problem on ARM. Do you run the latest 2.6 kernel?
>
> Regards
>
> Marcel
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Bluez-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bluez-users
>


Attachments:
(No filename) (1.46 kB)
(No filename) (2.62 kB)
(No filename) (286.00 B)
(No filename) (164.00 B)
Download all attachments

2007-04-16 13:45:30

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] problem using two bluetooth dongles together

Hi,

> I am using bluez on arm single board computer and i am facing this
> strange problem.
>
> When i am using only one bluetooth dongle , hciconfig correctly
> reports the bluetooth address of the dongle but when i insert a second
> dongle then the second dongles bt address is reported as
> 00:00:00:00:00:00 .
>
> Both the dongles individually work fine.
>
> Can anyone tell me what can be the cause for such a problem ????

never tried it on ARM machines. Check the output of dmesg. Maybe your
USB stack has a problem on ARM. Do you run the latest 2.6 kernel?

Regards

Marcel



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users