Showing posts with label Hardware. Show all posts
Showing posts with label Hardware. Show all posts

Monday, October 22, 2012

A Farewell to Kindle DX

I have meant to sell my Kindle DX for a while but was prevented from doing so by various forces in life. I was slightly affected by the news that Amazon quietly removed the Kindle DX from its inventory but we saw it coming all along did not we?

Let's face it, the Kindle DX was a flop. It was meant to take over the textbook and newspaper market, however the technology was simply not there. It was priced way too high ($489) when it was released and have always had an aggregation of minor issues. By the time most of these annoyances were fixed with the graphite edition, it was too late to capture the hearts of readers and publishers as well, especially the latter who saw the iPad as a better platform to deliver their increasing multimedia content. Amazon itself did not help by giving the DX as little support as they could, and it never saw a truly global release.

I have always held a low opinion of the iPad , at least the first two iterations, however the new iPad really won a change of heart in me. The screen has a whooping 261dpi and full RGB colour gamut, which is better than 90% of the laptops you can buy. It is great for reading everything from books, journal articles, textbooks and of course manga. Once you have seen it with your own eyes you will be convinced - or else get your eyesight checked by a professional.

The main problem is with the less than ideal automatic brightness detection - you need to manually tweak it as lighting changes to minimise eye fatigue. The other project relates to the lack of proper font management in many apps - Greek letters and other symbols tend to disappear from random places, while it is not too bad for biology I assume this is going to be an issue for mathematicians and physicists.

 Note the incomplete differential equation, all the greek letters are gone




Anyway thanks to Amazon for trying, thanks to Apple for making something that's just better and thanks to Yifan Lu for developing the firmware hacks that made me keep it for much longer. Maybe one day we will see a comeback but for now, adieus.


 
Also, the new iPad still has too much glare to be viewed under direct sunlight - with the high dpi screen matte screen protector is not the solution, might as well cover one's head in sand.

Sunday, April 22, 2012

How to: Unlock your iPhone with SAM

THIS METHOD NO LONGER WORKS AS OF  Apr.28, 2012; activation records will remain valid for three years from the day of activation.

-------------------------------------------------------------------------------------------------------

I thought the IMSI unlock saga is done and dusted but apparently there are more to it. All credit goes to Loktar_Sun from weiphone.com who pursued an earlier lead that many, yours truly included, have gave up as a viable exploit.

What do you need: A jailbroken iPhone that can be activated in iTunes (that is, not officially blacklisted), a computer with the latest iTunes installed and working internet connection.  You will also need to know the carrier that your iPhone is locked to.

1. Step one: Install Sam Bingner's SAM (Subscriber Artificial Module) package. I recommend that you get it from repo.bingner.com since older versions have a different interface and may not work for this purpose.

2. Enter SAM by either going through the settings menu or find the SAMPrefs icon on your springboard. You will need to have the SIM card you intend to use in your phone.

3. Go to utilities and select "De-Activate iPhone", your ActivationState under "More Information" should now be "Unactivated"

4. With SAM enabled, choose "By Country and Carrier" in "Method"; find your carrier, for some carriers operating more than one Carrier ID you may need to select "SIM ID"; easy to tell since iTunes will not activate if the wrong IMSI is selected.

5. Go to More Information", copy or write down the IMSI in "SAM Details", then tap "Spoof Real SIM to SAM".

6. Go back to the main SAM screen and change your "Method" to manual. Paste or enter the IMSI string we saved in Step 5. 

7. Connect your iPhone to your computer and allow iTunes to do its job (namely re-activating your phone), double click "Phone Number" parameter at the main device screen and make sure that the ICCID matches that of your SIM card. If not you need to start over from Step 1.




8. Unplug your phone, close iTunes.

9. Disable SAM. The source article says to uninstall SAM and delete your lockdownd folders; it's unnecessary.

10. Connect your phone to iTunes again, you should get an error saying that your phone cannot be activated. This is normal. Just close iTunes and open it again.

11. You should see signal bars in a short time, congratulations.

12. Push notifications may stop working after this procedure but can be easily restored with "clear push" utility in SAM followed by connecting to iTunes.

Your phone will work normally with your SIM card and that SIM card ONLY since we have tricked iTunes to think that ICCID is one of the intended carrier's. The phone can be rebooted and connected to iTunes freely without losing the "unlock", at least for now.

Since it does not involve emergency numbers or IMSI spoofing it will not have any of the issues associated with SIM interposers. Tested working on iOS 5.01 but should work with tethered 5.1 too.

Monday, October 3, 2011

New Kindle for a New World


Yup, the new Kindles are here and the prices are better than I ever thought. For those in the US you can get a subsidised e-reader for as little as $79. For the same price you get your choice of the new namesake Kindle Touch or the same old Kindle 3. A steep discount up to $40 (already applied in the image above) are available for those who sold their souls agrees to receive and view paid advertising while they are not reading.

The new kindles reminds me strongly of their Sony counterparts with silver-ish covers and minimalistic design. Heck, the touch version does not even come with physical page turning buttons.

While the display quality of the first Kindle left plenty of things to desire for, it is possibly the most ergonomic Kindle to this day. The subsequent Kindles saw a gradual improvement to everything except to the buttons (not including K3's five way controller which I am fond of) with the keyboard on the two Kindle DX models bordering the realm of uselessness. Now with the touch version they completely did away with physical keyboard.

More virtual QWERTY keyboard, you must be kidding

If you ever tried to type anything longer than a short email on any modern tablet you will understand my frustrations: They are simply painful to type on. Qwerty keyboard was designed for physical keys, not glass surfaces with no tactile feedback.

I am already sick of touchscreens which seems to find its way into everything between the space shuttle and the common refrigerator. Before 2007 it would be outrageous to sell something without physical keys, now the reverse seems to be true. 

Rant is over, let's get back to the topic.

Preliminary teardowns suggest that the lowest priced Kindle came with a Cortex-A8 based SoC, beat that Nokia. However the RAM and battery capacity has all been sliced by a half to reduce the overall cost.



Do I have any desire to upgrade my current complement of reading devices(consisting of a Kindle DX International, a Kindle, er, Keyboard 3G not to mention smartphones and computers with Kindle clients)? Well not really. The hardware on the entry level model is rather limiting to be an upgrade; the CPU bump is a nice touch but the halved RAM killed it for me. The smaller battery, while drawing much criticism, should not be a serious issue in this day of age when we have already accustomed to charge our gadgets once per day. I don't see much point in a touch operated e-reader let alone a multimedia tablet. Egadget has summed my opinions rather eloquently in an earlier post that in essence, nobody apart from the tetraplegic really needs a tablet. The current craze for bigger screen size and touch gestures is nothing more than a invention like the bunch of merchants of Edinburgh who invented the myth of Highlander culture in the 18th century.

Meh

To its saving grace, Amazon had a sensible grasp on the best use for tablets: an advanced entertainment slate by stripping all the purported productivity features. In any case, everybody agrees that the Kindle Fire is the android twin of RIM's playbook soon to be forgotten.

Like it or not, Amazon is the internet's upcoming Wal-Mart and the more likely entity to change everything again about the way we read. I can already see Kindles being given for free in exchange of a certain amount of book purchases or Amazon Prime subscriptions, wait, I have seen something like this already....

Enters awkward opera, my favourite rendition of Der Hoelle Rache by the venerable Diana Damrau:



P.S. If you own a Kindle 2/DX like myself it is highly recommended that you flash  Yifan Lu's hacked 3.1 firmware. You lose a few unimportant functions such as active content and TTS but get greatly improved reading experience, so check it out. If you don't have access to a K3 to extract the files, tweet me @DillADH and I will help you.

Tuesday, May 10, 2011

...there is nothing new under the sun

It amazes me how quickly people can forget things. Gevey and Rebel have been selling so-called "Unlocking SIM card" for a number of years and people reacted as if these named never existed before. If my memory serves right I bought my APDU kit from Rebel not long ago(before they became involved with i4, of course).

When Gevey broke the news that they have an working SIM interposer for i4, most people reacted in disbelief. Gevey themselves did not help when they released a (poorly) edited demo video and everybody was convinced that it was just another scam.



However, other reports soon emerged with some important details: First of all it seems to work, however it requires dialling 112 and data service only works if you enable Data Roaming. In hindsight it makes good sense why Gevey did not want us to know these things before they could ship the product: it can be copied very easily once the methodology has been figured out. In fact the same protocol/exploit has been found by other as early as November 2010 but nobody thought it could be made into a product.

They did come up with other interesting accessories such as this i4 dual-SIM device which can be reprogrammed to act like a gevey  

Gevey only made it with meticulous planning: While they have been dropping hints about their product a long time ago, announcement was only made after the Dev Team admitted that they have no baseband unlocks - back in 2009 Gevey and others almost went out of business when ultrasn0w came out and there are tens of thousands of old SIM interposers gathering dust in their warehouses. Mass production followed soon enough to saturate the market, price was initially high to make sure they get a fair scoop of profit before copycats and negative feedback could ever appear.

On the contrary, Rebel made a number of bold claims ("No need to use the illegal number[sic] 112", "World First", "Untethered unlock", btw do we even have a tethered unlock in the first place?) and failed to back them up with evidence. Release date were pushed back a few times, shipping charges are exonerate and the worst part: They don't even work, at least not as advertised.

Anyway let's get to the methods:

What you will need:

Programmable SIM Card - Preferably the newer types and of course it needs to be cut to fit in the SIM tray.
SIM Programmer - Those PL-2303 USB dongles are cheap and easy to find on ebay. The more expensive smartcard programmers often based on the R200 PC/SC chipset is an overkill and does not work well with 64-bit Windows. For cheapskates like myself, you can build a simple circuit that allows direct connection via serial port.
SIM Data - Three out of four parameters, namely IMSI, ICCID and SMSC are stored on the SIM unencrypted, however the main authentication key Ki is not. Best way to get it is to ask your mobile service provider to disclose these figures for your personal use, and I know some carriers in UK that allows you to have a back-up SIM. There are various "solutions" for sale over the internet to obtain your Ki by brute force however there are good reasons to avoid them:
A. The key is never transmitted directly, instead it is used within the SIM card to encrypt a random string sent from the network. Given enough time, a collision could be found to deduce the key, however most SIM cards have a built-in counter that disables the SIM after an unknown number of failed attempts so brute-force will never work. You have been warned and it is your fault if anything happens. BTW anybody that claims to be able to obtain Ki in mere minutes is probably fraud material since the speed is constrained by the very limited computation power of the SIM chip.
B. Cracking SIM cards, even your own SIM, is still illegal because the SIM is not the end user's property (it always belong to the provider) and most carriers have clauses in their Terms of Service that forbade any tampering with SIM cards. While they are unlikely to take anybody to court, you will have a lot of explanation to do after a few requests to replace your SIM card.

For those with legitimate access to their SIM data:

1. Write your SIM data to the blank SIM, leave ICCID, SMSC and Ki as is and replace the first eight digits of your IMSI with 08091010.
2. With your original SIM in your i4, dial 112 and immediately disconnect.
3. Toggle flight mode ON
4. Eject SIM tray.
5. Replace SIM with the one we programmed.
6. Toggle flight mode OFF, you should have reception in a few seconds.

My earlier comments and FAQ for Gevey applies for the method as well. Chances are you will retain the reception after reboot, however there might be issues with data and incoming calls. There is some room to optimise the outcome following a reboot but it is impossible to test on every single MNC/PLMN/VLR/MSC which could all have a different authentication protocol. This is why Gevey decided to play it safe by implementing an elaborate STK menu to require 112 dialing following every reboot; Rebel did away with the STK with the hope that it might allow some users to restart their phone without losing reception, yet they ended up with a disappointing and erratic product. 

----------------------------------------------------------------------------------

I have tried to find a way to make the method work without having to dial 112 but so far it appears impossible unless the baseband FW is patched to handle TMSI like it used to prior to 05.11.07. Not mention if we were able to patch the baseband directly we would already have a software unlock.

So here you go folks, it's the "unlock" we have been talking about for the past two months. All's right if it works; don't lose any sleep if it doesn't work for you - after all it is just a phone and we have more important things to worry about in dear life.

P.S. And I must agree with @sherif_hashim that "money for unlock = bullshit"

Monday, April 4, 2011

Unofficial Gevey FAQ

This post is not a statement on the legal/moral debates surrounding the use of Gevey SIM or similar means to pseudo-unlock the iPhone 4. It is purely to help those who are experiencing issues with these products and failed to get any support from the resellers:

Q: I get "No SIM" after I put my SIM card in the phone with Gevey.

A: Assuming both your SIM and Gevey are working, the underside of your MicroSIM may be touching the chip on the SIM interposer and shorting it. Cut away some more to give enough clearance between the SIM and the chip. 

Q: I had to enable "Data Roaming" in order to use mobile data, would this incur a lot of roaming charges?

A: No. Data roaming needs to be enabled because the way this exploit works, your network will always bill your call/SMS/Data correctly as before.

Q: My caller ID is not working and my SMS threads are fragmented, why?

A: The "unlock" causes the phone to use 001 as the default MNC, which has no matching country code and your phone fails to map caller ID to your country. There are many ways to get around it, e.g. manually adding the country code to every number in contacts, adding custom carrier bundles for 001/01 or a network reset/full reset. A more consistent method is to open /System/Library/Frameworks/UIKit.framework/PhoneFormats/UIMobileCountryCodes.plist and add the highlighted part:



Replace %Your Country Code% with ISO3611 alpha-2 country code for your locale: nz for New Zealand, jp for Japan etc.

Q: My data connection dropped out and I cannot get data on 2G or 3G, I have checked my APN settings and they are correct.

A: Use your SIM in any unlocked phone with GPRS functionality once to re-establish data session; expect to do this on a regular basis.

Q: I have full signal bars and I can call normally; but when other people call me it says number is not listed or goes directly to voice mail. 

A: I have explained earlier that you need to obtain a TMSI from the network to connect. Theoretically the TMSI will stay with your number as long as your phone remain connected, and when you move between cells it is passed to the next base station so you don't have to call 112 again.

Nevertheless the carriers usually configure their network to refresh TMSI periodically for security and administrative purposes. It has also known that some cells, particularly the ones serving train stations and major road intersections, require a TMSI refresh following a hand-off(Because users tend to move in and out of coverage very rapidly, TMSI reuse cause unnecessary delays).

Your phone will not recognise the refresh because it is for your original IMSI and your phone is still on the test IMSI starting with 80900101. You can call because your old TMSI did not really expire and is hence accepted, however the network is unable to locate you because it uses the new TMSI which has never been updated on your phone.

Out of all the issues with the Gevey this one stands out as the most deleterious, and there is nothing you can do to stop it from happening. In fact you cannot even tell because the signal bars will appear normal and you can dial out perfectly fine. The only way out is to restart the phone and start over to match the TMSI.

Q: Help, my SIM is stuck and I can't take it out!

A: Do not force your SIM tray if this happens, you are going to cause more damage. Push it all the way back in and tap the phone a few times, gently but firmly, against the palm of your other hand or any soft object e.g. a large pillow. If this had failed to free the SIM tray you will have to take your phone for repairs. (If you are feeling particularly adventurous, you can do it yourself by following this excellent guide created by iFixit; however do this at your own risk and be prepared to lose your warranty because one of the screws cannot be accessed without breaking the warranty seal)

Don't get me wrong and think I am scaring you; this can happen to anybody but it is more likely with the extra thickness provided by the interposer.

Update 1:


Q: My battery level seems to go down very quickly now...

A: Now there are two possibilities, one is that you are simply not used to the i4 acting more than an iPod. cellular transmission can use a lot of battery power, especially on 3G and whenever the reception is poor. However if your data usage listed under Settings/General/Usage seems to be too much AND you have hacktivated your i4 (activated using limera1n/redsn0w etc) then chances are your problems is real.

If you never used and does not need push notifications, you can simply delete /System/Library/LaunchDaemons/com.apple.apsd.plist and restart your phone. Any battery drain caused by hacktivation will cease however push service itself will also be gone. Alternatively use many of other solutions available (PushFix, PushDoctor, SAM) that all fix the problem to a varying degree.

Q: Which carrier bundle should I use?

Your default carrier settings is stored under CarrierLab.bundle, which is actually not that bad since it allows free editing of the APN settings. If you need to get VM or VVM working, Wortel's patch has to be installed first before you can edit the bundle.

Carrier Logos should go to your actual carrier's folder, not CarrierLabs since your phone will be "roaming" on your actual network.

Thursday, March 17, 2011

[Updated]Unofficial Review: Gevey iPhone 4 SIM hack

Disclaimer: I am not associated in any way with the manufacturers and/or resellers of the products mentioned here. A lot of technical information has been (overly) simplified to facilitate understanding however I try to keep them as accurate as possible. The Gevey device in concern has just began shipping earlier this week, I have had very limited time with it so consider all information as preliminary and expect frequent updates/corrections. Your feedback and inputs are most appreciated, tweet @DillADH



For much of the last two years time, even the manufacturer of these SIM hack products acknowledge that their product is no longer needed; so it was quite a surprise when Gevey announced that they have something that will unlock the iPhone 4. Contrary to conspiracy theories, they withheld onto the product because:

  • Initial production cost is high, they risk losing a lot of their investment should the dev team come up with a software unlock that does the same job if not better, before they were able to recover their cost.
  • The exploit they used is not without serious problems, hence they were reluctant to produce it until there seems to be be no alternatives coming for a while.
  • The exploit they used is very simple, provided you have the tools and skill, details to follow...
I have made a mistake earlier by calling it TurboSIM and it is not. @MuscleNerd reminded me of the correct term "SIM interposer", since it sits electrically between the SIM card and baseband hardware to perform a classic Man-in-the-middle Attack.


How did It Work?

SIM card holds many different types of information, but the part most involved with carrier lock is the IMSI number, which is a unique code that corresponds to your account in the mobile carrier's database. 

A sample IMSI might look like this

310 150 987654321

The first two segments are known as Mobile Country Code (MCC) and Mobile Network Code (MNC) respectively, and in the example above the IMSI indicate the SIM is from USA (310) AT&T (150).

When the iPhone baseband is loaded into memory, it checks the MCC and MNC against its own network lock state stored in the seczone. If the combination is allowed, the cell radio is activated and vice versa.

The earliest iPhone baseband revisions only check IMSI twice following a restart, therefore it is very easy to spoof information in order to bypass the check. Nevertheless, the baseband was soon updated to validate SIM more aggressively and the method no longer works. 

The Long Con

To guard against eavesdropping that plagued pre-GSM cellular networks, the initial connection to a network does not only involve IMSI, but a 4-byte TMSI to identify each handset before IMSI is sent. The base station recognises the IMSI as one of their users and replies with a nonce (RAND) to the handset, where is signed with a 128bit key (Ki, stored encrypted on the SIM) and sent back. The network checks the string against their own result using the same RAND and Ki and allows the device to register if the two value matches.


You see, the IMSI is only sent once and never directly involved with authentication; as long as your key is valid, you will be able to get service. This is exactly what the various SIM hacks where a fake IMSI is sent along with the correct key. The IMSI is redirected to another network and lost, In our case, the IMSI is invalid but some network proceed to the next step anyway - I will explain this in detail later.

Demise

The result of SIM hacks has always been erratic since the outcome depends on the implementation of the hack as well as the policies of the network; and people were inundated with a long list of issues and makeshift solutions. e.g. Cellular data may and may not work depending on the chemistry; a common remedy is to periodically put the hacked SIM into an unlocked "nanny" phone to "keep the TMSI fresh".

The use of SIM hacks fell sharply after iOS 2.2.1 update where the new baseband were made aware of the method and reject dodgy exploitable IMSIs, even the better designed interposers suffered frequent failures. It is about the same time software unlocks were developed and it pushed SIM hacks further into disuse. However the technology has been kept alive since a number of GSM handsets, mainly those coming from Japan, remains vulnerable.

Partial Revival

Apparently somebody figured out that while the i4 baseband has been patched to prevent test IMSI from working, it is still possible to force activate the baseband using the emergency dialer.

After that, it is relatively the same trick all over again. Let's see what it does at each step.


You will need to use the SIM tray supplied and file your MicroSIM slightly to accommodate the EEPROM chip.



Installing the SIM + gevey. 



The phone will search for signal, comes up with no service and finally settling on this "one bar" icon. At this stage the sim interposer is passing the parameters from the SIM as is. Earlier hacks required the fake IMSI to be programmed manually however this device is obviously capable of rapidly cycling a list of IMSI until an accepted MCC/MNC combination is found. pre-programmed with an exploitable IMSI. It may also spoof ICCID since the iOS is known to occasionally check that.



Dial 112 and hang up after the call is connected. The emergency call overrides the network lock and activates the cell radio. The network issues a TMSI for your real IMSI.




Toggle flight mode On/Off. Once the interposer senses flight mode, it transiently blocks electrical connection between the phone  and the SIM (hence it will show "No SIM card installed") before sending spoofed IMSI. The BB allows the SIM and attempts to connect to network. What exactly happens is not too clear but apparently the interposer ROM block electrical connection to prevent the BB from detecting the fake IMSI.

 

 The signal bars appear, we are safe:-) The network is able to register you again because the TMSI you obtained earlier is still valid, and the IMSI is not checked again. That is after the network ignored the fake IMSI (which the phone has no knowledge of) but allowed the SIM onboard because it is able to validate that.

Why 112?

112 had a long history as an emergency number for practical reasons; back then when the GSM standard was being drafted in Europe, 112 was chosen to be the universal emergency number to call that can be called from any GSM phone, free of charge, with or without a SIM card on any compliant network.

However long before GSM service was established, 112 has been used to report landline faults in China; the coincidence made it unsuitable as a true emergency number. The network still connects 112 as an unbilled emergency call, only to play an automated message in both Chinese and English informing callers of the correct emergency numbers to dial; the call is never redirected. 

What does it mean to unlockers?
  1. It works if A.your network handles 112 calls properly according to the GSM standard; B.they are tolerant to TSMI spoofing lax on TMSI management and does not actively validate your IMSI again for incoming calls.
  2. Unlike its ancestors, the i4 SIM interposer is not a drop-in-and-forget device. The exact precedure must be followed everytime the device restart, lose reception for an extended period of time or move to another PLMN. In all situations the TMSI expires and has to be obtained again. Theoretically it is possible for a daemon to automate the process similar to ZeroG, but that only makes thing more convoluted. Theoretically it is possible to reproduce the same behavior by physically switching your SIM card while flight mode is on. 
  3. It is, without question, unethical or downright illegal to use the technique anywhere 112 is a legitmate emergency number. Use the exploit at your own risk/responsibility and tough luck if you get into trouble with the law.
  4. All firmware/baseband combinations for the i4 up to iOS 4.3 4.3.1 are vulnerable, however the exploit may be patched in any future software updates or via the carrier.
  5. SIM interposer should not harm your phone hardware, however your network could request IMEI and identify your device during the emergency call, leading to your handset getting banned. Your identity cannot be faked and it is possible that they will shut down your account. There is a reason why SIM cards remain legally the property of the service provider: you are not supposed to tamper with them without breaching contract.
  6. Notwithstanding all the problems, SIM interposer does not cause any battery drain since it is only active transiently (at least for the gevey, some clones may use less reliable components and cause issues), nor would it cause signal loss as long as you stay in the same cell - TMSI may be reused in the neighboring one since it is only 4 bytes.

    Conclusion:
    An overpriced (US$50 US$70, although clones are just starting to appear), unreliable and legally questionable mod; works for some but your mileage may vary; get it if you are desperate or wait for the 40-bit 56-bit NCK hack or the eventual SW unlock by the iPhone dev team.

    Tuesday, March 15, 2011

    A few words on the recent iOS 4.3 release

    1. Pre-A5 devices already have a tethered JB with redsn0w 0.96rc8 custom bundle in the latest versions of PwnageTool/Sn0wBreeze. A5 Devices will have to wait till another injection vector to be found in the bootrom or userland. 
    2. New kernel breaks MobileSubstrate, and as a result a large majority of Cydia packages that depend on the former. Saurik cannot be reached for comment but it is understood that a compatible revision could take some time. Saurik is working on a compatible build right now with a new and improved version of Cydia!
    3. APPL's server is no longer signing 4.2.1 firmware, it is simply too late.
    4. Downgrade to 4.2.1 using cached TSS blobs will result in a 1013 error due to a mismatch in baseband version. Simply jailbreak again with Greenpois0n RC5 or later to get going, notice that the "auto-reboot" command will no longer kick you out of recovery loop, TinyUmbrella uses the same command and hence no longer works. 
    5. Multi-touch gestures is said to have been taken away in the final 4.3 firmware however it could not have been simpler to have it re-enabled. In \Applications\Preferences.app\General.plist search for "Mutltitasking"[sic], replace them with the correctly spelling "Multitasking" and you are all set. Seems like the engineers got incredibly lazy that they did not even bother to remove the code...

    Update: Apparently jailbreak is not necessary, you can edit the said file in an iTunes backup and restore to get the same effect.

    Sunday, February 6, 2011

    Tips for Greenpois0n RC5 Jailbreakers

    Okay, RC5 is finally out and working to provide untethered JB for 4.2.1 on all devices, what does this mean?

    • Although this had not been officially confirmed, the exploit used here is, more likely than not, the long awaited SHAtter. I am fairly sure because the JB comes with custom boot logo (and it is even animated) so it has to be an iboot/kernel level JB which is not exactly abundant.
    • Chronic Dev Team was going to hold onto SHAtter for as long as they can, however it has been patched in beta versions of iOS 4.3 therefore there is no longer any point to save it anymore. They were almost pushed to use it for 4.1 back in October; however limera1n was released just in time so it did not happen.
    • There is currently no usable exploit for 4.3 and up, however Redsnow's Monte mode should allow JB on all future versions as long as you have the shsh blobs for 4.2.1. (The essence of Monte is to insert a patched earlier kernel version at iBoot level, hence the blobs are needed by iTunes to sign the kernel and allow it to load untethered)
    As for the greenpois0n software itself, it is still barely usable at the time of writing. You might remember that it took four RC revisions to get greenpois0n working as it should for 4.1; well RC5 and the latest RC5_2 are still buggy like a roach-infested hobo shed. You think geohot is the irresponsible Maverick? Greenpois0n is so crudely assembled that it did not even bother to include activation bundles, you are pretty screwed if you restored a locked phone to default before trying GP. (Solutions are available, read on)

    There are plenty of tutorials out there, however I am going to provide my workflow that is least likely to have many hiccups that you might come across otherwise (mainly the issues with activation and the utterly broken Cydia loader in both versions) This also allows for offline operation in case you don't have access to data service or wifi.

    1. Turn on your iPhone, connect it to your computer, back up everything in iTunes just in case. (nothing sould be lost unless you screwed up massively)
    2. Close iTunes, shut down iPhone by holding the Sleep button and slide the red slider as it appears. 
    3. Run redsn0w 0.96rc8, choose the factory 4.21 firmware for your device, follow the instructions and choose "Install Cydia" when prompted. For 3Gs unlockers only: You can choose "install iPad baseband" at the same time to streamline the process.
    4. Run redsn0w again as in step 3 however choose "boot tethered". 
    5. You should enter a fully jailbroken state, run Cydia to initialize it, check other system applications like Safari and make sure everything is working before turning the phone off again. Don't bother downloading any packages yet, we can leave this for later. 
    6. Run greenpois0n RC5, follow the instructions. Note that there is a 5 second countdown at the start for "getting ready", this can be somewhat confusing if you become used to redsn0w's DFU routines. 
    7. Keep the Home button pressed the whole time even after it says "complete", your iPhone should boot up in verbose mode in a minute, simply watch and you should be able to see the boot animation pretty soon.
    8. The phone will turn off automatically when everything is done; simply turn on the phone again to enjoy the benefits of untethered JB.
    • Whenever errors come up or the phone gets stuck at any step for more than 5min in verbose mode, simply force power off by holding Sleep+Home for a few seconds and start over. It actually happens more often than thought so don't panic, just keep trying and it will work eventually. In the worst case you can always use trusty redsn0w to boot tethered and start over from step 6.
    • Unlike limera1n, RC5 does not contain any activation bundles. If you are having trouble getting past the activation screen, you will have to run redsn0w 0.97beta6 to hacktivate. The usual precautions of hactivating still apply and it is always better to activate using the right carrier's SIM.
    • RC5 is Mac-only and will fail within virtual machines or hackintosh. RC5_2 is said to work with VM at least however I still recommend getting hold of a Mac before wasting your own time due to pod2g's own impotency.

    Wednesday, January 26, 2011

    Mobile Network 101 Finale

    Back to the question I asked at the beginning, why are the pre-4th generation iPhones no better off than a cheap Nokia in New Zealand?


    The answer is simple: When the iPhone was first sold in NZ, Vodafone was the only carrier with a GSM service so Apple had no alternatives. However, iPhone was designed for AT&T's 850MHz 3G frequency instead of the European 900MHz that Vodafone uses. While the older iPhone models are able to get 3G service in urban areas where 2100MHz masts are the mainstream, they are out of luck in less populated places as their phones will only get 2G/GSM signal. Ironically XT had the right frequency nationwide, however Telecom opted to offer iPhones through its subsidiary Gen-i only. 


    The same issue is not limited to one brand. Motorola A855 or Sholes came in several versions that are nearly identical except for the radio module. The GSM/WCDMA version is called the MILESTONE, which is further divided into European (900/2100), Commonwealth (850/900/2100) and North American (850/1900) flavours, causing much confusion when users move across national boundaries; and the DROID line is CDMA2000 only and without a card slot, making them effectively unusable outside the US, unless you have a friend of a friend to unofficially register your phone with a non-US carrier.

    Sometimes it is harder to determine if a certain phone is XT-compatible since 850 and 900 versions may be offered under the same model/part number. A friend working with parallel imported handsets often had to literally sail out, with his newly arrived stock, to a spot in Hauraki Gulf that he knew has only 850MHz coverage.It may sound ridiculous but there are no other ways to tell.

    Apple has certainly learned something and the iPhone 4 is given a pent-band 3G baseband; theoretically it should work in any place with some form of WCDMA service.(The FCC documents included a 800MHz band however Apple choose not advertise on this, probably because there are not many 800MHz networks out there) iPhone for CDMA2000 is also due to be released shortly. Motorola has also recently introduced a range of Global phones with both GSM, WCDMA and CDMA2000 hardware, however these phones are programmed with a new type of SIM lock not to work with GSM carriers in the USA while they work without restrictions elsewhere.

    Nevertheless, Blackberry has been selling truly global phones for many years so it must have never been a major technological hurdle to combine several radios in one device. The true motivation lies in the lucrative practice of carrier subsidy.

    My conclusions from the history of mobile telephony

    • Like all other forms of infrastructure such as electricity and railway, mobile networks are costly to deploy and convenience decisions often lead to many headaches later. Example: Telecom took the hard pill in giving up CDMA2000 altogether,however many telcos elsewhere are still spending billions of dollars every year to expand their present CDMA2000 network and upgrading them to EV-DO Ver.B for commercial reasons with the full knowledge that the system is minimally compatible with successor standards and in a way, already obsolete.
    • Homogeneity created through monopoly is bad, too much diversity is worse.
      • Conforming to the general patterns in industrialisation, latecomers often have considerable advantage since they are not already committed to maintain legacy support. There are many examples: Japan, once they got over the general ineptitude for much of the 2G era, successfully developed a global standard and currently has several of the best and most profitable 3G netoworks world-wide.
      • Theoretically superior technology does not always lead to better results. Example: Telecom's XT is definitely faster than Vodafone's older UMTS stations, however XT is still struggling to catch up with its own precedents in terms of coverage and reliability, the two essential criteria of any good mobile service that appears to have been overlooked in the last 10 years. 
      • Lysenko may have been dead for several decades, his spirit still lives on as purely scientific matters are often swayed by political and/or ideological influences. The same farce is ongoing with the entire WiMAX vs. LTE debate.
      • Tanenbaum noted that public interest (and investment) in scientific advancements usually arrive in waves, hence the evolution is more or less stochastic. Example: 3G was almost killed off following the .com bubble, and it is still struggling to return a profit amid the recent recession.
      A lot of poorly developed science remained alive and well through pure luck, while the most ingenious inventions may easily slip into oblivion if it was born around the wrong time.

      By the way, his book Computer Networks is an essential read for those with further interests in this area.

        Mobile Network 101 Part 3

        In the beginning, Mobiles networks acted just like the wired phone system however over the air. Yet because each base station had limited capacity, it is not practical to maintain dialup-esque uninterrupted data sessions over analogue lines as it uses frequencies badly needed by everybody else. 

        Soon it is found that some bands reserved to control messages can be re-used to send small packets of data, namely 160 latin characters of text. By setting up separate facilities called Short Message Service Centre (SMSC) to route packets, the service could be put into use with little overhead to the network.



        The design proved to be simple yet very efficient;similar protocols were developed for most rival standards such as D-AMPS and CDMA. However just as SMS went viral worldwide, US carriers were unwilling or uninterested in co-ordinating SMSCs that allow text messages to be transferred between different networks. Such handicap resulted in a persistent lack of reliable SMS service and consumer interest in north America, leading to third-party services such as BIS that works independently across all networks. Texting between carriers is no longer an issue in US(quirks do remain, such as non-latin messages routinely gets corrupted should they cross network barriers), SMS is often not a regular service for mobile services but a paid add-on.



        For a while, SMS was the only method of data transmission over GSM networks. People even wrote protocols to control remote devices via SMS. Fortunately, it did not take long before someone realised that a packet-based layer would be placed alongside voice in the digitised radio. By the time GPRS standard has stablised, it is capable of 80kbps download and 20bps upload, faster than dial-up on copper wire. However to achieve this speed, five concurrent TDMA timeslots must be used, hogging up a large portion of scarce network capacity. To furthur increase bandwidth, the need for new technology could not be any more obvious.

        Numerous submissions were made, and the winner turned out to be a surprise to everybody. NTT DoCoMo's W-CDMA, a hybrid protocol using a CDMA air interface for capacity, while preserving the GSM core network to minimise transition costs and allow handsets to move seamlessly between 2G to 3G. Bearing in mind that Japan never had any commercial GSM service, we could only assume that NTT designed W-CDMA (soon to be known as UMTS), to be a global standard.



        Legacy support was proven in its value such as in case of Vodafone NZ, which operates both WCDMA and GSM network. The latter is available in case the former fails. Whereas Telecom runs to incompatible standards (XT and CDMA2000), disruptions in XT service turned out to be a major flop.

        CDMA was designed to be data-compatible from ground up. It underwent its own evolution into CDMA2000, and became fully 3G with the EV-DO extension, which happened before any other standards were formed. While CDMA2000 uses a much smaller channel which means it hogs less frequency, the smaller bandwidth meant that there is little room for expansion, and voice call cannot exist simutaneously with an active data session. 

        3G was, shortly before the millennium, touted as the greatest thing that was ever invented since the lightbulb and sliced bread to "change the way we live forever". National authorities put 3G frequencies for auction and netted billions of dollars. However, the .com bubble promptly went burst thereafter and the hype suddenly died away. For many years, 3G was considered nothing more than combination of gimmicks like video calling; nobody took it seriously. 

        Some of the players like Nortel never recovered from the damage and went out of business in another bad cycle. With the rollout of 4G and 4G-ish networks imminent, most operators have so far failed to recover their cost from the entire 3G fiasco.

        One of the main reason was that few handsets were truly taking the advantage of 3G before 2007. Yes, I am talking about the iPhone. Before that, most phones are optimised for GPRS: messages were text only and browsers only return stripped down WAP pages. We all dislike iPhone for many reasons, but it is truly the game changer as everybody realised that how much rich media they could provide on people's everyday carry.

        The slow transition to 3G is accompanied by the decline of two 2G-era giants: RIM and Nokia. I will write more about them in another post.

        If it was not for the recession, three independent standards would have played out for 4G: LTE for the GSM/UMTS camp, UMB for CDMA2000 and WiMAX as an extended 802.11 protocol. Qualcomm, reacting to not-so-favourable financial conditions, decided to ditch UMB and concentrate on allowing present CDMA2000 networks to migrate to LTE.

        Right now, most 3G carriers are planning for LTE while brading their HSPA+ compatible networks as 4G in all advertising material to attract attention. WiMAX has been deployed in a few places, however it's future as a major standard remains unclear.

        Thursday, December 16, 2010

        V1, V2

        Hello again my crippled blog. Life has recently become very hectic with day jobs taking a larger cut of my time than expected and few other things keep holding me up. Exactly two week ago I pledged to update this blog more often, well...

        Partly because Part 3 of my mobile network series is taking much longer as I have underestimated the amount of research. Besides, I have been distracted with the temporary ownership of an iPhone 4 for which I took the advantage of carrier subsidy to buy as a Christmas gift for my dear father.

        I have had ample opportunity to fiddle with other people's iPhones before which were not all that impressive: The plastic chassis feel cheap, the screen is mediocre and iTunes is a pain to use. The iPad failed to please me the same way with its general lack in productivity features, which even MacFags do admit.

        You see, the smoothness of iOS is often achieved through deception. Deliberately disabling multitasking is one thing, for Apple is a clever social engineer to make things appear better than they really are. For example, Safari on the iPhone only render the visible portion of the active tab plus a very small adjacent area to reduce the processing overhead. If you scroll too fast you will be greeted with blank areas cleverly disguised as transparency layers before the system catches up. The interface also tricks people into suspending processes rather than properly killing them, resulting in a seemingly fast launch time when the same process is called again.

        However the iPhone 4 is actually quite agreeable. The slim construction of double glass panels and external antennas, despite its susceptibilities to breakage and attenuation, is quite pleasing to sight and feels substantial in your hands. The much-hyped retina screen is also pretty nice, even for someone already accustomed to a high quality screen on the Milestone. Apple have chosen the right resolution that existing apps that were smart enough to uemploy vector graphics can be scaled up without any intervention.

        Taiko no Tatsujin looked so good that I almost thought it was developed natively for 960x640

        The added RAM helps to make multitasking possible without sacrificing responsiveness. And the camera deserves special mention too for being exceptional. in such a small package. While I did not regret giving it away, I am looking for a locked 32GB one for entertainment. Overall, it is a glorified and augmented iPod Touch rather than a communication device, for I cannot bear the lack of physical keyboard, notification light and interchangeable batteries found on every other phone.

        Contrary to conventional wisdom, the history of Apple shows clear continuity from Day 1 while Microsoft's products were often refreshed to the point that it no longer resemble their ancestors. The latest Macs still have some of the quirks of Apple II where critical system timings were taken directly from the bus clock, so binaries not complied with such systems will fail to execute.

        The present iOS vs. Android race is an exact duplication of the old PC vs. Mac rivalry. Apple, by controlling the range of hardware, can effectively control the user experience, while their more open opponents must deal with all sorts of segmentation and compatibility issue.


        To better explain this, let's look at a recent example. Everybody loves Angry Birds however the initial Android release was unplayable for most people. Simply because with iPhone there are only two hardware branches and one or two OS to maintain, while Android comes in at least three versions, a variety of screen resolutions and a continuum of processing power, which is something that developers, having been spoiled by the iPhone, cannot no longer cope with.

        BTW, this game, along with many others, are free for Android but paid in the App Store...Hint hint.

        The same issue plagues most apps ported from iOS, where it works poorly with handsets of limited hardware.

        This, however, still leaves one question to be answered: Does Apple make people stupid, or are stupid people attracted to Apple?

        The answer is, it does not matter, for there is a demon darker than coal trapped in every iDevice. BlendTec has proof.


        -------------------------------------------------------------------------------------------------------------

        Blogger Stats has not been working for some time and I have put it down to the ineptitude of Google's admins (blogspot.com has been on the downhill road since the takeover by Google), however a recent visit to the message board revealed that the function simply stopped working with Firefox, or any gecko-based browser altogether. Google Analytics, the background service that powers Blogger Stats, are also reported to have many issues with Firefox, including some reports that it does not register visits via Firefox at all. After many years of mutual support, the rift between Google and Mozilla is finally beginning to show.


        The period from 2001 to 2005, following the first Browser War, are the dark days of the web with the lamentable Internet Explorer 6.0 dominating the market with only two minor update in two years. Alternatives were available however since most sites are written to support IE, the average layperson are unlikely to use it. 

        Fortunately the stagnation did not last forever; Firefox came out with Gecko, a brand new, standardised rendering engine, a smooth interface with tab browsing and much better security features. While its market share was never beyond the 30% mark, the real change brought along my Firefox is the renewed competition of development within the browser market. 

        I thought that Firefox was the forefront of web standardisation however this seems to be no longer the case, and I have similar personal experiences where a KHTML page I authored refused to be rendered correctly in Firefox; Trident renders it correctly only 50% of time however Webkit i.e. Chrome and Safari rendered it without a hitch. I ended up making static versions of the affected pages with a redirection script, which is easier said than done since every browser pretends to be Mozilla

        As for the software itself, it has become increasingly bloated and crash-prone from 3.6 onwards (hence the author is still staying on 3.5 for the remainder of its support lifetime), nor is the 4.0 beta anywhere near ready. Once the developers start to embrace Chrome en masse, there is little advantage left for Firefox. 

        Unlike Microsoft which has virtually bottomless resources to promote their browser, Firefox had to enter into an agreement with Google which trades search traffic for financing. While this income has allowed Mozilla to keep up the fight in the darkest of days, it is getting less secure because of the inherent conflict of interest.

        Finally compared to Opera which successfully captured the niche market of mobile web browsing, Firefox was too dependent on mainstream x86 platforms; Camino was hit hard when Apple defected to x86 and was never really completed, while Fennec is still stuck in beta at the time of writing. 

        A losing battle from the beginning

        With a sad note, I must say that Firefox is losing on all fronts and shall fade away within five years just like its Netscape fathers, not for its own wrongs but a combination of complacency, lack of focus and sheer bad luck. 

        Saturday, November 20, 2010

        Mobile Network 101 Part 2

        In an ideal world, there should be a sensible meeting of people where standards are designed and implemented internationally.However the world is not ideal as we know it, and mobile technology was no exception.

        Back in the analogue days, US first came up with AMPS, a simple FDMA (refer to part  1 in case you are getting lost here) system on 800MHz FM band; Japan and the UK was soon to follow suit, however because of regulatory limitations they had to use a different variety on the 900MHz band. Continental Europe, however, went into a frenzy of devising their own national standards, none of which turned out to be satisfactory or economically viable after a few years.

        Learning from their blunders, European telcos decided to poll their effort together to create a common standard. The collaboration was initially named Groupe Spécial Mobile, however the acronym GSM soon conflated with the term Global System for Mobile. GSM was designed from the drawing pad to be fully digital, modular, and capable of operating on several different frequency bands to suit national regulations. One major point that had to be mentioned separately is the invention of the SIM card, which allows the user to move his number from one phone to another with ease.

        People of the present age often take SIM cards for granted, and indeed in New Zealand over 70% of mobile subscribers are using a prepaid SIM. Nonetheless, SIM card is actually a more recent invention. Back in the days when telecommunication was though to be of natural monopoly and AT&T decided what colour is your phone going to be, it is no big surprise that phones are sold hard-wired to a certain network. In Europe, however, many countries have laws in place prohibiting blatant bundling of service with a product. With the technology standardised between countries, there is no longer any excuse to lock users in. SIM cards also allowed people to change their phones more frequently so the manufacturers are actually quite happy with it.

        Hence two very different business models developed on two shores of the Atlantic: American carriers grant heavy subsidy for handsets, often offering them free of charge to lure customers into signing a lucrative contract; even GSM phones are often sold locked to a specific network, even after the initial contract has expired. In Europe, most SIM cards are prepaid and carrier locks are virtually unheard of until, you guessed right, until Steve Jobs decided to shove the American way of life down everyone's throat. 

        Back then when GSM was rapidly expanding, AMPS evolved very slowly. The IS-54 standard made the internal handling of calls digital to triple cell capacity, while remaining compatible to the older standard externally for a smooth transition. The subsequent IS-136 standard is fully digital, however it came too late and GSM became the effective global standard.

        The future of the AMPS family was sealed when a domestic foe appeared. A start-up company in California called Qualcomm pushed digigently for their radically different and innovative CDMA technology. Unlike GSM or AMPS, CDMA does not require a frequency switch during a handover process, resulting in a much "softer" transfer that nearly always goes unnoticed and rarely dropped. While GSM and AMPS are both subject to the limitations of TDM encoding, GSM was being continually developed to minimise any issue but AMPS lacked the momentum, not to mention it was not designed to handle frequent handoffs in the first place. Two major carriers, namely Sprint and Verizon Wireless, embraced CDMA because SIM card (correct term for CDMA is actually is RIM) is not mandatory, allowing the contract-based status quo.

        Subsequently AMPS went into a slow but steady decline; service has been stopped in most countries by 2006. To this date only a few networks remain, all of which are in remote regions where the upgrade cost is prohibitive.

        The same pattern of change played out in most parts of the world except in Japan, where the AMPS system was simplified to become PDC, which is specialised for the higher user density found in Japan. Because PDC allowed handsets to have lower transmission power, tiny handsets unimaginable elsewhere can be made. Manufacturers became obsessed with making even smaller units, culminating in the PHS system where all cells are microcells covering a radius of less than a kilometer. The domestic market flourished, while the PHS system was exported to gain a huge following in large cities like Taipei and Rio. Notwithstanding their relative success, the Japanese mobile industry became disconnected with the rest of the world for years, overlapping much of the lost decade.

        In this chapter above I tried to summarise the development from 1G (analogue voice) to 2G (digital voice), the next chapter will devoted to the entire 3G fiasco of which the effects are still being felt today.

        Wednesday, November 17, 2010

        Sony PRS-350 Impressions

        Back to the beginning of 2010, Kindle was the only affordable e-reader of acceptable quality; other offering were either cheap n'nasty or horrendously expensive. Sony's line of e-readers had a mixed reception: the build and system are both excellent, however their screens had a really bad glare issue due to the extra layer of glass where the digitiser is.

        A recent trip to SonyStyle cleared up much of my prejudice against Sony e-readers. The latest PRS-350 is especially lovely, with a streamlined aluminium body, beautiful screen and a much improved touch panel that does not glare much if at all.



        I tend to speak very positively of Amazon, nonetheless I do feel that they were cutting corners with the Kindle 3 to keep their margins. Omitting a few vestigial bits like accelerometer and GPS can be forgiven, however the plastic chassis had been causing many issues including warped units and broken screens. PRS-350, however, is mainly slimmed down in functionality with no wireless connection and very limited choice of font sizes and no memory card slots.

        The relative success of the Kindle is based on Amazon's present customer base, as well as the device's ability to please both ends of the user spectrum, namely from computer illiterate soccer-moms (over the air purchase, delivery and file conversion) to geek major (drag and drop file management, crude system with many possible hacks), while on the usability front it is actually falling behind other companies who are catching up very rapidly. With the glare issue fixed, Sony is in a good position to capture the more mainstream users who is looking for a balanced option.

        Verdict

        Pros
        • Excellent construction, better than the Kindle 3
        • Small size, light weight
        • Decent touchscreen operation
        • Easy to use, responsive system
        • ePub Support
        • PDF reflow

        Cons
        • Lack of wireless connectivity
        • Limited customisations and community support
        • Need a computer to manage books
        P.S. Over the weekend, B&H had a deal on Sony e-readers, with PRS-350 priced at US$119.99(approx. NZ$156, around NZ$200 with international shipping). Having just spent some money on booze and canned pineapples, I hesitated on placing an order. However I soon regretted as the price went up to $149.99, much less attractive.

        It is available from official channels for $299.95 including GST. You can check it out hands-on at your local Sony outlets. To compare the size of popular e-readers, click here.

        Monday, November 15, 2010

        Mobile Network 101 Part 1

        Last week I went into a recently opened to 2degrees store to see if they have a good mobile data package on offer, only to find out that people who worked there have little actual knowledge of their own merchandise: I asked about WCDMA service outside major urban areas, and they replied that their network is 3G and GSM only.

        Seriously?

        It is hardly surprising that with a corporate mindset, people are hired on their ability to follow instructions and protocols rather than their own initiative. However when I actually thought about the current state of mobile technologies, it is evident that with so many different technologies and terminologies floating around, it is simply not meant for easy and painless comprehension.

        Say, Vodafone NZ is operating concurrent networks, 2G GSM EDGE at 900MHz and 1800MHz, as well as a W-CDMA based, HSDPA capable 3G UMTS on 900MHz and 2100...Well I should probably stop here.

        Much of the confusion had been a result of bureaucratic red-tape, political rivalry, human greed and outright stupidity. Hence this new post series is going to strip these terms to be basics in an attempt to explain them. 

        Depending on the context, these information could matter a lot or a little to the end user. For example, iPhone owners may find themselves with no 3G coverage while their friends with a $99 Nokia phone gets 3G practically anywhere. Nevertheless if the only activities on their mobile are plain calling and text messages, it is hardly an issue.

        Before we head into the confusing world of mobile telecommunication, let us look at the earlier iterations if the copper-based phone system.

        Early telephone services are nothing but a simple mesh network of interconnected phones, with your phone physically linked to all your friend's homes. Using a bit simple math, we can soon work out that the number of wires required for n users are n(n-1)/2. The situation soon imploded as every possible wiring space is filled with cables, something has to be done.

         I had to use a less impressive modern example because I cannot find the file photo; for now just imagine the same tangle 10 times bigger.

        Then some genius came up with the idea of telephone exchange, which uses human power to physically connect calls by forming circuits. 
        The Nutt sisters were the first female telephone operators bought in to replace teenage boys with poor manners; well you cannot expect good manners from a teenager on minimum wage, women are more willing to submit; need proof?

        Despite the technologies of phone exchange advanced greatly over the last century, with mechanical then electronic means instead of maiden's hands, the "hub and spoke" model survived largely intact in many other forms of networks beyond voice and data. 


        ---------------------------------------------------------------------------

        As an oversimplified rule of thumb, high frequency means shorter distances of transmission and higher bandwidth. A few examples:

        Long wave travels by the contours of the earth, hence they require very high masts. Transmission can be picked up from 3000km away on a good day. 
        Junglinster long wavestation


        Short wave, on the other hand, gets around by getting reflected between the ground and the ionising layer of the atomsphere. Hence they have a range in tens of thousands of kilometers and remains the standard frequency for international broadcasts in this digital age.
        Radio Canada's short wave towers

        Microwave transmission usually travel by the line of sight, hence they have limited range usually less than 50km. Nevertheless it is of excellent spectrum density and less affected by weather.
        Your average rooftop microwave mast, very likely to be a cellphone mast as well; note the drum-like relay antenna and the triangular panel antenna

        With higher frequency, range is even more limited and absorption by rain and other obstacles become problematic. However they can be made into good applications such as short range remote controls.
        Infrared is invisible to human eyes, however most digital cameras will notice

        Hence, there is no accident that mobile phones uses a small section of microwave frequency known as UHF, which offers good range as well as the ability to carry multiple calls from one station.

        Earlier iteration of radio phones are nothing more than small radio transceivers connected to the phone exchange system, with many radio masts known as base stations providing service to one area known as a cell and maintaining connection to each phone in small channels of allocated frequency. Calls are handed over to another base station once the user travels into the a different area because the same channel could be used by another device and the late comer has to be allocated a different channel.

        All was well when cellular phone are few and powerful such as car phones and large handsets about the size of a hock of ham. Coverage was excellent as one major base station can cover a large radius. For example, Telecom used to have one base station on top of the sky tower for the entire central Auckland, nowadays the same area is served by hundreds to thousands of masts yet call quality is hardly better than what it used to be.

        The main reason behind the evolution is that as the number of users increased, existing stations ran out of capacity for calls and had to be divided into smaller cells, and apply some tedious math to make sure there is enough channels to go around.

        Conversely, the smaller cells require less power which leads to the further miniaturisation of cell phones; the first generation of true handsets were born.

        From left: Motorola Droid(made in 2009), Dr Martin Cooper(born in 1928), DynaTAC prototype (first used in 1973)

        Not only do cells need to be smaller in general, extra stations had to be deployed strategically at places where large number of people convene, i.e. train stations, shopping malls and office buildings. An extreme situation would be major sporting events and concerts where tens of thousands of people with cellphones are packed into a small space, often necessitating the network operators to set up temporary cell towers to be able to handle the sheer number of handsets. This adds great complexity to a mature network, since calls are handed over much more frequently over cells of varying transmission power.


        Clearly, more measures are needed to be able to fit more users into the finite space of radio frequencies. Digital transmission algorithms are used to compress voice signal into smaller channels, and calls are co-modulated to utilise transmission efficiency as much as possible according to the rule of physics; however the number of calls that can be stuffed into one wavelength is still limited.This is known as Frequency-Division Multiplexing or FDM

        A cunning way to get around the issue is called Time-Division Mutiplexing, where each phone is allowed a time slot in the same frequency, maximising use of the same channel. The competing standard is know as Code-Division Multiplexing. Without going too far into the technicalities, imagine FDM attempt at dividing a large hall into tiny cubicles so the occupants will not speak over the voice of each other, TDM as the same hall full of people taking turns to speak; while with CDM everybody talks at the same time, albeit in a different dialect so to avoid confusion. Most current technologies uses one of the methods or a combination of two or more.

        For the mathematically minded

        Friday, October 22, 2010

        End Title Nostalgia


        Performed by The Warsaw Philharmonic, perfected by Yoko Kanno

        Yeah, the 7/7 live was more than a year ago, time surely flies...

        ---------------------------------------------------------------------------------

        The end of my undergraduate degree is not "in sight", it is here to be felt.

        On Monday there was a exam review tutorial which went so well that I became somewhat depressed towards the end since it ended so abruptly.  We shared some food and drink in the end, and one of our tutors even baked miniature cupcakes for us with cheeky messages and self-promotion attached, bravo!

         Rachel is the nicest person I have ever met

        Then a friend organised a shared lunch on Wednesday which was good fun filled with nice food, bad jokes and photos with stupid faces.



        Thanks to all the awesome people I met at uni, you have been an inspiration to me.

        Apparently Grafton campus will become a mini-limbo from next week on with construction, and with all my exams in either City or Tamaki today will be the last time for me to be on Grafton campus in a long time. I went to the last undergraduate lecture, which had a disappointingly low turnout. 

        Well, they totally missed out on Graeme Finlay's review session which could not get any better.

        After the lecture I printed my last assignment after adding some finishing touches while laughing at my friend's ineptness in starting a lab report that was due on Wednesday. I then went to the aforementioned tutor to talk about exams before going home on a bus which I managed to catch just in time.

        Yup, I know the bus stop outside Auckland hospital has always had some construction on during the semester and the bus time display has been having issues before it suddenly disappeared overnight. Nevertheless I was able to check real-time bus arrivals on the web via maxx.co.nz, with the stoo number 1028. If you need an idea for Christmas gifts, I highly recommend getting your loved ones smartphones, which will transform the way they go about your daily lives. :P

        Anyway, the rest of the day was spent on daydreaming, eating melon-flavored ice cream, reading RA Weinberg's cancer bio on my kindle to the realisation that everything I thought to have learned from a semester's work in cancer biology is already summarised in the first fifteen pages of this great textbook.

        Another few changes that happened to my life this semester:

        • Craccum magazine and talkback radio have quit my life entirely. The former due to lack of time and the latter because my new phone did not have a usable FM module and I am too lazy to get a standalone FM receiver. I did manage to discover the infamous ND magazine for the medics and found them good read for they have absolutely no serious content.
        • No more new books/games/movies/etc before I could clear out my existing pile. I have too much property and I still have too much after actively trying to downsize for much of the year. 
        • I have been wearing boots for so long that regular shoes are no longer comfortable; I wore my suede sneakers today for a change and my ankles almost broke down after a short climb uphill to home. 
        • Takeaway lunch became a regular feature of my routine, especially the chicken wrap and pork turnovers from the bakery on Park road. Spending on food did not help with my wallet however it had a spectacular effect on my wilingness to study, and I could have not made to every single lecture this semester without sustenance.
        • I actually began to enjoy reading journal articles; some reviews are so well written that they answer a many lectures' worth of questions in mere minutes. Note it was before I bought my kindle and this statement is the cause, not result. 
        • Ever since my first year I realised it is possible to go into any lecture without being asked who you are. However, I did not begin to informally audit lectures till this semester for a paper I could not take due to timetable clashes. Some of my new friends in class were shocked to find that I am not actually enrolled in the course, despite turning to lectures regularly, answered a bunch of questions and even prepared a presentation in front of the class. Looking back, I really should have done this earlier, especially in the first semester when I had a huge gap between my morning and afternoon lectures. I have already made loose plans with a friend to co-appear in random undergraduate lectures next year to make full use of our time.
        • Cellphone bills skyrocketed, partly due to the $20 mobile broadband which I could not live without anymore, but most of it is actually due to text messages and calls to friends. Next year I will consider going on account, 3GB data per month for $40 is just too good to be missed. 
        • I am a happier and more sociable person in the second half of 2010. It is true that I still get the occasional bouts of depression and anger, however I am doing much better than before like I said in several previous posts.It is time to believe that you are having a positive effect on others; even if they don't seem to reciprocate your feelings, it does not imply that you are abandoned by the world.
        It seems that people only came out of their shell and began to know each other before they are about to get on their own ways, and I shall be grateful that I am definitely heading back to the same place next year as a postgraduate student, hopefully for my BSc Honours. Meanwhile, I should get ready for my exams which are both close (first one on the 28th of this month) and clumped (three exams in four days, huh).

        ---------------------------------------------------------------------------------

        Finally a little update to the kindle post I made last week.

        Apparently I overlooked the fact that my Kindle DX is the international version (serial number starts with B0005) and actually has free wireless service in NZ. I was not able to use the browser due to some problem with region settings but finally managed to get it working.



        It is a very generous for amazon to provide free 3G web access; it cost them US$0.12 per MB transmitted in the US and probably more for my AT&T powered Kindle to roam here. Would I use my Kindle DX to surf the web more regularly? Well no, and there are technical reasons apart from being unwilling to abuse Amazon's generousity: The browser on 2.5.x firmware is poorly coded in Java; it uses an obscure rendering engine that is not suited to large screens and probably does not render most web pages correctly anyway. It is a "nice to have feature", however Kindle 3 is much better in terms of browsing websites.

        In more flattering note, I have managed to jailbreak the system to replace the stock Caecilia font with sans-serif Droid Fallback which is much sharper and easier to read, especially for the (ridiculously) smaller font sizes. This also brings the much needed CJK language support.(Not needed for K3 which support CJK characters out of the box, with some rightfully ugly Korean font)


        The default screensavers are a mixed bag, which has since been replaced by my favorite paintings converted to the Kindle format.



        The jailbreak is well documented and very easy to carry out, if you are keen please find instructions here, however take full note that this may brick your kindle and Amazon will not be happy when they find out.

        I have attempted to use the kindle as a classroom tablet (very good, however you cannot take notes with pdf files) and read under direct sunlight(bad idea, the white borders had too much glare)I am also experimenting with the root shell access and see if I could get more from the device. Right now everything makes me want to actually learn Linux, did you know that you can manipulate people with shell commands?