答复: [MM][PATCH]update the NDISDUP check h andle for Huawei modem



Dear Bjorn:

-----邮件原件-----
发件人: networkmanager-list
[mailto:networkmanager-list-bounces gnome org] 代表 Bj?rn Mork
发送时间: 2013年6月6日 19:16
收件人: Fangxiaozhi (Franko)
抄送: Heyongquan; Aleksander Morgado; Yili (Neil);
networkmanager-list gnome org; Wangyuhua
主题: Re: [MM][PATCH]update the NDISDUP check handle for Huawei modem

"Fangxiaozhi (Franko)" <fangxiaozhi huawei com> writes:

This patch updates the NDISDUP check handle for Huawei modem.
For Huawei devices, which expose the standard ECM port, at command
"^DHCP?" is used to query the IP and DNS address for the connection, At
command "^NDISSTATQRY?" is used to query the connection status(connected
or disconnected).
They have some different. The response of DHCP does not exactly indicate the
right connection status in that time.
So it is better to send NDISSTATQRY to check the connection status after
NDISDUP connect/disconnect, but not DHCP.

But the "^NDISSTATQRY" command isn't implemented on all modems
implementing "^NDISDUP" and "^DHCP", is it?  Shouldn't you fall back to
^DHCP in case ^NDISSTATQRY returns ERROR?  Or is this command
implemented on all modems where we currently need to use AT commands?  I
don't have any modem without QMI and/or MBIM, but none of the two QMI
modems I have support ^NDISSTATQRY:
-------Yes, you are right. "^NDISSTATQRY" command isn't implemented on all modems.
-------But it is sure that "^NDISSTATQRY" command will be implemented on the modems with standard ECM port.
-------And the NDISDUP solution is only implemented for the modems with standard ECM port. (It is marked with 
the rules file)
-------For other modems without standard ECM port, such E367/ E392/E1820/E3276, etc. 
-------They can support QMI or NDISDUP command dial-up through the endpoint 0 of its net port, but not 
through pcui port.
-------So these modems are not the targets of this NDISDUP solution(through pcui port).

----- For other modems without standard ECM port, such E367/ E392/E1820/E3276, etc.
-----It is better to dial-up with ppp modem.


ati
Manufacturer: huawei
Model: E367
Revision: 11.810.09.00.00
IMEI: 353613048805199
+GCAP: +CGSM,+DS,+ES

OK
at^ndisdup=?
^NDISDUP:(1-16),(0-1)

OK
at^dhcp?
+CME ERROR: no connection to phone
at^ndisstatqry?
ERROR


ati
Manufacturer: Huawei Technologies Co., Ltd.
Model: E392
Revision: 11.335.13.00.000
IMEI: 860999000023707
+GCAP: +CGSM

OK
at^ndisdup=?
^NDISDUP:(1-16),(1-16)

OK
at^dhcp?
+CME ERROR: no connection to phone
at^ndisstatqry?
ERROR


Bjørn
_______________________________________________
networkmanager-list mailing list
networkmanager-list gnome org
https://mail.gnome.org/mailman/listinfo/networkmanager-list

Best Regards,
Franko Fang


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]