View Single Post
Posts: 162 | Thanked: 351 times | Joined on Apr 2006 @ Cotswolds, UK
#5
get_registration_status is the right operation. You want to combine the four parameters LAC, cell id, operator code and country code to define the cell. These are the second, third, fourth and fifth response arguments.

Here is how you get them in a shell script:

Code:
reg=`dbus-send --system --print-reply=literal --type=method_call \
  --dest=com.nokia.phone.net /com/nokia/phone/net \
  Phone.Net.get_registration_status`

lac=`echo $reg | cut -f 4 -d " "`
cell_id=`echo $reg | cut -f 6 -d " "`
operator_code=`echo $reg | cut -f 8 -d " "`
country_code=`echo $reg | cut -f 10 -d " "`