http://developer.mbed.org/teams/Seeed/code/GPRSInterface/#180feb3ebe62