<span style='font-family:Verdana'><span style='font-size:12px'>Hi Michael,<br />Thanks very much for the info, I will give this a go.<br />I guess I can leave ser2net in rc.local ?<br /><br />Best Regards,<br />Mike<p style="margin:0px; padding:0px;" > </p><blockquote style="border-left: 1px solid #CCC; padding-left: 5px; margin-left: 5px; margin-bottom: 0px; margin-top: 0px; margin-right: 0px;" type="cite"><p style="margin:0px; padding:0px;" ><span style="font-family:Verdana"><span style="font-size:12px">----- Original Message -----</span></span></p><p style="margin:0px; padding:0px;" ><span style="font-family:Verdana"><span style="font-size:12px">From: Michael Miller</span></span></p><p style="margin:0px; padding:0px;" ><span style="font-family:Verdana"><span style="font-size:12px">Sent: 01/08/14 11:58 PM</span></span></p><p style="margin:0px; padding:0px;" ><span style="font-family:Verdana"><span style="font-size:12px">To: Kent Linux User Group - General Topics</span></span></p><p style="margin:0px; padding:0px;" ><span style="font-family:Verdana"><span style="font-size:12px">Subject: Re: [Klug-general] Raspberry Pi Serial terminal server</span></span></p> <div><div><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> </div><div><font face="Arial">Regards</font></div><div><font face="Arial">Michael</font></div><div> </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</div></div></div></div></blockquote><p style="margin:0px; padding:0px;" > </p></span></span>