ppp establish connection on boot debian beaglebone black

349 views
Skip to first unread message

Matt Maher Peterson

unread,
Dec 2, 2015, 5:17:06 PM12/2/15
to BeagleBoard
Hi,

I am using a Skywire LE910-SVG cellular modem   with a BBB.

I have writting chatscripts and PPP/peers provider scripts that are working well.  If I let the BBB boot up normally I can ssh to the device and 'pon verizon' to establish a ppp connection manully.  Everything works great.

The issue I am trying to resolve is automating this on boot.  What is the best way to do this?

Tried adding it to /etc/network/interfaces with:

auto verizon
iface verizon inet ppp0
      provider verizon

Does not seam to do anything.

Have also tried to running a simple bash script to do this after the BBB boots

#!/bin/bash
pon verizon

When I execute the script I can see everything connect but I it immediately terminates the connection as I can see in the output with Hangup (SIGHUP)

 pppd[1846]: PAP authentication succeeded
 pppd[1846]: Could not determine remote IP address: defaulting to 10.64.64.64
 pppd[1846]: local  IP address 166.154.48.36
 pppd[1846]: remote IP address 10.64.64.64
 pppd[1846]: primary   DNS address 198.224.173.135
 pppd[1846]: secondary DNS address 198.224.174.135
 pppd[1860]: Hangup (SIGHUP)
 pppd[1860]: Modem hangup
 pppd[1860]: Connect time 0.0 minutes.
 pppd[1860]: Sent 0 bytes, received 0 bytes.
 pppd[1860]: Connection terminated.


Any solutions out there?

Kind Regards,

Matt

Rob van der Putten

unread,
Dec 3, 2015, 11:35:28 AM12/3/15
to beagl...@googlegroups.com
Hi there


Matt Maher Peterson wrote:

> I am using aSkywire LE910-SVG cellular modem
> <http://nimbelink.com/skywire-cellular-modem-lte/>with a BBB.
>
> I have writting chatscripts and PPP/peers provider scripts that are
> working well. If I let the BBB boot up normally I can ssh to the device
> and 'pon verizon' to establish a ppp connection manully. Everything
> works great.
>
> The issue I am trying to resolve is automating this on boot. What is
> the best way to do this?
>
> Tried adding it to /etc/network/interfaces with:
>
> auto verizon
> iface verizon inet ppp0
> provider verizon
>
> Does not seam to do anything.

This should work, but is not a very good idea.
Use: up ( pon provider ) &

> Have also tried to running a simple bash script to do this after the BBB
> boots
>
> #!/bin/bash
> pon verizon
>
> When I execute the script I can see everything connect but I it
> immediately terminates the connection as I can see in the output with
> Hangup (SIGHUP)
>
> pppd[1846]: PAP authentication succeeded
> pppd[1846]: Could not determine remote IP address: defaulting to 10.64.64.64

Weird.

> pppd[1846]: local IP address 166.154.48.36
> pppd[1846]: remote IP address 10.64.64.64
> pppd[1846]: primary DNS address 198.224.173.135
> pppd[1846]: secondary DNS address 198.224.174.135
> pppd[1860]: *Hangup (SIGHUP)*
> pppd[1860]: Modem hangup

How long does this take?

> pppd[1860]: Connect time 0.0 minutes.
> pppd[1860]: Sent 0 bytes, received 0 bytes.
> pppd[1860]: Connection terminated.
>
>
> Any solutions out there?

Try debug.
Does the modem want flow control or modem control lines?


Regards,
Rob

Reply all
Reply to author
Forward
Message has been deleted
0 new messages