<HTML><HEAD></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial'; COLOR: #000000">
<DIV>Hello,</DIV>
<DIV> </DIV>
<DIV>To setup sakis3g</DIV>
<DIV><A 
title=http://lawrencematthew.wordpress.com/2013/08/07/connect-raspberry-pi-to-a-3g-network-automatically-during-its-boot/ 
href="http://lawrencematthew.wordpress.com/2013/08/07/connect-raspberry-pi-to-a-3g-network-automatically-during-its-boot/">http://lawrencematthew.wordpress.com/2013/08/07/connect-raspberry-pi-to-a-3g-network-automatically-during-its-boot/</A></DIV>
<DIV 
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'>
<DIV style="FONT: 10pt tahoma">
<DIV><FONT face=Arial>There is a note about stopping and starting the service 
without a reboot.</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>Regards</FONT></DIV>
<DIV><FONT face=Arial>Michael</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><STRONG>From:</STRONG> <A title=mike.giles@gmx.com 
href="mailto:mike.giles@gmx.com">Mike Giles</A> </DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV><B>Sent:</B> Tuesday, January 07, 2014 1:41 PM</DIV>
<DIV><B>To:</B> <A title=kent@mailman.lug.org.uk 
href="mailto:kent@mailman.lug.org.uk">kent@mailman.lug.org.uk</A> </DIV>
<DIV><B>Subject:</B> [Klug-general] Raspberry Pi Serial terminal 
server</DIV></DIV></DIV>
<DIV> </DIV></DIV>
<DIV 
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'>Good 
Afternoon,<BR>I'm working on an HNC assignment using a Raspberry Pi model B 
running <BR>wheezy-raspian.<BR>I'm a Linux Novice.<BR>The Kernel 
is:<BR>pi@raspberrypi /usr/bin/modem3g $ cat /proc/version<BR>Linux version 
3.6.11+ (dc4@dc4-arm-01) (gcc version 4.7.2 20120731 <BR>(prerelease) 
(crosstool-NG linaro-1.13.1+bzr2458 - Linaro GCC 2012.08) ) <BR>#538 PREEMPT Fri 
Aug 30 20:42:08 BST 2013<BR><BR>I have been using sakis3g and ser2net to connect 
the RPi to the cellular <BR>network and act as a serial terminal server. (based 
on various posts and <BR>blogs)<BR>I have added the following to rc.local in an 
attempt to connect to the <BR>mobile network and configure the serial terminal 
server.<BR>****<BR>#!/bin/sh -e<BR>#<BR># rc.local<BR>#<BR># This script is 
executed at the end of each multiuser runlevel.<BR># Make sure that the script 
will "exit 0" on success or any other<BR># value on error.<BR>#<BR># In order to 
enable or disable this script just change the execution<BR># bits.<BR>#<BR># By 
default this script does nothing.<BR><BR># Print the IP 
address<BR>_IP=$(hostname -I) || true<BR>if [ "$_IP" ]; then<BR>  printf 
"My IP address is %s\n" "$_IP"<BR>fi<BR><BR>(sleep 2;sudo 
/usr/local/sbin/ser2net -c /etc/ser2net.conf -n) &<BR>#sudo 
/usr/bin/modem3g/sakis3g connect<BR>(sleep 5;sudo /home/pi/connect.sh) 
&<BR>exit 0<BR><BR>****<BR>connect.sh<BR>****<BR>#!/bin/bash<BR># script to 
connect to mobile network<BR>echo "Running Sakis3g"<BR>sleep 10<BR>sudo 
/usr/bin/modem3g/sakis3g connect --console APN=CUSTOM_APN <BR>CUSTOM_APN='apn' 
APN_USER='user' APN_PASS='password' USBDRIVER=option <BR>USBMODEM=12d1:1003 
OTHER=USBMODEM MODEM=OTHER<BR>****<BR>This normally works from a power on but 
often doesn't from a reboot.<BR>I would like to debug the boot sequence to try 
and make this more reliable <BR>however I'm not sure how to enable/capture the 
debug output, I can't see <BR>anything in /var/logs.<BR>Is there any debug I can 
enable or re-direct the console output to a file ?<BR><BR>I have found that the 
3g modem is not always listed in lsusb.<BR><BR>I also experience random 
hangs/crashes and a power cycle is required to <BR>recover. I'm not sure if this 
is hardware related. I have a 2A power adapter <BR>and a powered USB hub that 
has the 3g modem, wifi adapter, mouse and <BR>keyboard connected to it. The RPi 
will run for varying lengths of time.<BR>Any debug help would be much 
appreciated.<BR>Best Regards,<BR>Mike 
<BR><BR><BR>_______________________________________________<BR>Kent mailing 
list<BR>Kent@mailman.lug.org.uk<BR>https://mailman.lug.org.uk/mailman/listinfo/kent<BR></DIV></DIV></DIV></BODY></HTML>