LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-13-2012, 05:35 PM   #1
vitoacmm
LQ Newbie
 
Registered: Feb 2012
Posts: 6

Rep: Reputation: Disabled
--sakis3G-- and auto reconnect to 3G network


Hi, I'm using sakis3G by command line.
Machine should be connected all time at 3G network, but sometimes maybe 24h others less time, the connection 3G is killed maybe the network does not want a persistent connection.

Is there anyway to make sakis3G to connect again if ppp gets disconnected? Like an auto reconnect

Tanks
 
Old 08-17-2012, 07:57 AM   #2
Schneckl
LQ Newbie
 
Registered: Aug 2007
Posts: 13

Rep: Reputation: 0
I was in the same situation an I wrote a script for this, see here: http://zool33.uni-graz.at/petz/umtskeeper/
It's running fine here, I'm currently experimenting with new functionality, so check regularly. I would be glad about some feedback, too
 
Old 08-19-2012, 06:55 PM   #3
vitoacmm
LQ Newbie
 
Registered: Feb 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
Hi that's nice but I found a better way with direct pppd, its faster than sakis and does auto reconnect:

pppd /dev/ttyUSB0 921600 mtu 552 mru 552 modem crtscts dump defaultroute noipdefault usepeerdns ktune noauth logfd 2 logfile /pppd.log lock persist holdoff 2 maxfail 20 connect "/usr/sbin/chat -v -f /etc/ppp/vodafone_chat"

This is the command, find if our 3g modem data serial is on ttyUSB0 sometimes could be on ttyUSB1 or ttyUSB2

U have to edit first the vodafone_chat to your APN, my one is like this:

root@omap:/etc/init.d# cat /etc/ppp/vodafone_chat
# chat script for Huawei E160E HSDPA USB stick with Optus prepaid mobile internet
#
# Developed from sakis3g script
ABORT 'NO CARRIER'
ABORT 'NO DIALTONE'
ABORT 'BUSY'
ABORT 'ERROR'
ABORT 'NO ANSWER'
'' 'AT'
OK 'ATQ0 V1 E1'
OK 'AT&D2 &C1'
OK 'AT+FCLASS=0'
OK 'ATS0=0'
OK 'at+cmgf=1'
OK 'at+cnmi=1,2,0,0,0'
OK 'AT+CGDCONT=1,"IP","internet"'
OK 'ATDT*99#'
CONNECT ''

Also for the first step dont forget to do the registation on network with ur pin with command on serial port AT+CPIN=1234 or disable pin on sim card on some cell phone

If ur good on scripting it would be nice that u add ddclient command on script for update IP dynamic address on http://dyn.com/dns/ on each recconect on 3G (the network disconnect u like every day or 2 days and renew IP)

Best Regards,
Vitor

Last edited by vitoacmm; 08-19-2012 at 07:10 PM.
 
Old 12-05-2013, 10:08 AM   #4
Schneckl
LQ Newbie
 
Registered: Aug 2007
Posts: 13

Rep: Reputation: 0
Quote:
Originally Posted by vitoacmm View Post
If ur good on scripting it would be nice that u add ddclient command on script for update IP dynamic address on http://dyn.com/dns/ on each recconect on 3G (the network disconnect u like every day or 2 days and renew IP)
Dynamic DNS client has been added in version 2.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ubuntu 9.04 desktop does not auto-reconnect into network after router reboot neela77777 Linux - Networking 18 06-03-2009 05:13 PM
Wireless Network auto reconnect brim4brim Linux - Newbie 0 06-22-2005 11:06 PM
pftpfxp auto reconnect behade Linux - Software 4 01-12-2005 10:25 AM
Auto-Reconnect JC404 Linux - Newbie 3 07-01-2003 04:04 PM
want auto-reconnect off in wvdial marlaina1 Linux - General 2 03-18-2002 04:27 AM


All times are GMT -5. The time now is 01:27 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration