Author Topic: Almost there with bluetooth, but need some help.  (Read 7339 times)

Optogeek

  • Newbie
  • *
  • Posts: 48
    • View Profile
    • http://optogeek.homelinux.net
Almost there with bluetooth, but need some help.
« Reply #15 on: March 31, 2004, 05:52:28 am »
I have a SL5500, Bluemonkey BT card and Orange GPRS working with my Siemens S55.  I used the Bluez Dial-up Applet (http://www.killefiz.de/zaurus/showdetail.php?app=1243).

My file in /etc/ppp/peers looks like this:

Code: [Select]
/dev/rfcomm0

115200

connect \'/usr/sbin/chat -s -v -t 60 ABORT "NO CARRIER" ABORT "NO DIALTONE" ABORT "BUSY" "" "AT+CGDCONT=1,"ip","orangeinternet","",0,0" OK "ATDT*99***1#" CONNECT\'

crtscts

noipdefault

modem

usepeerdns

defaultroute

connect-delay 5000

remotename DialupBluetooth107754387
SL-C860 running Cacko 1.23
SL-5500UK with 3.13 Sharp ROM + Cacko Kernel
Origo WLAN and BlueMonkey BT CFs
1GB Crucial SD
1GB Crucial CF

markb

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
    • http://
Almost there with bluetooth, but need some help.
« Reply #16 on: March 31, 2004, 02:22:17 pm »
Thanks everybody!
I finally got it working.
I now have a permanent grin on my face, and will soon run up a huge phone bill. :-)

This seems to be quite tricky to set up.
Even though the example scripts work for the people that posted them, they still didn\'t work for me. I ended up taking a bit of each.

I used the dial-up applet to start with then edited the file it created.
The init string that finally worked was just \"ATZ\".

I used the suggestion from pakman to find out what number I should be using for GPRS.

Code: [Select]
Mar 31 16:04:06 localhost chat[11409]: send (AT+CGDCONT?^M)

Mar 31 16:04:07 localhost chat[11409]: expect (OK)

Mar 31 16:04:07 localhost chat[11409]: AT+CGDCONT?^M^M

Mar 31 16:04:08 localhost chat[11409]: +CGDCONT: 1,"IP","","",0,0^M

Mar 31 16:04:08 localhost chat[11409]: +CGDCONT: 2,"IP","orangemms","",0,0^M

Mar 31 16:04:08 localhost chat[11409]: +CGDCONT: 3,"IP","orangeinternet","",0,0^M

Mar 31 16:04:08 localhost chat[11409]: ^M

Mar 31 16:04:08 localhost chat[11409]: OK


After that I gave \"ATD*99***3#\" a try and it worked!

I\'ve been through so many permutations that I\'ve lost track of which suggestions I\'ve been following. But you\'ve all been a big help. Thanks!

My final working script is:

Code: [Select]
/dev/rfcomm0

115200

connect \'/usr/sbin/chat -s -v -t 60 ABORT "NO CARRIER" ABORT "NO DIALTONE" ABORT "BUSY" "" "ATZ" OK "ATD*99***3#" CONNECT\'

crtscts

noipdefault

modem

usepeerdns

defaultroute

connect-delay 5000

remotename BLUETOOTH1080801963


By the way, I still get these messages, even though it works:

Code: [Select]
Mar 31 16:34:19 localhost modprobe: modprobe: Can\'t locate module ppp-compress-26

Mar 31 16:34:19 localhost modprobe: modprobe: Can\'t locate module ppp-compress-24

Mar 31 16:34:19 localhost modprobe: modprobe: Can\'t locate module ppp-compress-26

Mar 31 16:34:19 localhost modprobe: modprobe: Can\'t locate module ppp-compress-24


- Mark (A happy bunny)

p.s.
It worked once. But I can\'t get it to work again. :-(
Oh well, at least I know it CAN work with my C860 & P800. So I\'m still happy. :-)

pakman

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
Almost there with bluetooth, but need some help.
« Reply #17 on: April 01, 2004, 03:33:42 am »
Hi markb,

Good to hear that you got this far. I have the same problem with not being able to re-connect. I get a NO CARRIER error in the log file. If I try again I then get a \"serial line is looped back\" message, which AFAIK indicates some kind of timeout. I think that the problem is that the phone is not disconnecting cleanly from the Orange network at the end of the previous session, and it can take a long time before it can connect again. I have not got around to investigating this properly, but I have got into the habit of switching the phone off and on again after a GPRS session from the Z, which usually seems to fix the problem. Sometimes I think the Orange network is simply busy and doesn\'t accept new connections.

I believe that the modprobe kernel messages are part of the ppp negotiation over compression levels, and are nothing to worry about as such. It would be nice to know more about this - obviously with GPRS using the best compression can make a big difference to your bill    . I\'ll get around to investigating this some day as well, I guess.

Regards,
P.
Now: Gemini 4G/Android. Previously: Zaurus C760/Cacko lite 1.23

szym

  • Newbie
  • *
  • Posts: 22
    • View Profile
    • http://
Almost there with bluetooth, but need some help.
« Reply #18 on: September 09, 2004, 01:23:28 am »
I get something like this

Connection: ppp0 <---> /dev/rfcomm0
lcp: timeout sending config-request
Connection terminated
Exit

I dont how to fix it ?

tumnus

  • Hero Member
  • *****
  • Posts: 1176
    • View Profile
    • http://www.cpinkney.org.uk
Almost there with bluetooth, but need some help.
« Reply #19 on: September 09, 2004, 03:03:15 am »
Quote
I get something like this

Connection: ppp0 <---> /dev/rfcomm0
lcp: timeout sending config-request
Connection terminated
Exit
If you see a line like ppp0 <---> /dev/rfcomm0 then the Bluetooth connection has been established, so your problem is with your ppp/carrier configuration.

To debug it more, you need to run pppd from the command line like this:

pppd call <peers_file> debug -detach

Where <peers_file> is the name of the file under /etc/ppp/peers that the network connection uses. To see which file is being used by a network connection, look in the files under /home/zaurus/Applications/Network/modules for the name of the network connection. The peers filename is the ID value in the matching .conf file.
# Search the Zaurus Howtos ## Search the Zaurus FAQs ## Find Z software at ELSI #
--------------------
UK SL5500 with Sharp ROM 3.13, SL5600 with Sharp ROM 1.32 - SuSE 9.0 Pro, Windows XP Home
Qualendar for Calendar and Todo
Socket Bluetooth CF Card (Rev F), Kingmax 512MB MMC Card, Palm Tungsten T Stylus,
Pretec CF->Smartmedia Adapter, Semsons Universal Battery Extender

szym

  • Newbie
  • *
  • Posts: 22
    • View Profile
    • http://
Almost there with bluetooth, but need some help.
« Reply #20 on: September 09, 2004, 07:58:35 am »
Thanks
LCP said something about chanell 18
So i changed it to 18
Now i have some problem with bluetooth

Can't get terminal parameters: Input/output error

i change pin to 9999
Every time i try to connect i have to get pin on my siemens ?
What's wrong now


I change value in pin and givepin


I can connect thru irda with smaller problem (sometimes zaurus dosent see siemens)

tumnus

  • Hero Member
  • *****
  • Posts: 1176
    • View Profile
    • http://www.cpinkney.org.uk
Almost there with bluetooth, but need some help.
« Reply #21 on: September 09, 2004, 09:11:30 am »
Like I said, your bluetooth connection looks fine so there was no need to change anything to do with bluetooth. The LCP stuff has nothing to do with bluetooth, but if you copy the output from PPP here then someone might be able to help (might be best to start another thread though with the appropriate topic title)
# Search the Zaurus Howtos ## Search the Zaurus FAQs ## Find Z software at ELSI #
--------------------
UK SL5500 with Sharp ROM 3.13, SL5600 with Sharp ROM 1.32 - SuSE 9.0 Pro, Windows XP Home
Qualendar for Calendar and Todo
Socket Bluetooth CF Card (Rev F), Kingmax 512MB MMC Card, Palm Tungsten T Stylus,
Pretec CF->Smartmedia Adapter, Semsons Universal Battery Extender