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: 15

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: 15

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.
 
Old 07-02-2015, 12:07 PM   #5
Schneckl
LQ Newbie
 
Registered: Aug 2007
Posts: 15

Rep: Reputation: 0
Exclamation New Address

UMTSkeeper is now at http://mintakaconciencia.net/squares/umtskeeper/
 
Old 07-03-2015, 04:03 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051
i have a netbook with built-in 3g and wanted a quick & lightweight solution.
i ended up using network-manager without nm-applet or any gui dependencies. works fine for me, takes care of reconnect-on-loss and wake-up. connects in about 10s, whereas sakis3g needed 30s for the same network.

@vitoacmm: good you got it sorted with pppd only!

@Scneckl: while i was setting things up i came across sakis3g & your script. but, isn't sakis3g becoming seriously outdated?
their website is gone completely. i didn't know about the git repository until just know, but even that hasn't seen much action. also, with all due respect, sakis3g is a horrible mess, there's no way of saying it politely. a shell script that contains binary data & tries to re-invent privilege escalation (aka su and sudo).
 
Old 07-03-2015, 09:17 AM   #7
Schneckl
LQ Newbie
 
Registered: Aug 2007
Posts: 15

Rep: Reputation: 0
ondoho,

Good to see that nmcli seems up to the task, finally. I might want to look into that one again to incorporate it. Back when I started my exercise, Sakis3G was the only viable thing I found, that just worked all the proprietary stuff from the commandline.
You're right in a way about the shortcomings of Sakis3G, being a massive shell script with speed penalty to expect. Still I'm glad there is a new maintainer (I guess he needs feedback to go ahead with new devices etc!). That's about having different options. BTW, Sakis3G-binary only includes modeswitch, that was done for convenience at the time. It does not depend on the binary, that's why there is also a "binary-free" version.
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:34 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration