Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Mar 2003 13:35:57 -0800
From:      Maksim Yevmenkin <myevmenk@exodus.net>
To:        Pav Lucistnik <pav@oook.cz>
Cc:        mobile@FreeBSD.ORG
Subject:   Re: Bluetooth stack for FreeBSD
Message-ID:  <3E74EE3D.4040802@exodus.net>
References:  <790A8B1F40ACA848939EBD247AE490302794F6@scl8ex04.int.exodus.net> <1047850759.1356.16.camel@pav.oook.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
Pav,

[...]

> I have mixed success with OBEX so far. I can download items from mobile
> using obexapp connected to IrMC service. But I'm not able to PUT
> anything to the phone. I always get Bad request response.

i just tried to push gif picture from my wife's t68i phone to
my laptop and then push it back to the phone with different
name. everything is working just fine. here is what i did.

1) push gif picture from the phone to the laptop

beetle# sdpd
beetle# sdptool add --channel=1 OPUSH
OBEX Object Push service registered
beetle# sdptool browse ff:ff:ff:00:00:00
Browsing FF:FF:FF:00:00:00 ...
Service Name: SDP Server
Service Description: Bluetooth service discovery server
Service Provider: BlueZ
Service RecHandle: 0x0
Service Class ID List:
   "SDP Server" (0x1000)
Protocol Descriptor List:
   "L2CAP" (0x0100)
     PSM: 1
     Version: 0x0001

Service Name: Public Browse Group Root
Service Description: Root of public group hierarchy
Service Provider: BlueZ
Service RecHandle: 0x8055030
Service Class ID List:
   "Browse Group Descriptor" (0x1001)

Service Name: OBEX Object Push
Service RecHandle: 0x80551d0
Service Class ID List:
   "OBEX Object Push" (0x1105)
Protocol Descriptor List:
   "L2CAP" (0x0100)
   "RFCOMM" (0x0003)
     Channel: 1
   "OBEX" (0x0008)
Profile Descriptor List:
   "OBEX Object Push" (0x1105)
     Version: 0x0100

beetle# ^D
beetle% obexapp -C 1 -s -d -r /tmp

now on the phone "Fun & Games" > "My Pictures" > "Send" >
"Via Bluetooth" > select device from the list and click "Yes".

^C
beetle% ll pinkpanter.gif
-rw-------  1 max  wheel  2084 16 อมา 13:13 pinkpanter.gif
beetle%

2) push gif picture from the laptop back to the phone

beetle# sdptool browse 00:80:37:5e:4d:d4
Browsing 00:80:37:5E:4D:D4 ...
Service Name: Dial-up Networking
Service RecHandle: 0x10000
Service Class ID List:
   "Dialup Networking" (0x1103)
   "Generic Networking" (0x1201)
Protocol Descriptor List:
   "L2CAP" (0x0100)
   "RFCOMM" (0x0003)
     Channel: 1
Profile Descriptor List:
   "Dialup Networking" (0x1103)
     Version: 0x0100

Service Name: Fax
Service RecHandle: 0x10001
Service Class ID List:
   "Fax" (0x1111)
   "Generic Telephony" (0x1204)
Protocol Descriptor List:
   "L2CAP" (0x0100)
   "RFCOMM" (0x0003)
     Channel: 2
Profile Descriptor List:
   "Fax" (0x1111)
     Version: 0x0100

Service Name: Voice gateway
Service RecHandle: 0x10002
Service Class ID List:
   "Headset Audio Gateway" (0x1112)
   "Generic Audio" (0x1203)
Protocol Descriptor List:
   "L2CAP" (0x0100)
   "RFCOMM" (0x0003)
     Channel: 3
Profile Descriptor List:
   "Headset" (0x1108)
     Version: 0x0100

Service Name: Serial Port 1
Service RecHandle: 0x10003
Service Class ID List:
   "Serial Port" (0x1101)
Protocol Descriptor List:
   "L2CAP" (0x0100)
   "RFCOMM" (0x0003)
     Channel: 4

Service Name: Serial Port 2
Service RecHandle: 0x10004
Service Class ID List:
   "Serial Port" (0x1101)
Protocol Descriptor List:
   "L2CAP" (0x0100)
   "RFCOMM" (0x0003)
     Channel: 5

Service Name: OBEX Object Push
Service RecHandle: 0x10005
Service Class ID List:
   "OBEX Object Push" (0x1105)
Protocol Descriptor List:
   "L2CAP" (0x0100)
   "RFCOMM" (0x0003)
     Channel: 10
   "OBEX" (0x0008)
Profile Descriptor List:
   "OBEX Object Push" (0x1105)
     Version: 0x0100

Service Name: IrMC Synchronization
Service RecHandle: 0x10006
Service Class ID List:
   "IrMCSync" (0x1104)
Protocol Descriptor List:
   "L2CAP" (0x0100)
   "RFCOMM" (0x0003)
     Channel: 11
   "OBEX" (0x0008)
Profile Descriptor List:
   "IrMCSync" (0x1104)
     Version: 0x0100

beetle# ^D
beetle% obexapp -C 11 -c -a 00:80:37:5e:4d:d4
obex> con
connect: service [None,Folder]> none
Success, response: OK, Success (0x20)
obex> put
put: local file> pinkpanter.gif
put: remote file> foo.gif
Success, response: OK, Success (0x20)
obex> disco
Success, response: OK, Success (0x20)
beetle%

after put started the phone prompts me if i really want to
accept the picture and i just clicked "yes". now on the phone
"Fun & Games" > "My Pictures" i see picture "foo.gif".

as you can see i used channel 11 (IrMC service). you might
want to try another service (OPUSH) - in my case channel 10.

thannks,
max


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-mobile" in the body of the message




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