From owner-freebsd-bluetooth@FreeBSD.ORG Sun Jul 31 19:21:25 2005 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A934516A425 for ; Sun, 31 Jul 2005 19:21:25 +0000 (GMT) (envelope-from lorenl@alzatex.com) Received: from hosea.tallye.com (joel.tallye.com [216.99.199.78]) by mx1.FreeBSD.org (Postfix) with ESMTP id 420E143D45 for ; Sun, 31 Jul 2005 19:21:24 +0000 (GMT) (envelope-from lorenl@alzatex.com) Received: from hosea.tallye.com (hosea.tallye.com [127.0.0.1]) by hosea.tallye.com (8.12.8/8.12.10) with ESMTP id j6VJLNum011852 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 31 Jul 2005 12:21:23 -0700 Received: (from sttng359@localhost) by hosea.tallye.com (8.12.8/8.12.8/Submit) id j6VJLN1L011850 for freebsd-bluetooth@freebsd.org; Sun, 31 Jul 2005 12:21:23 -0700 Date: Sun, 31 Jul 2005 12:21:23 -0700 From: "Loren M. Lang" To: freebsd-bluetooth@freebsd.org Message-ID: <20050731192123.GA11760@alzatex.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="1yeeQ81UyVL57Vl7" Content-Disposition: inline User-Agent: Mutt/1.4.1i X-GPG-Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc X-GPG-Fingerprint: B3B9 D669 69C9 09EC 1BCD 835A FAF3 7A46 E4A3 280C Subject: Problem pairing headset X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Jul 2005 19:21:26 -0000 --1yeeQ81UyVL57Vl7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I am having trouble pairing my motorola headset with freebsd. I think the problem is that I already paired it with another computer using the same usb bluetooth adapter. The headset sees the same bluetooth hw address on the server and doesn't try to pair since it already has a link key for it. What I need is for a way to force freebsd to attempt to start the pairing process. My nokia phone doesn't have that problem since it has a menu on it to delete old pairings. Any ideas how to resolve this? --=20 I sense much NT in you. NT leads to Bluescreen. Bluescreen leads to downtime. Downtime leads to suffering. NT is the path to the darkside. Powerful Unix is. Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc Fingerprint: CEE1 AAE2 F66C 59B5 34CA C415 6D35 E847 0118 A3D2 =20 --1yeeQ81UyVL57Vl7 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFC7SSzbTXoRwEYo9IRAufcAJ9oKLy8KLb918G33eN+yX4n4SplCwCfTnhG mIsWaSWDM/jVA4Hq5p9NuHs= =tWWr -----END PGP SIGNATURE----- --1yeeQ81UyVL57Vl7-- From owner-freebsd-bluetooth@FreeBSD.ORG Mon Aug 1 02:27:29 2005 Return-Path: X-Original-To: freebsd-bluetooth@FreeBSD.org Delivered-To: freebsd-bluetooth@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4983F16A41F; Mon, 1 Aug 2005 02:27:29 +0000 (GMT) (envelope-from Alex.Kovalenko@verizon.net) Received: from vms048pub.verizon.net (vms048pub.verizon.net [206.46.252.48]) by mx1.FreeBSD.org (Postfix) with ESMTP id EEE8F43D49; Mon, 1 Aug 2005 02:27:28 +0000 (GMT) (envelope-from Alex.Kovalenko@verizon.net) Received: from RabbitsDen ([70.18.175.161]) by vms048.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0IKI003ULUTRQN90@vms048.mailsrvcs.net>; Sun, 31 Jul 2005 21:27:28 -0500 (CDT) Date: Sun, 31 Jul 2005 22:26:19 -0400 From: "Alexandre \"Sunny\" Kovalenko" In-reply-to: <1121287483.60360.21.camel@hood.oook.cz> To: pav@FreeBSD.org Message-id: <1122863179.663.22.camel@RabbitsDen> MIME-version: 1.0 X-Mailer: Evolution 2.2.3 FreeBSD GNOME Team Port Content-type: text/plain; charset=UTF-8 Content-transfer-encoding: 8BIT References: <42D558B3.1060603@centtech.com> <42D55B3D.50605@savvis.net> <42D55D5D.8030604@centtech.com> <42D57496.2050102@savvis.net> <42D57C67.7020500@centtech.com> <1121287483.60360.21.camel@hood.oook.cz> Cc: freebsd-bluetooth@FreeBSD.org Subject: Re: Palm sync over bluetooth? X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Aug 2005 02:27:29 -0000 On Wed, 2005-07-13 at 22:44 +0200, Pav Lucistnik wrote: > Eric Anderson píše v st 13. 07. 2005 v 15:41 -0500: > > Maksim Yevmenkin wrote: > > > Eric, > > > > > >>>> Does anyone have a cookbook, or howto on this? I think I'm missing > > >>>> a piece somewhere.. > > >>> > > >>> > > >>> depends on what do you mean by "sync" :) intelligent sync, i.e > > >>> something like syncml etc. is not supported at the moment. its not > > >>> really a bluetooth fault, its just no one wrote a tool (or at least i > > >>> do not know of any) that properly does syncml over obex over > > >>> bluetooth (or whatever palm supports). i'd like to add syncml support > > >>> to obexapp(1), but not have much free time at the moment. > > >>> > > >>> it should be possible to transfer files/etc. from/to palm using obex > > >>> with obexapp(1) from ports (comms/obexapp). > > >> > > >> > > >> :) ok, I'll try to state more clearly.. > > >> > > >> I'd like to get my palm t5 to sync (using the 'hotsync' in the palm) > > >> over bluetooth, instead of serial cable, or even usb, using jpilot (or > > >> pilot-xfer which jpilot uses I believe). pilot-xfer can use a serial > > >> port (/dev/something) or network (net:any for ip). > > >> > > >> I was thinking that since my palm supports syncing over bluetooth > > >> (uses it like a serial port), I should be able to make my FreeBSD box > > >> connect the bluetooth to a pseudo tty device, which I could then have > > >> pilot-xfer use. Does this seem reasonable? > > > > > > > > > man rfcomm_sppd(1) > > > > From the man page, I was under the impression that would allow me to do > > the opposite. For instance, connect to another computer's serial device > > over bluetooth, instead of the palm connecting to the computer. > > That's exactly how it is with serial and USB - computer connects to > Palm, then you start Hotsync application on Palm. > > I do mine slightly roundabout way -- using network sync. Setup is as follows: -- working bluetooth hardware ;) in my case D-Link DBT-120 -- load USB stack + ng_ubt -- optionally (?) configure /etc/bluetooth/hosts -- rc.bluetooth start ubt0 -- configure /etc/bluetooth/hcsecd.conf with proper PIN and start hcsecd -- start sdpd -- start rfcomm_pppd -d -s -C 1 -l bluetooth -- in /etc/ppp/pppd.conf bluetooth: set dial "\"\" READY GO" set ifaddr 192.168.1.1 192.168.1.2 disable chap disable deflate disable mppe disable pred1 disable shortseq disable vjcomp disable ipv6cp set timeout 0 set lqrperiod 10 enable lqr accept lqr # Do not use PPP authentication. Assume that # Bluetooth connection was authenticated already disable pap deny pap disable chap deny chap -- start pi-csd for network sync nohup /usr/local/bin/pi-csd -q -H -a 192.168.1.1 -n 255.255.255.0 & Only quirky thing there is "dial" line in ppp configuration -- I use it on USB since it seems that some characters are being dropped between ucom being created and devd starting necessary application, so I kept it here for consistency as well. You will have to configure your Palm for network sync (provided that it knows how ;) and set your target computer (not necessarily one you have bluetooth on). This is pretty straightforward on my Clie T615C. PILOTPORT has to be set to "net:any", same setting could be used in jPilot. I have not had much luck with Evolution, but that might have been due to the lack of motivation. If you need more detail, just ask. Any suggestions on improving this setup is more then welcome. -- Alexandre "Sunny" Kovalenko (Олександр Коваленко) From owner-freebsd-bluetooth@FreeBSD.ORG Mon Aug 1 16:35:58 2005 Return-Path: X-Original-To: freebsd-bluetooth@FreeBSD.org Delivered-To: freebsd-bluetooth@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A079E16A41F; Mon, 1 Aug 2005 16:35:58 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from mh2.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3A5FE43D49; Mon, 1 Aug 2005 16:35:57 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by mh2.centtech.com (8.13.1/8.13.1) with ESMTP id j71GZu6W068063; Mon, 1 Aug 2005 11:35:56 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <42EE4F64.7040002@centtech.com> Date: Mon, 01 Aug 2005 11:35:48 -0500 From: Eric Anderson User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.8) Gecko/20050603 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Alexandre \"Sunny\" Kovalenko" References: <42D558B3.1060603@centtech.com> <42D55B3D.50605@savvis.net> <42D55D5D.8030604@centtech.com> <42D57496.2050102@savvis.net> <42D57C67.7020500@centtech.com> <1121287483.60360.21.camel@hood.oook.cz> <1122863179.663.22.camel@RabbitsDen> In-Reply-To: <1122863179.663.22.camel@RabbitsDen> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: quoted-printable Cc: freebsd-bluetooth@FreeBSD.org, pav@FreeBSD.org Subject: Re: Palm sync over bluetooth? X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Aug 2005 16:35:58 -0000 Alexandre "Sunny" Kovalenko wrote: > On Wed, 2005-07-13 at 22:44 +0200, Pav Lucistnik wrote: >=20 >>Eric Anderson p=ED=A8e v st 13. 07. 2005 v 15:41 -0500: >> >>>Maksim Yevmenkin wrote: >>> >>>>Eric, >>>> >>>> >>>>>>>Does anyone have a cookbook, or howto on this? I think I'm missin= g=20 >>>>>>>a piece somewhere.. >>>>>> >>>>>> >>>>>>depends on what do you mean by "sync" :) intelligent sync, i.e=20 >>>>>>something like syncml etc. is not supported at the moment. its not = >>>>>>really a bluetooth fault, its just no one wrote a tool (or at least= i=20 >>>>>>do not know of any) that properly does syncml over obex over=20 >>>>>>bluetooth (or whatever palm supports). i'd like to add syncml suppo= rt=20 >>>>>>to obexapp(1), but not have much free time at the moment. >>>>>> >>>>>>it should be possible to transfer files/etc. from/to palm using obe= x=20 >>>>>>with obexapp(1) from ports (comms/obexapp). >>>>> >>>>> >>>>>:) ok, I'll try to state more clearly.. >>>>> >>>>>I'd like to get my palm t5 to sync (using the 'hotsync' in the palm)= =20 >>>>>over bluetooth, instead of serial cable, or even usb, using jpilot (= or=20 >>>>>pilot-xfer which jpilot uses I believe). pilot-xfer can use a seria= l=20 >>>>>port (/dev/something) or network (net:any for ip). >>>>> >>>>>I was thinking that since my palm supports syncing over bluetooth=20 >>>>>(uses it like a serial port), I should be able to make my FreeBSD bo= x=20 >>>>>connect the bluetooth to a pseudo tty device, which I could then hav= e=20 >>>>>pilot-xfer use. Does this seem reasonable? >>>> >>>> >>>>man rfcomm_sppd(1) >>> >>> From the man page, I was under the impression that would allow me to = do=20 >>>the opposite. For instance, connect to another computer's serial devi= ce=20 >>>over bluetooth, instead of the palm connecting to the computer. >> >>That's exactly how it is with serial and USB - computer connects to >>Palm, then you start Hotsync application on Palm. >> >> >=20 > I do mine slightly roundabout way -- using network sync. Setup is as > follows: >=20 > -- working bluetooth hardware ;) in my case D-Link DBT-120 > -- load USB stack + ng_ubt > -- optionally (?) configure /etc/bluetooth/hosts > -- rc.bluetooth start ubt0 > -- configure /etc/bluetooth/hcsecd.conf with proper PIN and start hcsec= d > -- start sdpd > -- start rfcomm_pppd -d -s -C 1 -l bluetooth > -- in /etc/ppp/pppd.conf > bluetooth: > set dial "\"\" READY GO" > set ifaddr 192.168.1.1 192.168.1.2 > disable chap > disable deflate > disable mppe > disable pred1 > disable shortseq > disable vjcomp > disable ipv6cp > set timeout 0 > set lqrperiod 10 > enable lqr > accept lqr > # Do not use PPP authentication. Assume that > # Bluetooth connection was authenticated already > disable pap > deny pap > disable chap > deny chap >=20 > -- start pi-csd for network sync=20 > nohup /usr/local/bin/pi-csd -q -H -a 192.168.1.1 -n > 255.255.255.0 & >=20 > Only quirky thing there is "dial" line in ppp configuration -- I use it= > on USB since it seems that some characters are being dropped between > ucom being created and devd starting necessary application, so I kept > it here for consistency as well. >=20 > You will have to configure your Palm for network sync (provided that it= > knows how ;) and set your target computer (not necessarily one you have= > bluetooth on). This is pretty straightforward on my Clie T615C. >=20 > PILOTPORT has to be set to "net:any", same setting could be used in > jPilot. I have not had much luck with Evolution, but that might have > been due to the lack of motivation. >=20 > If you need more detail, just ask. Any suggestions on improving this > setup is more then welcome. Thanks! I've done the above steps, and here's what I see: After starting the rfcomm_pppd program, I see a tun0 interface via ifconf= ig: tun0: flags=3D8010 mtu 1500 Running the pi-csd tool (which I'm not sure what that is supposed to do, = really) seems to run, but I don't see any output or anything, so I'm not = certain if it is doing the 'right thing'. Now, I set up my palm like so: Created new Connection, setting "Connect to" to "Local Network", and=20 "Via" set to "Bluetooth" with in the "Device"=20 box. I have my Palm set for "Local" sync (not "Modem"). When I hit the sync button, I don't see the tun0 device get an IP (from=20 ppp), nor do I see a pid associated with the tun0 device. On my palm,=20 nearly immediately I get this message: "Unable to initiate HotSync operation because the port is in use by=20 another application." Now, if I kill rfcomm_pppd, and restart with the addition of the -S=20 command line option, and attempt the same sync, I get a pid attached to=20 tun0, and tun0 is now 'UP': tun0: flags=3D8051 mtu 1500 Opened by PID 11613 but it never gets the IP address (set in the ppp conf), and the palm=20 sits for some time (a minute or two) before finally giving up with: "The = connection between your device and the desktop could not be established. = Please check your setup and try again." at which point my tun0 goes=20 back to it's normal state and the ppp process disappears. Any ideas what I may be missing? Thanks for the help so far! Eric --=20 ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Anything that works is better than anything that doesn't. ------------------------------------------------------------------------ From owner-freebsd-bluetooth@FreeBSD.ORG Mon Aug 1 16:51:38 2005 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 26EB516A41F for ; Mon, 1 Aug 2005 16:51:38 +0000 (GMT) (envelope-from Maksim.Yevmenkin@savvis.net) Received: from mailgate1b.savvis.net (mailgate1b.savvis.net [216.91.182.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0CBE843D55 for ; Mon, 1 Aug 2005 16:51:36 +0000 (GMT) (envelope-from Maksim.Yevmenkin@savvis.net) Received: from localhost (localhost.localdomain [127.0.0.1]) by mailgate1b.savvis.net (Postfix) with ESMTP id 541BA3BE71; Mon, 1 Aug 2005 11:51:36 -0500 (CDT) Received: from mailgate1b.savvis.net ([127.0.0.1]) by localhost (mailgate1b.savvis.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 12803-01-22; Mon, 1 Aug 2005 11:51:36 -0500 (CDT) Received: from out001.email.savvis.net (out001.apptix.savvis.net [216.91.32.44]) by mailgate1b.savvis.net (Postfix) with ESMTP id 27ED93BE2A; Mon, 1 Aug 2005 11:51:36 -0500 (CDT) Received: from s228130hz1ew031.apptix-01.savvis.net ([10.146.4.28]) by out001.email.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Mon, 1 Aug 2005 11:51:31 -0500 Received: from [10.254.186.111] ([64.14.1.106]) by s228130hz1ew031.apptix-01.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Mon, 1 Aug 2005 11:51:23 -0500 Message-ID: <42EE530A.6030701@savvis.net> Date: Mon, 01 Aug 2005 09:51:22 -0700 From: Maksim Yevmenkin User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Loren M. Lang" References: <20050731192123.GA11760@alzatex.com> In-Reply-To: <20050731192123.GA11760@alzatex.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 01 Aug 2005 16:51:23.0764 (UTC) FILETIME=[400D0B40:01C596B9] X-Virus-Scanned: amavisd-new at savvis.net Cc: freebsd-bluetooth@freebsd.org Subject: Re: Problem pairing headset X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Aug 2005 16:51:38 -0000 Loren, > I am having trouble pairing my motorola headset with freebsd. I think > the problem is that I already paired it with another computer using the > same usb bluetooth adapter. The headset sees the same bluetooth hw > address on the server and doesn't try to pair since it already has a > link key for it. What I need is for a way to force freebsd to attempt > to start the pairing process. My nokia phone doesn't have that problem > since it has a menu on it to delete old pairings. > > Any ideas how to resolve this? hmm... i would like to see hcidump first. if you could please install comms/hcidump port and run it as root # hcidump -w headset.dump after you tried to pair headset and your pc, please terminate hcidump with ^c and send me the headset.dump file. headset should have requested authentication and freebsd should reject it (because link key does not exist). are you running hcsecd(8)? do you have entry in your /etc/bluetooth/hcsecd.conf describing headset? in the mean time you could try to use # hccontrol -n ubt0hci write_authentication_enable 1 before connecting to the headset. the above command will force local device attached to the freebsd host to authenticate all baseband connections. thanks, max From owner-freebsd-bluetooth@FreeBSD.ORG Mon Aug 1 17:05:23 2005 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2AE9416A41F for ; Mon, 1 Aug 2005 17:05:23 +0000 (GMT) (envelope-from Maksim.Yevmenkin@savvis.net) Received: from mailgate1b.savvis.net (mailgate1b.savvis.net [216.91.182.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F3A343D45 for ; Mon, 1 Aug 2005 17:05:22 +0000 (GMT) (envelope-from Maksim.Yevmenkin@savvis.net) Received: from localhost (localhost.localdomain [127.0.0.1]) by mailgate1b.savvis.net (Postfix) with ESMTP id 2EC0E3BE73; Mon, 1 Aug 2005 12:05:22 -0500 (CDT) Received: from mailgate1b.savvis.net ([127.0.0.1]) by localhost (mailgate1b.savvis.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 18765-01-21; Mon, 1 Aug 2005 12:05:22 -0500 (CDT) Received: from out001.email.savvis.net (out001.apptix.savvis.net [216.91.32.44]) by mailgate1b.savvis.net (Postfix) with ESMTP id EF1603BE2A; Mon, 1 Aug 2005 12:05:21 -0500 (CDT) Received: from s228130hz1ew171.apptix-01.savvis.net ([10.146.4.29]) by out001.email.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Mon, 1 Aug 2005 12:05:13 -0500 Received: from [10.254.186.111] ([64.14.1.106]) by s228130hz1ew171.apptix-01.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Mon, 1 Aug 2005 12:05:08 -0500 Message-ID: <42EE5643.4010804@savvis.net> Date: Mon, 01 Aug 2005 10:05:07 -0700 From: Maksim Yevmenkin User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Loren M. Lang" References: <20050719031223.GA20371@alzatex.com> <42DC75F3.2000802@savvis.net> <20050729092655.GA9887@alzatex.com> <42EA4979.1000507@savvis.net> <20050730153429.GA10629@alzatex.com> In-Reply-To: <20050730153429.GA10629@alzatex.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 01 Aug 2005 17:05:08.0620 (UTC) FILETIME=[2BB414C0:01C596BB] X-Virus-Scanned: amavisd-new at savvis.net Cc: freebsd-bluetooth@freebsd.org Subject: Re: Bluetooth Headset or Handsfree profile X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Aug 2005 17:05:23 -0000 Loren, [...] >>>Both my cellphone and bt headset support both handsfree and headset so I >>>have a lot of combinations I can play with. >> >>well, are you aware that most bluetooth headsets are "dumb"? i.e. the >>headset can only be paired with one host and, after paired, will only >>accept connections from the paired host. what it means is that once >>paired with the cellphone, the headset can only be used with the >>cellphone. it is only possible to, say, transfer the call between the >>headset and the cellphone only. it is *not* possible to transfer the >>call to another audio gateway. > > Actually my motorola headset can remember up to eight paired devices, > but it will only try to connect to the most recently paired device, the > other 7 devices much start the connection themselves. I have > sucessfully paired my headset with my computer and cellphone both, with > the cellphone paired last so my headset will connect to it by default. > But, with my cellphone bt turned off, I was able to make linux access > the headset profile and play audio through it. this is great. i'm glad that at least some manufacturers think "out of the box" :) >>it would have been so nice if cellphones could also use bluetooth to >>connect to audio gateways. this way - as soon as i walk in the room with >>bluetooth audio gateway (such as asterix/skype/etc.) i could switch my >>phone to use it instead of gsm. now all my calls go via voip and not >>coming out of my minutes. i also wish headsets could "remember" more >>then one paired host. > > Actually, on windows I have successfully connected to the audio gateway > on my computer and heard the call through my speakers, though I had no > microphone to talk back with. I can connect to the headset/handfree > profile on my phone with either the computer or the motorola headset in > the middle of a call and get the audio routed automatically to my > computer/headset. well, it somewhat different scenario. your _phone_ is still connected to the gsm network and can route audio to either headset or windows pc. its great that your phone can do that. what i had in mind is that you have voip hardware/software running on the pc. so, you can make a voip calls from your pc, just like regular phone. the scenario i tried to describe is that the cellphone becomes a headset-like device, i.e. using bluetooth it connects to the pc and using headset-like protocol request a call (from pc via voip). now bluetooth headset could either be connected to the cellphone or you could just connect it directly to the pc, i.e. <--> IP <--> [voip pc] <-- bt --> [cellphone] <-- bt --> [headset] ^ | +-------- bt --> [another headset] so, the cellphone is acting like proxy giving access to your phone book, voice commands etc. but making all the calls via voip pc and not gsm. > Now as far as using voip, I don't know if my cellphone could do that. the phone does hot have to support voip. thanks, max From owner-freebsd-bluetooth@FreeBSD.ORG Mon Aug 1 18:05:02 2005 Return-Path: X-Original-To: freebsd-bluetooth@FreeBSD.org Delivered-To: freebsd-bluetooth@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B85BB16A41F; Mon, 1 Aug 2005 18:05:02 +0000 (GMT) (envelope-from Maksim.Yevmenkin@savvis.net) Received: from mailgate1b.savvis.net (mailgate1b.savvis.net [216.91.182.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id E6F4943D45; Mon, 1 Aug 2005 18:04:56 +0000 (GMT) (envelope-from Maksim.Yevmenkin@savvis.net) Received: from localhost (localhost.localdomain [127.0.0.1]) by mailgate1b.savvis.net (Postfix) with ESMTP id 3D7333BE78; Mon, 1 Aug 2005 13:04:56 -0500 (CDT) Received: from mailgate1b.savvis.net ([127.0.0.1]) by localhost (mailgate1b.savvis.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 12363-01-61; Mon, 1 Aug 2005 13:04:56 -0500 (CDT) Received: from out002.email.savvis.net (out002.apptix.savvis.net [216.91.32.45]) by mailgate1b.savvis.net (Postfix) with ESMTP id 022DD3BE75; Mon, 1 Aug 2005 13:04:56 -0500 (CDT) Received: from s228130hz1ew031.apptix-01.savvis.net ([10.146.4.28]) by out002.email.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Mon, 1 Aug 2005 13:04:47 -0500 Received: from [10.254.186.111] ([64.14.1.106]) by s228130hz1ew031.apptix-01.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Mon, 1 Aug 2005 13:04:43 -0500 Message-ID: <42EE6438.9080209@savvis.net> Date: Mon, 01 Aug 2005 11:04:40 -0700 From: Maksim Yevmenkin User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Eric Anderson References: <42D558B3.1060603@centtech.com> <42D55B3D.50605@savvis.net> <42D55D5D.8030604@centtech.com> <42D57496.2050102@savvis.net> <42D57C67.7020500@centtech.com> <1121287483.60360.21.camel@hood.oook.cz> <1122863179.663.22.camel@RabbitsDen> <42EE4F64.7040002@centtech.com> In-Reply-To: <42EE4F64.7040002@centtech.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 01 Aug 2005 18:04:43.0126 (UTC) FILETIME=[7E466960:01C596C3] X-Virus-Scanned: amavisd-new at savvis.net Cc: freebsd-bluetooth@FreeBSD.org, pav@FreeBSD.org Subject: Re: Palm sync over bluetooth? X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Aug 2005 18:05:02 -0000 Eric, >>>>>>>> Does anyone have a cookbook, or howto on this? I think I'm >>>>>>>> missing a piece somewhere.. >>>>>>> >>>>>>> depends on what do you mean by "sync" :) intelligent sync, i.e >>>>>>> something like syncml etc. is not supported at the moment. its >>>>>>> not really a bluetooth fault, its just no one wrote a tool (or at >>>>>>> least i do not know of any) that properly does syncml over obex >>>>>>> over bluetooth (or whatever palm supports). i'd like to add >>>>>>> syncml support to obexapp(1), but not have much free time at the >>>>>>> moment. >>>>>>> >>>>>>> it should be possible to transfer files/etc. from/to palm using >>>>>>> obex with obexapp(1) from ports (comms/obexapp). >>>>>> >>>>>> :) ok, I'll try to state more clearly.. >>>>>> >>>>>> I'd like to get my palm t5 to sync (using the 'hotsync' in the >>>>>> palm) over bluetooth, instead of serial cable, or even usb, using >>>>>> jpilot (or pilot-xfer which jpilot uses I believe). pilot-xfer >>>>>> can use a serial port (/dev/something) or network (net:any for ip). >>>>>> >>>>>> I was thinking that since my palm supports syncing over bluetooth >>>>>> (uses it like a serial port), I should be able to make my FreeBSD >>>>>> box connect the bluetooth to a pseudo tty device, which I could >>>>>> then have pilot-xfer use. Does this seem reasonable? >>>>> >>>>> man rfcomm_sppd(1) >>>> >>>> From the man page, I was under the impression that would allow me to >>>> do the opposite. For instance, connect to another computer's serial >>>> device over bluetooth, instead of the palm connecting to the computer. >>> >>> That's exactly how it is with serial and USB - computer connects to >>> Palm, then you start Hotsync application on Palm. does rfcomm_sppd(1) work for you? >> I do mine slightly roundabout way -- using network sync. Setup is as >> follows: >> >> -- working bluetooth hardware ;) in my case D-Link DBT-120 >> -- load USB stack + ng_ubt >> -- optionally (?) configure /etc/bluetooth/hosts >> -- rc.bluetooth start ubt0 >> -- configure /etc/bluetooth/hcsecd.conf with proper PIN and start hcsecd >> -- start sdpd >> -- start rfcomm_pppd -d -s -C 1 -l bluetooth >> -- in /etc/ppp/pppd.conf >> bluetooth: >> set dial "\"\" READY GO" i'm not sure why do you need "set dial". btw chat scripts are _not_ executed in "direct" mode unless you say "enable force-scripts" >> set ifaddr 192.168.1.1 192.168.1.2 >> disable chap >> disable deflate >> disable mppe >> disable pred1 >> disable shortseq >> disable vjcomp >> disable ipv6cp >> set timeout 0 >> set lqrperiod 10 >> enable lqr >> accept lqr >> # Do not use PPP authentication. Assume that >> # Bluetooth connection was authenticated already >> disable pap >> deny pap >> disable chap >> deny chap >> >> -- start pi-csd for network sync nohup /usr/local/bin/pi-csd -q -H >> -a 192.168.1.1 -n >> 255.255.255.0 & >> >> Only quirky thing there is "dial" line in ppp configuration -- I use it >> on USB since it seems that some characters are being dropped between >> ucom being created and devd starting necessary application, so I kept >> it here for consistency as well. >> >> You will have to configure your Palm for network sync (provided that it >> knows how ;) and set your target computer (not necessarily one you have >> bluetooth on). This is pretty straightforward on my Clie T615C. >> >> PILOTPORT has to be set to "net:any", same setting could be used in >> jPilot. I have not had much luck with Evolution, but that might have >> been due to the lack of motivation. >> >> If you need more detail, just ask. Any suggestions on improving this >> setup is more then welcome. > > Thanks! I've done the above steps, and here's what I see: > > After starting the rfcomm_pppd program, I see a tun0 interface via > ifconfig: > > tun0: flags=8010 mtu 1500 > > Running the pi-csd tool (which I'm not sure what that is supposed to do, > really) seems to run, but I don't see any output or anything, so I'm not > certain if it is doing the 'right thing'. > > Now, I set up my palm like so: > Created new Connection, setting "Connect to" to "Local Network", and > "Via" set to "Bluetooth" with in the "Device" > box. I have my Palm set for "Local" sync (not "Modem"). > > When I hit the sync button, I don't see the tun0 device get an IP (from > ppp), nor do I see a pid associated with the tun0 device. On my palm, > nearly immediately I get this message: > "Unable to initiate HotSync operation because the port is in use by > another application." > Now, if I kill rfcomm_pppd, and restart with the addition of the -S > command line option, and attempt the same sync, I get a pid attached to > tun0, and tun0 is now 'UP': > > tun0: flags=8051 mtu 1500 > Opened by PID 11613 > > but it never gets the IP address (set in the ppp conf), and the palm > sits for some time (a minute or two) before finally giving up with: "The > connection between your device and the desktop could not be established. > Please check your setup and try again." at which point my tun0 goes > back to it's normal state and the ppp process disappears. > > Any ideas what I may be missing? 1) check 'default' section in your /etc/ppp/ppp.conf and make sure it only contains commands that applied to _all_ other sections in your ppp.conf file. i always have 'default' section empty and move all the commands to the appropriate section. 2) add 'set log all' to the 'bluetooth' section. then try again. now /var/log/ppp.log should have tons of information that will tell you what is going all. 3) since you are _not_ using ppp authentication make sure your palm does not require one thanks, max From owner-freebsd-bluetooth@FreeBSD.ORG Mon Aug 1 19:48:16 2005 Return-Path: X-Original-To: freebsd-bluetooth@FreeBSD.org Delivered-To: freebsd-bluetooth@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2DBFB16A41F; Mon, 1 Aug 2005 19:48:16 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from mh2.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6368A43D45; Mon, 1 Aug 2005 19:48:15 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by mh2.centtech.com (8.13.1/8.13.1) with ESMTP id j71JmEKF072405; Mon, 1 Aug 2005 14:48:14 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <42EE7C76.2090904@centtech.com> Date: Mon, 01 Aug 2005 14:48:06 -0500 From: Eric Anderson User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.8) Gecko/20050603 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Maksim Yevmenkin References: <42D558B3.1060603@centtech.com> <42D55B3D.50605@savvis.net> <42D55D5D.8030604@centtech.com> <42D57496.2050102@savvis.net> <42D57C67.7020500@centtech.com> <1121287483.60360.21.camel@hood.oook.cz> <1122863179.663.22.camel@RabbitsDen> <42EE4F64.7040002@centtech.com> <42EE6438.9080209@savvis.net> In-Reply-To: <42EE6438.9080209@savvis.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-bluetooth@FreeBSD.org, pav@FreeBSD.org Subject: Re: Palm sync over bluetooth? X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Aug 2005 19:48:16 -0000 Maksim Yevmenkin wrote: > Eric, > >>>>>>>>> Does anyone have a cookbook, or howto on this? I think I'm >>>>>>>>> missing a piece somewhere.. >>>>>>>> >>>>>>>> >>>>>>>> depends on what do you mean by "sync" :) intelligent sync, i.e >>>>>>>> something like syncml etc. is not supported at the moment. its >>>>>>>> not really a bluetooth fault, its just no one wrote a tool (or >>>>>>>> at least i do not know of any) that properly does syncml over >>>>>>>> obex over bluetooth (or whatever palm supports). i'd like to add >>>>>>>> syncml support to obexapp(1), but not have much free time at the >>>>>>>> moment. >>>>>>>> >>>>>>>> it should be possible to transfer files/etc. from/to palm using >>>>>>>> obex with obexapp(1) from ports (comms/obexapp). >>>>>>> >>>>>>> >>>>>>> :) ok, I'll try to state more clearly.. >>>>>>> >>>>>>> I'd like to get my palm t5 to sync (using the 'hotsync' in the >>>>>>> palm) over bluetooth, instead of serial cable, or even usb, using >>>>>>> jpilot (or pilot-xfer which jpilot uses I believe). pilot-xfer >>>>>>> can use a serial port (/dev/something) or network (net:any for ip). >>>>>>> >>>>>>> I was thinking that since my palm supports syncing over bluetooth >>>>>>> (uses it like a serial port), I should be able to make my FreeBSD >>>>>>> box connect the bluetooth to a pseudo tty device, which I could >>>>>>> then have pilot-xfer use. Does this seem reasonable? >>>>>> >>>>>> >>>>>> man rfcomm_sppd(1) >>>>> >>>>> >>>>> From the man page, I was under the impression that would allow me >>>>> to do the opposite. For instance, connect to another computer's >>>>> serial device over bluetooth, instead of the palm connecting to the >>>>> computer. >>>> >>>> >>>> That's exactly how it is with serial and USB - computer connects to >>>> Palm, then you start Hotsync application on Palm. > > > does rfcomm_sppd(1) work for you? Well, not really. rfcomm_sppd requires that the palm be the server of the serial port service (if I understand correctly, and I may not!), which means I would have to hit the sync button, then quickly start rfcomm_sppd with the correct channel number (which I don't know), and then start my sync right after that. I have not been able to get this trickery to work. Even so, if I did get it working, I'm not sure this is the best solution. >>> I do mine slightly roundabout way -- using network sync. Setup is as >>> follows: >>> >>> -- working bluetooth hardware ;) in my case D-Link DBT-120 >>> -- load USB stack + ng_ubt >>> -- optionally (?) configure /etc/bluetooth/hosts >>> -- rc.bluetooth start ubt0 >>> -- configure /etc/bluetooth/hcsecd.conf with proper PIN and start hcsecd >>> -- start sdpd >>> -- start rfcomm_pppd -d -s -C 1 -l bluetooth >>> -- in /etc/ppp/pppd.conf >>> bluetooth: >>> set dial "\"\" READY GO" > > > i'm not sure why do you need "set dial". btw chat scripts are _not_ > executed in "direct" mode unless you say "enable force-scripts" > >>> set ifaddr 192.168.1.1 192.168.1.2 >>> disable chap >>> disable deflate >>> disable mppe >>> disable pred1 >>> disable shortseq >>> disable vjcomp >>> disable ipv6cp >>> set timeout 0 >>> set lqrperiod 10 >>> enable lqr >>> accept lqr >>> # Do not use PPP authentication. Assume that >>> # Bluetooth connection was authenticated already >>> disable pap >>> deny pap >>> disable chap >>> deny chap >>> >>> -- start pi-csd for network sync nohup /usr/local/bin/pi-csd -q -H >>> -a 192.168.1.1 -n >>> 255.255.255.0 & >>> >>> Only quirky thing there is "dial" line in ppp configuration -- I use it >>> on USB since it seems that some characters are being dropped between >>> ucom being created and devd starting necessary application, so I kept >>> it here for consistency as well. >>> >>> You will have to configure your Palm for network sync (provided that it >>> knows how ;) and set your target computer (not necessarily one you have >>> bluetooth on). This is pretty straightforward on my Clie T615C. >>> >>> PILOTPORT has to be set to "net:any", same setting could be used in >>> jPilot. I have not had much luck with Evolution, but that might have >>> been due to the lack of motivation. >>> >>> If you need more detail, just ask. Any suggestions on improving this >>> setup is more then welcome. >> >> >> Thanks! I've done the above steps, and here's what I see: >> >> After starting the rfcomm_pppd program, I see a tun0 interface via >> ifconfig: >> >> tun0: flags=8010 mtu 1500 >> >> Running the pi-csd tool (which I'm not sure what that is supposed to >> do, really) seems to run, but I don't see any output or anything, so >> I'm not certain if it is doing the 'right thing'. >> >> Now, I set up my palm like so: >> Created new Connection, setting "Connect to" to "Local Network", and >> "Via" set to "Bluetooth" with in the "Device" >> box. I have my Palm set for "Local" sync (not "Modem"). >> >> When I hit the sync button, I don't see the tun0 device get an IP >> (from ppp), nor do I see a pid associated with the tun0 device. On my >> palm, nearly immediately I get this message: >> "Unable to initiate HotSync operation because the port is in use by >> another application." >> Now, if I kill rfcomm_pppd, and restart with the addition of the -S >> command line option, and attempt the same sync, I get a pid attached >> to tun0, and tun0 is now 'UP': >> >> tun0: flags=8051 mtu 1500 >> Opened by PID 11613 >> >> but it never gets the IP address (set in the ppp conf), and the palm >> sits for some time (a minute or two) before finally giving up with: >> "The connection between your device and the desktop could not be >> established. Please check your setup and try again." at which point >> my tun0 goes back to it's normal state and the ppp process disappears. >> >> Any ideas what I may be missing? > > > 1) check 'default' section in your /etc/ppp/ppp.conf and make sure it > only contains commands that applied to _all_ other sections in your > ppp.conf file. i always have 'default' section empty and move all the > commands to the appropriate section. I've removed everything in the default section, with no changes (I barely had anything in it). > 2) add 'set log all' to the 'bluetooth' section. then try again. now > /var/log/ppp.log should have tons of information that will tell you what > is going all. Done - now I have lots more logged info I don't understand. :) > 3) since you are _not_ using ppp authentication make sure your palm does > not require one Pretty sure it doesn't - no place to put in the info, and I connect up to my cellphone over bluetooth for surfing, etc using a similar method. Any more ideas? What should I be looking for in the ppp logs? I did see this though: Aug 1 14:38:02 neutrino ppp[17496]: tun0: Phase: deflink: closed -> opening Aug 1 14:38:02 neutrino ppp[17496]: tun0: Debug: deflink: Link is SOCK_STREAM, but not inet Aug 1 14:38:02 neutrino ppp[17496]: tun0: Debug: deflink: stdin is unidentified Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Anything that works is better than anything that doesn't. ------------------------------------------------------------------------ From owner-freebsd-bluetooth@FreeBSD.ORG Mon Aug 1 20:28:58 2005 Return-Path: X-Original-To: freebsd-bluetooth@FreeBSD.org Delivered-To: freebsd-bluetooth@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2F1E016A41F; Mon, 1 Aug 2005 20:28:58 +0000 (GMT) (envelope-from Maksim.Yevmenkin@savvis.net) Received: from mailgate1b.savvis.net (mailgate1b.savvis.net [216.91.182.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B55E43D4C; Mon, 1 Aug 2005 20:28:55 +0000 (GMT) (envelope-from Maksim.Yevmenkin@savvis.net) Received: from localhost (localhost.localdomain [127.0.0.1]) by mailgate1b.savvis.net (Postfix) with ESMTP id 639823BE29; Mon, 1 Aug 2005 15:28:54 -0500 (CDT) Received: from mailgate1b.savvis.net ([127.0.0.1]) by localhost (mailgate1b.savvis.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 16827-01-43; Mon, 1 Aug 2005 15:28:54 -0500 (CDT) Received: from out002.email.savvis.net (out002.apptix.savvis.net [216.91.32.45]) by mailgate1b.savvis.net (Postfix) with ESMTP id 297AA3BE22; Mon, 1 Aug 2005 15:28:54 -0500 (CDT) Received: from s228130hz1ew171.apptix-01.savvis.net ([10.146.4.29]) by out002.email.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Mon, 1 Aug 2005 15:28:48 -0500 Received: from [10.254.186.111] ([64.14.1.106]) by s228130hz1ew171.apptix-01.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Mon, 1 Aug 2005 15:28:43 -0500 Message-ID: <42EE85F9.50008@savvis.net> Date: Mon, 01 Aug 2005 13:28:41 -0700 From: Maksim Yevmenkin User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Eric Anderson References: <42D558B3.1060603@centtech.com> <42D55B3D.50605@savvis.net> <42D55D5D.8030604@centtech.com> <42D57496.2050102@savvis.net> <42D57C67.7020500@centtech.com> <1121287483.60360.21.camel@hood.oook.cz> <1122863179.663.22.camel@RabbitsDen> <42EE4F64.7040002@centtech.com> <42EE6438.9080209@savvis.net> <42EE7C76.2090904@centtech.com> In-Reply-To: <42EE7C76.2090904@centtech.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 01 Aug 2005 20:28:43.0613 (UTC) FILETIME=[9C6818D0:01C596D7] X-Virus-Scanned: amavisd-new at savvis.net Cc: freebsd-bluetooth@FreeBSD.org, pav@FreeBSD.org Subject: Re: Palm sync over bluetooth? X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Aug 2005 20:28:58 -0000 Eric, [...] >>>>> That's exactly how it is with serial and USB - computer connects to >>>>> Palm, then you start Hotsync application on Palm. >> >> does rfcomm_sppd(1) work for you? > > Well, not really. rfcomm_sppd requires that the palm be the server of > the serial port service (if I understand correctly, and I may not!), > which means I would have to hit the sync button, then quickly start > rfcomm_sppd with the correct channel number (which I don't know), and > then start my sync right after that. I have not been able to get this > trickery to work. Even so, if I did get it working, I'm not sure this > is the best solution. what palm model do you have? is it possible to simple turn on bluetooth without doing anything on palm? if so, then could you please run % sdpcontrol -a palm_bd_addr browse and/or % sdpcontrol -a palm_bd_addr search SP if you palm has serial port (SP) service then you should be able to just connect to it without hitting sync button first. it is also trivial to extend rfcomm_sppd(1) to make it work as server. you could use either nmdm(4) or pty(4) to emulate serial port. i could put it on my to do list, but i need to know how palm expects this to work (sorry never owned a palm :) [...] >>> Any ideas what I may be missing? >> >> 1) check 'default' section in your /etc/ppp/ppp.conf and make sure it >> only contains commands that applied to _all_ other sections in your >> ppp.conf file. i always have 'default' section empty and move all the >> commands to the appropriate section. > > I've removed everything in the default section, with no changes (I > barely had anything in it). good. do you have a dropdown box on your palm that specifies remote system access type, i.e. something like PPP (unix), RAS (microsoft) or something like this? i recall that earlier versions of palm had such dropdown box. you need to use "PPP (unix)". you might want to try to add something like enable force-scripts set dial "CLIENT CLIENTSERVER" to your bluetooth section in /etc/ppp/ppp.conf. this should make ppp compatible with microsoft RAS style clients :) >> 2) add 'set log all' to the 'bluetooth' section. then try again. now >> /var/log/ppp.log should have tons of information that will tell you >> what is going all. > > Done - now I have lots more logged info I don't understand. :) could you post it somewhere? >> 3) since you are _not_ using ppp authentication make sure your palm >> does not require one > > Pretty sure it doesn't - no place to put in the info, and I connect up > to my cellphone over bluetooth for surfing, etc using a similar method. do you mean you connect your palm to your cellphone? > Any more ideas? What should I be looking for in the ppp logs? I did > see this though: > > Aug 1 14:38:02 neutrino ppp[17496]: tun0: Phase: deflink: closed -> > opening > Aug 1 14:38:02 neutrino ppp[17496]: tun0: Debug: deflink: Link is > SOCK_STREAM, but not inet > Aug 1 14:38:02 neutrino ppp[17496]: tun0: Debug: deflink: stdin is > unidentified those are fine (i think). i'd like to see full log. i suspect there is something is wrong at ppp level. you also might want to run hcidump (from ports comms/hcidump) as root # hcidump -w palm.dump -- it will block then try to connect. then terminate hcidump with ^c and send me the palm.dump file. also what is the freebsd version? thanks, max From owner-freebsd-bluetooth@FreeBSD.ORG Mon Aug 1 20:59:28 2005 Return-Path: X-Original-To: freebsd-bluetooth@FreeBSD.org Delivered-To: freebsd-bluetooth@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4E81F16A41F for ; Mon, 1 Aug 2005 20:59:28 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from mh2.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id D8E9C43D4C for ; Mon, 1 Aug 2005 20:59:27 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by mh2.centtech.com (8.13.1/8.13.1) with ESMTP id j71KxP8Y074319; Mon, 1 Aug 2005 15:59:26 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <42EE8D26.6010406@centtech.com> Date: Mon, 01 Aug 2005 15:59:18 -0500 From: Eric Anderson User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.8) Gecko/20050603 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Maksim Yevmenkin References: <42D558B3.1060603@centtech.com> <42D55B3D.50605@savvis.net> <42D55D5D.8030604@centtech.com> <42D57496.2050102@savvis.net> <42D57C67.7020500@centtech.com> <1121287483.60360.21.camel@hood.oook.cz> <1122863179.663.22.camel@RabbitsDen> <42EE4F64.7040002@centtech.com> <42EE6438.9080209@savvis.net> <42EE7C76.2090904@centtech.com> <42EE85F9.50008@savvis.net> In-Reply-To: <42EE85F9.50008@savvis.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-bluetooth@FreeBSD.org Subject: Re: Palm sync over bluetooth? X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Aug 2005 20:59:28 -0000 Maksim Yevmenkin wrote: > Eric, > > [...] > >>>>>> That's exactly how it is with serial and USB - computer connects to >>>>>> Palm, then you start Hotsync application on Palm. >>> >>> >>> does rfcomm_sppd(1) work for you? >> >> >> Well, not really. rfcomm_sppd requires that the palm be the server of >> the serial port service (if I understand correctly, and I may not!), >> which means I would have to hit the sync button, then quickly start >> rfcomm_sppd with the correct channel number (which I don't know), and >> then start my sync right after that. I have not been able to get this >> trickery to work. Even so, if I did get it working, I'm not sure this >> is the best solution. > > > what palm model do you have? is it possible to simple turn on bluetooth > without doing anything on palm? if so, then could you please run Tungsten T5 Bluetooth is on, but with the palm powered off, obviously nothing will happen. With it on, only slightly more than nothing happens. See below. > % sdpcontrol -a palm_bd_addr browse > > and/or > > % sdpcontrol -a palm_bd_addr search SP > > if you palm has serial port (SP) service then you should be able to just > connect to it without hitting sync button first. Palm off: [ 15:43:10 root@neutrino ~ ]# sdpcontrol -a epa-palm browse Could not execute command "browse". Host is down [ 15:43:23 root@neutrino ~ ]# sdpcontrol -a epa-palm search SP Could not execute command "search". Host is down Palm on, doing nothing: [ 15:43:40 root@neutrino ~ ]# sdpcontrol -a epa-palm browse (beep beep beep on palm, says "connecting") [ 15:43:46 root@neutrino ~ ]# sdpcontrol -a epa-palm search SP Could not execute command "search". Host is down [ 15:44:06 root@neutrino ~ ]# sdpcontrol -a epa-palm browse [ 15:44:19 root@neutrino ~ ]# sdpcontrol -a epa-palm search SP [ 15:44:22 root@neutrino ~ ]# sdpcontrol -a epa-palm browse Palm on, trying to hotsync: (says 'connecting' after hotsync press) [ 15:46:40 root@neutrino ~ ]# sdpcontrol -a epa-palm browse [ 15:46:47 root@neutrino ~ ]# sdpcontrol -a epa-palm search SP [ 15:46:49 root@neutrino ~ ]# sdpcontrol -a epa-palm browse [ 15:46:52 root@neutrino ~ ]# > it is also trivial to extend rfcomm_sppd(1) to make it work as server. > you could use either nmdm(4) or pty(4) to emulate serial port. i could > put it on my to do list, but i need to know how palm expects this to > work (sorry never owned a palm :) That would be pretty nifty probably. > [...] > >>>> Any ideas what I may be missing? >>> >>> >>> 1) check 'default' section in your /etc/ppp/ppp.conf and make sure it >>> only contains commands that applied to _all_ other sections in your >>> ppp.conf file. i always have 'default' section empty and move all the >>> commands to the appropriate section. >> >> >> I've removed everything in the default section, with no changes (I >> barely had anything in it). > > > good. do you have a dropdown box on your palm that specifies remote > system access type, i.e. something like PPP (unix), RAS (microsoft) or > something like this? i recall that earlier versions of palm had such > dropdown box. you need to use "PPP (unix)". > > you might want to try to add something like > > enable force-scripts > set dial "CLIENT CLIENTSERVER" > > to your bluetooth section in /etc/ppp/ppp.conf. this should make ppp > compatible with microsoft RAS style clients :) I'll try this out tonight. >>> 2) add 'set log all' to the 'bluetooth' section. then try again. now >>> /var/log/ppp.log should have tons of information that will tell you >>> what is going all. >> >> >> Done - now I have lots more logged info I don't understand. :) > > > could you post it somewhere? Sure - I'll post it tonight for you. >>> 3) since you are _not_ using ppp authentication make sure your palm >>> does not require one >> >> >> Pretty sure it doesn't - no place to put in the info, and I connect up >> to my cellphone over bluetooth for surfing, etc using a similar method. > > > do you mean you connect your palm to your cellphone? Yea, I mean my palm connects to cellphone. Actually, I can also connect using my laptop through my cellphone over bluetooth to get internet also. >> Any more ideas? What should I be looking for in the ppp logs? I did >> see this though: >> >> Aug 1 14:38:02 neutrino ppp[17496]: tun0: Phase: deflink: closed -> >> opening >> Aug 1 14:38:02 neutrino ppp[17496]: tun0: Debug: deflink: Link is >> SOCK_STREAM, but not inet >> Aug 1 14:38:02 neutrino ppp[17496]: tun0: Debug: deflink: stdin is >> unidentified > > > those are fine (i think). i'd like to see full log. i suspect there is > something is wrong at ppp level. you also might want to run hcidump > (from ports comms/hcidump) as root > > # hcidump -w palm.dump -- it will block > > then try to connect. then terminate hcidump with ^c and send me the > palm.dump file. also what is the freebsd version? -current (7.0). I'll try to get you more info tonight. Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Anything that works is better than anything that doesn't. ------------------------------------------------------------------------ From owner-freebsd-bluetooth@FreeBSD.ORG Tue Aug 2 02:36:04 2005 Return-Path: X-Original-To: freebsd-bluetooth@FreeBSD.org Delivered-To: freebsd-bluetooth@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 73E5216A41F; Tue, 2 Aug 2005 02:36:04 +0000 (GMT) (envelope-from Alex.Kovalenko@verizon.net) Received: from vms042pub.verizon.net (vms042pub.verizon.net [206.46.252.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2444043D45; Tue, 2 Aug 2005 02:36:04 +0000 (GMT) (envelope-from Alex.Kovalenko@verizon.net) Received: from RabbitsDen ([70.18.175.161]) by vms042.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0IKK005NGPW2NZE2@vms042.mailsrvcs.net>; Mon, 01 Aug 2005 21:36:03 -0500 (CDT) Date: Mon, 01 Aug 2005 22:35:20 -0400 From: "Alexandre \"Sunny\" Kovalenko" In-reply-to: <42EE85F9.50008@savvis.net> To: Maksim Yevmenkin Message-id: <1122950120.1048.14.camel@RabbitsDen> MIME-version: 1.0 X-Mailer: Evolution 2.2.3 FreeBSD GNOME Team Port Content-type: text/plain; charset=iso-8859-5 Content-transfer-encoding: 8BIT References: <42D558B3.1060603@centtech.com> <42D55B3D.50605@savvis.net> <42D55D5D.8030604@centtech.com> <42D57496.2050102@savvis.net> <42D57C67.7020500@centtech.com> <1121287483.60360.21.camel@hood.oook.cz> <1122863179.663.22.camel@RabbitsDen> <42EE4F64.7040002@centtech.com> <42EE6438.9080209@savvis.net> <42EE7C76.2090904@centtech.com> <42EE85F9.50008@savvis.net> Cc: freebsd-bluetooth@FreeBSD.org, pav@FreeBSD.org Subject: Re: Palm sync over bluetooth? X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Aug 2005 02:36:04 -0000 On Mon, 2005-08-01 at 13:28 -0700, Maksim Yevmenkin wrote: > Eric, > > [...] > > >>>>> That's exactly how it is with serial and USB - computer connects to > >>>>> Palm, then you start Hotsync application on Palm. I am afraid, at least on my Clie T615C, this statement is not true in the case of the USB cradle. Device 'ucom' (or whatever the name du jour is) is created *after* I press HotSync button. As the result first sync packet get swallowed by the driver and deadlock ensue. This is the reason behind 'dial' line in the configuration (and matching script on the Clie). > > what palm model do you have? is it possible to simple turn on bluetooth > without doing anything on palm? if so, then could you please run Sony Clie T615C with Memory Stick Bluetooth Card. > > % sdpcontrol -a palm_bd_addr browse RabbitsDen# sdpcontrol -a clie browse RabbitsDen# > > and/or > > % sdpcontrol -a palm_bd_addr search SP RabbitsDen# sdpcontrol -a clie search SP RabbitsDen# Both commands would cause Clie to show dialog box stating that Bluetooth connection is in progress. > > if you palm has serial port (SP) service then you should be able to just > connect to it without hitting sync button first. [...] > >> 2) add 'set log all' to the 'bluetooth' section. then try again. now > >> /var/log/ppp.log should have tons of information that will tell you > >> what is going all. > > > > Done - now I have lots more logged info I don't understand. :) > > could you post it somewhere? If you can post the log, it would be good -- I've omitted Palm-side configuration in my instructions which might have caused you considerable amount of grief -- I am using static address (192.168.1.2) and static DNS (less important by might fall through during negotiation). Side note -- to quote pilot-link man page: pi-csd this must be running to accept Network HotSync(tm) connects. admittedly it does not elaborate much and it took me some time and few tcpdump sessions to get it to work. -- Alexandre "Sunny" Kovalenko ( ) From owner-freebsd-bluetooth@FreeBSD.ORG Wed Aug 3 04:28:15 2005 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 64E0F16A420 for ; Wed, 3 Aug 2005 04:28:15 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from mh1.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id A303743D45 for ; Wed, 3 Aug 2005 04:28:14 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [192.168.42.25] ([192.168.42.25]) by mh1.centtech.com (8.13.1/8.13.1) with ESMTP id j734SCvo034804; Tue, 2 Aug 2005 23:28:12 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <42F047D3.7050805@centtech.com> Date: Tue, 02 Aug 2005 23:28:03 -0500 From: Eric Anderson User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.10) Gecko/20050802 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Eric Anderson References: <42D558B3.1060603@centtech.com> <42D55B3D.50605@savvis.net> <42D55D5D.8030604@centtech.com> <42D57496.2050102@savvis.net> <42D57C67.7020500@centtech.com> <1121287483.60360.21.camel@hood.oook.cz> <1122863179.663.22.camel@RabbitsDen> <42EE4F64.7040002@centtech.com> <42EE6438.9080209@savvis.net> <42EE7C76.2090904@centtech.com> <42EE85F9.50008@savvis.net> <42EE8D26.6010406@centtech.com> In-Reply-To: <42EE8D26.6010406@centtech.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.82/1001/Tue Aug 2 03:22:39 2005 on mh1.centtech.com X-Virus-Status: Clean Cc: freebsd-bluetooth@freebsd.org Subject: Re: Palm sync over bluetooth? X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Aug 2005 04:28:15 -0000 Eric Anderson wrote: > Maksim Yevmenkin wrote: > >> Eric, >> >> [...] >> >>>>>>> That's exactly how it is with serial and USB - computer connects to >>>>>>> Palm, then you start Hotsync application on Palm. >>>> >>>> >>>> >>>> does rfcomm_sppd(1) work for you? >>> >>> >>> >>> Well, not really. rfcomm_sppd requires that the palm be the server >>> of the serial port service (if I understand correctly, and I may >>> not!), which means I would have to hit the sync button, then quickly >>> start rfcomm_sppd with the correct channel number (which I don't >>> know), and then start my sync right after that. I have not been able >>> to get this trickery to work. Even so, if I did get it working, I'm >>> not sure this is the best solution. >> >> >> >> what palm model do you have? is it possible to simple turn on >> bluetooth without doing anything on palm? if so, then could you please >> run > > > Tungsten T5 > Bluetooth is on, but with the palm powered off, obviously nothing will > happen. With it on, only slightly more than nothing happens. See below. > >> % sdpcontrol -a palm_bd_addr browse >> >> and/or >> >> % sdpcontrol -a palm_bd_addr search SP >> >> if you palm has serial port (SP) service then you should be able to >> just connect to it without hitting sync button first. > > > Palm off: > [ 15:43:10 root@neutrino ~ ]# sdpcontrol -a epa-palm browse > Could not execute command "browse". Host is down > [ 15:43:23 root@neutrino ~ ]# sdpcontrol -a epa-palm search SP > Could not execute command "search". Host is down > > Palm on, doing nothing: > [ 15:43:40 root@neutrino ~ ]# sdpcontrol -a epa-palm browse > (beep beep beep on palm, says "connecting") > [ 15:43:46 root@neutrino ~ ]# sdpcontrol -a epa-palm search SP > Could not execute command "search". Host is down > [ 15:44:06 root@neutrino ~ ]# sdpcontrol -a epa-palm browse > [ 15:44:19 root@neutrino ~ ]# sdpcontrol -a epa-palm search SP > [ 15:44:22 root@neutrino ~ ]# sdpcontrol -a epa-palm browse > > Palm on, trying to hotsync: > (says 'connecting' after hotsync press) > [ 15:46:40 root@neutrino ~ ]# sdpcontrol -a epa-palm browse > [ 15:46:47 root@neutrino ~ ]# sdpcontrol -a epa-palm search SP > [ 15:46:49 root@neutrino ~ ]# sdpcontrol -a epa-palm browse > [ 15:46:52 root@neutrino ~ ]# > > >> it is also trivial to extend rfcomm_sppd(1) to make it work as server. >> you could use either nmdm(4) or pty(4) to emulate serial port. i could >> put it on my to do list, but i need to know how palm expects this to >> work (sorry never owned a palm :) > > > That would be pretty nifty probably. > > >> [...] >> >>>>> Any ideas what I may be missing? >>>> >>>> >>>> >>>> 1) check 'default' section in your /etc/ppp/ppp.conf and make sure >>>> it only contains commands that applied to _all_ other sections in >>>> your ppp.conf file. i always have 'default' section empty and move >>>> all the commands to the appropriate section. >>> >>> >>> >>> I've removed everything in the default section, with no changes (I >>> barely had anything in it). >> >> >> >> good. do you have a dropdown box on your palm that specifies remote >> system access type, i.e. something like PPP (unix), RAS (microsoft) or >> something like this? i recall that earlier versions of palm had such >> dropdown box. you need to use "PPP (unix)". >> >> you might want to try to add something like >> >> enable force-scripts >> set dial "CLIENT CLIENTSERVER" >> >> to your bluetooth section in /etc/ppp/ppp.conf. this should make ppp >> compatible with microsoft RAS style clients :) > > > I'll try this out tonight. > > >>>> 2) add 'set log all' to the 'bluetooth' section. then try again. now >>>> /var/log/ppp.log should have tons of information that will tell you >>>> what is going all. >>> >>> >>> >>> Done - now I have lots more logged info I don't understand. :) >> >> >> >> could you post it somewhere? > > > Sure - I'll post it tonight for you. > >>>> 3) since you are _not_ using ppp authentication make sure your palm >>>> does not require one >>> >>> >>> >>> Pretty sure it doesn't - no place to put in the info, and I connect >>> up to my cellphone over bluetooth for surfing, etc using a similar >>> method. >> >> >> >> do you mean you connect your palm to your cellphone? > > > Yea, I mean my palm connects to cellphone. Actually, I can also connect > using my laptop through my cellphone over bluetooth to get internet also. > > >>> Any more ideas? What should I be looking for in the ppp logs? I did >>> see this though: >>> >>> Aug 1 14:38:02 neutrino ppp[17496]: tun0: Phase: deflink: closed -> >>> opening >>> Aug 1 14:38:02 neutrino ppp[17496]: tun0: Debug: deflink: Link is >>> SOCK_STREAM, but not inet >>> Aug 1 14:38:02 neutrino ppp[17496]: tun0: Debug: deflink: stdin is >>> unidentified >> >> >> >> those are fine (i think). i'd like to see full log. i suspect there is >> something is wrong at ppp level. you also might want to run hcidump >> (from ports comms/hcidump) as root >> >> # hcidump -w palm.dump -- it will block >> >> then try to connect. then terminate hcidump with ^c and send me the >> palm.dump file. also what is the freebsd version? > > > -current (7.0). > > I'll try to get you more info tonight. ppp.log is here: http://www.googlebit.com/freebsd/ppp.log And palm.dump is there too. What else would you like? Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Anything that works is better than anything that doesn't. ------------------------------------------------------------------------ From owner-freebsd-bluetooth@FreeBSD.ORG Wed Aug 3 05:14:52 2005 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0AC3E16A41F for ; Wed, 3 Aug 2005 05:14:52 +0000 (GMT) (envelope-from maksim.yevmenkin@savvis.net) Received: from mta13.adelphia.net (mta13.adelphia.net [68.168.78.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7CD2143D45 for ; Wed, 3 Aug 2005 05:14:51 +0000 (GMT) (envelope-from maksim.yevmenkin@savvis.net) Received: from [192.168.1.254] (really [70.32.199.60]) by mta13.adelphia.net (InterMail vM.6.01.04.01 201-2131-118-101-20041129) with ESMTP id <20050803051450.TVVJ14360.mta13.adelphia.net@[192.168.1.254]>; Wed, 3 Aug 2005 01:14:50 -0400 Message-ID: <42F052D4.9030202@savvis.net> Date: Tue, 02 Aug 2005 22:15:00 -0700 From: Maksim Yevmenkin User-Agent: Mozilla Thunderbird 0.7.1 (Windows/20040626) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Eric Anderson References: <42D558B3.1060603@centtech.com> <42D55B3D.50605@savvis.net> <42D55D5D.8030604@centtech.com> <42D57496.2050102@savvis.net> <42D57C67.7020500@centtech.com> <1121287483.60360.21.camel@hood.oook.cz> <1122863179.663.22.camel@RabbitsDen> <42EE4F64.7040002@centtech.com> <42EE6438.9080209@savvis.net> <42EE7C76.2090904@centtech.com> <42EE85F9.50008@savvis.net> <42EE8D26.6010406@centtech.com> <42F047D3.7050805@centtech.com> In-Reply-To: <42F047D3.7050805@centtech.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-bluetooth@freebsd.org Subject: Re: Palm sync over bluetooth? X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Aug 2005 05:14:52 -0000 Eric, >>> [...] >>> >>>>>>>> That's exactly how it is with serial and USB - computer connects to >>>>>>>> Palm, then you start Hotsync application on Palm. >>>>> >>>>> does rfcomm_sppd(1) work for you? >>>> >>>> Well, not really. rfcomm_sppd requires that the palm be the server >>>> of the serial port service (if I understand correctly, and I may >>>> not!), which means I would have to hit the sync button, then quickly >>>> start rfcomm_sppd with the correct channel number (which I don't >>>> know), and then start my sync right after that. I have not been >>>> able to get this trickery to work. Even so, if I did get it >>>> working, I'm not sure this is the best solution. >>> >>> what palm model do you have? is it possible to simple turn on >>> bluetooth without doing anything on palm? if so, then could you >>> please run >> >> Tungsten T5 >> Bluetooth is on, but with the palm powered off, obviously nothing will >> happen. With it on, only slightly more than nothing happens. See below. >> >>> % sdpcontrol -a palm_bd_addr browse >>> >>> and/or >>> >>> % sdpcontrol -a palm_bd_addr search SP >>> >>> if you palm has serial port (SP) service then you should be able to >>> just connect to it without hitting sync button first. >> >> Palm off: >> [ 15:43:10 root@neutrino ~ ]# sdpcontrol -a epa-palm browse >> Could not execute command "browse". Host is down >> [ 15:43:23 root@neutrino ~ ]# sdpcontrol -a epa-palm search SP >> Could not execute command "search". Host is down >> >> Palm on, doing nothing: >> [ 15:43:40 root@neutrino ~ ]# sdpcontrol -a epa-palm browse >> (beep beep beep on palm, says "connecting") >> [ 15:43:46 root@neutrino ~ ]# sdpcontrol -a epa-palm search SP >> Could not execute command "search". Host is down >> [ 15:44:06 root@neutrino ~ ]# sdpcontrol -a epa-palm browse >> [ 15:44:19 root@neutrino ~ ]# sdpcontrol -a epa-palm search SP >> [ 15:44:22 root@neutrino ~ ]# sdpcontrol -a epa-palm browse >> >> Palm on, trying to hotsync: >> (says 'connecting' after hotsync press) >> [ 15:46:40 root@neutrino ~ ]# sdpcontrol -a epa-palm browse >> [ 15:46:47 root@neutrino ~ ]# sdpcontrol -a epa-palm search SP >> [ 15:46:49 root@neutrino ~ ]# sdpcontrol -a epa-palm browse >> [ 15:46:52 root@neutrino ~ ]# >> >>> it is also trivial to extend rfcomm_sppd(1) to make it work as >>> server. you could use either nmdm(4) or pty(4) to emulate serial >>> port. i could put it on my to do list, but i need to know how palm >>> expects this to work (sorry never owned a palm :) >> >> That would be pretty nifty probably. >> >>> [...] >>> >>>>>> Any ideas what I may be missing? >>>>> >>>>> 1) check 'default' section in your /etc/ppp/ppp.conf and make sure >>>>> it only contains commands that applied to _all_ other sections in >>>>> your ppp.conf file. i always have 'default' section empty and move >>>>> all the commands to the appropriate section. >>>> >>>> I've removed everything in the default section, with no changes (I >>>> barely had anything in it). >>> >>> good. do you have a dropdown box on your palm that specifies remote >>> system access type, i.e. something like PPP (unix), RAS (microsoft) >>> or something like this? i recall that earlier versions of palm had >>> such dropdown box. you need to use "PPP (unix)". >>> >>> you might want to try to add something like >>> >>> enable force-scripts >>> set dial "CLIENT CLIENTSERVER" >>> >>> to your bluetooth section in /etc/ppp/ppp.conf. this should make ppp >>> compatible with microsoft RAS style clients :) >> >> I'll try this out tonight. >> >>>>> 2) add 'set log all' to the 'bluetooth' section. then try again. >>>>> now /var/log/ppp.log should have tons of information that will tell >>>>> you what is going all. >>>> >>>> Done - now I have lots more logged info I don't understand. :) >>> >>> could you post it somewhere? >> >> Sure - I'll post it tonight for you. >> >>>>> 3) since you are _not_ using ppp authentication make sure your palm >>>>> does not require one >>>> >>>> Pretty sure it doesn't - no place to put in the info, and I connect >>>> up to my cellphone over bluetooth for surfing, etc using a similar >>>> method. >>> >>> do you mean you connect your palm to your cellphone? >> >> Yea, I mean my palm connects to cellphone. Actually, I can also >> connect using my laptop through my cellphone over bluetooth to get >> internet also. >> >>>> Any more ideas? What should I be looking for in the ppp logs? I >>>> did see this though: >>>> >>>> Aug 1 14:38:02 neutrino ppp[17496]: tun0: Phase: deflink: closed -> >>>> opening >>>> Aug 1 14:38:02 neutrino ppp[17496]: tun0: Debug: deflink: Link is >>>> SOCK_STREAM, but not inet >>>> Aug 1 14:38:02 neutrino ppp[17496]: tun0: Debug: deflink: stdin is >>>> unidentified >>> >>> those are fine (i think). i'd like to see full log. i suspect there >>> is something is wrong at ppp level. you also might want to run >>> hcidump (from ports comms/hcidump) as root >>> >>> # hcidump -w palm.dump -- it will block >>> >>> then try to connect. then terminate hcidump with ^c and send me the >>> palm.dump file. also what is the freebsd version? >> >> -current (7.0). >> >> I'll try to get you more info tonight. > > ppp.log is here: > > http://www.googlebit.com/freebsd/ppp.log > > And palm.dump is there too. > > What else would you like? err... does not work... Forbidden You don't have permission to access /freebsd/ppp.log on this server. Apache/1.3.33 Server at googlebit.com Port 80 max From owner-freebsd-bluetooth@FreeBSD.ORG Wed Aug 3 15:30:46 2005 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4338C16A41F for ; Wed, 3 Aug 2005 15:30:46 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from mh2.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB29743D49 for ; Wed, 3 Aug 2005 15:30:45 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by mh2.centtech.com (8.13.1/8.13.1) with ESMTP id j73FUhOh024973; Wed, 3 Aug 2005 10:30:43 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <42F0E319.6020007@centtech.com> Date: Wed, 03 Aug 2005 10:30:33 -0500 From: Eric Anderson User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.10) Gecko/20050802 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Maksim Yevmenkin References: <42D558B3.1060603@centtech.com> <42D55B3D.50605@savvis.net> <42D55D5D.8030604@centtech.com> <42D57496.2050102@savvis.net> <42D57C67.7020500@centtech.com> <1121287483.60360.21.camel@hood.oook.cz> <1122863179.663.22.camel@RabbitsDen> <42EE4F64.7040002@centtech.com> <42EE6438.9080209@savvis.net> <42EE7C76.2090904@centtech.com> <42EE85F9.50008@savvis.net> <42EE8D26.6010406@centtech.com> <42F047D3.7050805@centtech.com> <42F052D4.9030202@savvis.net> In-Reply-To: <42F052D4.9030202@savvis.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-bluetooth@freebsd.org Subject: Re: Palm sync over bluetooth? X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Aug 2005 15:30:46 -0000 Maksim Yevmenkin wrote: > Eric, > >>>> [...] >>>> >>>>>>>>> That's exactly how it is with serial and USB - computer >>>>>>>>> connects to >>>>>>>>> Palm, then you start Hotsync application on Palm. >>>>>> >>>>>> >>>>>> does rfcomm_sppd(1) work for you? >>>>> >>>>> >>>>> Well, not really. rfcomm_sppd requires that the palm be the server >>>>> of the serial port service (if I understand correctly, and I may >>>>> not!), which means I would have to hit the sync button, then >>>>> quickly start rfcomm_sppd with the correct channel number (which I >>>>> don't know), and then start my sync right after that. I have not >>>>> been able to get this trickery to work. Even so, if I did get it >>>>> working, I'm not sure this is the best solution. >>>> >>>> >>>> what palm model do you have? is it possible to simple turn on >>>> bluetooth without doing anything on palm? if so, then could you >>>> please run >>> >>> >>> Tungsten T5 >>> Bluetooth is on, but with the palm powered off, obviously nothing >>> will happen. With it on, only slightly more than nothing happens. >>> See below. >>> >>>> % sdpcontrol -a palm_bd_addr browse >>>> >>>> and/or >>>> >>>> % sdpcontrol -a palm_bd_addr search SP >>>> >>>> if you palm has serial port (SP) service then you should be able to >>>> just connect to it without hitting sync button first. >>> >>> >>> Palm off: >>> [ 15:43:10 root@neutrino ~ ]# sdpcontrol -a epa-palm browse >>> Could not execute command "browse". Host is down >>> [ 15:43:23 root@neutrino ~ ]# sdpcontrol -a epa-palm search SP >>> Could not execute command "search". Host is down >>> >>> Palm on, doing nothing: >>> [ 15:43:40 root@neutrino ~ ]# sdpcontrol -a epa-palm browse >>> (beep beep beep on palm, says "connecting") >>> [ 15:43:46 root@neutrino ~ ]# sdpcontrol -a epa-palm search SP >>> Could not execute command "search". Host is down >>> [ 15:44:06 root@neutrino ~ ]# sdpcontrol -a epa-palm browse >>> [ 15:44:19 root@neutrino ~ ]# sdpcontrol -a epa-palm search SP >>> [ 15:44:22 root@neutrino ~ ]# sdpcontrol -a epa-palm browse >>> >>> Palm on, trying to hotsync: >>> (says 'connecting' after hotsync press) >>> [ 15:46:40 root@neutrino ~ ]# sdpcontrol -a epa-palm browse >>> [ 15:46:47 root@neutrino ~ ]# sdpcontrol -a epa-palm search SP >>> [ 15:46:49 root@neutrino ~ ]# sdpcontrol -a epa-palm browse >>> [ 15:46:52 root@neutrino ~ ]# >>> >>>> it is also trivial to extend rfcomm_sppd(1) to make it work as >>>> server. you could use either nmdm(4) or pty(4) to emulate serial >>>> port. i could put it on my to do list, but i need to know how palm >>>> expects this to work (sorry never owned a palm :) >>> >>> >>> That would be pretty nifty probably. >>> >>>> [...] >>>> >>>>>>> Any ideas what I may be missing? >>>>>> >>>>>> >>>>>> 1) check 'default' section in your /etc/ppp/ppp.conf and make sure >>>>>> it only contains commands that applied to _all_ other sections in >>>>>> your ppp.conf file. i always have 'default' section empty and move >>>>>> all the commands to the appropriate section. >>>>> >>>>> >>>>> I've removed everything in the default section, with no changes (I >>>>> barely had anything in it). >>>> >>>> >>>> good. do you have a dropdown box on your palm that specifies remote >>>> system access type, i.e. something like PPP (unix), RAS (microsoft) >>>> or something like this? i recall that earlier versions of palm had >>>> such dropdown box. you need to use "PPP (unix)". >>>> >>>> you might want to try to add something like >>>> >>>> enable force-scripts >>>> set dial "CLIENT CLIENTSERVER" >>>> >>>> to your bluetooth section in /etc/ppp/ppp.conf. this should make ppp >>>> compatible with microsoft RAS style clients :) >>> >>> >>> I'll try this out tonight. >>> >>>>>> 2) add 'set log all' to the 'bluetooth' section. then try again. >>>>>> now /var/log/ppp.log should have tons of information that will >>>>>> tell you what is going all. >>>>> >>>>> >>>>> Done - now I have lots more logged info I don't understand. :) >>>> >>>> >>>> could you post it somewhere? >>> >>> >>> Sure - I'll post it tonight for you. >>> >>>>>> 3) since you are _not_ using ppp authentication make sure your >>>>>> palm does not require one >>>>> >>>>> >>>>> Pretty sure it doesn't - no place to put in the info, and I connect >>>>> up to my cellphone over bluetooth for surfing, etc using a similar >>>>> method. >>>> >>>> >>>> do you mean you connect your palm to your cellphone? >>> >>> >>> Yea, I mean my palm connects to cellphone. Actually, I can also >>> connect using my laptop through my cellphone over bluetooth to get >>> internet also. >>> >>>>> Any more ideas? What should I be looking for in the ppp logs? I >>>>> did see this though: >>>>> >>>>> Aug 1 14:38:02 neutrino ppp[17496]: tun0: Phase: deflink: closed >>>>> -> opening >>>>> Aug 1 14:38:02 neutrino ppp[17496]: tun0: Debug: deflink: Link is >>>>> SOCK_STREAM, but not inet >>>>> Aug 1 14:38:02 neutrino ppp[17496]: tun0: Debug: deflink: stdin is >>>>> unidentified >>>> >>>> >>>> those are fine (i think). i'd like to see full log. i suspect there >>>> is something is wrong at ppp level. you also might want to run >>>> hcidump (from ports comms/hcidump) as root >>>> >>>> # hcidump -w palm.dump -- it will block >>>> >>>> then try to connect. then terminate hcidump with ^c and send me the >>>> palm.dump file. also what is the freebsd version? >>> >>> >>> -current (7.0). >>> >>> I'll try to get you more info tonight. >> >> >> ppp.log is here: >> >> http://www.googlebit.com/freebsd/ppp.log >> >> And palm.dump is there too. >> >> What else would you like? > > > err... does not work... > > Forbidden > You don't have permission to access /freebsd/ppp.log on this server. > > Apache/1.3.33 Server at googlebit.com Port 80 Woops.. Fixed! Also - can hcidump sniff a bluetooth exchange between two other hosts? What I was thinking, was I could get a dump from my palm syncing to a windows box over bluetooth. Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Anything that works is better than anything that doesn't. ------------------------------------------------------------------------