ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1412", ENV{OFONO_IFACE_NUM}=="00", ENV{OFONO_HUAWEI_TYPE}="Modem"
ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1412", ENV{OFONO_IFACE_NUM}=="02", ENV{OFONO_HUAWEI_TYPE}="Pcui"
ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1412", ENV{OFONO_IFACE_NUM}=="04", ENV{OFONO_HUAWEI_TYPE}="gps"
ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1412", ENV{OFONO_IFACE_NUM}=="05", ENV{OFONO_HUAWEI_TYPE}="pcvoice"

Bus 003 Device 002: ID 12d1:1412 Huawei Technologies Co., Ltd.


On Wed, May 4, 2011 at 9:31 PM, rajeshkumar s.a <> wrote:
How do I get the proper ofono_interface_num ? (n00b ques)


On Wed, May 4, 2011 at 9:26 PM, Olivier Guiter <> wrote:
On 05/04/2011 05:35 PM, rajeshkumar s.a wrote:
PFA, the debug log with AT commands

I am still getting a timeout on enable-modem operation

and list-modem gives following o/p

$ ./list-modems
[ /huawei0 ]
    Features =
    Emergency = 0
    Powered = 0
    Lockdown = 0
    Interfaces =
    Online = 0


As far i can see, ofono communicates using the wrong USB interface .... I suggest you to modify the /etc/udev/rules.d/ofono.rules to use the correct one
First, get the idvendor and id product of your key (e.g: lsusb)
Then check in the ofono.rules  a line like this one:
ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="0121",ENV{OFONO_IFACE_NUM}=="04",  ENV{OFONO_ZTE_TYPE}="modem"
And update the OFONO_IFACE_NUM
These keys publish multiple interfaces with different purposes (like modem diag, traces, etc...)
Hope this help