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

  #1  
Old 04-12-2006, 03:17 PM
alci alci is offline
Registered User
 
Join Date: Dec 2006
Posts: 5
alci is on a distinguished road
Question Establishing a ppp connection to linux

Hi,

I am trying to establish a ppp connection with a linux box using the usb cable.

Here is my pppd peer definition :

/dev/ttyACM0
noauth
debug
460800
crtscts
passive
lock
local
proxyarp
ipcp-accept-local
ipcp-accept-remote
ms-dns 169.254.1.65
169.254.1.65:169.254.1.66

I have a local dns cache that resolves wsockhost.mrouter to 169.254.1.65 :

$ dig wsockhost.mrouter

; <<>> DiG 9.3.2 <<>> wsockhost.mrouter
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1828
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;wsockhost.mrouter. IN A

;; ANSWER SECTION:
wsockhost.mrouter. 0 IN A 169.254.1.65

;; Query time: 1 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Mon Dec 4 16:14:26 2006
;; MSG SIZE rcvd: 51

But the M600i keeps terminating the connection :

pppd 2.4.4 started by franck, uid 1000
Dec 4 14:55:18 feuille pppd[10440]: Using interface ppp0
Dec 4 14:55:18 feuille pppd[10440]: Connect: ppp0 <--> /dev/ttyACM0
Dec 4 14:55:21 feuille kernel: [17180615.308000] PPP BSD Compression module registered
Dec 4 14:55:21 feuille kernel: [17180615.368000] PPP Deflate Compression module registered
Dec 4 14:55:21 feuille pppd[10440]: local IP address 169.254.1.65
Dec 4 14:55:21 feuille pppd[10440]: remote IP address 169.254.1.66
Dec 4 14:55:21 feuille pppd[10440]: LCP terminated by peer
Dec 4 14:55:21 feuille pppd[10440]: Connect time 0.0 minutes.
Dec 4 14:55:21 feuille pppd[10440]: Sent 119 bytes, received 123 bytes.
Dec 4 14:55:24 feuille pppd[10440]: Connection terminated.
Dec 4 14:55:24 feuille pppd[10440]: Modem hangup
Dec 4 14:55:24 feuille pppd[10440]: Exit.

Any hint ?

Thanks,
Franck

PS : this config works with a P910i with bluetooth, and with usb cradle after adding a "mrouter are you there" chat.
Ads

  #2  
Old 11-12-2006, 11:31 AM
alci alci is offline
Registered User
 
Join Date: Dec 2006
Posts: 5
alci is on a distinguished road
RESOLVED (partially)

Hi,

I reply to myself...

In fact this works. It establishes a PPP connection, that only tend to break quite quickly... Maybe there is a timeout somewhere... I still must investigate on this, but anyway I get a connection that lives for a few minutes at least. So I can try to use it...

BUT, I also have another question, on synchronisation.

I have a TCP/IP connection over the USB cable.
I have a sync server (Funambol) running on my linux box.

I can configure the M600i to use the right url to sync : http://169.254.1.65/funambol/ds

But I don't succed in telling the M600i to use that connection; It keeps trying to open a GPRS connection, and doesn't seem to want to use the established ppp connection over the usb cable.

Any hint ?

Franck

  #3  
Old 12-12-2006, 01:03 PM
slompf slompf is offline
Registered User
 
Join Date: Dec 2006
Posts: 1
slompf is on a distinguished road
Establishing a ppp connection to linux

Hi Franck,

Im trying to do the same. Ive set up a bluetooth connection which is working and after issuing the " pppd -d -detach call m600i-bluez" command Im getting this output:
using channel 6
Using interface ppp0
Connect: ppp0 <--> /dev/rfcomm0
.
.
.
<ms-dns1 192.168.99.98> <ms-dns3 192.168.99.98>]
Cannot determine ethernet address for proxy ARP
local IP address 192.168.99.98
remote IP address 192.168.99.99
Script /etc/ppp/ip-up started (pid 10260)
Script /etc/ppp/ip-up finished (pid 10260), status = 0x0
rcvd [LCP TermReq id=0x3]
LCP terminated by peer
Connect time 0.0 minutes.
Sent 119 bytes, received 123 bytes.
Script /etc/ppp/ip-down started (pid 10265)
sent [LCP TermAck id=0x3]
Script /etc/ppp/ip-down finished (pid 10265), status = 0x0
Connection terminated.
Modem hangup

So it seems Im having the same problem like you. But you wrote in your second thread, the connection stays up some time. So what did you do to get it work longer than 0.0 minutes?

Ive tryied to include a chat like the one on this side: http://p800.gesel.nu/
But than the pppd outputs only: Connect script failed. However, the earth icon remains some time on the display of the phone. Could that be the right way?

Maybe we can solve this problem together. It starts annoying me.

Kind regards
Torsten

PS: my peer file
connect "/usr/sbin/chat -v -f /etc/ppp/peers/m600i-bluez.chat"
/dev/rfcomm0
debug
passive
local
proxyarp
noauth
modem
ms-dns 192.168.99.98
192.168.99.98:192.168.99.99

my chat file
"" "." "Are you there?~" "~mRouter - I'm here~"

  #4  
Old 18-12-2006, 12:51 PM
alci alci is offline
Registered User
 
Join Date: Dec 2006
Posts: 5
alci is on a distinguished road
M600 usb ppp connection to Linux

Hi Torsten,

the difference between my first and second message is I made sure my firewall was down...

As I understand it, the mrouter "protocol" needs to be able to find a wsockhost.mrouter server. So you have to set up a dns server on the linux box that resolves this host name to the linux end of the ppp connection.
If the m600 can't find wsockhost.mrouter, it closes the connection... I thinks that is what was happening for me first (so I made sure netfilter was not preventing the m600 to use my local dns server).

In a previous version of the "protocol", you also needed a chat script, but this was apparently abandonned in the version used in the m600 (so no need for chat script, as was necessary for the P800, P900, P910 series).

Does this help ?

Franck
 

Bookmarks

Tags
connection, establishing, linux, ppp

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
Internet on N70 using pc connection. kewlsymbian Nokia N70, N72 and N90 22 25-03-2011 10:29 PM
N80 randomly establishing GPRS connection LesLesleyson Nokia N80 12 22-07-2006 12:54 PM
Internet Connection via WiFi sans IP-Passthrough mayaank Nokia 9300 and 9500 9 10-03-2005 05:36 AM
BT serial connection between PC and P800 Halvard Sony Ericsson P800, P900 and P910 4 26-10-2004 06:57 PM



All times are GMT. The time now is 08:16 PM.


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