PPPD: Failed to open /dev/modem_at0: Input/output error

Home Forums MultiConnect OCG PPPD: Failed to open /dev/modem_at0: Input/output error

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #12084
    Herraiz Stéphane
    Participant

    Hi,
    We made a CRON task to test and reboot modem connexion to internet:

    #!/bin/bash
    PATH=/bin:/usr/bin:/sbin:/usr/sbin:/etc/init.d
    PPP=/etc/init.d/ppp
    wget -q --spider http://google.com
    if [ $? -eq 0 ]; then
        logger -t NOMAD "Internet test ok"
    else
        mts-io-sysfs store led-sdk-c 0
        logger -t NOMAD "Internet lost -> reseting ppp connexion"
        if pidof pppd
        then
            killall pppd
        fi
        sleep 10
        $PPP start
         logger -t NOMAD "ppp connexion (re)started"
    fi

    But sometimes we have this message in the logs:
    pppd[25168]: Failed to open /dev/modem_at0: Input/output error
    and the internet connexion never comes back.

    Is my script is ok?
    While to detect such error in my script and how to repair the modem connexion?

    Thanks

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.