OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> How To Connect C1k & Se T68i Via A Usb-bt?, access the internet by dialing GPRS
ryonado
post Sep 10 2006, 10:42 PM
Post #1





Group: Members
Posts: 2
Joined: 23-April 06
Member No.: 9,688



Hi, all! I know that many friends here can use C1k to browse the net via a BT phone, but I don`t know how to and never find a particular tutorial! sad.gif

Is there anyone who kindly enough to write me one? I do want use my C1k access the internet by dialing GPRS. (though my ISP "China Mobile" may be different from yours, but I'd like to know what "ipk" I should install and the steps of config. Both the Xrom and Original are OK!)

Unfortunately, my poor phone has no BT function. So I want to make sure the feasibility before I buy a BT Phone. It is said that SonyErission T68i is a perfect BT modem at its price smile.gif , so the tutorial would be much nicer to be written by a T68 user. Any brothers succeeded my purpose with a USB BT adapter? I am waiting for your guide! wink.gif THX!
Go to the top of the page
 
+Quote Post
desertrat
post Sep 11 2006, 01:49 AM
Post #2





Group: Members
Posts: 742
Joined: 15-October 05
From: Gulag, Siberia
Member No.: 8,322



QUOTE(ryonado @ Sep 11 2006, 06:42 AM)
Hi, all! I know that many friends here can use C1k to browse the net via a BT phone, but I don`t know how to and never find a particular tutorial! sad.gif

There are quite a few out there, I think I googled for something like "linux gprs internet bluetooth".

QUOTE
Is there anyone who kindly enough to write me one?

Here's what I did to get BT/GPRS working.

Ingredients
C3100
pdaXrom 1.1.0beta3
cheap USB BT dongle
Nokia E70

Obviously you also need the bluetooth drivers and utils relevant for your rom.

Method
1) Plug the bluetooth adaptor into your Z and start the bluetooth stuff
CODE
/etc/rc.d/init.d/bluetooth start


2) Note the bluetooth pin, it is stored in /etc/bluetooth/pin

3) On your phone add a new paired device. Refer to your phone manual for the required steps. It will ask for the pin which you have noted in step 2. For convenience, set it to "authorised" so that your Z can connect to it at any time without furthur intervention.

4) Edit /etc/bluetooth/hcid.conf:
CODE
# HCId options
options {
       # Automatically initialize new devices
       autoinit yes;

       # Security Manager mode
       #   none - Security manager disabled
       #   auto - Use local PIN for incoming connections
       #   user - Always ask user for a PIN[CODE]
       #
       security auto;

       # Pairing mode
       #   none  - Pairing disabled
       #   multi - Allow pairing with already paired devices
       #   once  - Pair once and deny successive attempts
       pairing multi;

       # PIN helper
       pin_helper /bin/bluepin;
}


5) Now you need to find out your phone's BT MAC address. For my Nokia E70 I can use "*#2820#" on the standby screen. Otherwise enable the BT connection on your phone and set it so that it's "visible" so that other BT devices can see it. Then run
CODE
hcitool scan

You'll see something like
CODE
Scanning ...
       00:11:D1:57:A1:8C       blueshoes
       00:14:A1:47:28:11       Noddy
       00:16:D1:74:B5:8E       Nokia N70

If you're in a really busy place with loads of phones that have their BT switched on and you can't tell which is yours, then either try again somewhere more remote, or change the name/BT identifier of your phone (see phone manual) and run the command again.

6) Now you need to find out which channel your phone uses for "dial up networking" (DUN):
CODE
sdptool search DUN

You will see something like:
CODE
Inquiring ...
Failed to connect to SDP server on 00:11:D8:D0:D3:F3: Function not implemented
Failed to connect to SDP server on 00:17:D5:58:B2:8E: Connection timed out
Searching for DUN on 00:14:A1:47:28:11 ...
Service Name: Dial-Up Networking
Service RecHandle: 0x1000a
Service Class ID List:
 "Dialup Networking" (0x1103)
Protocol Descriptor List:
 "L2CAP" (0x0100)
 "RFCOMM" (0x0003)
   Channel: 2
Language Base Attr List:
 code_ISO639: 0x454e
 encoding:    0x6a
 base_offset: 0x100
Profile Descriptor List:
 "Dialup Networking" (0x1103)
   Version: 0x0100

In this example a DUN was found on 00:14:A1:47:28:11, make sure this matches the MAC address you had ascertained in step 5. Note the channel, in this case it's 2.

7) Edit /etc/bluetooth/rfcomm.conf and use the MAC address and channel found in the previous steps:
CODE
rfcomm0 {
       # Automatically bind the device at startup
       bind yes;

       # Bluetooth address of the device
       device 00:14:A1:47:28:11;

       # RFCOMM channel for the connection
       channel 2;

       # Description of the connection
       comment "Noddy";
}


8) Restart bluetooth so that it will use the new configuration (/etc/rc.d/init.d/bluetooth restart)

9) Now create this file /etc/ppp/peers/btgprs
CODE
/dev/rfcomm0 115200
connect '/usr/sbin/chat -v -f /etc/ppp/chat-gprs'
crtscts
modem -detach
noccp
defaultroute
usepeerdns
noauth
ipcp-accept-remote
ipcp-accept-local
noipdefault


10) And also this file /etc/ppp/chat-gprs:
CODE
'' ATZ OK
AT+CGDCONT=1,"IP","peoples.net"
OK "ATD*99#"
CONNECT ''


NB, peoples.net is the network provider's gprs access point, you would have to ask China Mobile for the correct setting. The "*99#" is also network dependent, again ask China Mobile correct setting. IF your network provider requires authentication (username/password) then I'm not quite sure where these are configured, refer to the pppd manpage.

11) Finally, make sure your phone's BT connection is on then use
CODE
pppd call btgprs
to initiate the gprs connection. When you're finished use CTRL-C to end the call.

QUOTE
but I'd like to know what "ipk" I should install and the steps of config. Both the Xrom and Original are OK!)

With pdaXrom beta3, I believe all the BT stuff are already installed by default.

QUOTE
So I want to make sure the feasibility before I buy a BT Phone. It is said that SonyErission T68i is a perfect BT modem at its price smile.gif , so the tutorial would be much nicer to be written by a T68 user. Any brothers  succeeded my purpose with a USB BT adapter? I am waiting for your guide! wink.gif


Note you can also use IRDA instead of BT. If you only use IRDA ignore steps 1-9 then create the file /etc/ppp/peers/irgprs
CODE
/dev/ircomm 115200
connect '/usr/sbin/chat -v -f /etc/ppp/chat-gprs'
nocrtscts
modem -detach
noccp
defaultroute
usepeerdns
noauth
ipcp-accept-remote
ipcp-accept-local
noipdefault


Do step 10. Then to connect, make sure your phone is in irda modem mode and that irda is started on your Z (/etc/rc.d/init.d/irda start), then do
CODE
pppd call irgprs
again use CTRL-C to disconnect. Have fun smile.gif
Go to the top of the page
 
+Quote Post
ryonado
post Sep 11 2006, 05:54 PM
Post #3





Group: Members
Posts: 2
Joined: 23-April 06
Member No.: 9,688



Oh, brother, you must be an angle sent here by the God! laugh.gif Millions of thanks!

I did search for a long time and got a muss tongue.gif Maybe my English search skills is too poor with my poor English.

I will study your words first! Hoping success! smile.gif Thx again!
Go to the top of the page
 
+Quote Post
daniel3000
post Sep 14 2006, 11:52 PM
Post #4





Group: Members
Posts: 1,002
Joined: 28-April 05
From: Germany
Member No.: 7,027



QUOTE(ryonado @ Sep 12 2006, 03:54 AM)
Oh, brother, you must be an angle sent here by the God!  laugh.gif  Millions of thanks!

I did search for a long time and got a muss tongue.gif Maybe my English search skills is too poor with my poor English.

I will study your words first! Hoping success! smile.gif Thx again!
*


If you want it simpler:
The PPP Modem setup under "System Tools" does the configuration for you in most cases.

Just plug in the BT hardware (USB or CF), then start PPP Modem.

Enter a new name for the setup (e.g. "MobileInternetBT" - don't use spaces, then it won't work!).
Set the required username, password, set the connection type to Bluetooth.

Then in Modem make user the Device is "/dev/rfcomm0".
Enter the needed init string (ATZ may be enough if you have GPRS set up correctly in the phone - otherwise you need that AT+cgdcont... init string).

Under BT DUN use the "Search" button to search for your phone.
Make sure your phone is the only BT device in reach, otherwise it will list more addresses and you won't know which is which :-)
You can also use "hcitool scan" on the command line. This will list the device names along with the addresses. Then choose the correct BT DUN in the PPP Modem setup.

Actually that's all.

Go back to the "Account" tab and hit "Apply".

Then, if you use the Internet / PPP Dialer application, you will hopefully be able to dial in.

If now, knowing the commands desertrat gave in his previous post is good for debugging biggrin.gif

Good luck!
daniel
Go to the top of the page
 
+Quote Post
adf
post Sep 15 2006, 08:41 AM
Post #5





Group: Members
Posts: 2,821
Joined: 13-September 04
From: Wasilla Ak.
Member No.: 4,572



maybe we need a Z > cell on pdaX thread...with a basic modem and common phone issues how to pinned at the top?


Moderator?
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 19th December 2014 - 01:39 PM