From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <685df2130805270710se605e9cv8412c145578b8eb9@mail.gmail.com> Date: Tue, 27 May 2008 10:10:42 -0400 From: "Joshua Bryant" To: bluez-users@lists.sourceforge.net MIME-Version: 1.0 Subject: Re: [Bluez-users] How do you start the audio service in bluez-utils 3.30-3 Reply-To: BlueZ users List-Id: BlueZ users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0695735021==" Sender: bluez-users-bounces@lists.sourceforge.net Errors-To: bluez-users-bounces@lists.sourceforge.net --===============0695735021== Content-Type: multipart/alternative; boundary="----=_Part_16143_1901539.1211897442584" ------=_Part_16143_1901539.1211897442584 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline To get the audio plugin to load, you have to recompile with the --enable-glib switch. The Activate service call isn't helpful anymore. It used to return the bus id of the audio service, but now the audio service is a plugin. So the service you want is actually "org.bluez" You don't need to call ActivateService anymore. Just replace ":X.Y" in your dbus calls with "org.bluez" I had to figure this out on my own since the documentation on wiki.bluez.orgis outdated. On Tue, May 27, 2008 at 9:08 AM, wrote: > Send Bluez-users mailing list submissions to > bluez-users@lists.sourceforge.net > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/bluez-users > or, via email, send a message with subject or body 'help' to > bluez-users-request@lists.sourceforge.net > > You can reach the person managing the list at > bluez-users-owner@lists.sourceforge.net > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Bluez-users digest..." > > > Today's Topics: > > 1. Re: CSR bluecore initial problem (attaboyu@163.com) > 2. Re: Syncing a Treo 680 (jayjwa) > 3. How do you start the audio service in bluez-utils 3.30-3 > (ShiroiKuma) > 4. hcid problem (attaboyu) > 5. Re: How do you start the audio service in bluez-utils 3.30-3 > (ShiroiKuma) > 6. Bluetooth Keyboard Kernel 2.4 (Fritz Code) > 7. Re: Syncing a Treo 680 (Raymond Ingles) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 26 May 2008 15:34:18 +0800 (CST) > From: attaboyu@163.com > Subject: Re: [Bluez-users] CSR bluecore initial problem > To: "BlueZ users" > Message-ID: > <25980571.990131211787258597.JavaMail.coremail@bj163app120.163.com> > Content-Type: text/plain; charset="utf-8" > > Thanks indeed, it works! > > ?2008-05-24?"Peter Wurmsdobler" ??? > > > > > >Hello, > > > >a few months back I encountered a similar problem. hciattach did not > >(and still does not) always succeed, and bccmd seems to have a problem > >using the BlueCore serial protocol (bcsp), possibly a race condition. > >That's why I have to use: > > > > /usr/sbin/hciattach /dev/ttymxc2 bcsp 57600 flow > > /usr/sbin/hciconfig hci0 up > > /usr/sbin/bccmd -t hci psload -r > /usr/etc/bluetooth/apm6628BT-UART.psr > > killall hciattach > > /usr/sbin/hciattach /dev/ttymxc2 bcsp 115200 flow > > /usr/sbin/hciconfig hci0 up > > > >Notice the bccmd -t hci, so you have to attach first using bcsp, then > >use bccmd with this hci in order to download the psr file (which will > >reset the BlueCore), then kill the hci and re-attach. > > > >Hope this helps, > >peter > > > > > > > > > >'); > > } > >//--> > > > > > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 2 > Date: Mon, 26 May 2008 05:44:02 -0400 > From: jayjwa > Subject: Re: [Bluez-users] Syncing a Treo 680 > To: BlueZ users > Message-ID: > Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII > > > > On Sat, 24 May 2008, bluez-users.10.judebert@spamgourmet.com wrote: > > -> I gave both pages a fair shake. Short story: I'm still willing to > provide > -> $20 for a walkthrough. Long story: I had the following problems: > > I don't have a Treo, or have seen one, but maybe I can help on the bluez > side of things. > > -> > > http://www.gurulabs.com/goodies/Using_Linux_and_Bluetooth_DUN_with_the_Treo650.php > -> > > -> That page is set up for Red Hat. Debian doesn't have the bluez-pin > package, > -> and its hcid.conf is a little different: it contains the PIN, and > doesn't > -> have a dbus_pin_helper (not in any of the packages, either). There's > also no > -> system-config-security-level. Nevertheless, everything seems to go > well, > -> until I enter my PIN. Even when I set up the "feed-pin.sh" file, I get > an > -> error dialog on the Treo 680 titled "Bluetooth Security": "Unable to add > -> ComputerName-0 to your trusted device list." > > Red Hat is moldy-oldy and those objects/packages are now obsolete from the > current bluez setup. PIN/pairing you do with bluez-gnome or I use the > passkey-agent/auth-agent that's in the bluez-utils source, from the command > line since gnome stuff won't build on my system as I don't have gnome nor > its > libraries. The "Unable to...trusted device list." likely means there was > nothing on your system answering the pairing request (properly). You seem > to > have pairing down, as you said below. > > -> > http://howto.pilot-link.org/bluesync/ > -> > > -> This page also requires packages not available on Debian: bluez-lib, > -> bluez-pan and bluez-sdp. The Palm pieces seem more relevant to my Treo; > -> however, the Treo seems to already have a Bluetooth HotSync profile. It > has > -> a nice little tutorial that, after the equivalent of figure 5-8, says I > have > -> to set up a virtual serial port on my computer. I assume that's what > hcid, > -> pand, and rfcomm are doing, and carry on. Actually clicking the "Launch > -> HotSync" button leads to a message: "Connecting with the desktop using > -> ComputerName-0", followed by an error dialog titled "HotSync Problem": > -> "Unable to initiate HotSync operation because the port is in use by > another > -> application." > > pand is part of bluez-utils. sdpd as a binary is gone. The actual packages > are > listed at http://www.bluez.org/download.html. Distributions mix & match > those > and create many packages from those listed few. > > > Changelog: > > ver 3.30: > ... > Remove build option for deprecated sdpd binary. > > > You can use hcid -s to enable sdp. Setting up a serial port with rfcomm is > something like so, using my phone's bluetooth modem as an example: > > root@vdrl /tmp # hcitool scan > Scanning ... > 00:1C:62:19:B1:6A LG VX8300 > > passkey-agent --default 0000 00:1C:62:19:B1:6A & <-- Use bluez-gnome for > auth-agent & these. It doesn't > build > on my system due to > lack > of gnome. > > sdptool browse 00:1C:62:19:B1:6A > > Passkey request for device 00:1C:62:19:B1:6A > Browsing 00:1C:62:19:B1:6A ... > > .... > > Service Name: BT DIAG > Service RecHandle: 0x10005 > Service Class ID List: > "Serial Port" (0x1101) > Protocol Descriptor List: > "L2CAP" (0x0100) > "RFCOMM" (0x0003) > Channel: 16 <--- channel 16 > Language Base Attr List: > code_ISO639: 0x656e > encoding: 0x6a > base_offset: 0x100 > Profile Descriptor List: > "Serial Port" (0x1101) <-- serial port > > rfcomm --help > > RFCOMM configuration utility ver 3.31 > Usage: > rfcomm [options] > > Options: > -i [hciX|bdaddr] Local HCI device or BD Address > -h, --help Display help > -r, --raw Switch TTY into raw mode > -A, --auth Enable authentication > -E, --encrypt Enable encryption > -S, --secure Secure connection > -M, --master Become the master of a piconet > -f, --config [file] Specify alternate config file > -a Show all devices (default) > > Commands: > bind [channel] Bind device > release Release device > show Show device > connect [channel] Connect device > listen [channel [cmd]] Listen > watch [channel [cmd]] Watch > > rfcomm -i hci0 bind 0 00:1C:62:19:B1:6A 16 <-- "0" means "rfcomm0" > rfcomm -a > rfcomm0: 00:0A:3A:7C:5C:74 -> 00:1C:62:19:B1:6A channel 16 clean > > Then you'd give /dev/rfcomm0 to whatever was needing it (pppd, etc.) Make > sure > the rfcomm device files exist and are correct (procinfo -a should show the > major number for rfcomm, here it's 216): > > crw-rw-rw- 1 root root 216, 0 2007-12-16 07:29 /dev/rfcomm0 > crw-rw-rw- 1 root root 216, 1 2007-12-16 07:29 /dev/rfcomm1 > crw-rw-rw- 1 root root 216, 2 2007-12-16 07:29 /dev/rfcomm2 > > > Using dund might skip the above step, as it might bind /dev/rfcomm0 itself. > Note when using dund/pppd you usually use a script to hold the options to > pppd > and then a connection script. If you put the script in > /etc/ppp/peers/ (whatever) you can do 'pppd call (whatever)' > > rfcomm0: 00:0A:3A:7C:5C:74 -> 00:1C:62:19:B1:6A channel 16 connected > [tty-attached] > > Unfortunately, Verizon does a major disservice to their customers by > crippling > the phone's modem via bluetooth so I can't show you pppd in action since > the > phone ignores the bt commands from here on out (but I have done it via USB > so > I know it works). > > Release rfcomm after you use it. Maybe the 'port is in use' is from that? > > rfcomm release 0 > > > > -> I assume this is because it never asked for a PIN, but I just don't > know. > -> When I carry on, adding the /etc/bluetooth/pin file as instructed in > Chapter > -> 6, I get the same "Unable to add" message as above. > > That file isn't used anymore, as far as I can tell. Bluez is a fast moving > target (as I write this I find there's another new release now). They > release > new versions with major fixes and functionality changes all the time. When > you > use a distribution's packaged version, you run into a problem - whether to > try > to make something that's already out-dated and containing bugs/missing > functionality (as compared to the current bluez source releases) work, or > to > try to go it alone and build the current bluez sources yourself. Problems > arise when you try to help someone out as well, because of the differences > in > versions and lag time between disto/packaged bluez and the released > sources. > > > -> Unfortunately, I still got the "port is in use" error. I went back > through > -> the second link, added my computer as a network, and tried to follow the > -> setup in Chapter 7.1 for surfing the web (because Chapter 7.2 says that > I > -> need the pppd set up here), but I don't have sdpd running, and I don't > know > -> where to find it. > > The rest of the tut looks OK, from 7-1 on, with the exception that sdpd is > gone from bluez-utils and hcid -s takes its place. > > > > > ------------------------------ > > Message: 3 > Date: Tue, 27 May 2008 02:18:54 +0200 > From: "ShiroiKuma" > Subject: [Bluez-users] How do you start the audio service in > bluez-utils 3.30-3 > To: bluez-users@lists.sourceforge.net > Message-ID: <20080527001041.M20414@ShiroiKuma.org> > Content-Type: text/plain; charset=utf-8 > > Hi: > > I'm having some difficulties using bluez-audio. I'm using Debian sid > bluez-utils 3.30-3 > > I've seen that since version 3.30-1 the bluez-audio service is no longer > started via > /usr/lib/bluetooth/bluetoothd-service-audio and instead bluez-utils > switched to shared library objects which are loaded > by hcid > > How do I start the audio service now? > > dbus-send --system --print-reply --dest=org.bluez /org/bluez > org.bluez.Manager.ListServices gives me: > method return sender=:1.45 -> dest=:1.50 reply_serial=2 > array [ > ] > > and dbus-send --system --type=method_call --print-reply --dest=org.bluez > /org/bluez org.bluez.Manager.ActivateService > string:audio gives me: > Error org.bluez.Error.NoSuchService: No such service > > I've googled, but haven't found anything that would point me towards a > solution, the only mention, The bluez Wiki at > http://wiki.bluez.org/wiki/HOWTO/AudioDevices just says: > Make sure the audio service is installed > > So how should I proceed? > > > > ------------------------------ > > Message: 4 > Date: Tue, 27 May 2008 10:36:01 +0800 (CST) > From: attaboyu > Subject: [Bluez-users] hcid problem > To: "BlueZ users" > Message-ID: > <11216581.210541211855761644.JavaMail.coremail@bj163app120.163.com> > Content-Type: text/plain; charset="gbk" > > Hi all > I have got a hcid problem below: > $hcid -f /etc/bluetooth/hcid.conf > BUG: scheduling while atomic: hcid/0x00000101/51 > caller is schedule+0xec/0x12c > > There is no hcid process running from ps view. if run hcid again, > something will be issued: > > BUG: scheduling while atomic: swapper/0x00000103/0 > caller is schedule+0xec/0x12c > BUG: scheduling from the idle thread! > Unable to handle kernel NULL pointer dereference at virtual address > 00000004 > pgd = c0004000 > [00000004] *pgd= > > as kernel version is 2.6.10, so I use a old bluez version 3.12 > > > > > > -- > > Best Regards > ------------ > Tony > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 5 > Date: Tue, 27 May 2008 09:29:54 +0200 > From: "ShiroiKuma" > Subject: Re: [Bluez-users] How do you start the audio service in > bluez-utils 3.30-3 > To: BlueZ users > Message-ID: <20080527072731.M23487@ShiroiKuma.org> > Content-Type: text/plain; charset=utf-8 > > Further to this problem, I've found in the syslog the following: > Can't init plugin /usr/lib/bluetooth/plugins/libaudio.so > > There's mention of this problem at > http://article.gmane.org/gmane.linux.bluez.user/13790 > > Is there any solution other than recompiling bluez-utils? > > > > > ------------------------------ > > Message: 6 > Date: Tue, 27 May 2008 09:34:10 +0200 > From: "Fritz Code" > Subject: [Bluez-users] Bluetooth Keyboard Kernel 2.4 > To: bluez-users@lists.sourceforge.net > Message-ID: > <3e9cdced0805270034s3409b6aby382454375651b711@mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > Hi, > > I have to connect a bluetooth keyboard, I'm using Kernel 2.4.21. > The bluetooth subsystem and bluez utils (hcitool, hcid, hciconfig) work so > far. > > Well I have two options now, try this way (which is not related to bluez): > http://klausler.com/msbtkb-linux.html > > Or try to use bluez. > If I use bluez I have to load hidp.o module, right? > But my kernel 2.4.21 doesn't provide such a module. > > So I'm not sure what to do in order to get a bluetooth keyboard running in > my Kernel 2.4.21. > If there are any hints / experiences. > > Note: I'm flexible in the keyboard type and manufactuarer, so if anybody > can recommend a keyboard for the use of Kernel 2.4.21 I would appreciate > that. > > Thanks. > Fritz. > > > -- > Regards, > --Codefritz > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 7 > Date: Tue, 27 May 2008 09:08:45 -0400 > From: "Raymond Ingles" > Subject: Re: [Bluez-users] Syncing a Treo 680 > To: "BlueZ users" > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > On Sat, May 24, 2008 at 12:46 AM, > wrote: > > I gave both pages a fair shake. Short story: I'm still willing to > > provide $20 for a walkthrough. Long story: I had the following problems: > > I'm using Ubuntu 7.10. Here's what I've used to get bluetooth > connectivity with my Treo 650: > > 1. Edit /etc/default/bluetooth, and set the following variables: > DUND_ENABLED=1 > DUND_OPTIONS="--listen --persist --msdun call treo" > PAND_ENABLED=1 > PAND_OPTIONS="--listen --role NAP" > SDPTOOL_OPTIONS="add --channel=1 SP" > > (Note, that's not the whole file, it's just the variables that need to be > set.) > > 2. If you want to surf the web on the Palm through your computer, > create the file /etc/init.d/btinternet with the following contents: > > #!/bin/sh > # enable IP forwarding > echo 1 > /proc/sys/net/ipv4/ip_forward > # enable masquerading onto eth0 > iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE > > (Assuming eth0 is your computer's connection to the internet.) > > 3. Create the file /etc/ppp/peers/treo with the following contents: > > proxyarp > 115200 > 172.16.10.1:172.16.10.2 > local > ms-dns IP.ADDR.OF.DNS.SERVER > noauth > debug > ktune > > Note: the "IP.ADDR.OF.DNS.SERVER" needs to be the ip address of the > DNS server your computer's using. Use "nslookup www.google.com" and > copy the ip address in the line starting with "Server:". > > 4. Edit /etc/bluetooth/hcid.conf and set the following values: > > security auto; > passkey "WHATEVER PASSKEY YOU WANT"; > > Obviously, you set a PIN number there for pairing. > > 5. Edit /etc/bluetooth/rfcomm.conf and set the following values: > > # Automatically bind the device at startup > bind yes; > # The Bluetooth address of your Treo (find with hcitool scan > when Treo is discoverable) > device DE:AD:BE:EF:D0:0D; > # RFCOMM channel for the connection > channel 1; > # Description of the connection > comment "Palm link"; > > 6. Restart bluetooth services (/etc/init.d/bluetooth stop; > /etc/init.d/bluetooth start), run the btinternet script above as root. > > 7. Now we're on the Treo. Pair the Treo with the computer using the > PIN you set above. (Bluetooth app, "Setup Devices", "Nearby Devices", > pick your computer, enter the PIN when prompted.) > > 8. Go to "Preferences", choose "Connection", and name it something > like "BT PAN conn". "Connect to: Local Network; Via: Bluetooth; > Device: your-machine-name". Details - Speed: 115,200; Flow Ctl: > Automatic." > > 9. Prefs -> Network. Create a new service, "BT PAN nw", set the > Connection to the one you just created in step 8. Username: your user > name on the machine, Password: prompt. Details: set the idle timeout > to whatever you like. Choose "Advanced" from "Details", and set "IP > Address" to "Automatic", unset "Query DNS", and put the DNS server you > found above in the "Primary DNS" field. > > At this point, you *should* be able to get a network connection via > PAN, and surf the net through your Palm. Using the normal commands to > do network hotsyncs and things *should* work. If not, we also > configured DUN (PPP over emulated serial) above. In my experience, > it's been a bit slower/less reliable than PAN, but it also works. > Here's how to set *that* up: > > 10. Go to "Preferences", choose "Connection", and name it something > like "BT DUN conn". "Connect to: PC; Via: Bluetooth; Device: > your-machine-name". Details - Speed: 115,200; Flow Ctl: Automatic." > > 11. Prefs -> Network. Create a new service, "BT DUN nw", set the > Connection to the one you just created in step 10. Username: your user > name on the machine, Password: prompt. Details: set the idle timeout > to whatever you like. Choose "Advanced" from "Details", and set "IP > Address" to "Automatic", set "Query DNS" to active (checkbox set). No > script is needed. > > This has worked for me on two different machines with two different > Bluetooth dongles, from Ubuntu 6.10 onward. If it works for you, > donate the money to the Free Software Foundation, or the Debian > project. > > > > ------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > ------------------------------ > > _______________________________________________ > Bluez-users mailing list > Bluez-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bluez-users > > > End of Bluez-users Digest, Vol 25, Issue 21 > ******************************************* > ------=_Part_16143_1901539.1211897442584 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline To get the audio plugin to load, you have to recompile with the --enable-glib switch.

The Activate service call isn't helpful anymore. It used to return the bus id of the audio service, but now the audio service is a plugin. So the service you want is actually "org.bluez"

You don't need to call ActivateService anymore. Just replace ":X.Y" in your dbus calls with "org.bluez"

I had to figure this out on my own since the documentation on wiki.bluez.org is outdated.

On Tue, May 27, 2008 at 9:08 AM, <bluez-users-request@lists.sourceforge.net> wrote:
Send Bluez-users mailing list submissions to
       bluez-users@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
       https://lists.sourceforge.net/lists/listinfo/bluez-users
or, via email, send a message with subject or body 'help' to
       bluez-users-request@lists.sourceforge.net

You can reach the person managing the list at
       bluez-users-owner@lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Bluez-users digest..."


Today's Topics:

  1. Re: CSR bluecore initial problem (attaboyu@163.com)
  2. Re: Syncing a Treo 680 (jayjwa)
  3. How do you start the audio service in bluez-utils 3.30-3
     (ShiroiKuma)
  4. hcid problem (attaboyu)
  5. Re: How do you start the audio service in bluez-utils     3.30-3
     (ShiroiKuma)
  6. Bluetooth Keyboard Kernel 2.4 (Fritz Code)
  7. Re: Syncing a Treo 680 (Raymond Ingles)


----------------------------------------------------------------------

Message: 1
Date: Mon, 26 May 2008 15:34:18 +0800 (CST)
From: attaboyu@163.com
Subject: Re: [Bluez-users] CSR bluecore initial problem
To: "BlueZ users" <bluez-users@lists.sourceforge.net>
Message-ID:
       <25980571.990131211787258597.JavaMail.coremail@bj163app120.163.com>
Content-Type: text/plain; charset="utf-8"

Thanks indeed, it works!

?2008-05-24?"Peter Wurmsdobler" <peter@wurmsdobler.org> ???
>
>
>Hello,
>
>a few months back I encountered a similar problem. hciattach did not
>(and still does not) always succeed, and bccmd seems to have a problem
>using the BlueCore serial protocol (bcsp), possibly a race condition.
>That's why I have to use:
>
>      /usr/sbin/hciattach /dev/ttymxc2 bcsp 57600 flow
>      /usr/sbin/hciconfig hci0 up
>      /usr/sbin/bccmd -t hci psload -r /usr/etc/bluetooth/apm6628BT-UART.psr
>      killall hciattach
>      /usr/sbin/hciattach /dev/ttymxc2 bcsp 115200 flow
>      /usr/sbin/hciconfig hci0 up
>
>Notice the bccmd -t hci, so you have to attach first using bcsp, then
>use bccmd with this hci in order to download the psr file (which will
>reset the BlueCore), then kill the hci and re-attach.
>
>Hope this helps,
>peter
>
>
>
>
>');
>       }
>//-->
>
>
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 2
Date: Mon, 26 May 2008 05:44:02 -0400
From: jayjwa <jayjwa@atr2.ath.cx>
Subject: Re: [Bluez-users] Syncing a Treo 680
To: BlueZ users <bluez-users@lists.sourceforge.net>
Message-ID: <alpine.LNX.1.00.0805251428300.13798@nge2.ngu.pk>
Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII



On Sat, 24 May 2008, bluez-users.10.judebert@spamgourmet.com wrote:

-> I gave both pages a fair shake.  Short story: I'm still willing to provide
-> $20 for a walkthrough.  Long story: I had the following problems:

I don't have a Treo, or have seen one, but maybe I can help on the bluez
side of things.

-> > http://www.gurulabs.com/goodies/Using_Linux_and_Bluetooth_DUN_with_the_Treo650.php
-> >
-> That page is set up for Red Hat.  Debian doesn't have the bluez-pin package,
-> and its hcid.conf is a little different: it contains the PIN, and doesn't
-> have a dbus_pin_helper (not in any of the packages, either). There's also no
-> system-config-security-level.  Nevertheless, everything seems to go well,
-> until I enter my PIN. Even when I set up the "feed-pin.sh" file, I get an
-> error dialog on the Treo 680 titled "Bluetooth Security": "Unable to add
-> ComputerName-0 to your trusted device list."

Red Hat is moldy-oldy and those objects/packages are now obsolete from the
current bluez setup. PIN/pairing you do with bluez-gnome or I use the
passkey-agent/auth-agent that's in the bluez-utils source, from the command
line since gnome stuff won't build on my system as I don't have gnome nor its
libraries. The "Unable to...trusted device list." likely means there was
nothing on your system answering the pairing request (properly). You seem to
have pairing down, as you said below.

-> > http://howto.pilot-link.org/bluesync/
-> >
-> This page also requires packages not available on Debian: bluez-lib,
-> bluez-pan and bluez-sdp.  The Palm pieces seem more relevant to my Treo;
-> however, the Treo seems to already have a Bluetooth HotSync profile.  It has
-> a nice little tutorial that, after the equivalent of figure 5-8, says I have
-> to set up a virtual serial port on my computer.  I assume that's what hcid,
-> pand, and rfcomm are doing, and carry on.  Actually clicking the "Launch
-> HotSync" button leads to a message: "Connecting with the desktop using
-> ComputerName-0", followed by an error dialog titled "HotSync Problem":
-> "Unable to initiate HotSync operation because the port is in use by another
-> application."

pand is part of bluez-utils. sdpd as a binary is gone. The actual packages are
listed at http://www.bluez.org/download.html. Distributions mix & match those
and create many packages from those listed few.


Changelog:

ver 3.30:
...
        Remove build option for deprecated sdpd binary.


You can use hcid -s to enable sdp. Setting up a serial port with rfcomm is
something like so, using my phone's bluetooth modem as an example:

root@vdrl /tmp # hcitool scan
Scanning ...
        00:1C:62:19:B1:6A       LG VX8300

passkey-agent --default 0000 00:1C:62:19:B1:6A &  <-- Use bluez-gnome for
auth-agent &                                          these. It doesn't build
                                                      on my system due to lack
                                                      of gnome.

sdptool browse 00:1C:62:19:B1:6A

Passkey request for device 00:1C:62:19:B1:6A
Browsing 00:1C:62:19:B1:6A ...

....

Service Name: BT DIAG
Service RecHandle: 0x10005
Service Class ID List:
  "Serial Port" (0x1101)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 16                <--- channel 16
Language Base Attr List:
  code_ISO639: 0x656e
  encoding:    0x6a
  base_offset: 0x100
Profile Descriptor List:
  "Serial Port" (0x1101)       <-- serial port

rfcomm --help

RFCOMM configuration utility ver 3.31
Usage:
        rfcomm [options] <command> <dev>

Options:
        -i [hciX|bdaddr]      Local HCI device or BD Address
        -h, --help            Display help
        -r, --raw             Switch TTY into raw mode
        -A, --auth            Enable authentication
        -E, --encrypt         Enable encryption
        -S, --secure          Secure connection
        -M, --master          Become the master of a piconet
        -f, --config [file]   Specify alternate config file
        -a                    Show all devices (default)

Commands:
        bind     <dev> <bdaddr> [channel]       Bind device
        release  <dev>                          Release device
        show     <dev>                          Show device
        connect  <dev> <bdaddr> [channel]       Connect device
        listen   <dev> [channel [cmd]]          Listen
        watch    <dev> [channel [cmd]]          Watch

rfcomm -i hci0 bind 0 00:1C:62:19:B1:6A 16   <-- "0" means "rfcomm0"
rfcomm -a
rfcomm0: 00:0A:3A:7C:5C:74 -> 00:1C:62:19:B1:6A channel 16 clean

Then you'd give /dev/rfcomm0 to whatever was needing it (pppd, etc.) Make sure
the rfcomm device files exist and are correct (procinfo -a should show the
major number for rfcomm, here it's 216):

crw-rw-rw- 1 root root 216, 0 2007-12-16 07:29 /dev/rfcomm0
crw-rw-rw- 1 root root 216, 1 2007-12-16 07:29 /dev/rfcomm1
crw-rw-rw- 1 root root 216, 2 2007-12-16 07:29 /dev/rfcomm2


Using dund might skip the above step, as it might bind /dev/rfcomm0 itself.
Note when using dund/pppd you usually use a script to hold the options to pppd
and then a connection script. If you put the script in
/etc/ppp/peers/ (whatever) you can do 'pppd call (whatever)'

rfcomm0: 00:0A:3A:7C:5C:74 -> 00:1C:62:19:B1:6A channel 16 connected [tty-attached]

Unfortunately, Verizon does a major disservice to their customers by crippling
the phone's modem via bluetooth so I can't show you pppd in action since the
phone ignores the bt commands from here on out (but I have done it via USB so
I know it works).

Release rfcomm after you use it. Maybe the 'port is in use' is from that?

rfcomm release 0



-> I assume this is because it never asked for a PIN, but I just don't know.
-> When I carry on, adding the /etc/bluetooth/pin file as instructed in Chapter
-> 6, I get the same "Unable to add" message as above.

That file isn't used anymore, as far as I can tell. Bluez is a fast moving
target (as I write this I find there's another new release now). They release
new versions with major fixes and functionality changes all the time. When you
use a distribution's packaged version, you run into a problem - whether to try
to make something that's already out-dated and containing bugs/missing
functionality (as compared to the current bluez source releases) work, or to
try to go it alone and build the current bluez sources yourself. Problems
arise when you try to help someone out as well, because of the differences in
versions and lag time between disto/packaged bluez and the released sources.


-> Unfortunately, I still got the "port is in use" error.  I went back through
-> the second link, added my computer as a network, and tried to follow the
-> setup in Chapter 7.1 for surfing the web (because Chapter 7.2 says that I
-> need the pppd set up here), but I don't have sdpd running, and I don't know
-> where to find it.

The rest of the tut looks OK, from 7-1 on, with the exception that sdpd is
gone from bluez-utils and hcid -s takes its place.




------------------------------

Message: 3
Date: Tue, 27 May 2008 02:18:54 +0200
From: "ShiroiKuma" <bluez-users@sumou.com>
Subject: [Bluez-users] How do you start the audio service in
       bluez-utils     3.30-3
To: bluez-users@lists.sourceforge.net
Message-ID: <20080527001041.M20414@ShiroiKuma.org>
Content-Type: text/plain;       charset=utf-8

Hi:

I'm having some difficulties using bluez-audio. I'm using Debian sid bluez-utils 3.30-3

I've seen that since version 3.30-1 the bluez-audio service is no longer started via
/usr/lib/bluetooth/bluetoothd-service-audio and instead bluez-utils switched to shared library objects which are loaded
by hcid

How do I start the audio service now?

dbus-send --system --print-reply --dest=org.bluez /org/bluez org.bluez.Manager.ListServices gives me:
method return sender=:1.45 -> dest=:1.50 reply_serial=2
  array [
  ]

and dbus-send --system --type=method_call --print-reply --dest=org.bluez /org/bluez org.bluez.Manager.ActivateService
string:audio gives me:
Error org.bluez.Error.NoSuchService: No such service

I've googled, but haven't found anything that would point me towards a solution, the only mention, The bluez Wiki at
http://wiki.bluez.org/wiki/HOWTO/AudioDevices just says:
Make sure the audio service is installed

So how should I proceed?



------------------------------

Message: 4
Date: Tue, 27 May 2008 10:36:01 +0800 (CST)
From: attaboyu <attaboyu@163.com>
Subject: [Bluez-users] hcid problem
To: "BlueZ users" <bluez-users@lists.sourceforge.net>
Message-ID:
       <11216581.210541211855761644.JavaMail.coremail@bj163app120.163.com>
Content-Type: text/plain; charset="gbk"

 Hi all
 I have got a hcid problem below:
 $hcid -f /etc/bluetooth/hcid.conf
 BUG: scheduling while atomic: hcid/0x00000101/51
 caller is schedule+0xec/0x12c

 There is no hcid process running from ps view. if run hcid again, something will be issued:

BUG: scheduling while atomic: swapper/0x00000103/0
caller is schedule+0xec/0x12c
BUG: scheduling from the idle thread!
Unable to handle kernel NULL pointer dereference at virtual address 00000004
pgd = c0004000
[00000004] *pgd=

 as kernel version is 2.6.10, so I use a old bluez version 3.12





--

 Best Regards
 ------------
 Tony
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 5
Date: Tue, 27 May 2008 09:29:54 +0200
From: "ShiroiKuma" <bluez-users@sumou.com>
Subject: Re: [Bluez-users] How do you start the audio service in
       bluez-utils     3.30-3
To: BlueZ users <bluez-users@lists.sourceforge.net>
Message-ID: <20080527072731.M23487@ShiroiKuma.org>
Content-Type: text/plain;       charset=utf-8

Further to this problem, I've found in the syslog the following:
Can't init plugin /usr/lib/bluetooth/plugins/libaudio.so

There's mention of this problem at http://article.gmane.org/gmane.linux.bluez.user/13790

Is there any solution other than recompiling bluez-utils?




------------------------------

Message: 6
Date: Tue, 27 May 2008 09:34:10 +0200
From: "Fritz Code" <codefritz@googlemail.com>
Subject: [Bluez-users] Bluetooth Keyboard Kernel 2.4
To: bluez-users@lists.sourceforge.net
Message-ID:
       <3e9cdced0805270034s3409b6aby382454375651b711@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi,

I have to connect a bluetooth keyboard, I'm using Kernel 2.4.21.
The bluetooth subsystem and bluez utils (hcitool, hcid, hciconfig) work so
far.

Well I have two options now, try this way (which is not related to bluez):
http://klausler.com/msbtkb-linux.html

Or try to use bluez.
If I use bluez I have to load hidp.o module, right?
But my kernel 2.4.21 doesn't provide such a module.

So I'm not sure what to do in order to get a bluetooth keyboard running in
my Kernel 2.4.21.
If there are any hints / experiences.

Note: I'm flexible in the keyboard type and manufactuarer,  so if anybody
can recommend a keyboard for the use of Kernel 2.4.21 I would appreciate
that.

Thanks.
Fritz.


--
Regards,
--Codefritz
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 7
Date: Tue, 27 May 2008 09:08:45 -0400
From: "Raymond Ingles" <sorceror171@gmail.com>
Subject: Re: [Bluez-users] Syncing a Treo 680
To: "BlueZ users" <bluez-users@lists.sourceforge.net>
Message-ID:
       <a481fbf0805270608y343d265av25ded1e58cf9db25@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

On Sat, May 24, 2008 at 12:46 AM,
<bluez-users.10.judebert@spamgourmet.com> wrote:
> I gave both pages a fair shake.  Short story: I'm still willing to
> provide $20 for a walkthrough.  Long story: I had the following problems:

 I'm using Ubuntu 7.10. Here's what I've used to get bluetooth
connectivity with my Treo 650:

 1. Edit /etc/default/bluetooth, and set the following variables:
    DUND_ENABLED=1
    DUND_OPTIONS="--listen --persist --msdun call treo"
    PAND_ENABLED=1
    PAND_OPTIONS="--listen --role NAP"
    SDPTOOL_OPTIONS="add --channel=1 SP"

 (Note, that's not the whole file, it's just the variables that need to be set.)

 2. If you want to surf the web on the Palm through your computer,
create the file /etc/init.d/btinternet with the following contents:

   #!/bin/sh
   # enable IP forwarding
   echo 1 > /proc/sys/net/ipv4/ip_forward
   # enable masquerading onto eth0
   iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

 (Assuming eth0 is your computer's connection to the internet.)

 3. Create the file /etc/ppp/peers/treo with the following contents:

   proxyarp
   115200
   172.16.10.1:172.16.10.2
   local
   ms-dns IP.ADDR.OF.DNS.SERVER
   noauth
   debug
   ktune

 Note: the "IP.ADDR.OF.DNS.SERVER" needs to be the ip address of the
DNS server your computer's using. Use "nslookup www.google.com" and
copy the ip address in the line starting with "Server:".

 4. Edit /etc/bluetooth/hcid.conf and set the following values:

       security auto;
       passkey "WHATEVER PASSKEY YOU WANT";

 Obviously, you set a PIN number there for pairing.

5. Edit /etc/bluetooth/rfcomm.conf and set the following values:

      # Automatically bind the device at startup
       bind yes;
       # The Bluetooth address of your Treo (find with hcitool scan
when Treo is discoverable)
       device DE:AD:BE:EF:D0:0D;
      # RFCOMM channel for the connection
       channel 1;
      # Description of the connection
       comment "Palm link";

6. Restart bluetooth services (/etc/init.d/bluetooth stop;
/etc/init.d/bluetooth start), run the btinternet script above as root.

7. Now we're on the Treo. Pair the Treo with the computer using the
PIN you set above. (Bluetooth app, "Setup Devices", "Nearby Devices",
pick your computer, enter the PIN when prompted.)

8. Go to "Preferences", choose "Connection", and name it something
like "BT PAN conn". "Connect to: Local Network; Via: Bluetooth;
Device: your-machine-name". Details - Speed: 115,200; Flow Ctl:
Automatic."

9. Prefs -> Network. Create a new service, "BT PAN nw", set the
Connection to the one you just created in step 8. Username: your user
name on the machine, Password: prompt. Details: set the idle timeout
to whatever you like. Choose "Advanced" from "Details", and set "IP
Address" to "Automatic", unset "Query DNS", and put the DNS server you
found above in the "Primary DNS" field.

 At this point, you *should* be able to get a network connection via
PAN, and surf the net through your Palm. Using the normal commands to
do network hotsyncs and things *should* work. If not, we also
configured DUN (PPP over emulated serial) above. In my experience,
it's been a bit slower/less reliable than PAN, but it also works.
Here's how to set *that* up:

10. Go to "Preferences", choose "Connection", and name it something
like "BT DUN conn". "Connect to: PC; Via: Bluetooth; Device:
your-machine-name". Details - Speed: 115,200; Flow Ctl: Automatic."

11. Prefs -> Network. Create a new service, "BT DUN nw", set the
Connection to the one you just created in step 10. Username: your user
name on the machine, Password: prompt. Details: set the idle timeout
to whatever you like. Choose "Advanced" from "Details", and set "IP
Address" to "Automatic", set "Query DNS" to active (checkbox set). No
script is needed.

 This has worked for me on two different machines with two different
Bluetooth dongles, from Ubuntu 6.10 onward. If it works for you,
donate the money to the Free Software Foundation, or the Debian
project.



------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

------------------------------

_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users


End of Bluez-users Digest, Vol 25, Issue 21
*******************************************

------=_Part_16143_1901539.1211897442584-- --===============0695735021== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ --===============0695735021== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users --===============0695735021==--