Author Topic: How To Connect C1k & Se T68i Via A Usb-bt?  (Read 3204 times)

ryonado

  • Newbie
  • *
  • Posts: 2
    • View Profile
How To Connect C1k & Se T68i Via A Usb-bt?
« on: September 11, 2006, 02:42:32 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!  

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  , 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!  THX!

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
How To Connect C1k & Se T68i Via A Usb-bt?
« Reply #1 on: September 11, 2006, 05:49:26 am »
Quote
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!
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: [Select]
/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: [Select]
# 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: [Select]
hcitool scanYou'll see something like
Code: [Select]
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: [Select]
sdptool search DUNYou will see something like:
Code: [Select]
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: [Select]
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: [Select]
/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: [Select]
'' 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: [Select]
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  , 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!

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: [Select]
/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: [Select]
pppd call irgprsagain use CTRL-C to disconnect. Have fun
« Last Edit: September 11, 2006, 05:50:43 am by desertrat »
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

ryonado

  • Newbie
  • *
  • Posts: 2
    • View Profile
How To Connect C1k & Se T68i Via A Usb-bt?
« Reply #2 on: September 11, 2006, 09:54:06 pm »
Oh, brother, you must be an angle sent here by the God!    Millions of thanks!

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

I will study your words first! Hoping success!  Thx again!

daniel3000

  • Hero Member
  • *****
  • Posts: 1003
    • View Profile
    • http://
How To Connect C1k & Se T68i Via A Usb-bt?
« Reply #3 on: September 15, 2006, 03:52:21 am »
Quote
Oh, brother, you must be an angle sent here by the God!    Millions of thanks!

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

I will study your words first! Hoping success!  Thx again!
[div align=\"right\"][a href=\"index.php?act=findpost&pid=141167\"][{POST_SNAPBACK}][/a][/div]

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  

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

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
How To Connect C1k & Se T68i Via A Usb-bt?
« Reply #4 on: September 15, 2006, 12:41:45 pm »
maybe we need a Z > cell on pdaX thread...with a basic modem and common phone issues how to pinned at the top?


Moderator?
**3100 Zubuntu Jaunty,(working on Cacko dualboot), 16G A-Data internal CF, 4G SD, Ambicom WL-1100C Cf, linksys usb ethernet,  BelkinF8T020 BT card, Belkin F8U1500-E Ir kbd, mini targus usb mouse, rechargeble AC/DC powered USB hub, psp cables and battery extenders.

**6000l  Tetsuized Sharprom, installed on internal flash only 1G sd, 2G cf