From owner-freebsd-mobile Sun Mar 16 13:39:22 2003 Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2E8D837B405 for ; Sun, 16 Mar 2003 13:39:17 -0800 (PST) Received: from scl8owa02.int.exodus.net (scl8out02.exodus.net [66.35.230.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id 21A2C43F85 for ; Sun, 16 Mar 2003 13:39:11 -0800 (PST) (envelope-from Maksim.Yevmenkin@cw.com) Received: from scl8owa01.int.exodus.net ([66.35.230.241]) by scl8owa02.int.exodus.net with Microsoft SMTPSVC(5.0.2195.5329); Sun, 16 Mar 2003 13:39:10 -0800 Received: from exodus.net ([207.175.241.198]) by scl8owa01.int.exodus.net over TLS secured channel with Microsoft SMTPSVC(5.0.2195.5329); Sun, 16 Mar 2003 13:39:09 -0800 Message-ID: <3E74EE3D.4040802@exodus.net> Date: Sun, 16 Mar 2003 13:35:57 -0800 From: Maksim Yevmenkin User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.1) Gecko/20021126 X-Accept-Language: ru, en-us, en MIME-Version: 1.0 To: Pav Lucistnik Cc: mobile@FreeBSD.ORG Subject: Re: Bluetooth stack for FreeBSD References: <790A8B1F40ACA848939EBD247AE490302794F6@scl8ex04.int.exodus.net> <1047850759.1356.16.camel@pav.oook.cz> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 16 Mar 2003 21:39:10.0141 (UTC) FILETIME=[7AA456D0:01C2EC04] Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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