[back to this topic] Re: [PATCH] for ModemManager to add (partial) support for ZTE MF192

On Fri, 2012-02-03 at 05:08 +0900, Dmitry Morozhnikov wrote:
> ZTE MF192 does not respond properly to the AT%IPDPACT command:
> --> 'AT%IPDPCFG=1,0,1,"mts","mts"<CR>'
> <-- '<CR><LF>OK<CR><LF>'
> --> 'AT%IPDPACT=1,0<CR>'
> <-- '<CR><LF>ERROR<CR><LF>'
> Got failure code 100: Unknown error
> --> 'AT%IPDPACT=1,1<CR>'
> <-- '<CR><LF>ERROR<CR><LF>'
> Got failure code 100: Unknown error

In fact, MF192 has two modes: PPP device, and pseudo-ethernet device. It can be switched using %USBMODEM command.

So, command AT%USBMODEM=0 disables internal CD-ROM and enables cdc-ether device. In this mode the modem
just works without any patching:

(ttyACM0): --> 'AT%IPDPCFG=1,0,1,"mts","mts"<CR>'
(ttyACM0): <-- '<CR><LF>OK<CR><LF>'
(ttyACM0): --> 'AT%IPDPACT=1,0<CR>'
(ttyACM0): <-- '<CR><LF>ERROR<CR><LF>'
mm_serial_parser_v1_parse(): Got failure code 100: Unknown error
(ttyACM0): --> 'AT%IPDPACT=1,1<CR>'
(ttyACM0): <-- '<CR><LF>%IPDPACT: 1, 2, 0<CR><LF><CR><LF>OK<CR><LF>'
(ttyACM0): <-- '<CR><LF>%NWSTATE: 4,25001,3G-HSDPA,-,0<CR><LF>'
(ttyACM0): <-- '<CR><LF>%NWSTATE: 4,25001,3G-HSDPA,HSDPA-HSUPA,0<CR><LF>'

Meanwhile, originally modem was configured as PPP device, so it is not working "out of the box", and this is a bug.
I think that ModemManager uses incorrect tty-port for data, but I don't know how to find out and fix this.

Alexander Orlov

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