[maemo-developers] Looking for anyone with a N900 running Maemo5 to run a shell script & get some diagnostics for me

From: Jonathan Wilson jfwfreo at tpgi.com.au
Date: Wed Oct 26 19:19:41 EEST 2011
I want everyone who has a N900 running Maemo5 (and who can do it) to run 
the following shell script on their N900 (make sure the script has UNIX 
line endings rather than dos otherwise things will break)

echo get_service_provider_name
dbus-send --system --print-reply --dest=com.nokia.phone.SIM 
/com/nokia/phone/SIM Phone.Sim.get_service_provider_name
echo get_service_provider_info
dbus-send --system --print-reply --dest=com.nokia.phone.SIM 
/com/nokia/phone/SIM Phone.Sim.get_service_provider_info
CSD_NET=`dbus-send --system --print-reply --dest=com.nokia.phone.net 
/com/nokia/phone/net Phone.Net.get_registration_status | grep uint32`
OPERATOR_COUNTRY_CODE=`echo -e $CSD_NET | awk 'NR < 2{ print $6 }' `
OPERATOR_NETWORK_ID=`echo -e $CSD_NET | awk 'NR < 2{ print $4 }'`
NETWORK_ID=$OPERATOR_NETWORK_ID
OPERATOR_NETWORK_ID_STRIPPED=`echo $NETWORK_ID | sed 's/0*//'`
echo country $OPERATOR_COUNTRY_CODE
echo operator $OPERATOR_NETWORK_ID_STRIPPED
echo NET_NITZ_FULL_OPER_NAME
dbus-send --system --print-reply --dest=com.nokia.phone.net 
/com/nokia/phone/net Phone.Net.get_operator_name byte:3 
uint32:$OPERATOR_NETWORK_ID_STRIPPED uint32:$OPERATOR_COUNTRY_CODE
echo NET_HARDCODED_LATIN_OPER_NAME
dbus-send --system --print-reply --dest=com.nokia.phone.net 
/com/nokia/phone/net Phone.Net.get_operator_name byte:0 
uint32:$OPERATOR_NETWORK_ID_STRIPPED uint32:$OPERATOR_COUNTRY_CODE

What I want is the output from this shell script. I also want to know what 
the name of your service provider is (i.e. the company you pay for service) 
as well as the name of your operator (i.e. the company that actually 
operates the cell towers and/or matches the MNC/MCC that get output by the 
script as "country" and "operator") and I want to know whether you were 
connected to 2G or 3G when you ran the script as well as what operator name 
was displayed on the home screen and whether you were roaming or on your 
home operator at the time. (if there is someone out there who is in a 
position to get output from when you are roaming rather than on your home 
network, that would be nice)

This data will help me figure out exactly how to get the operator name as 
displayed by the home screen widget so that my Cell Broadcast SMS widget 
can display the correct name 100% of the time.
More information about the maemo-developers mailing list