* using hci0 interface without DEVUP
@ 2010-07-06 12:06 Pavan Savoy
2010-07-06 12:55 ` Marcel Holtmann
0 siblings, 1 reply; 4+ messages in thread
From: Pavan Savoy @ 2010-07-06 12:06 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Marcel Holtmann, kobile, pavan savoy
Hi,=0A=0AIn certain cases, as in using VS commads to communicate with diffe=
rent cores on the combo chips (say, BT, FM, GPS) - we would have to use the=
hci0 interface without it being UP.=0A=0AAs in the hci0 interface still ne=
eds to be invisible (via dbus/bluetoothd) to the system but to be available=
to be use.=0A=0AIs there a way we can do this while registering with the h=
ci ?=0Asay a flag in the struct hci_dev to be by default during registratio=
n HCI_DEV_DOWN to be default state ?=0A=0A
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: using hci0 interface without DEVUP
2010-07-06 12:06 using hci0 interface without DEVUP Pavan Savoy
@ 2010-07-06 12:55 ` Marcel Holtmann
2010-07-06 13:51 ` Pavan Savoy
0 siblings, 1 reply; 4+ messages in thread
From: Marcel Holtmann @ 2010-07-06 12:55 UTC (permalink / raw)
To: pavan_savoy; +Cc: linux-bluetooth, kobile, pavan savoy
Hi Pavan,
> In certain cases, as in using VS commads to communicate with different cores on the combo chips (say, BT, FM, GPS) - we would have to use the hci0 interface without it being UP.
>
> As in the hci0 interface still needs to be invisible (via dbus/bluetoothd) to the system but to be available to be use.
>
> Is there a way we can do this while registering with the hci ?
> say a flag in the struct hci_dev to be by default during registration HCI_DEV_DOWN to be default state ?
it is a pretty simple fact that the HCI device has to up. Otherwise it
is not going to work. Same with an Ethernet interface. That is the
proper state for such interfaces.
What you want is to set RAW mode on the HCI device before bringing it
up. Then bluetoothd will actually ignore it.
However I am not sure what you are really trying to achieve here since
every device will be brought up automatically by bluetoothd. And so you
are already to late to the game at that point.
Regards
Marcel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: using hci0 interface without DEVUP
2010-07-06 12:55 ` Marcel Holtmann
@ 2010-07-06 13:51 ` Pavan Savoy
2010-07-06 14:08 ` Marcel Holtmann
0 siblings, 1 reply; 4+ messages in thread
From: Pavan Savoy @ 2010-07-06 13:51 UTC (permalink / raw)
To: Marcel Holtmann; +Cc: linux-bluetooth, Leibovitch, Kobi, pavan savoy
----- Original Message -----
From: "Marcel Holtmann" <marcel@holtmann.org>
To: "Savoy, Pavan" <pavan_savoy@ti.com>
Cc: <linux-bluetooth@vger.kernel.org>; "Leibovitch, Kobi" <kobile@ti.com>; "pavan savoy"
<pavan_savoy@yahoo.co.in>
Sent: Tuesday, July 06, 2010 6:25 PM
Subject: Re: using hci0 interface without DEVUP
> Hi Pavan,
>
>> In certain cases, as in using VS commads to communicate with different cores on the combo chips
>> (say, BT, FM, GPS) - we would have to use the hci0 interface without it being UP.
>>
>> As in the hci0 interface still needs to be invisible (via dbus/bluetoothd) to the system but to be
>> available to be use.
>>
>> Is there a way we can do this while registering with the hci ?
>> say a flag in the struct hci_dev to be by default during registration HCI_DEV_DOWN to be default
>> state ?
>
> it is a pretty simple fact that the HCI device has to up. Otherwise it
> is not going to work. Same with an Ethernet interface. That is the
> proper state for such interfaces.
device should be UP and RUNNING, I agree, But somehow to hide this from the bluetoothd !! is my
concern,
hide this from bluetoothd, and hence hide this from dbus, so as to hide it from rest of the system
...
> What you want is to set RAW mode on the HCI device before bringing it
> up. Then bluetoothd will actually ignore it.
You mean to say HCI_RAW to the hdev->flags ?
But that has the same effect even now because our HCI commands are HCI_VS, ogf of 0x3f.
> However I am not sure what you are really trying to achieve here since
> every device will be brought up automatically by bluetoothd. And so you
> are already to late to the game at that point.
exactly what I am trying to avoid, as in during hci_register_dev, I provide a flag from my hdev,
telling whether
hci_notify and hence sock internal notification should happen at all ...
Thereby, when I do
set_bit(hdev, NO_NOTIFY);
hci_register_dev(hdev); --> bluetoothd doesn't get notification of a HCI-REG itself.
But the problem would then be, how would I do a DEVUP internally ...
Any hints ??
> Regards
>
> Marcel
>
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: using hci0 interface without DEVUP
2010-07-06 13:51 ` Pavan Savoy
@ 2010-07-06 14:08 ` Marcel Holtmann
0 siblings, 0 replies; 4+ messages in thread
From: Marcel Holtmann @ 2010-07-06 14:08 UTC (permalink / raw)
To: Pavan Savoy; +Cc: linux-bluetooth, Leibovitch, Kobi, pavan savoy
Hi Pavan,
> >> In certain cases, as in using VS commads to communicate with different cores on the combo chips
> >> (say, BT, FM, GPS) - we would have to use the hci0 interface without it being UP.
> >>
> >> As in the hci0 interface still needs to be invisible (via dbus/bluetoothd) to the system but to be
> >> available to be use.
> >>
> >> Is there a way we can do this while registering with the hci ?
> >> say a flag in the struct hci_dev to be by default during registration HCI_DEV_DOWN to be default
> >> state ?
> >
> > it is a pretty simple fact that the HCI device has to up. Otherwise it
> > is not going to work. Same with an Ethernet interface. That is the
> > proper state for such interfaces.
>
> device should be UP and RUNNING, I agree, But somehow to hide this from the bluetoothd !! is my
> concern,
> hide this from bluetoothd, and hence hide this from dbus, so as to hide it from rest of the system
> ...
>
> > What you want is to set RAW mode on the HCI device before bringing it
> > up. Then bluetoothd will actually ignore it.
>
> You mean to say HCI_RAW to the hdev->flags ?
> But that has the same effect even now because our HCI commands are HCI_VS, ogf of 0x3f.
>
> > However I am not sure what you are really trying to achieve here since
> > every device will be brought up automatically by bluetoothd. And so you
> > are already to late to the game at that point.
>
> exactly what I am trying to avoid, as in during hci_register_dev, I provide a flag from my hdev,
> telling whether
> hci_notify and hence sock internal notification should happen at all ...
> Thereby, when I do
>
> set_bit(hdev, NO_NOTIFY);
> hci_register_dev(hdev); --> bluetoothd doesn't get notification of a HCI-REG itself.
>
> But the problem would then be, how would I do a DEVUP internally ...
> Any hints ??
listen to what I said. If you wanna set this as RAW device from the
kernel, then that is fine as well. You can do that. Only exception is
that you can never take this back from userspace:
set_bit(HCI_QUIRK_RAW_DEVICE, &hdev->quirks);
Regards
Marcel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-07-06 14:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-06 12:06 using hci0 interface without DEVUP Pavan Savoy
2010-07-06 12:55 ` Marcel Holtmann
2010-07-06 13:51 ` Pavan Savoy
2010-07-06 14:08 ` Marcel Holtmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).