All About Symbian - Nokia (S60) and Sony Ericsson (UIQ) smartphones unwrapped

  #1  
Old 02-11-2004, 11:29 AM
albatorsk albatorsk is offline
Registered User
 
Join Date: Nov 2004
Posts: 108
albatorsk is on a distinguished road
How to connect the A925 to Linux using Bluetooth

Hi,

I've made a small guide for experienced GNU/Linux users on connecting the A925 to Linux. I've borrowed heavily from other existing guides, so if you find your work in there somewhere and I've forgotten to credit you, drop me a note!
Suggestions and flames are also welcome to a925@albatorsk.com

How to connect a Motorola A925 to Linux using Bluetooth

  #2  
Old 02-11-2004, 01:11 PM
Delta737's Avatar
Delta737 Delta737 is offline
Registered User
 
Join Date: Jan 2003
Location: Groningen, Holland
Posts: 2,286
Delta737 is on a distinguished road
Great work! I'll make it a sticky!

  #3  
Old 08-02-2005, 05:59 PM
andrewkeith5's Avatar
andrewkeith5 andrewkeith5 is offline
Registered User
 
Join Date: Feb 2005
Location: Thame, Oxon, UK
Posts: 15
andrewkeith5 is on a distinguished road
WOW!

thanks for that
__________________

  #4  
Old 26-10-2005, 10:39 PM
albatorsk albatorsk is offline
Registered User
 
Join Date: Nov 2004
Posts: 108
albatorsk is on a distinguished road
The guide's down for the moment. I'm working on a newer, easier to follow version.

  #5  
Old 29-10-2005, 03:10 PM
KrzychuG KrzychuG is offline
Registered User
 
Join Date: Oct 2005
Posts: 9
KrzychuG is on a distinguished road
Quote:
Originally Posted by albatorsk
The guide's down for the moment. I'm working on a newer, easier to follow version.
Can't wait to see it, since i'm fighting with my Motorola on Linux right now.

BTW, is it possible to have internet access on Motorola phones using linux subsitute of mrouter?

  #6  
Old 30-10-2005, 05:44 PM
albatorsk albatorsk is offline
Registered User
 
Join Date: Nov 2004
Posts: 108
albatorsk is on a distinguished road
Quote:
Originally Posted by KrzychuG
BTW, is it possible to have internet access on Motorola phones using linux subsitute of mrouter?
Yes, it works exactly as in Windows.

  #7  
Old 30-10-2005, 06:04 PM
KrzychuG KrzychuG is offline
Registered User
 
Join Date: Oct 2005
Posts: 9
KrzychuG is on a distinguished road
Quote:
Originally Posted by albatorsk
Yes, it works exactly as in Windows.

That's great, i hope you'll release new guide soon.

Could you also write how to configure IrDA and Bluetooth connection with it?

Last edited by KrzychuG; 03-11-2005 at 10:03 PM.

  #8  
Old 09-11-2005, 08:28 PM
KrzychuG KrzychuG is offline
Registered User
 
Join Date: Oct 2005
Posts: 9
KrzychuG is on a distinguished road
Any news about that guide? Could you at least post some sources on how to connect motorola to PC with linux while you're still working on the guide?

  #9  
Old 10-11-2005, 09:48 PM
albatorsk albatorsk is offline
Registered User
 
Join Date: Nov 2004
Posts: 108
albatorsk is on a distinguished road
Ah, sorry about that. It's been a busy month.

Quick'n'dirty guide:

Set up a DNS with 169.254.1.1 pointing to a920, and 169.254.1.68 pointing to wsockhost.mrouter.

Then, make sure you have PPP support in your kernel, and the pppd (PPP daemon) installed. You also need, of course, bluetooth support, hci_usb, rfcomm, l2cap and the device driver for your BT dongle. BlueZ (the bluetooth stack) has to be installed too.

Then, it's simply a matter of configuring hcid.conf and starting hcid and sdpd. After that you pair your phone with your computer.

Next, you add a serial port with
Code:
sdptool add SP
and start the Dial-up Networking Daemon (dund) with the following options:
Code:
dund --listen --channel 1 --msdun noauth 169.254.1.68:169.254.1.1 460800 ms-dns 169.254.1.68 lock --persist
That's basically it. This won't enable TCP forarding, though. You'll need iptables for that.

The complete guide should be done in a couple of days. Just hold on a bit longer.

Last edited by albatorsk; 10-11-2005 at 09:50 PM.

  #10  
Old 18-11-2005, 10:42 PM
KrzychuG KrzychuG is offline
Registered User
 
Join Date: Oct 2005
Posts: 9
KrzychuG is on a distinguished road
I did everything like you wrote. I setup a DNS server (bind) with 169.254.1.68 pointing to wsockhost.mrouter
Code:
[ 23:36:27 :: root  :: ~ ] hostx -v wsockhost.mrouter
Query about wsockhost.mrouter for record types A
Trying wsockhost.mrouter ...
Query done, 1 answer, authoritative status: no error
wsockhost.mrouter       86400   IN      A       169.254.1.68
Authority information:
mrouter                 86400   IN      NS      ns.mrouter
Additional information:
ns.mrouter              86400   IN      A       169.254.1.69
and added 169.254.1.1 as a920 in /etc/hosts.

Everything seems to work. I can connect my Motorola via desktop suite to PC, but it disconnects after 90 seconds. It looks like it can't resolve wsockhost.mrouter addess but i don't get why. Right now i'm trying to connect via USB cable with ppp options like this:
Code:
[ 23:36:38 :: root  :: ~ ] cat /etc/ppp/options
/dev/ttyACM0
460800
debug
crtscts
local
lock
noauth
passive
nomagic
proxyarp
ms-dns 169.254.1.68
169.254.1.68:169.254.1.1
After i run ppp /dev/ttyACM0 nodeatch i get:
Code:
[ 23:33:52 :: root  :: ~ ] pppd /dev/ttyACM0 nodetach
using channel 40
Using interface ppp0
Connect: ppp0 <--> /dev/ttyACM0
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <magic 0xd4dadb0a> <asyncmap 0x0> <pcomp> <accomp>]
sent [LCP ConfRej id=0x1 <magic 0xd4dadb0a>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <magic 0x1ec8442a> <asyncmap 0x0> <pcomp> <accomp>]
sent [LCP ConfRej id=0x1 <magic 0x1ec8442a>]
rcvd [LCP ConfReq id=0x2 <asyncmap 0x0> <pcomp> <accomp>]
sent [LCP ConfAck id=0x2 <asyncmap 0x0> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <pcomp> <accomp>]
sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 169.254.1.68>]
rcvd [CCP ConfReq id=0x1 < 11 05 00 01 03>]
sent [CCP ConfRej id=0x1 < 11 05 00 01 03>]
rcvd [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
sent [IPCP ConfNak id=0x1 <addr 169.254.1.1> <ms-dns1 169.254.1.68> <ms-dns3 169.254.1.68>]
rcvd [CCP ConfRej id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [CCP ConfReq id=0x2]
rcvd [IPCP ConfAck id=0x1 <compress VJ 0f 01> <addr 169.254.1.68>]
rcvd [CCP ConfReq id=0x2 <mppe -H -M -S -L -D +C>]
sent [CCP ConfRej id=0x2 <mppe -H -M -S -L -D +C>]
rcvd [LCP ProtRej id=0x3 80 fd 01 02 00 04]
Protocol-Reject for 'Compression Control Protocol' (0x80fd) received
rcvd [IPCP ConfReq id=0x2 <compress VJ 0f 01> <addr 169.254.1.1> <ms-dns1 169.254.1.68> <ms-dns3 169.254.1.68>]
sent [IPCP ConfAck id=0x2 <compress VJ 0f 01> <addr 169.254.1.1> <ms-dns1 169.254.1.68> <ms-dns3 169.254.1.68>]
Cannot determine ethernet address for proxy ARP
local  IP address 169.254.1.68
remote IP address 169.254.1.1
Script /etc/ppp/ip-up started (pid 16337)
rcvd [CCP ConfReq id=0x4 <predictor 1>]
Script /etc/ppp/ip-up finished (pid 16337), status = 0x1
rcvd [CCP ConfReq id=0x4 <predictor 1>]
rcvd [CCP ConfReq id=0x4 <predictor 1>]
rcvd [CCP ConfReq id=0x4 <predictor 1>]
rcvd [CCP ConfReq id=0x4 <predictor 1>]
rcvd [LCP TermReq id=0x3]
LCP terminated by peer
Connect time 1.5 minutes.
Sent 728 bytes, received 1032 bytes.
Script /etc/ppp/ip-down started (pid 16366)
sent [LCP TermAck id=0x3]
Script /etc/ppp/ip-down finished (pid 16366), status = 0x1
Connection terminated.
Modem hangup
I tried to ping a920 (169.254.1.1) but i can't do that. I can only ping 169.254.1.68. It looks like mobile still doesn't see my PC, but why?

I'm out of ideas. Same thing happends when i'm trying to connect via bluetooth. It shows connected to PC on phone and breaks it after 90 seconds.

I temporarily disabled my firewall (it blocks a lot of things by default) but still same problem.

Edit:

That's my ppp modules i have loaded:

Code:
[ 23:41:55 :: root  :: ~ ] lsmod | grep ppp
ppp_deflate             4128  0
zlib_deflate           17112  1 ppp_deflate
ppp_async               8160  0
crc_ccitt               1216  1 ppp_async
ppp_generic            20884  3 ppp_deflate,bsd_comp,ppp_async
slhc                    4576  1 ppp_generic

Last edited by KrzychuG; 18-11-2005 at 10:44 PM.

  #11  
Old 19-11-2005, 03:00 PM
albatorsk albatorsk is offline
Registered User
 
Join Date: Nov 2004
Posts: 108
albatorsk is on a distinguished road
Quote:
It looks like it can't resolve wsockhost.mrouter addess but i don't get why.
Are you sure it's listening on 169.254.1.68? Try starting BIND after you've established the PPP connection.

In the guide (which is still not finished, sorry) I will recommend using dnsmasq. It resolves hosts from /etc/hosts, always listens on all interfaces (unless you tell it not to) and is extremely easy to set up.

  #12  
Old 19-11-2005, 09:42 PM
KrzychuG KrzychuG is offline
Registered User
 
Join Date: Oct 2005
Posts: 9
KrzychuG is on a distinguished road
Yes, i'm preety sure that my bind listens on 169.254.1.68 too. Just look at this:
Code:
[ 22:37:59 :: root  :: ~ ] pppd /dev/ttyACM0 nodetach
using channel 42
Using interface ppp0
Connect: ppp0 <--> /dev/ttyACM0
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <pcomp> <accomp>]
sent [LCP ConfAck id=0x1 <asyncmap 0x0> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <pcomp> <accomp>]
sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 169.254.1.68>]
sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 169.254.1.68>]
rcvd [LCP ConfReq id=0x1 <magic 0x9ec24a89> <asyncmap 0x0> <pcomp> <accomp>]
sent [LCP ConfReq id=0x2 <asyncmap 0x0> <pcomp> <accomp>]
sent [LCP ConfRej id=0x1 <magic 0x9ec24a89>]
rcvd [LCP ConfAck id=0x2 <asyncmap 0x0> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x2 <asyncmap 0x0> <pcomp> <accomp>]
sent [LCP ConfAck id=0x2 <asyncmap 0x0> <pcomp> <accomp>]
sent [CCP ConfReq id=0x2 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [IPCP ConfReq id=0x2 <compress VJ 0f 01> <addr 169.254.1.68>]
rcvd [CCP ConfReq id=0x1 < 11 05 00 01 03>]
sent [CCP ConfRej id=0x1 < 11 05 00 01 03>]
rcvd [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
sent [IPCP ConfNak id=0x1 <addr 169.254.1.1> <ms-dns1 169.254.1.68> <ms-dns3 169.254.1.68>]
rcvd [CCP ConfRej id=0x2 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [CCP ConfReq id=0x3]
rcvd [IPCP ConfAck id=0x2 <compress VJ 0f 01> <addr 169.254.1.68>]
rcvd [CCP ConfReq id=0x2 <mppe -H -M -S -L -D +C>]
sent [CCP ConfRej id=0x2 <mppe -H -M -S -L -D +C>]
rcvd [IPCP ConfReq id=0x2 <compress VJ 0f 01> <addr 169.254.1.1> <ms-dns1 169.254.1.68> <ms-dns3 169.254.1.68>]
sent [IPCP ConfAck id=0x2 <compress VJ 0f 01> <addr 169.254.1.1> <ms-dns1 169.254.1.68> <ms-dns3 169.254.1.68>]
Cannot determine ethernet address for proxy ARP
local  IP address 169.254.1.68
remote IP address 169.254.1.1
Script /etc/ppp/ip-up started (pid 29180)
Script /etc/ppp/ip-up finished (pid 29180), status = 0x1
rcvd [LCP ProtRej id=0x3 80 fd 01 03 00 04]
Protocol-Reject for 'Compression Control Protocol' (0x80fd) received
rcvd [CCP ConfReq id=0x4 <predictor 1>]
rcvd [CCP ConfReq id=0x4 <predictor 1>]
rcvd [CCP ConfReq id=0x4 <predictor 1>]
rcvd [CCP ConfReq id=0x4 <predictor 1>]
rcvd [CCP ConfReq id=0x4 <predictor 1>]
rcvd [LCP TermReq id=0x3]
LCP terminated by peer
Connect time 1.5 minutes.
Sent 336 bytes, received 870 bytes.
Script /etc/ppp/ip-down started (pid 29476)
sent [LCP TermAck id=0x3]
Script /etc/ppp/ip-down finished (pid 29476), status = 0x1
rcvd [LCP TermAck id=0x3]
Connection terminated.
[ 22:40:00 :: root  :: ~ ]
Meanwhile:

Code:
[ 22:37:56 :: root  :: /home/arcain ] /etc/init.d/named restart
 * Stopping named ...                                                     [ ok ] 
* Starting named ...                                                     [ ok ]

[ 22:38:33 :: root  :: /home/arcain ] hostx -v wsockhost.mrouter 169.254.1.68
Server: 169.254.1.68

Query about wsockhost.mrouter for record types A
Trying wsockhost.mrouter ...
Query done, 1 answer, authoritative status: no error
wsockhost.mrouter       86400   IN      A       169.254.1.68
Authority information:
mrouter                 86400   IN      NS      ns.mrouter
Additional information:
ns.mrouter              86400   IN      A       169.254.1.69

[ 22:38:39 :: root  :: /home/arcain ] ping 169.254.1.1
PING 169.254.1.1 (169.254.1.1) 56(84) bytes of data.

--- 169.254.1.1 ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3031ms
I also tried with dnsmask. Same problem.

It looks like no data is transfered through cable/bluetooth to phone.

EDIT:

Could it be because of the flash i'm using in my Motorola? I've got 35.80.59 Generix, which is a modified version of 30.95.00. I've got some weird bleutooth problems with it too. It disconnects me sometimes without any reason in random moments.

Last edited by KrzychuG; 19-11-2005 at 10:48 PM.
Ads
 

Bookmarks

Tags
a925, bluetooth, connect, linux

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SX1 and USB connextion with Linux. neuhus Siemens SX1 10 04-12-2006 01:23 PM
blueTooth and Nokia 7650 Dazler Nokia 7650 14 16-04-2005 11:57 AM
The USB connecting thing nk8 Sony Ericsson P800, P900 and P910 9 15-07-2004 01:25 PM
How to connect P800 to a Belkin Bluetooth Access Point? witschey Sony Ericsson P800, P900 and P910 6 10-06-2004 09:38 PM
Connect P800 to Linux over Bluetooth Afonso Sony Ericsson P800, P900 and P910 2 25-01-2003 03:31 PM



All times are GMT. The time now is 09:20 PM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright Notes || Contact Us || Privacy Policy