I would like to understand what connection type and theoretical data rate my phone is using for its data connection, and how it changes with different locations. I'm not looking for an actual data speed test like speedtest.net, but rather a logging of the type of data connection (GPRS, HSDPA, HSDPA+) and the specific modulation and UE Categories (see the table for User Equipment (UE) categories in this article).
This information should be available from the phone's radio, without actually sending additional data through the network.
I would like to have this information logged, along with a rough location, maybe as a background process (which would only run when a data connection is active so it would not drain the battery).