Re: Dialling INTO a wireless broadband modem with OpenMoko

2011-05-31 Thread Philip Rhoades

Timo,


On 2011-05-31 06:35, Timo Juhani Lindfors wrote:

Paul Fertserfercer...@gmail.com  writes:

Isn't the existing setup the same already (GPRS/HSDPA)? And with persist
option it should be pretty reliable.


I'm not sure if I would rely on persist alone. I use a combination of
hardware and software watchdogs [1] to implement reliable callback. If I
call the phone from a specific number it does not play the ringtone:
instead it hangs up and initiates a GPRS connection. When that is up it
sends the IP address and some extra information to my server.

This is quite reliable for me. I operated openmoko as an RTK-GPS base
station with this setup for months without having physical access.

[1] I use three watchdogs:

1) normal watchdog package that talks to the hardware via /dev/watchdog
2) custom perl script that verifies that the GSM is associated with a
cell
3) a custom perl script that keeps the battery charged at around 60% to
prolong its life and to also shutdown the system safely if power is lost
for and the charge drops below 20%.



This sounds like what I want to do but from the other way around - use 
the Freerunner to connect to a remote Fedora machine with a Virgin 
(Australia) mobile broadband that is connected when I leave it but 
eventually disconnects some hours or days later.  I am trying to work 
out a way of dialling back in . .


Thanks,

Phil.
--
Philip Rhoades

GPO Box 3411
Sydney NSW  2001
Australia
E-mail:  p...@pricom.com.au

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Dialling INTO a wireless broadband modem with OpenMoko

2011-05-30 Thread Philip Rhoades

Paul,


On 2011-05-28 14:49, Paul Fertser wrote:

Hi,

On Sat, May 28, 2011 at 06:59:33AM +1000, Philip Rhoades wrote:

On 2011-05-28 04:25, Paul Fertser wrote:

Philip Rhoadesp...@pricom.com.au   writes:

I am wondering if it would be possible to use minicom on the
Freerunner to dial the phone number of the remote dongle, make a
connection


If CSD[1] is available from your provider, then you can do that,
right. If not, all you can do is to write some smart enough script
that would do something with the connection once it tears off (in
fact, probably simply adding persist option to pppd will suffice).


OK, I will check with VirginMobile (Australia) but if that doesn't work
I could switch to Telstra.  Are there some working scripts around to do
the PPP stuff?


There's plenty of examples for using gprs/3g under GNU/Linux the
manual way.

I assume you're already using pppd for establishing the connection
from the remote system to some host in the internet that you
control.



No - when I plug the dongle in, I just let NetworkManager find it and 
set it up.  I haven't got it in front of me now, but I think I have to 
type some sort of keyring password to allow the connection?




I think simply adding persist lcp-echo-failure 10
lcp-echo-interval 5 options to its config (/etc/ppp/options or
/etc/ppp/peers/yourpppdscript  or some other way specific to how you
start pppd) should be enough.



I want to make the connection from the other direction - from my normal 
F14 desktop TO the remote Virgin mobile broadband dongle F14 machine.


Thanks,

Phil.
--
Philip Rhoades

GPO Box 3411
Sydney NSW  2001
Australia
E-mail:  p...@pricom.com.au

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Dialling INTO a wireless broadband modem with OpenMoko

2011-05-30 Thread Paul Fertser
Hi,

On Tue, May 31, 2011 at 03:24:49AM +1000, Philip Rhoades wrote:
 I assume you're already using pppd for establishing the connection
 from the remote system to some host in the internet that you
 control.

 No - when I plug the dongle in, I just let NetworkManager find it and  
 set it up.  I haven't got it in front of me now, but I think I have to  
 type some sort of keyring password to allow the connection?

I would guess it's highly unlikely NM doesn't use pppd for establishing the
connection.

 I think simply adding persist lcp-echo-failure 10
 lcp-echo-interval 5 options to its config (/etc/ppp/options or
 /etc/ppp/peers/yourpppdscript  or some other way specific to how you
 start pppd) should be enough.

 I want to make the connection from the other direction - from my normal  
 F14 desktop TO the remote Virgin mobile broadband dongle F14 machine.

Without CSD the most reasonable option imho would be to keep a persistent
connection over GPRS to some internet host you control and use it as a proxy.
An alternative would be to establish GPRS connection upon an incoming (voice)
call or message but that'd be more complex and fragile to set up.

HTH
-- 
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:fercer...@gmail.com

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Dialling INTO a wireless broadband modem with OpenMoko

2011-05-30 Thread Philip Rhoades

Paul,


On 2011-05-31 03:42, Paul Fertser wrote:

Hi,

On Tue, May 31, 2011 at 03:24:49AM +1000, Philip Rhoades wrote:

I assume you're already using pppd for establishing the connection
from the remote system to some host in the internet that you
control.


No - when I plug the dongle in, I just let NetworkManager find it and
set it up.  I haven't got it in front of me now, but I think I have to
type some sort of keyring password to allow the connection?


I would guess it's highly unlikely NM doesn't use pppd for establishing the
connection.


I think simply adding persist lcp-echo-failure 10
lcp-echo-interval 5 options to its config (/etc/ppp/options or
/etc/ppp/peers/yourpppdscript   or some other way specific to how you
start pppd) should be enough.


I want to make the connection from the other direction - from my normal
F14 desktop TO the remote Virgin mobile broadband dongle F14 machine.


Without CSD the most reasonable option imho would be to keep a persistent
connection over GPRS to some internet host you control and use it as a proxy.
An alternative would be to establish GPRS connection upon an incoming (voice)
call or message but that'd be more complex and fragile to set up.



The GPRS connection is just as likely to drop out as the existing setup 
isn't it?


Thanks,

Phil.
--
Philip Rhoades

GPO Box 3411
Sydney NSW  2001
Australia
E-mail:  p...@pricom.com.au

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Dialling INTO a wireless broadband modem with OpenMoko

2011-05-30 Thread Paul Fertser
On Tue, May 31, 2011 at 04:40:13AM +1000, Philip Rhoades wrote:
 Without CSD the most reasonable option imho would be to keep a persistent
 connection over GPRS to some internet host you control and use it as a proxy.
 An alternative would be to establish GPRS connection upon an incoming (voice)
 call or message but that'd be more complex and fragile to set up.

 The GPRS connection is just as likely to drop out as the existing setup  
 isn't it?

Isn't the existing setup the same already (GPRS/HSDPA)? And with persist
option it should be pretty reliable.

-- 
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:fercer...@gmail.com

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Dialling INTO a wireless broadband modem with OpenMoko

2011-05-30 Thread Timo Juhani Lindfors
Paul Fertser fercer...@gmail.com writes:
 Isn't the existing setup the same already (GPRS/HSDPA)? And with persist
 option it should be pretty reliable.

I'm not sure if I would rely on persist alone. I use a combination of
hardware and software watchdogs [1] to implement reliable callback. If I
call the phone from a specific number it does not play the ringtone:
instead it hangs up and initiates a GPRS connection. When that is up it
sends the IP address and some extra information to my server.

This is quite reliable for me. I operated openmoko as an RTK-GPS base
station with this setup for months without having physical access.

[1] I use three watchdogs:

1) normal watchdog package that talks to the hardware via /dev/watchdog
2) custom perl script that verifies that the GSM is associated with a
cell
3) a custom perl script that keeps the battery charged at around 60% to
prolong its life and to also shutdown the system safely if power is lost
for and the charge drops below 20%.



___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Dialling INTO a wireless broadband modem with OpenMoko

2011-05-27 Thread Paul Fertser
Philip Rhoades p...@pricom.com.au writes:
 I am wondering if it would be possible to use minicom on the
 Freerunner to dial the phone number of the remote dongle, make a
 connection

If CSD[1] is available from your provider, then you can do that,
right. If not, all you can do is to write some smart enough script
that would do something with the connection once it tears off (in
fact, probably simply adding persist option to pppd will suffice).

[1] http://en.wikipedia.org/wiki/Circuit_Switched_Data

HTH
-- 
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:fercer...@gmail.com

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Dialling INTO a wireless broadband modem with OpenMoko

2011-05-27 Thread Philip Rhoades

Paul,


On 2011-05-28 04:25, Paul Fertser wrote:

Philip Rhoadesp...@pricom.com.au  writes:

I am wondering if it would be possible to use minicom on the
Freerunner to dial the phone number of the remote dongle, make a
connection


If CSD[1] is available from your provider, then you can do that,
right. If not, all you can do is to write some smart enough script
that would do something with the connection once it tears off (in
fact, probably simply adding persist option to pppd will suffice).

[1] http://en.wikipedia.org/wiki/Circuit_Switched_Data



OK, I will check with VirginMobile (Australia) but if that doesn't work 
I could switch to Telstra.  Are there some working scripts around to do 
the PPP stuff?


Thanks,

Phil.
--
Philip Rhoades

GPO Box 3411
Sydney NSW  2001
Australia
E-mail:  p...@pricom.com.au

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Dialling INTO a wireless broadband modem with OpenMoko

2011-05-27 Thread Paul Fertser
Hi,

On Sat, May 28, 2011 at 06:59:33AM +1000, Philip Rhoades wrote:
 On 2011-05-28 04:25, Paul Fertser wrote:
 Philip Rhoadesp...@pricom.com.au  writes:
 I am wondering if it would be possible to use minicom on the
 Freerunner to dial the phone number of the remote dongle, make a
 connection

 If CSD[1] is available from your provider, then you can do that,
 right. If not, all you can do is to write some smart enough script
 that would do something with the connection once it tears off (in
 fact, probably simply adding persist option to pppd will suffice).

 OK, I will check with VirginMobile (Australia) but if that doesn't work  
 I could switch to Telstra.  Are there some working scripts around to do  
 the PPP stuff?

There's plenty of examples for using gprs/3g under GNU/Linux the
manual way.

I assume you're already using pppd for establishing the connection
from the remote system to some host in the internet that you
control. I think simply adding persist lcp-echo-failure 10
lcp-echo-interval 5 options to its config (/etc/ppp/options or
/etc/ppp/peers/yourpppdscript or some other way specific to how you
start pppd) should be enough.

-- 
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:fercer...@gmail.com

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community