[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FW: [bluetooth-dev] Several ioctl() at the same time ?
From: Anders Torbjörn Johansson
Sent: Friday, October 05, 2001 12:49 PM
To: 'Alain Paschoud'
Subject: RE: [bluetooth-dev] Several ioctl() at the same time ?
As you describe bt_connect blocks until we receive
connection_cfm. What happend is that you are waiting for a
reply on you ioctl from the bt_connect which won't return
until we got connection_complete. I belive that you are
trying to use linkkeys and therefore need to send a pincode
to the host controller (that's what HCIPINCODEREPLY is for).
If security is switched on you will receive an event from the
host controller asking for a pincode, this is running in
another process and this process can therefore send a reply
back to the host controller. What you need to do if you are
going to use security is to implement a security manager.
Have a look at previous posts on the list, I think someone is
in process of writing a simple one. It is this security
manager that should respond with the ioctl described.
> > -----Original Message-----
> > From: Alain Paschoud [mailto:email@example.com]
> > Sent: Friday, October 05, 2001 12:28 PM
> > To: firstname.lastname@example.org
> > Subject: [bluetooth-dev] Several ioctl() at the same time ?
> > Hello,
> > I try to send a ioctl() with HCIPINCODEREPLY to the stack
> > from a home-make
> > userland program. But when I send that, the stack doesn't
> do anything
> > because he is already dealing with a BTCONNECT ioctl(). But
> > it is in idle
> > mode (until timeout or CONNECTION_COMPLETE happen).
> > After a certain time, the BTCONNECT recieve an error return
> > code (because of
> > the timeout), and
> > finaly, my ioctl with HCIPINCODEREPLY is treated by the
> > stack. But of course
> > it is too late.
> > I need to send a ioctl command when the stack is already
> > treating another
> > one. Is it possible ?
> > If it isn't, what is the goal of the HCIPINCODEREPLY which is in the
> > __bt_ioctl() function ?
> > Thank you for any information about that.
> > --
> > Alain Paschoud SMARTDATA SA
> > email@example.com PSE-A
> > http://www.smartdata.ch 1015 Lausanne
> > Phone +41-21-693'84'98
> > Fax +41-27-693'84'91
> > -
> > To unsubscribe from this list: send the line "unsubscribe
> > bluetooth-dev" in
> > the body of a message to firstname.lastname@example.org
To unsubscribe from this list: send the line "unsubscribe bluetooth-dev" in
the body of a message to email@example.com