Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mihini-dev] mihini ppp0 internet connection

Hi Bharath,

Network access is a bit tricky because it depends on specifics of the linux distribution you are using and the 3G modem you are using. So what I mean is that there is little chance that it works out of the box.

What you will have to do is customize the Bearer mount script located in the Mihini git repository : http://git.eclipse.org/c/mihini/org.eclipse.mihini.git/tree/porting/default/agent/system/GPRS


The way to proceed I recommend is to try to mount the PPP connection directly in a (bash) shell with the regular linux tools (for instance you will need pppd daemon installed on your device). Once you know how to mount a PPP connection you will be able to customize the script (http://git.eclipse.org/c/mihini/org.eclipse.mihini.git/tree/porting/default/agent/system/GPRS)  in the agent so that it works automatically.

Thanks,
Cuero

-----Original Message-----
From: mihini-dev-bounces@xxxxxxxxxxx [mailto:mihini-dev-bounces@xxxxxxxxxxx] On Behalf Of Bharath Gk
Sent: Wednesday, November 19, 2014 3:58 PM
To: mihini-dev@xxxxxxxxxxx
Subject: [mihini-dev] mihini ppp0 internet connection

Hi guys

Please ignore my previous mail

I am trying to get the internet from 3G dongle, so i made the following changes in mihini defaultconfig.lua

  modem.activate = true
  modem.atport = "/dev/ttyUSB1"
  modem.pppport = "/dev/ttyUSB3"

  network.activate = true
  network.bearerpriority = {"GPRS","ETH"}
  network.smsfallback = false
  network.maxconnectiontime = 30
  network.bearer.GPRS = {apn = "tatadocomo3g", retry = 2, retryperiod = 10, automount = true,username="praveen", password="praveen"}

and reloaded the defaultconfig.lua and am getting following output in syslog

Jan  1 00:10:27 arm Mihini: 1970-01-01 00:10:27 NETMAN-INFO: "GPRS" mounted Jan  1 00:10:27 arm Mihini: 1970-01-01 00:10:27 NETMAN-DETAIL:
automounting "ETH"
Jan  1 00:10:27 arm Mihini: 1970-01-01 00:10:27 PSIGNAL-DEBUG:
registering 'SIGCHLD'
Jan  1 00:10:27 arm Mihini: 1970-01-01 00:10:27 NETMAN-INFO: "ETH" mounted Jan  1 00:10:27 arm Mihini: 1970-01-01 00:10:27 PSIGNAL-DEBUG:
registering 'SIGCHLD'
Jan  1 00:10:28 arm Mihini: 1970-01-01 00:10:28 NETMAN-INFO: Selected, default route through "GPRS"
Jan  1 00:10:36 arm Mihini: 1970-01-01 00:10:36 UPDATE-DEBUG: cache:
unloadsubtable currentupdate 636
Jan  1 00:10:55 arm Mihini: 1970-01-01 00:10:55 DATAMGR-INFO: flushing policy "default"
Jan  1 00:10:55 arm Mihini: 1970-01-01 00:10:55 DATAMGR-INFO: flushing policy "now"
Jan  1 00:10:55 arm Mihini: 1970-01-01 00:10:55 DATAMGR-INFO: flushing policy "on_boot"


Please guide me how to interface 3G dongle and get the internet _______________________________________________
mihini-dev mailing list
mihini-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/mihini-dev


Back to the top