gprs through usb mobile phone - i386 works / amd64 not

View: New views
9 Messages — Rating Filter:   Alert me  

gprs through usb mobile phone - i386 works / amd64 not

by Cem Kayali :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hello!

I have a mobile phone (modem) and i was able to connect to gprs network
through KDE's kppp dialup tool (on NetBSD 4.99.5X i386) such that:

Modem device: /dev/ttyU0 or /dev/ttyU1
Flow control: Software
Line term: CR/LF
/etc/ppp/options: noauth



Now, i am trying same configuration (on NetBSD 4.99.69 amd64) and it
even does not query modem, window is closed once i click on 'query
modem' option.

No error message in kdm.log, messages.


dmesg output is as

umodem0 at uhub0 port 1 configuration 1 interface 1
umodem0: Sony Ericsson Sony Ericsson, rev 2.00/0.00, addr 2, iclass 2/2
umodem0: data interface 2, has CM over data, has break
umodem0: status change notification available
ucom0 at umodem0
umodem1 at uhub0 port 1 configuration 1 interface 3
umodem1: Sony Ericsson Sony Ericsson, rev 2.00/0.00, addr 2, iclass 2/2
umodem1: data interface 4, has CM over data, has break
umodem1: status change notification available
ucom1 at umodem1


I apprieciate if someone has advise. This is crucial for me once i am on
a trip.

Regards,



 
 
 
----------------

Cem Kayalı

Re: gprs through usb mobile phone - i386 works / amd64 not

by Stephen Borrill-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, 24 Jul 2008, Cem Kayali wrote:

> I have a mobile phone (modem) and i was able to connect to gprs network
> through KDE's kppp dialup tool (on NetBSD 4.99.5X i386) such that:
>
> Modem device: /dev/ttyU0 or /dev/ttyU1
> Flow control: Software
> Line term: CR/LF
> /etc/ppp/options: noauth
>
> Now, i am trying same configuration (on NetBSD 4.99.69 amd64) and it even
> does not query modem, window is closed once i click on 'query modem' option.

This is probably a kde issue. How about using tip to connect directly to
the serial device and sending it AT commands to check for connectivity?

If connectivity is fine, you could always fall back to using pppd/chat
instead of kppp.

--
Stephen


Re: gprs through usb mobile phone - i386 works / amd64 not

by Cem Kayali :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I have also configured /etc/ppp files to use command line connection:

pppd call CONN_NAME

This does not produce any output or error message either.


'kdump ktrace pppd call CONN_NAME' produces 2000 line output :)


Regards,


Cem Kayali, 07/24/08 13:55:

>
> Hello!
>
> I have a mobile phone (modem) and i was able to connect to gprs
> network through KDE's kppp dialup tool (on NetBSD 4.99.5X i386) such
> that:
>
> Modem device: /dev/ttyU0 or /dev/ttyU1
> Flow control: Software
> Line term: CR/LF
> /etc/ppp/options: noauth
>
>
>
> Now, i am trying same configuration (on NetBSD 4.99.69 amd64) and it
> even does not query modem, window is closed once i click on 'query
> modem' option.
>
> No error message in kdm.log, messages.
>
>
> dmesg output is as
>
> umodem0 at uhub0 port 1 configuration 1 interface 1
> umodem0: Sony Ericsson Sony Ericsson, rev 2.00/0.00, addr 2, iclass 2/2
> umodem0: data interface 2, has CM over data, has break
> umodem0: status change notification available
> ucom0 at umodem0
> umodem1 at uhub0 port 1 configuration 1 interface 3
> umodem1: Sony Ericsson Sony Ericsson, rev 2.00/0.00, addr 2, iclass 2/2
> umodem1: data interface 4, has CM over data, has break
> umodem1: status change notification available
> ucom1 at umodem1
>
>
> I apprieciate if someone has advise. This is crucial for me once i am
> on a trip.
>
> Regards,
>
>
>
>

 
 
 
----------------

Cem Kayalı

Re: gprs through usb mobile phone - i386 works / amd64 not

by Cem Kayali :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


OK, i able to connect to modem (that's what ifconfig -a claims) but no
connection really.

I think i  need to work on connetion script somehow:


ppp0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
        inet 211.41.111.111 -> 10.64.64.64 netmask 0xffffff00
        inet6 fe80::21b:38ff:fed7:d3af%ppp0 ->  prefixlen 64 scopeid 0x6








Stephen Borrill, 07/24/08 14:01:

> On Thu, 24 Jul 2008, Cem Kayali wrote:
>> I have a mobile phone (modem) and i was able to connect to gprs
>> network through KDE's kppp dialup tool (on NetBSD 4.99.5X i386) such
>> that:
>>
>> Modem device: /dev/ttyU0 or /dev/ttyU1
>> Flow control: Software
>> Line term: CR/LF
>> /etc/ppp/options: noauth
>>
>> Now, i am trying same configuration (on NetBSD 4.99.69 amd64) and it
>> even does not query modem, window is closed once i click on 'query
>> modem' option.
>
> This is probably a kde issue. How about using tip to connect directly
> to the serial device and sending it AT commands to check for
> connectivity?
>
> If connectivity is fine, you could always fall back to using pppd/chat
> instead of kppp.
>

 
 
 
----------------

Cem Kayalı

Re: gprs through usb mobile phone - i386 works / amd64 not

by Tonnerre Lombard-7 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Salut, Cem,

On Thu, 24 Jul 2008 14:10:57 +0300, Cem Kayali wrote:
> I have also configured /etc/ppp files to use command line connection:
>
> pppd call CONN_NAME
>
> This does not produce any output or error message either.

It should log to syslog; did you have a look there?

                                Tonnerre


signature.asc (849 bytes) Download Attachment

Re: gprs through usb mobile phone - i386 works / amd64 not

by Tonnerre Lombard-7 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Salut, Cem,

On Thu, 24 Jul 2008 13:55:36 +0300, Cem Kayali wrote:
> Now, i am trying same configuration (on NetBSD 4.99.69 amd64) and it
> even does not query modem, window is closed once i click on 'query
> modem' option.

This problem is probably KDE specific; I can establish a GPRS link
using my cell phone as a USB serial modem just fine on NetBSD/amd64
4.99.70.

                                Tonnerre


signature.asc (849 bytes) Download Attachment

Re: gprs through usb mobile phone - i386 works / amd64 not

by Tonnerre Lombard-7 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Salut, Cem,

On Thu, 24 Jul 2008 14:29:46 +0300, Cem Kayali wrote:

> OK, i able to connect to modem (that's what ifconfig -a claims) but
> no connection really.
>
> I think i  need to work on connetion script somehow:
>
>
> ppp0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
>         inet 211.41.111.111 -> 10.64.64.64 netmask 0xffffff00
>         inet6 fe80::21b:38ff:fed7:d3af%ppp0 ->  prefixlen 64 scopeid
> 0x6
What's the default route? Is your /etc/resolv.conf set up correctly? By
default, pppd only creates a file in /etc/ppp/resolv.conf, not directly
in /etc.

                                Tonnerre


signature.asc (849 bytes) Download Attachment

Re: gprs through usb mobile phone - i386 works / amd64 not

by Cem Kayali :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks for tips.

OK, i noticed that the problem is with /etc/ppp/resolv.conf, but
situation is vice versa. Copying it to /etc/resolv.conf didnt work,
probably there is a problem with gprs provider nameservers. I inserted
opendns nameservers

nameserver 208.67.222.222
nameserver 208.67.220.220

and it worked.



Result: The problem is KDE specific, Yes.

Regards,



Tonnerre Lombard, 07/24/08 14:57:

> Salut, Cem,
>
> On Thu, 24 Jul 2008 14:29:46 +0300, Cem Kayali wrote:
>  
>> OK, i able to connect to modem (that's what ifconfig -a claims) but
>> no connection really.
>>
>> I think i  need to work on connetion script somehow:
>>
>>
>> ppp0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
>>         inet 211.41.111.111 -> 10.64.64.64 netmask 0xffffff00
>>         inet6 fe80::21b:38ff:fed7:d3af%ppp0 ->  prefixlen 64 scopeid
>> 0x6
>>    
>
> What's the default route? Is your /etc/resolv.conf set up correctly? By
> default, pppd only creates a file in /etc/ppp/resolv.conf, not directly
> in /etc.
>
> Tonnerre
 
 
 
----------------

Cem Kayalı

Re: gprs through usb mobile phone - i386 works / amd64 not

by Cem Kayali :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Thanks for tips.

OK, i noticed that the problem is with /etc/ppp/resolv.conf, but
situation is vice versa. Copying it to /etc/resolv.conf didnt work,
probably there is a problem with gprs provider's nameservers. I inserted
opendns nameservers

nameserver 208.67.222.222
nameserver 208.67.220.220

and it worked.



Result: The problem is KDE specific, Yes. There is a open bug report in
kde.org, stating that kppp crashes on FreeBSD amd64 system while it
works on i386.

Regards,


Tonnerre Lombard, 07/24/08 14:57:

> Salut, Cem,
>
> On Thu, 24 Jul 2008 14:29:46 +0300, Cem Kayali wrote:
>  
>> OK, i able to connect to modem (that's what ifconfig -a claims) but
>> no connection really.
>>
>> I think i  need to work on connetion script somehow:
>>
>>
>> ppp0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
>>         inet 211.41.111.111 -> 10.64.64.64 netmask 0xffffff00
>>         inet6 fe80::21b:38ff:fed7:d3af%ppp0 ->  prefixlen 64 scopeid
>> 0x6
>>    
>
> What's the default route? Is your /etc/resolv.conf set up correctly? By
> default, pppd only creates a file in /etc/ppp/resolv.conf, not directly
> in /etc.
>
> Tonnerre
>  

 
 
 
----------------

Cem Kayalı