Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Mar 2006 13:56:32 +0200
From:      =?ISO-8859-1?Q?Carlos_Fern=E1ndez_Herranz?= <cfernandezh@udc.es>
To:        Iain Hibbert <plunky@rya-online.net>
Cc:        freebsd-bluetooth@freebsd.org
Subject:   Re: About Inquiry_with_RSSI
Message-ID:  <44292470.5020803@udc.es>
In-Reply-To: <1143546159.980113.1641.nullmailer@galant.ukfsn.org>
References:  <4423D096.2010205@udc.es> <44248823.3040907@savvis.net> <44291782.8010003@udc.es> <1143546159.980113.1641.nullmailer@galant.ukfsn.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Sorry, here is the code:


char	*end_inquiry="end_inquiry";
char	*unreachable="unreachable";

//int	timeout;  
int	numeric_bdaddr = 0; 
char	*nodo;  
char	respuesta[20];   


int main(int argc, char *argv[]) {

//  char *cmd, *btaddr;

//  int continuar=1;
  int socket;
  int res;

  char *handle=malloc(5**sizeof*(char));	

  *if* (argc!=3) exit(1);
  nodo=malloc (10**sizeof*(char));

  *if* ((find_hci_name (argv[1]))!=0) continuar=0;
  *else* continuar=1;

  *while* (continuar) {


//    cmd = "inquiry";
/
/    *if*(strcmp(cmd,"inquiry")==0) {

      socket=socket_open(nodo);
      printf("\nWRITE_INQUIRY_MODE: %d \n", hci_write_inquiry_mode(socket, 0x01)); /********************************/
      *if* (hci_inquiry(socket)!=OK) {
	fprintf(stderr,"Inquiry failed\n");
      }
      printf("\nCLOSE SOCKET: %d\n", close(socket));

    }
    *else* *if* (strcmp(cmd,"link")==0) {
	//DO LINK QUALITY
  	}		
///     free(auxstr);		/
  }

  free(nodo);
  *return* (0);	
} //* main *//




Thank you.




Iain Hibbert wrote:

>On Tue, 28 Mar 2006, Carlos Fernández Herranz wrote:
>
>  
>
>>The problem is that the "write_inquiry_mode" command doesn't seem to
>>work, because I only receive " NG_HCI_EVENT_INQUIRY_RESULT" events
>>instead of "NG_HCI_EVENT_INQUIRY_RESULT_WITH_RSSI" ones.
>>
>>Could you tell me if I'm doing something wrong?:
>>    
>>
>
>you dont show where you are actually calling the hci_write_inquiry_mode()
>function, did you actually do that?
>
>iain
>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44292470.5020803>