Getting XS4ALL HSDPA/UMTS working on OS X Leopard 8

Posted by andy

Last week I received my HSDPA/UMTS/GPRS card from XS4ALL. After the major ADSL outtage fiasco It really dawned on me that not having net access for a day actually costs more than the whole wireless plan per month! Think about it, as I telecommute 4 days in the week I would actually have to drive to the office to get work done (luckily our offices were spared from the outtage!), the parking money alone is almost more than the whole plan (go Amsterdam!). Enough justification for the new toy. It arrrived, weeh!

The specs clearly state it should work fine an OS X 10.3.x or later. Unfortunatly the instructions from XS4ALL are completely useless when you are running on Leopard. It probably has more to do with Option and their drivers or OS X and its (shoddy) support for the hardware which is the Globetrotter Express 7.2 card btw.

After 2 hours of fiddling with various releases of drivers and trying all the the blog tricks from people around the world with the same card I was almost ready to give up when I stumbled upon this HOWTO for Linux. As always Linux to the rescue. It turns out the card is basically just a glorified modem and you just need the right AT commands and some pppd magic to get things going.. Grrrreat, familiar territory! (I have to confess, OS X dumbs you down, so having things breaking once in a while is gooooood!!)

After some searching I found the following devices:



Cool, connecting to the cu.GT HSDPA Modem tty device should work:

$ screen /dev/cu.GT\ HSDPA\ Modem
AT<return>
OK

Yes! The device is alive. Now, to find out if there is some combination of settings in the Network Preferences that actually make it work. Some further blogging shows that the Option » GSM configurations comes closest to what this cards expects.

Wow, 5 entries for the card. Just pick one which gives you a modem icon. Then choose "Advanced..." and pick model "Option" and then choose "GSM" (should be the only option anyway). In the "APN" field you should fill in "umts.xs4all.nl".

Back to the connection setup screen. Fill in "*99***1#" in the Telephone number field, although this is not strictly needed I think. Fill in your XS4ALL username and password in the field. Note: even though XS4ALL states you don't need your account password to connect at least I had to fill in the correct password. The pppd connection would immediately be dropped otherwise. Also, select the "Show modem status in menu bar" for convenience.

Now it's time to connect. Select the "Connect Globetrotter HSDPA Modem" from the dropdown modem menu bar. You should see the modem connecting..

You can open up the console and monitor "system.log" and also filter on "pppd" to see the relevant lines

If everything went well you should now be connected to the Internet and have an IP address in the mobile.xs4all.nl range. Enjoy! I have the Mobile start plan which currently gives you 768/128 and I'm happy to say that from all the locations I've tried so far in and around Amsterdam I always get the full bandwidth. Ping times are also quite reasonable, most of the time around 90ms, sometimes in the 300ms range (perhaps when it drops back to GPRS?). Anyway, SSH and web browsing are perfectly doable. Next up.. OpenVPN setup... another day..

Update: Forgot to mention this, but you need to disable the PIN on your SIM card for all of this to work. You can do this by putting it in your mobile phone and disable it using the phone's config menus.

Massive memory leak in ruby-gettext 1.90.0 0

Posted by andy

Just found out there's a massive memory leak in ruby gettext 1.90.0, one of our applications started eating GBs of RAM after a couple of days in use. So If you're using gettext for translating your Rails app take note! You can grab the current trunk which has a fix for this.

Meetings 0

Posted by andy

Found here (thanks Jan). Soo true! Happy telecommuter for 2 years now, with the occasional Meeting midweek. I do not expect to be productive (code-wise) on those days.