linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Bluez-devel] obtainining client BTADDR during obexserver (1.0-3) session?
@ 2006-04-29 21:12 JP Freeley
  2006-04-29 21:49 ` Collin R. Mulliner
  2006-04-30  0:51 ` [Bluez-devel] " JP Freeley
  0 siblings, 2 replies; 3+ messages in thread
From: JP Freeley @ 2006-04-29 21:12 UTC (permalink / raw)
  To: bluez-devel

How would I obtain the BTADDR of the connecting remote device when it 
connects to obexserver (1.0-3)? I would like the server to accept a 
file, parse it and reply accordingly to the device which sent it.

Any help, direction, pointers, snippets would be greatly appreciated.

Thanks,

jpf


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] obtainining client BTADDR during obexserver (1.0-3) session?
  2006-04-29 21:12 [Bluez-devel] obtainining client BTADDR during obexserver (1.0-3) session? JP Freeley
@ 2006-04-29 21:49 ` Collin R. Mulliner
  2006-04-30  0:51 ` [Bluez-devel] " JP Freeley
  1 sibling, 0 replies; 3+ messages in thread
From: Collin R. Mulliner @ 2006-04-29 21:49 UTC (permalink / raw)
  To: bluez-devel

Hi,

checkout sobexsrv at http://www.mulliner.org/bluetooth/sobexsrv.php its
a secriptable obexserver.


Collin

On Sat, 2006-04-29 at 17:12 -0400, JP Freeley wrote:
> How would I obtain the BTADDR of the connecting remote device when it 
> connects to obexserver (1.0-3)? I would like the server to accept a 
> file, parse it and reply accordingly to the device which sent it.
> 
> Any help, direction, pointers, snippets would be greatly appreciated.
> 
> Thanks,
> 
> jpf
> 
> 
> -------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Bluez-devel mailing list
> Bluez-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-devel
--
Collin R. Mulliner <collin@betaversion.net>
BETAVERSiON Systems [www.betaversion.net]
info/pgp: finger collin@betaversion.net
If Bill Gates had a nickel for every time Windows crashed... Oh wait, he
does!



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* [Bluez-devel] Re: obtainining client BTADDR during obexserver (1.0-3) session?
  2006-04-29 21:12 [Bluez-devel] obtainining client BTADDR during obexserver (1.0-3) session? JP Freeley
  2006-04-29 21:49 ` Collin R. Mulliner
@ 2006-04-30  0:51 ` JP Freeley
  1 sibling, 0 replies; 3+ messages in thread
From: JP Freeley @ 2006-04-30  0:51 UTC (permalink / raw)
  Cc: bluez-devel

Thanks Colllin .. ran into a bit of a snag .. "address already in use on 
channel 1"

I assume that I must use channel 1 since my handheld device has OPUSH on 
channel 1.

# sdptool search opush
Inquiring ...
Searching for opush on 00:07:E0:xx.xx.xx ...
Service Name: OBEX Object Push
Service RecHandle: 0x10001
Service Class ID List:
  "OBEX Object Push" (0x1105)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 1
  "OBEX" (0x0008)
Language Base Attr List:
  code_ISO639: 0x656e
  encoding:    0x8cc
  base_offset: 0x100

Perhaps I'm wrong .. thanks...perhaps usefull output below..

$ sobexsrv -l ONPTD -s 1 -iRS -r /tmp -c 1
server bind: : Address already in use

$sdptool browse local
Browsing FF:FF:FF:00:00:00 ...

#hciconfig -a
hci0:   Type: USB
        BD Address: 00:03:C9:xx.xx.xx ACL MTU: 1017:8 SCO MTU: 64:0
        UP RUNNING PSCAN ISCAN
        RX bytes:1093 acl:30 sco:0 events:55 errors:0
        TX bytes:1251 acl:30 sco:0 commands:31 errors:0
        Features: 0xff 0xff 0x8d 0xfe 0x9b 0xf9 0x00 0x80
        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
        Link policy: RSWITCH HOLD SNIFF PARK
        Link mode: SLAVE ACCEPT
        Name: 'Device03-0'
        Class: 0x000100
        Service Classes: Unspecified
        Device Class: Computer, Uncategorized
        HCI Ver: 2.0 (0x3) HCI Rev: 0x2000 LMP Ver: 2.0 (0x3) LMP 
Subver: 0x4127
        Manufacturer: Broadcom Corporation (15)

#rfcomm -a
#





-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

end of thread, other threads:[~2006-04-30  0:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-29 21:12 [Bluez-devel] obtainining client BTADDR during obexserver (1.0-3) session? JP Freeley
2006-04-29 21:49 ` Collin R. Mulliner
2006-04-30  0:51 ` [Bluez-devel] " JP Freeley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).