public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Avaited <compuvikas@gmail.com>
To: bluez-devel@lists.sourceforge.net
Subject: [Bluez-devel] hci inquiry error with name scan
Date: Tue, 26 Dec 2006 04:47:47 +0000 (UTC)	[thread overview]
Message-ID: <loom.20061226T054340-711@post.gmane.org> (raw)

hi all 

I am facing a big problem with hci layer process. I have developed a platform
and http wraper for bluetooth services using bluez.  I am searching all device
present in vicinity by using hci.c function 'hci_scan()'. later for each
number(BDADDR) i am searching its name by hci_read_remote_name(). Most of the
time I am getting right name(i.e. what ever name i am giving to my devices ) But
some time name get swaped with some one. Lisk in my case my mobile name was
SHARK and my Machine name was VIKAS [0], VIKAS[1], my friends mobile was GOLD,
SILVER. but when I had done scan name it returned me my mobile,s name as
VIKAS[1]. I am surprise why this happened.

Is there any problem with present bluez stack I am using
bluez-bluefw-1.0-6
bluez-pin-0.23-3
bluez-hcidump-1.11-1
bluez-libs-2.10-2
bluez-utils-2.10-2.1
on redhat 4.0 Enterprise Edition
with kernel 2.6.9-5.EL i386
int getScanName(bdaddr_t *device_bt,char * device_name,bdaddr_t *dongle_bt)
{
        if((s = GetScanSock(dongle_bt)) < 0)    // this will connect to local dongle
        {
                ERR_LOG(ERR,"Unable to open socket");
                return -s;
        }
        if(hci_read_remote_name(s, device_bt,sizeof(device_name),device_name,0) < 0)
        {
                ERR_LOG(DBG,"No Name found");
                close(s);
                return -NOTFOUND;
        }
        ERR_LOG(DBG,"Name of Device hci scan  [%s] DeviceBT
[%s]",device_name,device_bt);
        close(s);
        return 0;
}
this function get called for each device found in scan.


I am in deep trouble to know what is problem with this.

Please help


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

             reply	other threads:[~2006-12-26  4:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-26  4:47 Avaited [this message]
2007-06-01 14:34 ` [Bluez-devel] hci inquiry error with name scan Andreas Gaufer
2007-06-04 13:28   ` Vikas Sinha

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20061226T054340-711@post.gmane.org \
    --to=compuvikas@gmail.com \
    --cc=bluez-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox