2008-10-30 20:00:22

by pavan_savoy

[permalink] [raw]
Subject: Creation of AF_BLUETOOTH socket with HCI_DEV__REG

Hi,

Can there be a scenario where an application can do a hci_open_dev and use the Bluetooth Socket, without actually the HCID recieving the HCI_DEV_REG ?

Say a scenario where in only hciattach has been done [UART device] and HCID isn't run at all. Then would any other application make use of the hci_open_dev calls ?


Thanks & Regards,
Pavan Savoy.


--
Hyundai to launch the i20 in India. Catch the exclusive preview on ZigWheels.com
http://www.zigwheels.com/b2cam/newsDetails.action?name=Emb11_20080731&path=/INDT/News/Emb11_20080731&page=1&pagecount=2&utm_source=indmail&utm_medium=footer&utm_content=tracking&utm_campaign=Nletter_07oct2008_ZW


2008-10-30 23:22:26

by Marcel Holtmann

[permalink] [raw]
Subject: Re: Creation of AF_BLUETOOTH socket with HCI_DEV__REG

Hi Pavan,

> Can there be a scenario where an application can do a hci_open_dev
> and use the Bluetooth Socket, without actually the HCID recieving
> the HCI_DEV_REG ?
>
> Say a scenario where in only hciattach has been done [UART device]
> and HCID isn't run at all. Then would any other application make use
> of the hci_open_dev calls ?

I have really no idea what you are trying to achieve here. hciattach
and hcid are not tight together at all.

Regards

Marcel


2008-11-30 10:35:38

by Marcel Holtmann

[permalink] [raw]
Subject: Re: Creation of AF_BLUETOOTH socket with HCI_DEV__REG

Hi,

> I have an application that does a hci_open_dev, and what I am trying to understand from the stack code is why can't [and further on how can..] my application do the hci_open_dev [basically the socket(AF_BLUETOOTH)], without the hcid service being On.
>
> note: I have to do hciattach because I need to use UART.

it still makes no sense. And you don't need hcid to make Bluetooth work.
However you will be fairly limited to what you can do when it you run a
system without hcid or bluetoothd for that matter.

Regards

Marcel



2008-11-03 16:26:10

by pavan_savoy

[permalink] [raw]
Subject: Re: Creation of AF_BLUETOOTH socket with HCI_DEV__REG

Hi,

I have an application that does a hci_open_dev, and what I am trying to understand from the stack code is why can't [and further on how can..] my application do the hci_open_dev [basically the socket(AF_BLUETOOTH)], without the hcid service being On.

note: I have to do hciattach because I need to use UART.


----- Original Message -----
From: Marcel Holtmann <[email protected]>
To: pavan savoy <[email protected]>
Cc: [email protected]
Sent: Fri, 31 Oct 2008 04:52:26 +0530 (IST)
Subject: Re: Creation of AF_BLUETOOTH socket with HCI_DEV__REG

Hi Pavan,

> Can there be a scenario where an application can do a hci_open_dev
> and use the Bluetooth Socket, without actually the HCID recieving
> the HCI_DEV_REG ?
>
> Say a scenario where in only hciattach has been done [UART device]
> and HCID isn't run at all. Then would any other application make use
> of the hci_open_dev calls ?

I have really no idea what you are trying to achieve here. hciattach
and hcid are not tight together at all.

Regards

Marcel




--
Hyundai to launch the i20 in India. Catch the exclusive preview on ZigWheels.com
http://www.zigwheels.com/b2cam/newsDetails.action?name=Emb11_20080731&path=/INDT/News/Emb11_20080731&page=1&pagecount=2&utm_source=indmail&utm_medium=footer&utm_content=tracking&utm_campaign=Nletter_07oct2008_ZW