All of lore.kernel.org
 help / color / mirror / Atom feed
* Dedug Log for Huawei EC168C
@ 2011-05-04 15:35 rajeshkumar s.a
  2011-05-04 15:56 ` Olivier Guiter
  2011-05-04 16:41 ` Aygon, Bertrand
  0 siblings, 2 replies; 6+ messages in thread
From: rajeshkumar s.a @ 2011-05-04 15:35 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 290 bytes --]

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

Regards,
Rajesh

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 342 bytes --]

[-- Attachment #3: debug_log_2.obj --]
[-- Type: application/octet-stream, Size: 2750 bytes --]

# ./src/ofonod -n -d 'plugins/*'
ofonod[2120]: oFono version 0.48
ofonod[2120]: plugins/push-notification.c:push_notification_init() 
ofonod[2120]: plugins/smart-messaging.c:smart_messaging_init() 
ofonod[2120]: plugins/dun_gw.c:dun_gw_init() 
ofonod[2120]: plugins/phonesim.c:parse_config() filename /usr/local/etc/ofono/phonesim.conf
ofonod[2120]: plugins/udev.c:add_modem() /devices/pci0000:00/0000:00:1d.1/usb3/3-1/3-1:1.0/ttyUSB0/tty/ttyUSB0 (huawei)
ofonod[2120]: plugins/udev.c:add_huawei() modem 0x95637e0
ofonod[2120]: plugins/udev.c:add_modem() /devices/pci0000:00/0000:00:1d.1/usb3/3-1/3-1:1.1/ttyUSB1/tty/ttyUSB1 (huawei)
ofonod[2120]: plugins/udev.c:add_huawei() modem 0x95637e0
ofonod[2120]: plugins/udev.c:add_modem() /devices/pci0000:00/0000:00:1d.1/usb3/3-1/3-1:1.2/ttyUSB2/tty/ttyUSB2 (huawei)
ofonod[2120]: plugins/udev.c:add_huawei() modem 0x95637e0
ofonod[2120]: plugins/huawei.c:huawei_probe() 0x95637e0
ofonod[2120]: plugins/hfp_ag.c:modem_watch() modem: 0x95637e0, added: 1
ofonod[2120]: plugins/dun_gw.c:modem_watch() modem: 0x95637e0, added: 1
ofonod[2120]: plugins/smart-messaging.c:modem_watch() modem: 0x95637e0, added: 1
ofonod[2120]: plugins/push-notification.c:modem_watch() modem: 0x95637e0, added: 1
ofonod[2120]: plugins/udev.c:add_modem() /devices/pci0000:00/0000:00:1d.1/usb3/3-1/3-1:1.4/ttyUSB3/tty/ttyUSB3 (huawei)
ofonod[2120]: plugins/udev.c:add_huawei() modem 0x95637e0
ofonod[2120]: plugins/huawei.c:huawei_enable() 0x95637e0
ofonod[2120]: plugins/huawei.c:open_device() Modem /dev/ttyUSB0
ofonod[2120]: plugins/huawei.c:open_device() Pcui /dev/ttyUSB2
ofonod[2120]: plugins/huawei.c:query_sim_state() 
ofonod[2120]: PCUI: > ATE0 +CMEE=1\r
ofonod[2120]: PCUI: < \r\nOK\r\n
ofonod[2120]: PCUI: > AT+CFUN=1\r
ofonod[2120]: PCUI: < \r\nOK\r\n
ofonod[2120]: plugins/huawei.c:cfun_enable() 
ofonod[2120]: PCUI: > AT^SYSINFO\r
ofonod[2120]: PCUI: < \r\n^SYSINFO:2,255,0,8,240\r\n\r\nOK\r\n
ofonod[2120]: plugins/huawei.c:notify_sim_state() 240
ofonod[2120]: PCUI: > AT^U2DIAG?\r
ofonod[2120]: PCUI: < \r\nCOMMAND NOT SUPPORT\r\n
ofonod[2120]: PCUI: > AT^GETPORTMODE\r
ofonod[2120]: PCUI: < \r\nCOMMAND NOT SUPPORT\r\n
ofonod[2120]: PCUI: > AT^USSDMODE=?\r
ofonod[2120]: PCUI: < \r\nCOMMAND NOT SUPPORT\r\n
ofonod[2120]: PCUI: > AT^CVOICE=?\r
ofonod[2120]: PCUI: < \r\n^CVOICE:(0)\r\n\r\nOK\r\n
ofonod[2120]: PCUI: > AT^CVOICE?\r
ofonod[2120]: PCUI: < \r\n^CVOICE:0,8000,16,20\r\n\r\nOK\r\n
ofonod[2120]: Voice channel: 8000 Hz, 16 bits, 20ms period
ofonod[2120]: PCUI: > AT^DDSETEX=?\r
ofonod[2120]: PCUI: < \r\n^DDSETEX:(2)\r\n\r\nOK\r\n
ofonod[2120]: Modem: < \r\n^HRSSILVL:80\r\n
ofonod[2120]: PCUI: < \r\n^HRSSILVL:80\r\n
ofonod[2120]: Modem: < \r\n^HRSSILVL:60\r\n
ofonod[2120]: PCUI: < \r\n^HRSSILVL:60\r\n

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Dedug Log for Huawei EC168C
  2011-05-04 15:35 Dedug Log for Huawei EC168C rajeshkumar s.a
@ 2011-05-04 15:56 ` Olivier Guiter
  2011-05-04 16:01   ` rajeshkumar s.a
  2011-05-04 16:41 ` Aygon, Bertrand
  1 sibling, 1 reply; 6+ messages in thread
From: Olivier Guiter @ 2011-05-04 15:56 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 930 bytes --]

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
>
> Regards,
> Rajesh
>
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
Olivier


//

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 1636 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Dedug Log for Huawei EC168C
  2011-05-04 15:56 ` Olivier Guiter
@ 2011-05-04 16:01   ` rajeshkumar s.a
  2011-05-04 16:04     ` rajeshkumar s.a
  0 siblings, 1 reply; 6+ messages in thread
From: rajeshkumar s.a @ 2011-05-04 16:01 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1124 bytes --]

How do I get the proper ofono_interface_num ? (n00b ques)

rajesh

On Wed, May 4, 2011 at 9:26 PM, Olivier Guiter <
olivier.guiter@linux.intel.com> 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
>
> Regards,
> Rajesh
>
>  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
> Olivier
>
>
> **
>

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 1802 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Dedug Log for Huawei EC168C
  2011-05-04 16:01   ` rajeshkumar s.a
@ 2011-05-04 16:04     ` rajeshkumar s.a
  2011-05-04 16:08       ` Olivier Guiter
  0 siblings, 1 reply; 6+ messages in thread
From: rajeshkumar s.a @ 2011-05-04 16:04 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1808 bytes --]

rules
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"

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

rajesh

On Wed, May 4, 2011 at 9:31 PM, rajeshkumar s.a
<rajeshkumar.s.a@gmail.com>wrote:

> How do I get the proper ofono_interface_num ? (n00b ques)
>
> rajesh
>
>
> On Wed, May 4, 2011 at 9:26 PM, Olivier Guiter <
> olivier.guiter(a)linux.intel.com> 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
>>
>> Regards,
>> Rajesh
>>
>>  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
>> Olivier
>>
>>
>> **
>>
>
>

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 2912 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Dedug Log for Huawei EC168C
  2011-05-04 16:04     ` rajeshkumar s.a
@ 2011-05-04 16:08       ` Olivier Guiter
  0 siblings, 0 replies; 6+ messages in thread
From: Olivier Guiter @ 2011-05-04 16:08 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 2254 bytes --]


On 05/04/2011 06:04 PM, rajeshkumar s.a wrote:
> rules
> 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"
>
> lsusb
> Bus 003 Device 002: ID 12d1:1412 Huawei Technologies Co., Ltd.
>
> rajesh
>
> On Wed, May 4, 2011 at 9:31 PM, rajeshkumar s.a 
> <rajeshkumar.s.a(a)gmail.com <mailto:rajeshkumar.s.a@gmail.com>> wrote:
>
>     How do I get the proper ofono_interface_num ? (n00b ques)
>
>     rajesh
>
>
>     On Wed, May 4, 2011 at 9:26 PM, Olivier Guiter
>     <olivier.guiter@linux.intel.com
>     <mailto:olivier.guiter@linux.intel.com>> 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
>>
>>         Regards,
>>         Rajesh
>>
>         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
>         Olivier
>
>
>
>
It is modem specific...so i don't know :( ... you must test ...
Olivier

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 4651 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: Dedug Log for Huawei EC168C
  2011-05-04 15:35 Dedug Log for Huawei EC168C rajeshkumar s.a
  2011-05-04 15:56 ` Olivier Guiter
@ 2011-05-04 16:41 ` Aygon, Bertrand
  1 sibling, 0 replies; 6+ messages in thread
From: Aygon, Bertrand @ 2011-05-04 16:41 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1455 bytes --]

Hi,

>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
>
>Regards,
>Rajesh

We have one idea to fix this. It seems that this modem has never been tested or used with oFono, and so oFono is not handling it.
How did you get ofonod? Did you build it?
If so, can you please modify file plugins/huawei.c, line 208, and insert:
case 240:

You should have:
...
case HUAWEI_SIM_STATE_VALID:
case HUAWEI_SIM_STATE_INVALID_CS:
case HUAWEI_SIM_STATE_INVALID_PS:
case HUAWEI_SIM_STATE_INVALID_PS_AND_CS:
case 240:
if (data->sim_poll_timeout) {
g_source_remove(data->sim_poll_timeout);
data->sim_poll_timeout = 0;
}
...

Thanks,

Bertrand
---------------------------------------------------------------------
Intel Corporation SAS (French simplified joint stock company)
Registered headquarters: "Les Montalets"- 2, rue de Paris, 
92196 Meudon Cedex, France
Registration Number:  302 456 199 R.C.S. NANTERRE
Capital: 4,572,000 Euros

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 6645 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-05-04 16:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-04 15:35 Dedug Log for Huawei EC168C rajeshkumar s.a
2011-05-04 15:56 ` Olivier Guiter
2011-05-04 16:01   ` rajeshkumar s.a
2011-05-04 16:04     ` rajeshkumar s.a
2011-05-04 16:08       ` Olivier Guiter
2011-05-04 16:41 ` Aygon, Bertrand

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.