Author Topic: Bluetooth For Dummies?  (Read 1820 times)

daniel3000

  • Hero Member
  • *****
  • Posts: 1003
    • View Profile
    • http://
Bluetooth For Dummies?
« on: March 29, 2006, 10:39:36 am »
Hello,

after installing pdaXrom on my C3000 I thought I'd try bluetooth once more, which I couldn't get to work under Cacko at all. I thought it has to do with a screwed-up BT stack, but it seems it has to do with my inability, since under the vanilla pdaXrom 1.1.0beta2 it does not work either.

I have tried 3 different BT interfaces on the zaurus (Nokia DTL-4 CF card, an USB stick labeled "AGM electronic" and a Billionton CF card) and two different phones (Nokia 6310 and Siemens SK65). Now even two different ROMs.
To no avail!

I always get that error message
"Can't connect RFCOMM socket: Connection refused" when trying to connect with rfcomm.

Please, please:

Could someone write a short howto for dummies how to set up a BT connection to a mobile phone for internet access? Or at least look over the steps I did below and analyze them in order to find my fault?

Here is what I basically did (with lots of variations of course in the hope that some variations may lead to success):

* plug in BT device
* check that hci0 is available with "hciconfig", if it's not, makeing it available with hciconfig hci0 up. --> Always successful.
* hcitool scan --> finds the phone(s).
* sdptool browse --> Find out which channel to use for DUN. It's always channel 1.
* Check that /dev/rfcomm0 device is available --> it is. I am root, and it has access rights crw-rw-rw-
* make /bin/bluepin always output "PIN:0000" or even "PIN:0" by either modifying /etc/bluetooth/pin or by hardcoding that string into the bluepin script.
* rfcomm connect 0 <bdaddr_of_telephone> 1 --> phone asks for connection confirmation and then for PIN. I enter the pin "0000" or "0", depending on what I have set.
* Zaurus responds instantly or after some seconds with "Can't connect RFCOMM socket: Connection refused".

I tried to enter a wrong pin --> same result.

What am I doing wrong???

Thanks
daniel
SL-C3200 with weeXpc, based on pdaXrom 1.1.0beta3
HP 200LX with MS-DOS 5.0

trichmon

  • Full Member
  • ***
  • Posts: 148
    • View Profile
Bluetooth For Dummies?
« Reply #1 on: March 29, 2006, 02:36:55 pm »
Here is what i do.  I have a Billionton CF card  and it seems to work fine.  Getting this to work on the sharp rom is a pain but in pdaxrom all i do is:

install all the bluez ipks from the main feed  (ipkg list | grep bluez) will give you a list of packages you need to install.  You dont need one of them but i cant remember which one so i install them all.  I make sure that my phone (a nokia 6230) has bluetooth on and its broadcasting.  Then i go to the ppp config and select bluetooth.  On the second tab i use the search feature.  It finds my phone and fills in the right info.  I had to get a special phone number from my cell company (*99#) to get my phone to connect to the gsm service, and i had to tweek the init string a small bit but it was because of my phone not pdaxrom.  

Before you try to connect the first time reboot the Z

To get to the internet i just fire up the ppp dialer and it connects to my phone, dials and im up and running.  

Hope it helps.

Todd
SL-6000l running pdaXrom RC12 icewm + rox
Targus keyboard
Trendnet cf 10/100 ethernet
Linksys CF wireless
Sandisk 256mb SD card
Lexar 1gig SD card
SL-5500 running zynergy rom

dlj0

  • Full Member
  • ***
  • Posts: 218
    • View Profile
Bluetooth For Dummies?
« Reply #2 on: March 29, 2006, 09:55:36 pm »
Quote
Hello,

after installing pdaXrom on my C3000 I thought I'd try bluetooth once more, which I couldn't get to work under Cacko at all. I thought it has to do with a screwed-up BT stack, but it seems it has to do with my inability, since under the vanilla pdaXrom 1.1.0beta2 it does not work either.

[div align=\"right\"][a href=\"index.php?act=findpost&pid=120870\"][{POST_SNAPBACK}][/a][/div]

Well, I also have been trying, to no avail.  I tried both of the methods here, as well as stuff from all over this board (OK, not very specific, but).  I edited, as was obliquely suggested, the config files, but that did not work well mostly because it was unclear what I was supposed to put, where.

My Z is a 3100 with pdaXrom beta1.  My bluetooth card is a Belkin F8t020.  My phone is a Motorola Razor, on which I have gotten a BT headset to work (so that bit ought to work),  

cardctl status  reports a 3.3v 16-bit (?) PC card function 0: [ready], [bat dead], [bat low]
cardctl ident returns "CF CARD", "GENERIC" manfid 0x0279 0x950b function: 2 (serial)

I had tried modifying /etc/bluetooth/bt-uart.conf  to add this, but something bad happened then, and the hard drive re-mounted on re-boot in an odd way.  I got lots of odd file permissions, things did not work, and I had to restore from backup.  I may have fscked up something else along the way, but this was not a good thing.

So, is the Belkin card junk?  What a waste of $5 plus shipping!  What freaking card works?  I have yet to talk to my cellular provider about this (BTW, t-mobile), but I figure as long as the Z can't even see the freaking phone that hardly matters.

Anyway, help, or testimonials of how cool the sucker is supposed to work automatically, would be good.  Instructions would be best if they were real specific, of course.  In general that is the weak link in pdaXrom, in that the stuff is there but no instructions on how to use it.  

If'n I can get this, and my secure wifi at the office, I will be in hog heaven.
Zaurus:  SL C3100
ROM:  eabi debian/sid

andrewwoods

  • Newbie
  • *
  • Posts: 49
    • View Profile
    • http://
Bluetooth For Dummies?
« Reply #3 on: April 06, 2006, 03:57:20 am »
I am struggling with Bluetooth. Like dlj0 I have tried both the above with no success.

I have put my BT card in an XP laptop (with an adapter) and connected just fine. So the card works, the phone works and they can talk to each other.

When I try to connect as trichmon suggests (also with *99#) I get the following message in PPP Dialer:

Using interface ppp0
local IP address 10.64.64.64
remote IP address 10.112.112.112

and nothing else. No request for a PIN or any indication that anything is working.

If I kill the PPP Dialer and run it again then I get

Using interface ppp1
not replacing existing default route to ppp0 [10.64.64.64]
local IP address 10.64.64.65
remote IP address 10.112.112.113

Anybody got any ideas? This is so close to working...
SL-C860 pdaxrom Beta3 512MB SD
Buffalo CF WLAN RTM-8000 GPRS ANYCOM BT

andrewwoods

  • Newbie
  • *
  • Posts: 49
    • View Profile
    • http://
Bluetooth For Dummies?
« Reply #4 on: May 11, 2006, 03:06:00 am »
Finally I have made it work.

It was as simple as trichmon said, but I needed to set a reset for the phone before dialling. So, in the PPP Modem dialog, I added atz as an init string.

Now it all works.
SL-C860 pdaxrom Beta3 512MB SD
Buffalo CF WLAN RTM-8000 GPRS ANYCOM BT

clofland

  • Full Member
  • ***
  • Posts: 245
    • View Profile
    • http://www.lofland.net/
Bluetooth For Dummies?
« Reply #5 on: May 12, 2006, 02:33:59 pm »
Here is how I got mine working, has worked for a long time on many versions of pdaXrom:

https://www.oesf.org/forums/index.php?showtopic=15397&hl=
[span style=\'font-size:14pt;line-height:100%\']C-760 pdaXrom 1.1.0beta3[/span]
- Sandisk UltraII 1GB SD card - Socket LP CF LAN card - Socket LP CF WLAN card - Socket CF Bluetooth Card Rev H -