Bringing up PPP after ModemManager is up

Aleksander Morgado aleksander at aleksander.es
Tue Apr 21 09:50:03 PDT 2015


On Tue, Apr 21, 2015 at 6:36 PM, Ali Nematollahi <alirezan1 at gmail.com> wrote:
> Script /usr/sbin/chat -v -f /etc/ppp/peers/hspa_chat finished (pid 4962),
> status = 0x0
> Serial connection established.
> using channel 1
> Using interface ppp0
> Connect: ppp0 <--> /dev/ttyUSB3
> ModemManager[3261]: <debug> [947011699.820755] [mm-base-manager.c:296]
> device_added(): (net/ppp0): could not get port's parent device
> Warning - secret file /etc/ppp/pap-secrets has world and/or group access
> sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xdf31bf8f> <pcomp> <accomp>]
> ModemManager[3261]: <debug> [947011701.975954] [mm-port-serial.c:1237]
> mm_port_serial_open(): (ttyUSB2) device open count is 2 (open)
> ModemManager[3261]: <debug> [947011701.976442] [mm-broadband-modem.c:1991]
> modem_load_signal_quality(): loading signal quality...
> ModemManager[3261]: <debug> [947011701.976649] [mm-port-serial.c:1237]
> mm_port_serial_open(): (ttyUSB2) device open count is 3 (open)
> ModemManager[3261]: <debug> [947011701.976922] [mm-port-serial-at.c:440]
> debug_log(): (ttyUSB2): --> 'AT^SIND?<CR>'
> ModemManager[3261]: <debug> [947011702.049414] [mm-port-serial-at.c:440]
> debug_log(): (ttyUSB2): <-- '<CR><LF>OK<CR><LF>'
> ModemManager[3261]: <debug> [947011702.050791] [mm-port-serial.c:1237]
> mm_port_serial_open(): (ttyUSB2) device open count is 4 (open)
> ModemManager[3261]: <debug> [947011702.051690] [mm-port-serial.c:1294]
> _close_internal(): (ttyUSB2) device open count is 3 (close)
> ModemManager[3261]: <debug> [947011702.052479] [mm-port-serial-at.c:440]
> debug_log(): (ttyUSB2): --> 'AT+CSQ<CR>'
> ModemManager[3261]: <debug> [947011702.077731] [mm-port-serial-at.c:440]
> debug_log(): (ttyUSB2): <-- '<CR><LF>+CSQ: 13,99<CR><LF><CR><LF>OK<CR><LF>'
> ModemManager[3261]: <debug> [947011702.078895] [mm-port-serial.c:1294]
> _close_internal(): (ttyUSB2) device open count is 2 (close)
> ModemManager[3261]: <debug> [947011702.080065] [mm-iface-modem.c:1165]
> update_signal_quality(): Modem /org/freedesktop/ModemManager1/Modem/0:
> signal quality updated (41)
> ModemManager[3261]: <debug> [947011702.083394] [mm-port-serial-at.c:440]
> debug_log(): (ttyUSB2): --> 'AT^SMONG<CR>'
> ModemManager[3261]: <debug> [947011702.103334] [mm-port-serial-at.c:440]
> debug_log(): (ttyUSB2): <-- '<CR><LF>ERROR<CR><LF>'
> ModemManager[3261]: <debug> [947011702.104258] [mm-serial-parsers.c:364]
> mm_serial_parser_v1_parse(): Got failure code 100: Unknown error
> ModemManager[3261]: <debug> [947011702.104909] [mm-iface-modem.c:934]
> access_technologies_check_ready(): Couldn't refresh access technologies:
> 'Unknown error'
> ModemManager[3261]: <debug> [947011702.105511] [mm-port-serial.c:1294]
> _close_internal(): (ttyUSB2) device open count is 1 (close)
> sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xdf31bf8f> <pcomp> <accomp>]
> sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xdf31bf8f> <pcomp> <accomp>]
> sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xdf31bf8f> <pcomp> <accomp>]
> sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xdf31bf8f> <pcomp> <accomp>]
> sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xdf31bf8f> <pcomp> <accomp>]
> sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xdf31bf8f> <pcomp> <accomp>]
> sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xdf31bf8f> <pcomp> <accomp>]
> LCP: timeout sending Config-Requests
> Connection terminated.
> Script /usr/sbin/chat -v -f /etc/ppp/peers/hspa_chat_down finished (pid
> 5134), status = 0x0


I'd remove these from your pppd config list:

115200
connect '/usr/sbin/chat -v -f /etc/ppp/peers/hspa_chat'
disconnect '/usr/sbin/chat -v -f /etc/ppp/peers/hspa_chat_down'

There's no chat needed before PPP gets to play with the port, plus not
sure if requesting to use a new baudrate will actually work at this
point.

-- 
Aleksander
https://aleksander.es


More information about the ModemManager-devel mailing list