The Artima Developer Community
Sponsored Link

PHP Buzz Forum
Bluetooth GPRS via an A1200 and peoples.net

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Alan Knowles

Posts: 390
Nickname: alank
Registered: Sep, 2004

Alan Knowles is Freelance Developer, works on PHP extensions and PEAR.
Bluetooth GPRS via an A1200 and peoples.net Posted: Jan 23, 2008 4:50 PM
Reply to this message Reply

This post originated from an RSS feed registered with PHP Buzz by Alan Knowles.
Original Post: Bluetooth GPRS via an A1200 and peoples.net
Feed Title: Smoking toooo much PHP
Feed URL: http://www.akbkhome.com/blog.php/RSS.xml
Feed Description: More than just a blog :)
Latest PHP Buzz Posts
Latest PHP Buzz Posts by Alan Knowles
Latest Posts From Smoking toooo much PHP

Advertisement
After quite a bit googling and guesswork, I finally got my portable to connect via my Motorola A1200  to peoples.net (unlimited GRPS). So here's the settings for reference (as most of the google results are not quite accurate).

for starters: /etc/bluetooth/rfcomm.conf
(you need to find out your bluetooth id - plenty of results if you google "bt grps howto's" )
rfcomm0 {
bind yes;
device ***device id here **;
channel 5;
comment "Alans phone";
}

you need to configure pairing - I think this is the one that worked
/etc/bluetooth/hcid.conf
options {
autoinit yes;
security user;
pairing multi;
passkey "**MAKE UP A PASSKEY ***";
}

And now for the magical stuff.. (the 0.0.0.0:10.0.0.1 was the magic bit that solved all the connection problems)
/etc/ppp/peers/peoples
debug
connect "/usr/sbin/chat -v -f /etc/chatscripts/people-connect"
user "ptc"
password "ptc"
/dev/rfcomm0 115200
show-password
noipdefault
usepeerdns
defaultroute
noauth
0.0.0.0:10.0.0.1
ipcp-accept-local
ipcp-accept-remote
debug
kdebug 7
#nodeflate
novj
noccp

#remove if you want pon to run in the background
modem -detach

the chat script
/etc/chatscripts/peoples-connect
TIMEOUT 35
ECHO ON
ABORT '\nBUSY\r'
ABORT '\nERROR\r'
ABORT '\nNO ANSWER\r'
ABORT '\nNO CARRIER\r'
ABORT '\nNO DIALTONE\r'
ABORT '\nRINGING\r\n\r\nRINGING\r'
'' ATZ
OK 'ATM1L1'
OK 'AT&f+cgdcont=1,"IP","peoples.net","",0,0'
OK 'ATDT*99***1#'
CONNECT ""

This is disconnect (not really used it, but might help...)
/etc/chatscripts/people-disconnect
SAY 'Starting GPRS disconnect script\n'
"" \K
"" +++ATH0

And hopefully when you do
#pon peoples
you get an internet connection from anywhere in Hong Kong..

Read: Bluetooth GPRS via an A1200 and peoples.net

Topic: Bluetooth GPRS via an A1200 and peoples.net Previous Topic   Next Topic Topic: Tokenization using regular expression sub patterns

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use