Routing Issue while Updating Linux System Time over Hologram


#1

Hello,

When I have my linux box (BBB) connected to my local network and run something like:
rdate -s time.nist.gov, the system time updates immediately. However, just with the Hologram Nova modem connected there is always a timeout when trying to connect to the server. For instance, I run the following sequence:
hologram network connect
rdate -s time.nist.gov
rdate: timeout connecting to time server
hologram network disconnect.

This seem like it has more to do with the capabilities of my hologram account…? Are some of my settings not configured correctly?

Regards,


#2

Hi @fewill,

After running hologram network connect, what’s the output you get when running ip route and when running cat /etc/resolv.conf?

Thanks,
PFW


#3

root@beaglebone:~# hologram network connect
No handlers could be found for logger "pyroute2.netlink.rtnl.tcmsg.common"
root@beaglebone:~# ip route
default via 192.168.0.1 dev eth0
10.176.0.0/16 via 10.52.25.70 dev ppp0
10.254.0.0/16 via 10.52.25.70 dev ppp0
192.168.0.0/24 dev eth0 src 192.168.0.117
root@beaglebone:~# cat /etc/resolv.conf
nameserver 212.9.0.135
nameserver 212.9.0.136
root@beaglebone:~#

Regards,


#4

PFW,

I think I got it. I have a static ip route conflicting. So I first do this:

ifconfig eth0 down

then:

hologram network connect.

And this seems to work.

Regards,


#5

Hey @fewill,

Yes, that looks like it is it!

I believe that the default route via 192.168.0.1 and eth0 is capturing your traffic instead of it getting routed out via ppp0 (the modem).

Best,
PFW


#6

Pat,

I have one more issue concerning ppp. I started with a fresh linux build, same as I was using before, but now I am getting an error when running the hologram network connect command…

root@beaglebone:~# hologram network connect
No handlers could be found for logger "pyroute2.netlink.rtnl.tcmsg.common"
Exception in thread Thread-1:
Traceback (most recent call last):
File “/usr/lib/python2.7/threading.py”, line 801, in __bootstrap_inner
self.run()
File “/usr/lib/python2.7/threading.py”, line 754, in run
self.__target(*self.__args, **self.__kwargs)
File “/usr/lib/python2.7/site-packages/Hologram/Network/Modem/ModemMode/pppd.py”, line 111, in connectThreadedFunc
raise PPPConnectionError(self.proc.returncode, self.output)
PPPConnectionError: (4, “Couldn’t open the /dev/ppp device: No such file or directory\n/usr/sbin/pppd: You need to create the /dev/ppp device node by\nexecuting the following command as root:\n\tmknod /dev/ppp c 108 0\n\n”)

So I ran this:
root@beaglebone:~# mknod /dev/ppp c 108 0
root@beaglebone:~# hologram network connect
No handlers could be found for logger "pyroute2.netlink.rtnl.tcmsg.common"
Exception in thread Thread-1:
Traceback (most recent call last):
File “/usr/lib/python2.7/threading.py”, line 801, in __bootstrap_inner
self.run()
File “/usr/lib/python2.7/threading.py”, line 754, in run
self.__target(*self.__args, **self.__kwargs)
File “/usr/lib/python2.7/site-packages/Hologram/Network/Modem/ModemMode/pppd.py”, line 111, in connectThreadedFunc
raise PPPConnectionError(self.proc.returncode, self.output)
PPPConnectionError: (4, “Couldn’t open the /dev/ppp device: No such device or address\n/usr/sbin/pppd: Please load the ppp_generic kernel module.\n\n”)

So, I am not sure what it means by load the ppp_generic module…

Here are some other outputs you may be interested in:
root@beaglebone:~# lsmod | grep ppp

root@beaglebone:~# dpkg -l | grep ppp
ii ppp 2.4.7-r0 armhf Point-to-Point Protocol (PPP) support

root@beaglebone:~# pppd --help
pppd version 2.4.7
Usage: pppd [ options ], where options are:
Communicate over the named device
Set the baud rate to
: Set the local and/or remote interface IP
addresses. Either one may be omitted.
asyncmap Set the desired async map to hex
auth Require authentication from peer
connect

Invoke shell command

to set up the serial line
crtscts Use hardware RTS/CTS flow control
defaultroute Add default route through interface
file Take options from file
modem Use modem control lines
mru Set MRU value to for negotiation
See pppd(8) for more options.

So, the modem works when sending data to the cloud/sms, etc. but I can’t establish a ppp link, any insight?

Regards,


#7

Can you run which ppp

Curious where the file actually is


#8

Ok, so it turns out I was missing the ppp_generic loadable kernel module, so I no longer get the errors I posted above. However now when I run the command:

hologram network connect

It just spins and never connects, but after about 5 minutes it does error-out with the following message:

root@beaglebone:~# hologram network connect
No handlers could be found for logger "pyroute2.netlink.rtnl.tcmsg.common"
Exception in thread Thread-1:
Traceback (most recent call last):
File “/usr/lib/python2.7/threading.py”, line 801, in __bootstrap_inner
self.run()
File “/usr/lib/python2.7/threading.py”, line 754, in run
self.__target(*self.__args, **self.__kwargs)
File “/usr/lib/python2.7/site-packages/Hologram/Network/Modem/ModemMode/pppd.py”, line 111, in connectThreadedFunc
raise PPPConnectionError(self.proc.returncode, self.output)
PPPConnectionError: (5, “chat: May 24 11:57:42 CONNECT\nSerial connection established.\nCouldn’t set tty to PPP discipline: Invalid argument\nchat: May 24 11:58:15 CONNECT\nSerial connection established.\nCouldn’t set tty to PPP discipline: Invalid argument\nchat: May 24 11:58:48 CONNECT\nSerial connection established.\nCouldn’t set tty to PPP discipline: Invalid argument\nchat: May 24 11:59:20 CONNECT\nSerial connection established.\nCouldn’t set tty to PPP discipline: Invalid argument\nchat: May 24 11:59:53 CONNECT\nSerial connection established.\nCouldn’t set tty to PPP discipline: Invalid argument\nchat: May 24 12:00:26 CONNECT\nSerial connection established.\nCouldn’t set tty to PPP discipline: Invalid argument\nchat: May 24 12:00:58 CONNECT\nSerial connection established.\nCouldn’t set tty to PPP discipline: Invalid argument\nTerminating on signal 15\n”)

One thing for debugging purposes, is that while this is spinning, the blue light goes back and forth between blinking rapidly and solid…I’ve notice it goes solid and stays solid when the ppp connection is made, but this never happens. It only stays solid for a few seconds then goes back to blinking rapidly.

Regards,


#9

Got it, I was missing more LKMs:
PPP Support for async serial ports and
PPP support for sync tty ports

Thanks!


#10

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.