Page 3 of 3

Re: Mobile Broadband

Posted: Thu Jun 14, 2012 9:59 pm
by pygmy_giant
'Permission denied' thingy happened to me - try adding 'sudo' or 'sudo bash' berore it

cant find the file mobile-auth

did find my sim password, so may try turning it off....

Re: Mobile Broadband

Posted: Thu Jun 14, 2012 11:29 pm
by pygmy_giant
Trouble shooting wise, I've found that re-installing the packages and re-compiling the code works. I've conflated everything that has worked for me so far into one bash script:

#!/bin/sh
cd
echo
echo "...Disable CD drive on modem..."
echo
rmmod usb-storage
echo
echo "...Enable E220 modem as serial port..."
echo
mknod /dev/ttyUSB1 c 188 1
mknod /dev/ttyUSB2 c 188 2
modprobe usbserial vendor=0x121d1 product=0x1003
echo
echo "...recreate Windows USB communication"
echo
gcc -lusb /home/pi/Desktop/3g/huaweiAktBbo.c -o huaweiAktBbo.out
./huaweiAktBbo.out
echo
echo "...running AT commands..."
echo
DEV=/dev/ttyUSB0
echo "ATZ" >$DEV
head -n 2 $DEV
echo 'AT+CGDCONT=1,"IP","three.co.uk"' >$DEV
head -n 2 $DEV
echo 'ATD*99***1#' >$DEV
head -n 2 $DEV
sleep 1
/usr/sbin/pppd debug nodetach 460800 $DEV

NB - file path names of huaweiAktBbo.c and APN (three.co.uk) are user specific.

I get these inconsequential 'errors':

ERROR: Modules usb_storage does not exist in /proc/modules
(not a problem that I can't find something that I want to remove)

mknod: '/dev/ttyUSB1': File exists
mknod: '/dev/ttyUSB2': File exists
(not a problem that I cant create something because it already exists)

My only real problem is the password thingy - I think this is just a ppp(?) setting that could easily resolve by inserting a command or two in the above script if I only knew what to add. I know that "three" and "three" is my network username adn password and that I have a sim password and sim pin, but am unsure how to sue them to get around this authorization.

The stages shown by the working Windows software are:

Detect Modem -> Detect Network Service -> Dial Up -> Open port -> Connect Device -> Authorise -> Connected!

I am optimistic that this authorisation requirement should be the last (and hopefully lesser) of my problems.

Re: Mobile Broadband

Posted: Fri Jun 15, 2012 8:12 am
by bredman
Your authentication problem is caused by the SIM PIN, probably not by the ISP username and password.

Put the SIM into an ordinary phone. Use the security settings of your phone to turn off the PIN request at powerup.

This is what is stopping the Pi. It cannot power up the SIM because the SIM is waiting for a PIN.

Re: Mobile Broadband

Posted: Fri Jun 15, 2012 7:51 pm
by pygmy_giant
Possibly not what I thought then?

Would be simple to test if I had a 3g phone - sadly have a £10 dual band supermarket jobby.

The modem has PIN options in the windows software / firmware - not sure if they let me switch off the PIN altogether? I can 'enable the PIN check' , 'disable the PIN check' or 'change the PIN' the 'Disable PIN check' option is currently ticked and I can switch between them.

Not sure if the 'Disable PIN check' means switch off the SIM PIN though... If it does then the PIN is not the culprit... I'm guessing it might mean that as the software/firmware does alow me to change the PIN...?

Re: Mobile Broadband

Posted: Sat Jun 16, 2012 10:13 am
by bredman
You don't need a 3G phone to change the SIM security.

A 3G SIM will work in a 2G phone, you just won't get any network connection.

Re: Mobile Broadband

Posted: Wed Jun 20, 2012 7:22 pm
by pygmy_giant
doesn't - thanks for your help anyway bredman - seems possible - maybe someone else can finish the job...?

Maybe the new wheezy distro has broadband capability?

Re: Mobile Broadband

Posted: Fri Jun 29, 2012 9:57 pm
by pygmy_giant