All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] bizzare result when getting the bluetooth address
@ 2004-02-02  9:34 jan d tux
  2004-02-02 11:55 ` Marcel Holtmann
  0 siblings, 1 reply; 5+ messages in thread
From: jan d tux @ 2004-02-02  9:34 UTC (permalink / raw)
  To: BlueZ Mailing List

Good day to all.

Can anybody help me figure out why the bluetooth address I am getting is
not right?

What I am trying to do is get the bluetooth address of the sender/peer
to my obex server.

Here are the obex calls I made:
--------
	handle = OBEX_Init(OBEX_TRANS_BLUETOOTH, obex_event, 0);

	BtOBEX_ServerRegister(handle, NULL, OBEX_PUSH_HANDLE);

	btobex_accept(handle);

	OBEX_HandleInput(handle, 1);

	//get addresss
	
	fd = OBEX_GetFD(handle);
	if( fd < 0 )
		return 0;

	getpeername(fd,(struct sockaddr *)&sa,&len)
		return 0;

	baswap(&bdaddr, &sa.rc_bdaddr);
	printf("\tADDRESS: %s\n", batostr(&bdaddr));
--------


when i run the program, i was able to get the following:
        channel: 10	
        family: 31
        ADDRESS 2: 00:0A:00:02:EE:69 -> this is not the bluetooth
address of the sender!!! Its address is 00:02:EE:69:E1:88. The last for
digits displayed are the 1st four digits of the device's real address. I
tried it with another device and the result is the same, from the
original address (00:E0:03:74:38:8E) to 00:0A:00:E0:03:74.

Bdw, I am using openobex.

Any help would be appreciated.


Thanks :)


Also, thanks to Marcel for replying to my first email: Getting remote
device address & name using obex commands

-- 

~jan



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-02-04  1:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-02  9:34 [Bluez-users] bizzare result when getting the bluetooth address jan d tux
2004-02-02 11:55 ` Marcel Holtmann
2004-02-03  2:57   ` jan d tux
2004-02-03 11:30     ` Marcel Holtmann
2004-02-04  1:33       ` jan d tux

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.