Re: Hello, please help with my 3G device



On Mon, Jul 16, 2012 at 1:09 PM, Aleksander Morgado
<aleksander lanedo com> wrote:
>
>>>>> The Huawei plugin always starts probing USB interface 0; and it seems
>>>>> that none of the 3 ttyACM ports given has usbif 0, so never starts
>>>>> probing the other ports. The plugin should possibly wait up to N
>>>>> seconds
>>>>> for usbif 0 to appear, and keep on probing normally if it doesn't
>>>>> appear
>>>>> in that time.
>>>>>
>>>>> Will try to prepare a patch for that.
>>>>
>>>>
>>>> Great! cannot wait to try :)
>>>>
>>>
>>> Attached is a patch to apply on top of the MM_05 branch of ModemManager:
>>>    $> git clone git://anongit.freedesktop.org/ModemManager/ModemManager
>>>    $> cd ModemManager
>>>    $> git checkout -b MM_05 origin/MM_05
>>>    $> git am /path/to/the/patch.diff
>>>    $> ./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var
>>>    $> make
>>>    $> sudo make install
>>>
>>> It is not a perfect solution, but should do the trick. I'll find a
>>> better fix for git master/0.7; as I do have some probing improvements
>>> ready there which would help quite a lot also in this case.
>>>
>>> Let me know if it worked or not, as I don't have any Huawei modem around
>>> to play with. Please attach debug logs in any case.
>>
>>
>> Hello, it partially works.
>>
>> I can find the device in nm now, but when try to connect to 3g net, it
>> fails.
>>
>
> Seems we're mixing up which is the port we use for control and the one we
> use for PPP. Can you run "AT^GETPORTMODE" with minicom in each of the
> ttyUSB?

I suppose you mean ttACM*?

I tried and all of them returned simple 'ERROR', seems not support that AT
command. and I do it while connecting to 3g net via wvdial, the result is
different: ACM0 just says locked, ACM1 respones the same to the situation
when offline, ACM2 instantly return some '^DSFLOWRPT' and '*PHBI'.

-- 
Emfox Zhou

GnuPG Public Key: 0xF7142EC2
emfox@emfox:~$ sudo minicom -D /dev/ttyACM0
Device /dev/ttyACM0 is locked.


emfox@emfox:~$ sudo minicom -D /dev/ttyACM1
Welcome to minicom 2.6.1

OPTIONS: I18n 
Compiled on Feb 11 2012, 18:12:55.
Port /dev/ttyACM1

Press CTRL-A Z for help on special keys

AT
OK
ATZ
OK
AT+CGDCONT?
+CGDCONT: 1,"IP","CMWAP","0.0.0.0",0,0
+CGDCONT: 2,"IP","cmnet","0.0.0.0",0,0
+CGDCONT: 3,"IP","","0.0.0.0",0,0

OK
AT^GETPORTMODE
ERROR
AT ^ GETPORTMODE
ERROR
AT^SETPORT?
ERROR


emfox@emfox:~$ sudo minicom -D /dev/ttyACM2
Welcome to minicom 2.6.1

OPTIONS: I18n 
Compiled on Feb 11 2012, 18:12:55.
Port /dev/ttyACM2

Press CTRL-A Z for help on special keys


^DSFLOWRPT: 00000196,00000000,00000000,00000000000c8189,00000000005a5b3f,00000097,00000097

^DSFLOWRPT: 00000198,00000000,00000000,00000000000c8189,00000000005a5b3f,00000097,00000097

^DSFLOWRPT: 0000019a,00000000,00000000,00000000000c8189,00000000005a5b3f,00000097,00000097

^DSFLOWRPT: 0000019c,00000000,00000000,00000000000c8189,00000000005a5b3f,00000097,00000097

^DSFLOWRPT: 000001b0,00000000,00000000,00000000000c8da4,00000000005a6df0,00000097,00000097

^DSFLOWRPT: 000001b2,000000a7,0000009b,00000000000c8ef3,00000000005a6f26,00000097,00000097

^DSFLOWRPT: 000001b4,00000000,00000000,00000000000c8ef3,00000000005a6f26,00000097,00000097

^DSFLOWRPT: 000001b6,00000000,00000000,00000000000c8ef3,00000000005a6f26,00000097,00000097

^DSFLOWRPT: 000001b8,00000000,00000000,00000000000c8ef3,00000000005a6f26,00000097,00000097

^DSFLOWRPT: 000001ba,00000000,00000000,00000000000c8ef3,00000000005a6f26,00000097,00000097

*PHBI: 0,1

^DSFLOWRPT: 000001bc,00000000,00000000,00000000000c8ef3,00000000005a6f26,00000097,00000097

^DSFLOWRPT: 000001be,00000000,00000000,00000000000c8ef3,00000000005a6f26,00000097,00000097

^DSFLOWRPT: 000001c0,00000000,00000000,00000000000c8ef3,00000000005a6f26,00000097,00000097

*PHBI: 0,2

^DSFLOWRPT: 000001c2,000004f4,00000173,00000000000c98dc,00000000005a720c,00000097,00000097

^DSFLOWRPT: 000001c4,000000c1,00000046,00000000000c9a5f,00000000005a7298,00000097,00000097

^DSFLOWRPT: 000001c6,00000000,00000000,00000000000c9a5f,00000000005a7298,00000097,00000097

^DSFLOWRPT: 000001c8,000000b6,0000073f,00000000000c9bcb,00000000005a8117,00000097,00000097

^DSFLOWRPT: 000001ca,0000001a,0000001a,00000000000c9bff,00000000005a814b,00000097,00000097




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