OSMC and sakis3g

Hi,

I am trying to connect to a 3G network using the well known “sakis3g”. Everything works fine (see log) and I also see the ppp interface but I don’t have internet connection. Can someone help me?

ppp0      Link encap:Point-to-Point Protocol  
          inet addr:10.233.82.148  P-t-P:10.64.64.64  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:7 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3 
          RX bytes:94 (94.0 B)  TX bytes:157 (157.0 B)

Sakis Log:

  Sakis3G 0.2.0e running on DEBUG mode.
-------------------------------------------
mar 27 ott 2015, 09.41.27, UTC
-------------------------------------------
Command line was: /tmp/sakis3gz.15181.sakis3g "connect" "OTHER=USBMODEM" "USBMODEM=1199:6880" "USBINTERFACE=3" "APN=gprs.swisscom.ch" "--debug"
Running with PID: 15213
-------------------------------------------
Environment is:
APN='gprs.swisscom.ch'
DEBUG='on'
DESKTOP=''
DISPLAY=''
EXTRACTED='/tmp/sakis3gz.15181.sakis3g'
HOME='/root'
IFS=' 	
'
LANG='it_CH.UTF-8'
LOGNAME='root'
LS_COLORS='rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:'
MAIL='/var/mail/root'
MEGZ='./sakis3g'
MYVERSION='0.2.0e'
NOFUNCNAME='1'
OPTIND='1'
OTHER='USBMODEM'
PATH='/bin:/sbin:/usr/bin:/usr/sbin'
PPID='15181'
PROVIDER='./sakis3g'
PS1='# '
PS2='> '
PS4='+ '
PWD='/home/osmc'
RPI_UPDATE_UNSUPPORTED='1'
SHELL='/bin/bash'
SUDO_COMMAND='./sakis3g connect OTHER=USBMODEM USBMODEM=1199:6880 USBINTERFACE=3 APN=gprs.swisscom.ch --debug'
SUDO_GID='1000'
SUDO_UID='1000'
SUDO_USER='osmc'
TERM='xterm-256color'
TRAPS='cleanscreen '
USBINTERFACE='3'
USBMODEM='1199:6880'
USER='root'
USERNAME='root'
XAUTHORITY=''
allargs='"connect" "OTHER=USBMODEM" "USBMODEM=1199:6880" "USBINTERFACE=3" "APN=gprs.swisscom.ch" "--debug"'
binaryfree='yes'
binaryvariable='grep'
cutbin='/usr/bin/cut'
grepbin='/bin/grep'
lastverbosetext='Starting up'
me='/tmp/sakis3gz.15181.sakis3g'
printfbin='/usr/bin/printf'
sedbin='/bin/sed'
trbin='/usr/bin/tr'
verbosecurrentcount='7'
whichbin='/bin/which'
-------------------------------------------
Will now proceed with Sakis3G execution.
-------------------------------------------
[15213] [09:41:27] Located "echo" within PATH (/bin/echo).
[15213] [09:41:27] Level 1 dependencies met.
[15213] [09:41:27] Dir "/bin" exists in PATH.
[15213] [09:41:27] Dir "/usr/bin" exists in PATH.
[15213] [09:41:28] Dir "/sbin" exists in PATH.
[15213] [09:41:28] Dir "/usr/sbin" exists in PATH.
[15213] [09:41:28] Done setting up PATH.
[15213] [09:41:28] Located "readlink" within PATH (/bin/readlink).
[15213] [09:41:28] My location is "/home/osmc/sakis3g".
[15213] [09:41:28] Located "wc" within PATH (/usr/bin/wc).
[15213] [09:41:28] Located "cat" within PATH (/bin/cat).
[15213] [09:41:28] Located "tail" within PATH (/usr/bin/tail).
[15213] [09:41:28] Located "head" within PATH (/usr/bin/head).
[15213] [09:41:28] Located "sort" within PATH (/usr/bin/sort).
[15213] [09:41:28] Located "uniq" within PATH (/usr/bin/uniq).
[15213] [09:41:28] Located "ls" within PATH (/bin/ls).
[15213] [09:41:28] Located "setsid" within PATH (/usr/bin/setsid).
[15213] [09:41:28] Located "getent" within PATH (/usr/bin/getent).
[15213] [09:41:28] Located "ps" within PATH (/bin/ps).
[15213] [09:41:28] Located "chmod" within PATH (/bin/chmod).
[15213] [09:41:28] Located "chown" within PATH (/bin/chown).
[15213] [09:41:28] Located "touch" within PATH (/bin/touch).
[15213] [09:41:28] Located "expr" within PATH (/usr/bin/expr).
[15213] [09:41:28] Located "seq" within PATH (/usr/bin/seq).
[15213] [09:41:28] Located "cp" within PATH (/bin/cp).
[15213] [09:41:28] Located "rm" within PATH (/bin/rm).
[15213] [09:41:28] Located "who" within PATH (/usr/bin/who).
[15213] [09:41:28] Located "mv" within PATH (/bin/mv).
[15213] [09:41:28] Located "basename" within PATH (/usr/bin/basename).
[15213] [09:41:28] Located "dirname" within PATH (/usr/bin/dirname).
[15213] [09:41:28] Level 2 dependencies met.
[15213] [09:41:28] Basic binaries are resolved.
[15213] [09:41:28] Parent process is: sudo
[15213] [09:41:28] Running by user request.
[15213] [09:41:29] Person behind screen is osmc.
[15213] [09:41:29] Configuration file /etc/default/sakis3g does not exist or is not readable.
[15213] [09:41:29] Configuration file /etc/sysconfig/sakis3g does not exist or is not readable.
[15213] [09:41:29] Configuration file /etc/sakis3g.conf does not exist or is not readable.
[15213] [09:41:29] Configuration file(s) loaded.
[15213] [09:41:29] Unable to find a local X display, will stick to terminal.
[15213] [09:41:29] Selecting GUI.
[15213] [09:41:29] terminal selected as GUI.
[15213] [09:41:29] Selecting GUI.
[15213] [09:41:29] Validating pre-selected GUI: terminal
[15213] [09:41:29] terminal selected as GUI.
[15213] [09:41:29] Locale it_CH.UTF-8 found in environment.
[15213] [09:41:29] Will attempt to get translation file from package: messages/it_CH.UTF-8.
[15213] [09:41:29] Loaded default value for foldwrapping: 60
[15213] [09:41:29] No translations retrieved from file. Will not be using translations.
[15213] [09:41:29] Loaded default value for foldwrapping: 60
[15213] [09:41:29] Located "ifconfig" within PATH (/sbin/ifconfig).
[15213] [09:41:29] Root level dependencies met.
[15213] [09:41:29] Loading Usb-ModeSwitch device database.
[15213] [09:41:29] Embedded device database contains 0 entries.
[15213] [09:41:29] Finished starting up.
[15213] [09:41:29] Loaded default value for pppint: ppp0
[15213] [09:41:29] Retrieved from /tmp/sakis3g.3gnet: "22801" - "Swisscom"
[15213] [09:41:29] Retrieved ISP ID from /tmp/sakis3g.3gnet: 22801
[15213] [09:41:29] Also retrieved ISP name: Swisscom
[15213] [09:41:29] Also read: C885
[15213] [09:41:29] Also read: sierra
[15213] [09:41:29] Also read: /dev/ttyUSB3
[15213] [09:41:29] Also read: 1199:6880
[15213] [09:41:29] Also read: gprs
[15213] [09:41:29] Also read: gprs
[15213] [09:41:29] Process ID 2531 is: pppd
[15213] [09:41:29] ISPID is not set.
[15213] [09:41:29] All information derived from file.
[15213] [09:41:29] Also set ISPID from file contents.
[15213] [09:41:30] Loaded entries from files/operators.db:
22801::	SWISS GSM	Swisscom mobile internet	000049	ffffff		gprs.swisscom.ch::gprs:gprs	http://de.swisscom.ch/img/logo_swisscom.gif
[15213] [09:41:30] ISPID: 22801 / ISPNAME: SWISS GSM / ISPTEXT: SWISS GSM
[15213] [09:41:30] Notify: C885 connected to Swisscom (22801).
C885 connected to Swisscom (22801).
[15213] [09:41:30] Following actors executed: connect
[15213] [09:41:30] Verbosing: 7% Cleaning
[15213] [09:41:30] Stopping operation with return status: 0
[15213] [09:41:30] Now executing traps.
[15213] [09:41:30] Executing trap "cleanscreen".
[15213] [09:41:30]

Is sakis3g designed to be compatible with connman ? If not you could have difficulty… a lot of programs like that assume you are using network manager, but connman works very differently.

I don’t know but the fact the the interface was configured correctly seems like a good starting point.

I have never worked with connman, does it have any feature that allows 3G connection via a USB dongle?