answered
2015-02-10 11:05:22 +0200
You can use ofono's dbus interface:
dbus-send --system --print-reply --dest=org.ofono / org.ofono.Manager.GetModems
dbus-send --system --print-reply --dest=org.ofono /ril_0 org.ofono.NetworkRegistration.GetProperties
and so on...
Also forgot to actually turn the data connection on you need to use connman:
dbus-send --system --type=method_call --print-reply --dest=net.connman / net.connman.Manager.GetServices
/* get all network connections and check the service path for the cellular */
dbus-send --system --type=method_call --print-reply --dest=net.connman /service_path/from/previous/command/ net.connman.Service.Connect
But restarting the connection when you are in 3G will not get you back to 4G...