via pdroms

iGsm is a simple iPhone command line application that allows you to easily send AT commands to the phone.

To use igsm you need to unload CommCenter.
You can use "-u" igsm switch option to unload CommCenter and
"-l" switch option to load CommCenter when you are done. http://web.newsguy.com/marcio/iphone/igsm/