OK - So actually I don't think I needed the usb_modeswitch as I think it's built into 'sakis3g'.
wget http://www.sakis3g.org/versions/latest/armv4t/sakis3g.gz
(See http://shkspr.mobi/blog/2012/07/3g-internet-on-raspberry-pi-success/)
(Also http://shkspr.mobi/blog/2012/06/raspberry-pi-python-and-3g-dongles-oh-my/ for SMS).
sudo pip install pyserial
Then try sms.py from the above page. ( This worked on T-Mobile SIM - hurray.)
sudo apt-get install ppp
T-mobile works on network manager under Ubuntu with :-
*99#
general.t-mobile.uk
user web
pass web
I did get this working under sakis3g with apn=general.t-mobile.uk / user=t-mobile / pass=..
I did get connected on the Pi with the dongle with O2 using Sakis, but only once.... Will try powered USB hub. Having re-installed raspian, it keeps dropping out the modem.
*99#
general.t-mobile.uk
user web
pass web
I did get this working under sakis3g with apn=general.t-mobile.uk / user=t-mobile / pass=..
I did get connected on the Pi with the dongle with O2 using Sakis, but only once.... Will try powered USB hub. Having re-installed raspian, it keeps dropping out the modem.
./sakis3g connect FORCE_APN="general.t-mobile.uk::t-mobile:.." MODEM="OTHER" OTHER="USBMODEM" USBMODEM="12d1:1003" DIAL="*99#" LOGFILE="/home/pi/3G/sakis.log"
3/4/13 - My powered hub arrived - yay. Testing again with the above command, and it seems to work for a few minutes at least. - Managed to install lynx, and then browse using that for some time over the modem.
OK - so I've been running for some time. - I cron'd a script which brings up the connection every hour, sends a mail and drops the connection - pretty much what I need it to do remotely. - All good.
3/4/13 - My powered hub arrived - yay. Testing again with the above command, and it seems to work for a few minutes at least. - Managed to install lynx, and then browse using that for some time over the modem.
OK - so I've been running for some time. - I cron'd a script which brings up the connection every hour, sends a mail and drops the connection - pretty much what I need it to do remotely. - All good.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.