List Info

Thread: which line pops up /usr/bin/bluez-pin for input of pin code?




which line pops up /usr/bin/bluez-pin for input of pin code?
user name
2008-04-15 02:34:16
Hi,

when we use "hcitoo cc [mac]";,
a windows "/usr/bin/bluez-pin" pops up , and requires us to input pin code for paring.

Now I want to use console for input of pin code, because I want to use it in embedded system which has no GUI.

So I debugged the code to find out which sentence pops up /usr/bin/bluez-pin.
It turned out to be this sentence in bluez-lib-3.30:

hci.c

int hci_send_cmd(int dd, uint16_t ogf, uint16_t ocf, uint8_t plen, void *param)
{
  .........

  /*****************************here pops up /usr/bin/bluez-pin***********************************************/
 &nbsp;  while (writev(dd, iv, ivn) < 0) {
 &nbsp;   &nbsp;  if (errno == EAGAIN || errno == EINTR)
&nbsp; &nbsp;  &nbsp;   &nbsp;  continue;
  ;   &nbsp;  return -1;
   ; }
 &nbsp;  return 0;
}


I don't know why it is this sentence that pops up /usr/bin/bluez-pin.
Can anyone tell me the reason?
And how should I change source codes so that I can use the console for input of pin code?

Thanks!

Proteus
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )