Archive for the ‘mobile broadband’ tag
Howto: Send SMS using a Huawei E160G and Debian
People who use their Huawei E160G on Three will know that in the Windows client you can send and receive SMS, this will come at some minor cost of £0.10 per SMS, and you can add bundles onto your mobile broadband account to make this cheaper.
Similar functionality can be achieved in Linux, and it’s very useful if your like me and want to drop someone a message when you don’t have your phone around.
For this we’ll be using Gammu, which is a toolset for managing phones via the AT GSM command set. It was originally forked from Gnokii, which was a similar toolset for Nokia handsets. As the E160G opens a serial port with access to the AT command set this is a relatively easy tool to setup.
First of all, we need to grab the packages. As these are standard Debian packages you should have no issues.
# sudo apt-get install gammu
Next, we need to configure Gammu to pickup the correct device. Check your dmesg for the serial port:
$ dmesg|grep tty [12321.308078] usb 5-3: GSM modem (1-port) converter now attached to ttyUSB0 [12321.308275] usb 5-3: GSM modem (1-port) converter now attached to ttyUSB1
Edit ~/.gammurc, or run gammu-config to change the device settings. Your ~/.gammurc file should look similar to:
[gammu] port = /dev/ttyUSB0 model = connection = at19200 synchronizetime = yes logfile = logformat = nothing use_locking = gammuloc =
Give it a test by getting all the SMS from the device:
# gammu getallsms
This should bring back all the SMS currently stored on the stick, which should include your login details for the Three website (unless you’ve deleted them). To send a SMS use the “sendsms” command:
$ gammu sendsms text 07874454543 Enter message text and press ^D: Test Message!!!!!1! Sending SMS 1/1....waiting for network answer..OK, message reference=2
Gammu has a lot more tools and options to explore, now you have the basic config you can setup a SMSD, which can expose the ability to send SMS to a network. Also, Gammu has a python interface so you can possibly build your own frontend client for sending SMS. For more details explore the Gammu Wiki.
Three Mobile Broadband + Huawei E160G
I went to the post office and got my hands on the Huawei E160G with my reduced contract, and so far I am very pleased with it. The modem itself is a large USB stick, very comparable in size to a cigarette lighter. What is interesting is that the electronics can now be packaged in such a small kit, why ain’t they producing mobile phones of this size?
My first step was to get it working on Windows, I plugged in the modem on my old Windows PC and followed the numerous (and strange) online prompts to setup the software. After a lot of beeping, detecting new hardware and other jiggery pokery, I was presented with the Three Modem Manager application. The modem manager is a simple too that enables you to run the “dialup” connection through the modem. I whipped open the setup manual which informed me that no other setup was required bar setting up the software. So I clicked “Connect”…
… and it failed?
According to the tool I had to check my settings to see if they’re correct. This is a fresh setup of the tool, why would I need to check the settings when Three’s own guide mentions theres no setup needed. After 10-15 minutes poking around in the settings menu I finally threw in the towel. Sod it, I wanted to run this thing on Linux anyway so why am I putting myself through the pain?
Linux is, well, the way it was supposed to happen. I plugged in the stick and straight away I had numerous devices available, the “CD-ROM drive” for the drivers, the MicroSD reader, and the “tty” ports for the actual GSM modem. At this time I could of gone the route of setting up Gnome PPP and related tools to dialout to the provider and start using my new fancy net connection, but I’d heard that Network Manager 0.7 had the features to use 3G/GPRS built in without any extra settings. I decided to investigate the new version of Network Manager.
After much digging around on the ‘tubes, I finally found a Debian repository containing a build of the lastest Network Manager SVN. A little apt pinning and installation later I had the new version of the tool install. I browsed the existing menu and found a new option: “Auto connection to 3G/GPRS” , I selected the option and it connected.
I have to have a little moment to reflect here, “Mobile Broadband” is a new fad at the moment for most telecoms providers worldwide, so you would expect the Linux software support to be a little sketchy and buggy, but as it turns out the Linux method is alot simplier and easier to use. I’m not sure if I was missing anything obvious in Windows, but isn’t this stuff just supposed to work?
So, signed on to 3G I decided to give it a run for it’s money. I’m running these tests at 1:08am so it maybe a little bias, as I doubt many people would be actually using the APs at this time. I seem to be getting a variable speed of about 1-2mbps, and 150kbps upstream, not bad at all for a mobile provider. The documentation mentions that you should expect up to 2.5mbps, not the 7.2mbps advertised on some sites, all in all Three do a good job of pre-warning you that the speed on the box is not always what you get.
So far I’m happy with it, I’ve had a few minor issues with the stick not registering on the network but I’m not sure if this was down to my settings or just a small outage. I’ll post a guide in the next few days on configuring Debian up for Network Manager 0.7 and setting it up to work with the E160G.
Mobile Broadband
At first, when the likes of Three and Vodafone released their “Mobile Broadband” services I was a little skeptical that it’ll be worth the money. 3G data is notoriously rubbish in the UK, either services are capped back to GPRS speeds or are heavily firewalled to make a “walled garden” of approved content. The premise is as follows, Three are starting to reduce their monthly cost in a attempt to get the customers in to back their massive HSDPA expansion in the UK, along with sites like Quidco offering interesting discounts on contracts and special half-price deals, it looks even better…
So I bought in.
On Wednesday I bought Three’s 5GB/month offer package through Quidco, which came to £7.50/per month and £12.50 cashback. For me, the 5GB limit is perfect as I doubt i’ll ever use over that amount in a monthly period. A few people have pointed me to similar packages on T-Mobile, but you can see just from a quick look in that list that the actual price is quite high for what you get, the only bonuses of that package would be the free T-Mobile wifi access (which theres alot of access points for in the UK) and the AUP style limiting, in that if you go over your limit you don’t get charged, you only get kicked up to the higher package if your a constant abuser.
So what’s the catch? Overage. Three charge you £1/per MB in overage, so a extra GB would cost you £1024. In today’s modern telecoms world that is an insane price, which again many people have pointed out to me. If you have no intention of using up to the bandwidth limit, what’s the issue?
Well, I got a useful Royal Mail red slip through the post yesterday, so I have to head down and pickup the equipment. Hopefully by the end of today I can give it a test and write down some more thoughts on it.
