Hi Bharath,
You made good progress.
As I was saying this was an experimental feature. You will have to investigate a little bit more. The good thing is that the prb you have now is not realted to Mihini but pppd (so you should find a lot of information on the Internet).
I think what you have to do is to configure properly pppd so that it create the ip gateway and route to be able to route traffic through it.
Try to play with pppd outside of Mihini, and make sure you get a network connection. Once you have that you can go back into Mihini integration.
Regarding the fact that it creates additional ppp interface, this is to be fixed in the "/opt/mihini/bin/GPRS” script. The script needs to check in the ‘start’ command (around line 173) if a pppd connection is already on, and if so should not mount another one.
Thx,
Cuero
From: mihini-dev-bounces@xxxxxxxxxxx [mailto:mihini-dev-bounces@xxxxxxxxxxx] On Behalf Of Bharath Gk
Sent: Friday, November 21, 2014 4:25 PM
To: mihini-dev@xxxxxxxxxxx
Subject: [mihini-dev] mihini ppp0 internet connection
Hi Cuero Bugot
Thank you for quick reply.
I am using Debian GNU/Linux 7.7 (wheezy)
As for your suggetions i eidted "/opt/mihini/bin/GPRS" script by below link's script
https://eclipse.googlesource.com/mihini/org.eclipse.mihini/+/4689c87e57579bc03288c3d99766779caa54b86d/agent/system/GPRS.ubuntux86
and i altered ttyS0 to ttyUSB3 as per my 3G modem port. and restarted mihini now pppd is successfully running But'internet is not getting up'
and am getting some ip addresses but internet is not up.
here is the result of ifconfig
ppp0 Link encap:Point-to-Point Protocol
inet addr:10.64.64.64 P-t-P:10.112.112.112 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
My Syslog output:
Jan 1 00:02:20 arm Mihini: 1970-01-01 00:02:20 GENERAL-INFO: Module [Update] initialized
Jan 1 00:02:20 arm Mihini: 1970-01-01 00:02:20 GENERAL-INFO: Agent successfully initialized
Jan 1 00:02:20 arm Mihini: 1970-01-01 00:02:20 UPDATE-DETAIL: Looking for local update in drop folder
Jan 1 00:02:20 arm Mihini: 1970-01-01 00:02:20 UPDATE-DETAIL: No local update found in drop folder
Jan 1 00:02:21 arm pppd[2753]: pppd 2.4.5 started by root, uid 0
Jan 1 00:02:21 arm pppd[2753]: Using interface ppp0
Jan 1 00:02:21 arm pppd[2753]: kernel does not support PPP filtering
Jan 1 00:02:21 arm pppd[2753]: local IP address 10.64.64.64
Jan 1 00:02:21 arm pppd[2753]: remote IP address 10.112.112.112
Jan 1 00:02:21 arm Mihini: 1970-01-01 00:02:21 NETMAN-DETAIL: automounting "GPRS"
Jan 1 00:02:21 arm Mihini: 1970-01-01 00:02:21 PSIGNAL-DEBUG: registering 'SIGCHLD'
Jan 1 00:02:22 arm Mihini: 1970-01-01 00:02:22 PSIGNAL-DEBUG: registering 'SIGCHLD'
Jan 1 00:02:22 arm Mihini: 1970-01-01 00:02:22 NETMAN-WARNING: Bearer:mount for bearer [GPRS] Failed: script status = [1], output = [bin: error fetching interface information: Device not found
Jan 1 00:02:22 arm Mihini: ], "GPRS" retrying(2)
Jan 1 00:02:30 arm Mihini: 1970-01-01 00:02:30 UPDATE-DEBUG: cache: unloadsubtable currentupdate 150
Jan 1 00:02:32 arm Mihini: 1970-01-01 00:02:32 PSIGNAL-DEBUG: registering 'SIGCHLD'
Jan 1 00:02:32 arm Mihini: 1970-01-01 00:02:32 PSIGNAL-DEBUG: registering 'SIGCHLD'
Jan 1 00:02:32 arm Mihini: 1970-01-01 00:02:32 NETMAN-WARNING: Bearer:mount for bearer [GPRS] Failed: script status = [1], output = [bin: error fetching interface information: Device not found
My /tmp/GPRS.sh.log output:
->command stop on Thu Jan 1 00:22:51 UTC 1970
param: stop
param: bin
->command stop on Thu Jan 1 00:23:01 UTC 1970
param: stop
param: bin
->command start on Thu Jan 1 00:23:01 UTC 1970
param: start
param: bin
param: apn=tatadocomo3g
param: retry=2
param: retryperiod=10
param: automount=true
starting...
starting...PTP ko
->command stop on Thu Jan 1 00:23:01 UTC 1970
param: stop
param: bin
->command stop on Thu Jan 1 00:23:11 UTC 1970
param: stop
param: bin
->command start on Thu Jan 1 00:23:12 UTC 1970
param: start
param: bin
param: apn=tatadocomo3g
param: retry=2
param: retryperiod=10
param: automount=true
starting...
starting...PTP ko
->command stop on Thu Jan 1 00:23:12 UTC 1970
param: stop
param: bin
And if i restart mihini once again i am getting another interface named as ppp1 along with ppp0.
Below is the result for ifconfig after mihini second restart
ppp0 Link encap:Point-to-Point Protocol
inet addr:10.64.64.64 P-t-P:10.112.112.112 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
ppp1 Link encap:Point-to-Point Protocol
inet addr:10.64.64.65 P-t-P:10.112.112.113 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
if i restart one more time i will get ppp3 also,
Totally my 3G modem is not getting up by that GPRS script,
Plase help me